gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/avm2 r9576: NEWACTIVATION opcode: Create a


From: Tom Stellard
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9576: NEWACTIVATION opcode: Create an activation object that has the correct properties.
Date: Tue, 30 Sep 2008 22:20:10 +0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9576
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Tue 2008-09-30 22:20:10 +0800
message:
  NEWACTIVATION opcode: Create an activation object that has the correct 
properties.
modified:
  libcore/vm/Machine.cpp
=== modified file 'libcore/vm/Machine.cpp'
--- a/libcore/vm/Machine.cpp    2008-09-30 14:02:04 +0000
+++ b/libcore/vm/Machine.cpp    2008-09-30 14:20:10 +0000
@@ -1359,9 +1359,10 @@
 ///  vtable -- A new virtual table, which has the previous one as a parent.
        case SWF::ABC_ACTION_NEWACTIVATION:
        {
-               // TODO: I think this is supposed to create an object to store 
environment information.
-               //to be used with functions.
-               push_stack(as_value(new as_object));
+               // TODO:  The function contains traits that need to be included 
in the activation object.
+               //For now we are using the function object as the activation 
object.  There is probably
+               //a better way.
+               push_stack(as_value(mCurrentFunction));
                break;
        }
 /// 0x58 ABC_ACTION_NEWCLASS


reply via email to

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