Changeset 60105 in webkit for trunk/JavaScriptCore/bytecode
- Timestamp:
- May 24, 2010, 5:44:17 PM (15 years ago)
- Location:
- trunk/JavaScriptCore/bytecode
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/CodeBlock.cpp
r60075 r60105 500 500 break; 501 501 } 502 case op_get_callee: {503 int r0 = (++it)->u.operand;504 printf("[%4d] op_get_callee %s\n", location, registerName(exec, r0).data());505 break;506 }507 case op_create_this: {508 int r0 = (++it)->u.operand;509 int r1 = (++it)->u.operand;510 printf("[%4d] create_this %s %s\n", location, registerName(exec, r0).data(), registerName(exec, r1).data());511 break;512 }513 502 case op_convert_this: { 514 503 int r0 = (++it)->u.operand; … … 1095 1084 int argCount = (++it)->u.operand; 1096 1085 int registerOffset = (++it)->u.operand; 1097 printf("[%4d] construct\t %s, %d, %d\n", location, registerName(exec, func).data(), argCount, registerOffset); 1086 int proto = (++it)->u.operand; 1087 int thisRegister = (++it)->u.operand; 1088 printf("[%4d] construct\t %s, %d, %d, %s, %s\n", location, registerName(exec, func).data(), argCount, registerOffset, registerName(exec, proto).data(), registerName(exec, thisRegister).data()); 1098 1089 break; 1099 1090 } … … 1646 1637 return false; 1647 1638 1648 opcodeID = m_exceptionInfo->m_getByIdExceptionInfo[low - 1].isOpC reateThis ? op_create_this: op_instanceof;1639 opcodeID = m_exceptionInfo->m_getByIdExceptionInfo[low - 1].isOpConstruct ? op_construct : op_instanceof; 1649 1640 return true; 1650 1641 } -
trunk/JavaScriptCore/bytecode/CodeBlock.h
r60075 r60105 98 98 struct GetByIdExceptionInfo { 99 99 unsigned bytecodeOffset : 31; 100 bool isOpC reateThis: 1;100 bool isOpConstruct : 1; 101 101 }; 102 102 -
trunk/JavaScriptCore/bytecode/Opcode.h
r60075 r60105 43 43 macro(op_init_arguments, 2) \ 44 44 macro(op_create_arguments, 2) \ 45 macro(op_create_this, 3) \46 macro(op_get_callee, 2) \47 45 macro(op_convert_this, 2) \ 48 46 \ … … 167 165 macro(op_method_check, 1) \ 168 166 \ 169 macro(op_construct, 4) \167 macro(op_construct, 6) \ 170 168 macro(op_strcat, 4) \ 171 169 macro(op_to_primitive, 3) \
Note:
See TracChangeset
for help on using the changeset viewer.