Changeset 155418 in webkit for trunk/Source/JavaScriptCore/jit/JIT.h
- Timestamp:
- Sep 9, 2013, 11:01:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/JIT.h
r155399 r155418 439 439 enum CompileOpStrictEqType { OpStrictEq, OpNStrictEq }; 440 440 void compileOpStrictEq(Instruction* instruction, CompileOpStrictEqType type); 441 bool isOperandConstantImmediateDouble( unsignedsrc);441 bool isOperandConstantImmediateDouble(int src); 442 442 443 443 void emitLoadDouble(int index, FPRegisterID value); … … 510 510 511 511 #if USE(JSVALUE32_64) 512 bool getOperandConstantImmediateInt( unsigned op1, unsigned op2, unsigned& op, int32_t& constant);512 bool getOperandConstantImmediateInt(int op1, int op2, int& op, int32_t& constant); 513 513 514 514 void emitLoadTag(int index, RegisterID tag); … … 547 547 548 548 // Arithmetic opcode helpers 549 void emitAdd32Constant( unsigned dst, unsignedop, int32_t constant, ResultType opType);550 void emitSub32Constant( unsigned dst, unsignedop, int32_t constant, ResultType opType);551 void emitBinaryDoubleOp(OpcodeID, unsigned dst, unsigned op1, unsignedop2, OperandTypes, JumpList& notInt32Op1, JumpList& notInt32Op2, bool op1IsInRegisters = true, bool op2IsInRegisters = true);549 void emitAdd32Constant(int dst, int op, int32_t constant, ResultType opType); 550 void emitSub32Constant(int dst, int op, int32_t constant, ResultType opType); 551 void emitBinaryDoubleOp(OpcodeID, int dst, int op1, int op2, OperandTypes, JumpList& notInt32Op1, JumpList& notInt32Op2, bool op1IsInRegisters = true, bool op2IsInRegisters = true); 552 552 553 553 #if CPU(ARM_TRADITIONAL) … … 581 581 #else // USE(JSVALUE32_64) 582 582 /* This function is deprecated. */ 583 void emitGetJITStubArg( unsignedargumentNumber, RegisterID dst);583 void emitGetJITStubArg(int argumentNumber, RegisterID dst); 584 584 585 585 void emitGetVirtualRegister(int src, RegisterID dst); 586 586 void emitGetVirtualRegisters(int src1, RegisterID dst1, int src2, RegisterID dst2); 587 void emitPutVirtualRegister( unsigneddst, RegisterID from = regT0);588 void emitStoreCell( unsigneddst, RegisterID payload, bool /* only used in JSValue32_64 */ = false)587 void emitPutVirtualRegister(int dst, RegisterID from = regT0); 588 void emitStoreCell(int dst, RegisterID payload, bool /* only used in JSValue32_64 */ = false) 589 589 { 590 590 emitPutVirtualRegister(dst, payload); 591 591 } 592 592 593 int32_t getConstantOperandImmediateInt( unsignedsrc);593 int32_t getConstantOperandImmediateInt(int src); 594 594 595 595 void killLastResultRegister(); … … 610 610 611 611 void emitTagAsBoolImmediate(RegisterID reg); 612 void compileBinaryArithOp(OpcodeID, unsigned dst, unsigned src1, unsignedsrc2, OperandTypes opi);613 void compileBinaryArithOpSlowCase(Instruction*, OpcodeID, Vector<SlowCaseEntry>::iterator&, unsigned dst, unsigned src1, unsignedsrc2, OperandTypes, bool op1HasImmediateIntFastCase, bool op2HasImmediateIntFastCase);612 void compileBinaryArithOp(OpcodeID, int dst, int src1, int src2, OperandTypes opi); 613 void compileBinaryArithOpSlowCase(Instruction*, OpcodeID, Vector<SlowCaseEntry>::iterator&, int dst, int src1, int src2, OperandTypes, bool op1HasImmediateIntFastCase, bool op2HasImmediateIntFastCase); 614 614 615 615 void compileGetByIdHotPath(int baseVReg, const Identifier*); … … 636 636 #endif 637 637 638 void emit_compareAndJump(OpcodeID, unsigned op1, unsignedop2, unsigned target, RelationalCondition);639 void emit_compareAndJumpSlow( unsigned op1, unsignedop2, unsigned target, DoubleCondition, int (JIT_STUB *stub)(STUB_ARGS_DECLARATION), bool invert, Vector<SlowCaseEntry>::iterator&);638 void emit_compareAndJump(OpcodeID, int op1, int op2, unsigned target, RelationalCondition); 639 void emit_compareAndJumpSlow(int op1, int op2, unsigned target, DoubleCondition, int (JIT_STUB *stub)(STUB_ARGS_DECLARATION), bool invert, Vector<SlowCaseEntry>::iterator&); 640 640 641 641 void emit_op_add(Instruction*); … … 795 795 796 796 void emitVarInjectionCheck(bool needsVarInjectionChecks); 797 void emitResolveClosure( unsigneddst, bool needsVarInjectionChecks, unsigned depth);798 void emitLoadWithStructureCheck( unsignedscope, Structure** structureSlot);797 void emitResolveClosure(int dst, bool needsVarInjectionChecks, unsigned depth); 798 void emitLoadWithStructureCheck(int scope, Structure** structureSlot); 799 799 void emitGetGlobalProperty(uintptr_t* operandSlot); 800 800 void emitGetGlobalVar(uintptr_t operand); 801 void emitGetClosureVar( unsignedscope, uintptr_t operand);802 void emitPutGlobalProperty(uintptr_t* operandSlot, unsignedvalue);803 void emitPutGlobalVar(uintptr_t operand, unsignedvalue);804 void emitPutClosureVar( unsigned scope, uintptr_t operand, unsignedvalue);805 806 void emitInitRegister( unsigneddst);801 void emitGetClosureVar(int scope, uintptr_t operand); 802 void emitPutGlobalProperty(uintptr_t* operandSlot, int value); 803 void emitPutGlobalVar(uintptr_t operand, int value); 804 void emitPutClosureVar(int scope, uintptr_t operand, int value); 805 806 void emitInitRegister(int dst); 807 807 808 808 void emitPutIntToCallFrameHeader(RegisterID from, JSStack::CallFrameHeaderEntry); … … 813 813 #endif 814 814 815 JSValue getConstantOperand( unsignedsrc);816 bool isOperandConstantImmediateInt( unsignedsrc);817 bool isOperandConstantImmediateChar( unsignedsrc);815 JSValue getConstantOperand(int src); 816 bool isOperandConstantImmediateInt(int src); 817 bool isOperandConstantImmediateChar(int src); 818 818 819 819 bool atJumpTarget(); … … 852 852 853 853 #ifndef NDEBUG 854 void printBytecodeOperandTypes( unsigned src1, unsignedsrc2);854 void printBytecodeOperandTypes(int src1, int src2); 855 855 #endif 856 856
Note:
See TracChangeset
for help on using the changeset viewer.