gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/avm2 r9484: Some cleanups and new debug st


From: Tom Stellard
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9484: Some cleanups and new debug statements for CALLPROPVOID opcode.
Date: Mon, 18 Aug 2008 00:29:37 +0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9484
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Mon 2008-08-18 00:29:37 +0800
message:
  Some cleanups and new debug statements for CALLPROPVOID opcode.
modified:
  libcore/vm/Machine.cpp
=== modified file 'libcore/vm/Machine.cpp'
--- a/libcore/vm/Machine.cpp    2008-08-17 14:18:11 +0000
+++ b/libcore/vm/Machine.cpp    2008-08-17 16:29:37 +0000
@@ -1170,14 +1170,15 @@
        case SWF::ABC_ACTION_CALLPROPLEX:
        case SWF::ABC_ACTION_CALLPROPVOID:
        {
-//             bool lex_only = (opcode == SWF::ABC_ACTION_CALLPROPLEX);
+
                asName a = pool_name(mStream->read_V32(), mPoolObject);
                boost::uint32_t argc = mStream->read_V32();
                as_environment env = get_args(argc);
+               //TODO: If multiname is runtime also pop namespace and/or name 
values.
                as_object *object = pop_stack().to_object().get();
                
-               //TODO: Determine namespace.
                as_value property = object->getMember(a.getGlobalName(),0);
+               LOG_DEBUG_AVM("Calling method %s on object 
%s",property.toDebugString(),object->get_text_value());
                call_method(property,&env,object,argc,env.stack_size() - 1);
                env.drop(argc);
 


reply via email to

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