Changeset 155482 in webkit for trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp
- Timestamp:
- Sep 10, 2013, 3:16:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp
r155415 r155482 770 770 } 771 771 772 SpeculateInt egerOperand property(this, node->child2());772 SpeculateInt32Operand property(this, node->child2()); 773 773 774 774 arrayify(node, base.gpr(), property.gpr()); … … 1185 1185 } 1186 1186 1187 GPRTemporary::GPRTemporary(SpeculativeJIT* jit, SpeculateInt egerOperand& op1)1187 GPRTemporary::GPRTemporary(SpeculativeJIT* jit, SpeculateInt32Operand& op1) 1188 1188 : m_jit(jit) 1189 1189 , m_gpr(InvalidGPRReg) … … 1195 1195 } 1196 1196 1197 GPRTemporary::GPRTemporary(SpeculativeJIT* jit, SpeculateInt egerOperand& op1, SpeculateIntegerOperand& op2)1197 GPRTemporary::GPRTemporary(SpeculativeJIT* jit, SpeculateInt32Operand& op1, SpeculateInt32Operand& op2) 1198 1198 : m_jit(jit) 1199 1199 , m_gpr(InvalidGPRReg) … … 1481 1481 if (isInt32Constant(node->child1().node())) { 1482 1482 int32_t imm = valueOfInt32Constant(node->child1().node()); 1483 SpeculateInt egerOperand op2(this, node->child2());1483 SpeculateInt32Operand op2(this, node->child2()); 1484 1484 branch32(condition, JITCompiler::Imm32(imm), op2.gpr(), taken); 1485 1485 } else if (isInt32Constant(node->child2().node())) { 1486 SpeculateInt egerOperand op1(this, node->child1());1486 SpeculateInt32Operand op1(this, node->child1()); 1487 1487 int32_t imm = valueOfInt32Constant(node->child2().node()); 1488 1488 branch32(condition, op1.gpr(), JITCompiler::Imm32(imm), taken); 1489 1489 } else { 1490 SpeculateInt egerOperand op1(this, node->child1());1491 SpeculateInt egerOperand op2(this, node->child2());1490 SpeculateInt32Operand op1(this, node->child1()); 1491 SpeculateInt32Operand op2(this, node->child2()); 1492 1492 branch32(condition, op1.gpr(), op2.gpr(), taken); 1493 1493 } … … 2212 2212 switch (node->child1().useKind()) { 2213 2213 case Int32Use: { 2214 SpeculateInt egerOperand op1(this, node->child1());2214 SpeculateInt32Operand op1(this, node->child1()); 2215 2215 GPRTemporary result(this, op1); 2216 2216 m_jit.move(op1.gpr(), result.gpr()); … … 2223 2223 switch (checkGeneratedTypeForToInt32(node->child1().node())) { 2224 2224 case GeneratedOperandInteger: { 2225 SpeculateInt egerOperand op1(this, node->child1(), ManualOperandSpeculation);2225 SpeculateInt32Operand op1(this, node->child1(), ManualOperandSpeculation); 2226 2226 GPRTemporary result(this, op1); 2227 2227 m_jit.move(op1.gpr(), result.gpr()); … … 2380 2380 void SpeculativeJIT::compileUInt32ToNumber(Node* node) 2381 2381 { 2382 if (!nodeCanSpeculateInt eger(node->arithNodeFlags())) {2382 if (!nodeCanSpeculateInt32(node->arithNodeFlags())) { 2383 2383 // We know that this sometimes produces doubles. So produce a double every 2384 2384 // time. This at least allows subsequent code to not have weird conditionals. … … 2438 2438 2439 2439 if (isInt32Speculation(m_state.forNode(node->child1()).m_type)) { 2440 SpeculateInt egerOperand op1(this, node->child1(), ManualOperandSpeculation);2440 SpeculateInt32Operand op1(this, node->child1(), ManualOperandSpeculation); 2441 2441 FPRTemporary result(this); 2442 2442 m_jit.convertInt32ToDouble(op1.gpr(), result.fpr()); … … 2612 2612 2613 2613 ASSERT(elementSize(type) == 4 && !isSigned(type)); 2614 if (node->shouldSpeculateInt eger()) {2614 if (node->shouldSpeculateInt32()) { 2615 2615 forwardSpeculationCheck(Overflow, JSValueRegs(), 0, m_jit.branch32(MacroAssembler::LessThan, resultReg, TrustedImm32(0)), ValueRecovery::uint32InGPR(resultReg)); 2616 2616 integerResult(resultReg, node); … … 2658 2658 switch (valueUse.useKind()) { 2659 2659 case Int32Use: { 2660 SpeculateInt egerOperand valueOp(this, valueUse);2660 SpeculateInt32Operand valueOp(this, valueUse); 2661 2661 GPRTemporary scratch(this); 2662 2662 GPRReg scratchReg = scratch.gpr(); … … 2927 2927 if (isNumberConstant(node->child1().node())) { 2928 2928 int32_t imm1 = valueOfInt32Constant(node->child1().node()); 2929 SpeculateInt egerOperand op2(this, node->child2());2929 SpeculateInt32Operand op2(this, node->child2()); 2930 2930 GPRTemporary result(this); 2931 2931 … … 2941 2941 2942 2942 if (isNumberConstant(node->child2().node())) { 2943 SpeculateInt egerOperand op1(this, node->child1());2943 SpeculateInt32Operand op1(this, node->child1()); 2944 2944 int32_t imm2 = valueOfInt32Constant(node->child2().node()); 2945 2945 GPRTemporary result(this); … … 2955 2955 } 2956 2956 2957 SpeculateInt egerOperand op1(this, node->child1());2958 SpeculateInt egerOperand op2(this, node->child2());2957 SpeculateInt32Operand op1(this, node->child1()); 2958 SpeculateInt32Operand op2(this, node->child2()); 2959 2959 GPRTemporary result(this, op1, op2); 2960 2960 … … 3080 3080 case Int32Use: { 3081 3081 if (isNumberConstant(node->child2().node())) { 3082 SpeculateInt egerOperand op1(this, node->child1());3082 SpeculateInt32Operand op1(this, node->child1()); 3083 3083 int32_t imm2 = valueOfInt32Constant(node->child2().node()); 3084 3084 GPRTemporary result(this); … … 3102 3102 if (isNumberConstant(node->child1().node())) { 3103 3103 int32_t imm1 = valueOfInt32Constant(node->child1().node()); 3104 SpeculateInt egerOperand op2(this, node->child2());3104 SpeculateInt32Operand op2(this, node->child2()); 3105 3105 GPRTemporary result(this); 3106 3106 … … 3115 3115 } 3116 3116 3117 SpeculateInt egerOperand op1(this, node->child1());3118 SpeculateInt egerOperand op2(this, node->child2());3117 SpeculateInt32Operand op1(this, node->child1()); 3118 SpeculateInt32Operand op2(this, node->child2()); 3119 3119 GPRTemporary result(this); 3120 3120 … … 3152 3152 switch (node->child1().useKind()) { 3153 3153 case Int32Use: { 3154 SpeculateInt egerOperand op1(this, node->child1());3154 SpeculateInt32Operand op1(this, node->child1()); 3155 3155 GPRTemporary result(this); 3156 3156 … … 3186 3186 void SpeculativeJIT::compileArithIMul(Node* node) 3187 3187 { 3188 SpeculateInt egerOperand op1(this, node->child1());3189 SpeculateInt egerOperand op2(this, node->child2());3188 SpeculateInt32Operand op1(this, node->child1()); 3189 SpeculateInt32Operand op2(this, node->child2()); 3190 3190 GPRTemporary result(this); 3191 3191 … … 3203 3203 switch (node->binaryUseKind()) { 3204 3204 case Int32Use: { 3205 SpeculateInt egerOperand op1(this, node->child1());3206 SpeculateInt egerOperand op2(this, node->child2());3205 SpeculateInt32Operand op1(this, node->child1()); 3206 SpeculateInt32Operand op2(this, node->child2()); 3207 3207 GPRTemporary result(this); 3208 3208 … … 3259 3259 case Int32Use: { 3260 3260 #if CPU(X86) || CPU(X86_64) 3261 SpeculateInt egerOperand op1(this, node->child1());3262 SpeculateInt egerOperand op2(this, node->child2());3261 SpeculateInt32Operand op1(this, node->child1()); 3262 SpeculateInt32Operand op2(this, node->child2()); 3263 3263 GPRTemporary eax(this, X86Registers::eax); 3264 3264 GPRTemporary edx(this, X86Registers::edx); … … 3341 3341 integerResult(eax.gpr(), node); 3342 3342 #elif CPU(APPLE_ARMV7S) 3343 SpeculateInt egerOperand op1(this, node->child1());3344 SpeculateInt egerOperand op2(this, node->child2());3343 SpeculateInt32Operand op1(this, node->child1()); 3344 SpeculateInt32Operand op2(this, node->child2()); 3345 3345 GPRReg op1GPR = op1.gpr(); 3346 3346 GPRReg op2GPR = op2.gpr(); … … 3501 3501 #endif 3502 3502 3503 SpeculateInt egerOperand op2(this, node->child2());3503 SpeculateInt32Operand op2(this, node->child2()); 3504 3504 #if CPU(X86) || CPU(X86_64) 3505 3505 GPRTemporary eax(this, X86Registers::eax); … … 4483 4483 Structure* structure = globalObject->typedArrayStructure(type); 4484 4484 4485 SpeculateInt egerOperand size(this, node->child1());4485 SpeculateInt32Operand size(this, node->child1()); 4486 4486 GPRReg sizeGPR = size.gpr(); 4487 4487 … … 4559 4559 return; 4560 4560 4561 (SpeculateInt egerOperand(this, edge)).gpr();4561 (SpeculateInt32Operand(this, edge)).gpr(); 4562 4562 } 4563 4563 … … 4914 4914 switch (node->child1().useKind()) { 4915 4915 case Int32Use: { 4916 SpeculateInt egerOperand value(this, node->child1());4916 SpeculateInt32Operand value(this, node->child1()); 4917 4917 GPRTemporary temp(this); 4918 4918 emitSwitchIntJump(data, value.gpr(), temp.gpr());
Note:
See TracChangeset
for help on using the changeset viewer.