gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/avm2 r9488: Clean up SETLOCAL opcode and i


From: Tom Stellard
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9488: Clean up SETLOCAL opcode and increase initial number of registers.
Date: Mon, 18 Aug 2008 00:58:20 +0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9488
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Mon 2008-08-18 00:58:20 +0800
message:
  Clean up SETLOCAL opcode and increase initial number of registers.
modified:
  libcore/vm/Machine.cpp
=== modified file 'libcore/vm/Machine.cpp'
--- a/libcore/vm/Machine.cpp    2008-08-17 16:48:32 +0000
+++ b/libcore/vm/Machine.cpp    2008-08-17 16:58:20 +0000
@@ -1548,8 +1548,9 @@
 ///  .
        case SWF::ABC_ACTION_SETLOCAL:
        {
-               mRegisters[mStream->read_V32()] = mStack.top(0);
-               mStack.drop(1);
+               boost::uint32_t index = mStream->read_V32();
+               LOG_DEBUG_AVM("Register index: %u",index);
+               mRegisters[index] = pop_stack();
                break;
        }
 /// 0x64 ABC_ACTION_GETGLOBALSCOPE
@@ -2631,7 +2632,7 @@
        mCH = CH;
        //Local registers should be initialized at the beginning of each 
function call, but
        //we don't currently parse the number of local registers for each 
function.
-       mRegisters.resize(4);
+       mRegisters.resize(8);
 //     mST = new string_table();
 //     mST = ST;
 }


reply via email to

[Prev in Thread] Current Thread [Next in Thread]