Changeset 36087 in webkit for trunk/JavaScriptCore/VM/CodeBlock.cpp
- Timestamp:
- Sep 4, 2008, 2:29:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CodeBlock.cpp
r36039 r36087 178 178 void CodeBlock::printStructureID(const char* name, const Instruction* vPC, int operand) const 179 179 { 180 printf(" [%4d] %s: %s\n", vPC - instructions.begin(), name, pointerToSourceString(vPC[operand].u.structureID).UTF8String().c_str()); 180 unsigned instructionOffset = vPC - instructions.begin(); 181 printf(" [%4d] %s: %s\n", instructionOffset, name, pointerToSourceString(vPC[operand].u.structureID).UTF8String().c_str()); 181 182 } 182 183 … … 184 185 { 185 186 Machine* machine = globalData->machine; 187 unsigned instructionOffset = vPC - instructions.begin(); 186 188 187 189 if (vPC[0].u.opcode == machine->getOpcode(op_get_by_id)) { … … 194 196 } 195 197 if (vPC[0].u.opcode == machine->getOpcode(op_get_by_id_proto)) { 196 printf(" [%4d] %s: %s, %s\n", vPC - instructions.begin(), "get_by_id_proto", pointerToSourceString(vPC[4].u.structureID).UTF8String().c_str(), pointerToSourceString(vPC[5].u.structureID).UTF8String().c_str());198 printf(" [%4d] %s: %s, %s\n", instructionOffset, "get_by_id_proto", pointerToSourceString(vPC[4].u.structureID).UTF8String().c_str(), pointerToSourceString(vPC[5].u.structureID).UTF8String().c_str()); 197 199 return; 198 200 } 199 201 if (vPC[0].u.opcode == machine->getOpcode(op_get_by_id_chain)) { 200 printf(" [%4d] %s: %s, %s\n", vPC - instructions.begin(), "get_by_id_chain", pointerToSourceString(vPC[4].u.structureID).UTF8String().c_str(), pointerToSourceString(vPC[5].u.structureIDChain).UTF8String().c_str());202 printf(" [%4d] %s: %s, %s\n", instructionOffset, "get_by_id_chain", pointerToSourceString(vPC[4].u.structureID).UTF8String().c_str(), pointerToSourceString(vPC[5].u.structureIDChain).UTF8String().c_str()); 201 203 return; 202 204 }
Note:
See TracChangeset
for help on using the changeset viewer.