[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/avm2 r9500: Cleaned up debug statements in
From: |
Tom Stellard |
Subject: |
[Gnash-commit] /srv/bzr/gnash/avm2 r9500: Cleaned up debug statements in the ABC parser. |
Date: |
Wed, 20 Aug 2008 12:42:57 +0800 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9500
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Wed 2008-08-20 12:42:57 +0800
message:
Cleaned up debug statements in the ABC parser.
modified:
libcore/parser/abc_block.cpp
=== modified file 'libcore/parser/abc_block.cpp'
--- a/libcore/parser/abc_block.cpp 2008-08-20 02:35:24 +0000
+++ b/libcore/parser/abc_block.cpp 2008-08-20 04:42:57 +0000
@@ -703,7 +703,7 @@
boost::uint32_t param_count = mS->read_V32();
boost::uint32_t return_type = mS->read_V32();
- log_debug(" Param count: %u return type(index):
%s(%u)",param_count,mStringPool[return_type],return_type);
+ log_debug(" Param count: %u return type(index):
%s(%u)",param_count,mStringPool[mMultinamePool[return_type].getABCName()],return_type);
pMethod->setMinArgumentCount(param_count);
pMethod->setMaxArgumentCount(param_count);
@@ -726,7 +726,7 @@
log_debug(" Reading parameter %u",j);
// The parameter type.
boost::uint32_t ptype = mS->read_V32();
- log_debug(" Parameter type(index):
%s(%u)",mStringPool[ptype],ptype);
+ log_debug(" Parameter type(index):
%s(%u)",mStringPool[mMultinamePool[ptype].getABCName()],ptype);
if (ptype >= mMultinamePool.size())
{
ERR((_("ABC: Out of bounds parameter type in
method.\n")));
@@ -1062,11 +1062,11 @@
abc_block::read_method_bodies()
{
boost::uint32_t count = mS->read_V32();
-
+ LOG_DEBUG_ABC("There are %u method bodies.",count);
for (unsigned int i = 0; i < count; ++i)
{
boost::uint32_t moffset = mS->read_V32();
- log_debug("Method body offset: %u",moffset);
+ LOG_DEBUG_ABC("Method body %u method offset=%u",i,moffset);
if (moffset >= mMethods.size())
{
ERR((_("ABC: Out of bounds for method body.\n")));
@@ -1103,12 +1103,6 @@
else{
mMethods[moffset]->getBody()->reInitialize(&body.front(), clength, true);
}
- printf("CODE: method %u offset: %u ",i,moffset);
- unsigned int ex;
- for(ex=0;ex<body.size();ex++){
- printf("0x%X ",body[ex] | 0x0);
- }
- printf("\n");
boost::uint32_t ecount = mS->read_V32();
for (unsigned int j = 0; j < ecount; ++j)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/avm2 r9500: Cleaned up debug statements in the ABC parser.,
Tom Stellard <=