Changeset 149247 in webkit for trunk/Source/JavaScriptCore/jit/JITOpcodes.cpp
- Timestamp:
- Apr 27, 2013, 4:14:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/JITOpcodes.cpp
r148989 r149247 685 685 } 686 686 687 void JIT::emit_op_to_ jsnumber(Instruction* currentInstruction)687 void JIT::emit_op_to_number(Instruction* currentInstruction) 688 688 { 689 689 int srcVReg = currentInstruction[2].u.operand; 690 690 emitGetVirtualRegister(srcVReg, regT0); 691 691 692 Jump wasImmediate = emitJumpIfImmediateInteger(regT0); 693 694 emitJumpSlowCaseIfNotJSCell(regT0, srcVReg); 695 loadPtr(Address(regT0, JSCell::structureOffset()), regT2); 696 addSlowCase(branch8(NotEqual, Address(regT2, Structure::typeInfoTypeOffset()), TrustedImm32(NumberType))); 697 698 wasImmediate.link(this); 692 addSlowCase(emitJumpIfNotImmediateNumber(regT0)); 699 693 700 694 emitPutVirtualRegister(currentInstruction[1].u.operand); … … 1140 1134 } 1141 1135 1142 void JIT::emitSlow_op_to_jsnumber(Instruction* currentInstruction, Vector<SlowCaseEntry>::iterator& iter) 1143 { 1144 linkSlowCaseIfNotJSCell(iter, currentInstruction[2].u.operand); 1145 linkSlowCase(iter); 1146 1147 JITStubCall stubCall(this, cti_op_to_jsnumber); 1136 void JIT::emitSlow_op_to_number(Instruction* currentInstruction, Vector<SlowCaseEntry>::iterator& iter) 1137 { 1138 linkSlowCase(iter); 1139 1140 JITStubCall stubCall(this, cti_op_to_number); 1148 1141 stubCall.addArgument(regT0); 1149 1142 stubCall.call(currentInstruction[1].u.operand);
Note:
See TracChangeset
for help on using the changeset viewer.