gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/avm2 r9475: Fix NEWFUNCTION opcode.


From: Tom Stellard
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9475: Fix NEWFUNCTION opcode.
Date: Sun, 17 Aug 2008 19:09:36 +0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9475
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Sun 2008-08-17 19:09:36 +0800
message:
  Fix NEWFUNCTION opcode.
modified:
  libcore/vm/Machine.cpp
=== modified file 'libcore/vm/Machine.cpp'
--- a/libcore/vm/Machine.cpp    2008-08-17 10:51:27 +0000
+++ b/libcore/vm/Machine.cpp    2008-08-17 11:09:36 +0000
@@ -1021,9 +1021,8 @@
 ///  function from this information and bind the current scope.
        case SWF::ABC_ACTION_NEWFUNCTION:
        {
-               mStack.grow(1);
                asMethod *m = pool_method(mStream->read_V32(), mPoolObject);
-               mStack.top(0) = m->construct(mCurrentScope);
+               push_stack(as_value(new abc_function(m->getBody())));
                break;
        }
 /// 0x41 ABC_ACTION_CALL


reply via email to

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