Changeset 36412 in webkit for trunk/JavaScriptCore/VM/CTI.cpp
- Timestamp:
- Sep 14, 2008, 5:26:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CTI.cpp
r36408 r36412 375 375 } 376 376 377 #define CTI_COMPILE_UNARY_OP(name) \ 378 case name: { \ 379 emitGetPutArg(instruction[i + 2].u.operand, 0, X86::ecx); \ 380 emitCall(i, Machine::cti_##name); \ 381 emitPutResult(instruction[i + 1].u.operand); \ 382 i += 3; \ 383 break; \ 384 } 385 377 386 #if ENABLE(SAMPLING_TOOL) 378 387 OpcodeID currentOpcodeID = static_cast<OpcodeID>(-1); … … 1151 1160 break; 1152 1161 } 1153 case op_typeof: {1154 emitGetPutArg(instruction[i + 2].u.operand, 0, X86::ecx);1155 emitCall(i, Machine::cti_op_typeof);1156 emitPutResult(instruction[i + 1].u.operand);1157 i += 3;1158 break;1159 }1162 CTI_COMPILE_UNARY_OP(op_typeof) 1163 CTI_COMPILE_UNARY_OP(op_is_undefined) 1164 CTI_COMPILE_UNARY_OP(op_is_boolean) 1165 CTI_COMPILE_UNARY_OP(op_is_number) 1166 CTI_COMPILE_UNARY_OP(op_is_string) 1167 CTI_COMPILE_UNARY_OP(op_is_object) 1168 CTI_COMPILE_UNARY_OP(op_is_function) 1160 1169 CTI_COMPILE_BINARY_OP(op_stricteq) 1161 1170 CTI_COMPILE_BINARY_OP(op_nstricteq)
Note:
See TracChangeset
for help on using the changeset viewer.