gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/avm2 r9505: Add some usefull debug stateme


From: Tom Stellard
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9505: Add some usefull debug statements.
Date: Thu, 21 Aug 2008 23:15:20 +0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9505
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Thu 2008-08-21 23:15:20 +0800
message:
  Add some usefull debug statements.
modified:
  libcore/parser/abc_block.cpp
  libcore/vm/Machine.cpp
=== modified file 'libcore/parser/abc_block.cpp'
--- a/libcore/parser/abc_block.cpp      2008-08-20 04:42:57 +0000
+++ b/libcore/parser/abc_block.cpp      2008-08-21 15:15:20 +0000
@@ -893,7 +893,7 @@
                }
 
                boost::uint8_t flags = mS->read_u8();
-               LOG_DEBUG_ABC("Instance %u multiname index=%u super index=%u 
flags=%X",i,index,super_index,flags | 0x0);
+               LOG_DEBUG_ABC("Instance %u multiname index=%u name=%s super 
index=%u 
flags=%X",i,index,mStringPool[mMultinamePool[index].getABCName()],super_index,flags
 | 0x0);
 
                if (flags & INSTANCE_SEALED)
                        pClass->setSealed();

=== modified file 'libcore/vm/Machine.cpp'
--- a/libcore/vm/Machine.cpp    2008-08-21 13:28:08 +0000
+++ b/libcore/vm/Machine.cpp    2008-08-21 15:15:20 +0000
@@ -537,6 +537,9 @@
                        LOG_DEBUG_AVM("Jumping %d bytes.",bytes);
                        mStream->seekBy(bytes);
                }
+               else{
+                       LOG_DEBUG_AVM("Would have jumped %d bytes", bytes);
+               }
                break;
        }
 /// 0x14 ABC_ACTION_IFNE
@@ -1005,7 +1008,9 @@
 ///  function from this information and bind the current scope.
        case SWF::ABC_ACTION_NEWFUNCTION:
        {
-               asMethod *m = pool_method(mStream->read_V32(), mPoolObject);
+               boost::int32_t method_index = mStream->read_V32();
+               LOG_DEBUG_AVM("Creating new abc_function: method 
index=%u",method_index);
+               asMethod *m = pool_method(method_index, mPoolObject);
                push_stack(as_value(new abc_function(m->getBody(),this)));
                break;
        }
@@ -1634,6 +1639,7 @@
                boost::uint32_t sindex = mStream->read_V32();
                as_value value = pop_stack();
                as_value object = pop_stack();
+               LOG_DEBUG_AVM("We should be setting the property at slot 
%u",sindex);
                //TODO: Actually set the object's value.
                break;
        }


reply via email to

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