Changeset 104770 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
- Timestamp:
- Jan 11, 2012, 5:00:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r104646 r104770 184 184 } 185 185 186 void CodeBlock::printCallOp(ExecState* exec, int location, Vector<Instruction>::const_iterator& it, const char* op) const 187 { 188 int func = (++it)->u.operand; 189 int argCount = (++it)->u.operand; 190 int registerOffset = (++it)->u.operand; 191 printf("[%4d] %s\t %s, %d, %d\n", location, op, registerName(exec, func).data(), argCount, registerOffset); 192 it += 2; 193 } 194 186 195 void CodeBlock::printPutByIdOp(ExecState* exec, int location, Vector<Instruction>::const_iterator& it, const char* op) const 187 196 { … … 523 532 case op_convert_this: { 524 533 int r0 = (++it)->u.operand; 525 printf("[%4d] convert_this %s\n", location, registerName(exec, r0).data());534 printf("[%4d] convert_this\t %s\n", location, registerName(exec, r0).data()); 526 535 break; 527 536 } … … 1120 1129 } 1121 1130 case op_call: { 1122 int func = (++it)->u.operand; 1123 int argCount = (++it)->u.operand; 1124 int registerOffset = (++it)->u.operand; 1125 printf("[%4d] call\t\t %s, %d, %d\n", location, registerName(exec, func).data(), argCount, registerOffset); 1131 printCallOp(exec, location, it, "call"); 1126 1132 break; 1127 1133 } 1128 1134 case op_call_eval: { 1129 int func = (++it)->u.operand; 1130 int argCount = (++it)->u.operand; 1131 int registerOffset = (++it)->u.operand; 1132 printf("[%4d] call_eval\t %s, %d, %d\n", location, registerName(exec, func).data(), argCount, registerOffset); 1135 printCallOp(exec, location, it, "call_eval"); 1133 1136 break; 1134 1137 } … … 1149 1152 case op_tear_off_arguments: { 1150 1153 int r0 = (++it)->u.operand; 1151 printf("[%4d] tear_off_arguments \t%s\n", location, registerName(exec, r0).data());1154 printf("[%4d] tear_off_arguments %s\n", location, registerName(exec, r0).data()); 1152 1155 break; 1153 1156 } … … 1169 1172 } 1170 1173 case op_construct: { 1171 int func = (++it)->u.operand; 1172 int argCount = (++it)->u.operand; 1173 int registerOffset = (++it)->u.operand; 1174 printf("[%4d] construct\t %s, %d, %d\n", location, registerName(exec, func).data(), argCount, registerOffset); 1174 printCallOp(exec, location, it, "construct"); 1175 1175 break; 1176 1176 }
Note:
See TracChangeset
for help on using the changeset viewer.