Lines Matching refs:op1
90 unsigned op1 = currentInstruction[1].u.operand; in emit_op_jnless() local
98 if (isOperandConstantImmediateInt(op1)) { in emit_op_jnless()
101 … addJump(branch32(LessThanOrEqual, regT2, Imm32(getConstantOperand(op1).asInt32())), target + 3); in emit_op_jnless()
103 emitLoad(op1, regT1, regT0); in emit_op_jnless()
107 emitLoad2(op1, regT1, regT0, op2, regT3, regT2); in emit_op_jnless()
121 …nless, target, op1, op2, OperandTypes(), notInt32Op1, notInt32Op2, !isOperandConstantImmediateInt(… in emit_op_jnless()
127 unsigned op1 = currentInstruction[1].u.operand; in emitSlow_op_jnless() local
132 if (!isOperandConstantImmediateInt(op1) && !isOperandConstantImmediateInt(op2)) in emitSlow_op_jnless()
136 if (!isOperandConstantImmediateInt(op1)) { in emitSlow_op_jnless()
140 if (isOperandConstantImmediateInt(op1) || !isOperandConstantImmediateInt(op2)) in emitSlow_op_jnless()
145 stubCall.addArgument(op1); in emitSlow_op_jnless()
153 unsigned op1 = currentInstruction[1].u.operand; in emit_op_jnlesseq() local
161 if (isOperandConstantImmediateInt(op1)) { in emit_op_jnlesseq()
164 addJump(branch32(LessThan, regT2, Imm32(getConstantOperand(op1).asInt32())), target + 3); in emit_op_jnlesseq()
166 emitLoad(op1, regT1, regT0); in emit_op_jnlesseq()
170 emitLoad2(op1, regT1, regT0, op2, regT3, regT2); in emit_op_jnlesseq()
184 …esseq, target, op1, op2, OperandTypes(), notInt32Op1, notInt32Op2, !isOperandConstantImmediateInt(… in emit_op_jnlesseq()
190 unsigned op1 = currentInstruction[1].u.operand; in emitSlow_op_jnlesseq() local
195 if (!isOperandConstantImmediateInt(op1) && !isOperandConstantImmediateInt(op2)) in emitSlow_op_jnlesseq()
199 if (!isOperandConstantImmediateInt(op1)) { in emitSlow_op_jnlesseq()
203 if (isOperandConstantImmediateInt(op1) || !isOperandConstantImmediateInt(op2)) in emitSlow_op_jnlesseq()
208 stubCall.addArgument(op1); in emitSlow_op_jnlesseq()
219 unsigned op1 = currentInstruction[2].u.operand; in emit_op_lshift() local
223 emitLoad(op1, regT1, regT0); in emit_op_lshift()
226 emitStoreInt32(dst, regT0, dst == op1); in emit_op_lshift()
230 emitLoad2(op1, regT1, regT0, op2, regT3, regT2); in emit_op_lshift()
231 if (!isOperandConstantImmediateInt(op1)) in emit_op_lshift()
235 emitStoreInt32(dst, regT0, dst == op1 || dst == op2); in emit_op_lshift()
241 unsigned op1 = currentInstruction[2].u.operand; in emitSlow_op_lshift() local
244 if (!isOperandConstantImmediateInt(op1) && !isOperandConstantImmediateInt(op2)) in emitSlow_op_lshift()
249 stubCall.addArgument(op1); in emitSlow_op_lshift()
259 unsigned op1 = currentInstruction[2].u.operand; in emit_op_rshift() local
263 emitLoad(op1, regT1, regT0); in emit_op_rshift()
266 emitStoreInt32(dst, regT0, dst == op1); in emit_op_rshift()
270 emitLoad2(op1, regT1, regT0, op2, regT3, regT2); in emit_op_rshift()
271 if (!isOperandConstantImmediateInt(op1)) in emit_op_rshift()
275 emitStoreInt32(dst, regT0, dst == op1 || dst == op2); in emit_op_rshift()
281 unsigned op1 = currentInstruction[2].u.operand; in emitSlow_op_rshift() local
284 if (!isOperandConstantImmediateInt(op1) && !isOperandConstantImmediateInt(op2)) in emitSlow_op_rshift()
289 stubCall.addArgument(op1); in emitSlow_op_rshift()
299 unsigned op1 = currentInstruction[2].u.operand; in emit_op_bitand() local
304 if (getOperandConstantImmediateInt(op1, op2, op, constant)) { in emit_op_bitand()
312 emitLoad2(op1, regT1, regT0, op2, regT3, regT2); in emit_op_bitand()
316 emitStoreInt32(dst, regT0, (op1 == dst || op2 == dst)); in emit_op_bitand()
322 unsigned op1 = currentInstruction[2].u.operand; in emitSlow_op_bitand() local
325 if (!isOperandConstantImmediateInt(op1) && !isOperandConstantImmediateInt(op2)) in emitSlow_op_bitand()
330 stubCall.addArgument(op1); in emitSlow_op_bitand()
340 unsigned op1 = currentInstruction[2].u.operand; in emit_op_bitor() local
345 if (getOperandConstantImmediateInt(op1, op2, op, constant)) { in emit_op_bitor()
353 emitLoad2(op1, regT1, regT0, op2, regT3, regT2); in emit_op_bitor()
357 emitStoreInt32(dst, regT0, (op1 == dst || op2 == dst)); in emit_op_bitor()
363 unsigned op1 = currentInstruction[2].u.operand; in emitSlow_op_bitor() local
366 if (!isOperandConstantImmediateInt(op1) && !isOperandConstantImmediateInt(op2)) in emitSlow_op_bitor()
371 stubCall.addArgument(op1); in emitSlow_op_bitor()
381 unsigned op1 = currentInstruction[2].u.operand; in emit_op_bitxor() local
386 if (getOperandConstantImmediateInt(op1, op2, op, constant)) { in emit_op_bitxor()
394 emitLoad2(op1, regT1, regT0, op2, regT3, regT2); in emit_op_bitxor()
398 emitStoreInt32(dst, regT0, (op1 == dst || op2 == dst)); in emit_op_bitxor()
404 unsigned op1 = currentInstruction[2].u.operand; in emitSlow_op_bitxor() local
407 if (!isOperandConstantImmediateInt(op1) && !isOperandConstantImmediateInt(op2)) in emitSlow_op_bitxor()
412 stubCall.addArgument(op1); in emitSlow_op_bitxor()
565 unsigned op1 = currentInstruction[2].u.operand; in emit_op_add() local
574 if (getOperandConstantImmediateInt(op1, op2, op, constant)) { in emit_op_add()
575 emitAdd32Constant(dst, op, constant, op == op1 ? types.first() : types.second()); in emit_op_add()
579 emitLoad2(op1, regT1, regT0, op2, regT3, regT2); in emit_op_add()
585 emitStoreInt32(dst, regT0, (op1 == dst || op2 == dst)); in emit_op_add()
595 emitBinaryDoubleOp(op_add, dst, op1, op2, types, notInt32Op1, notInt32Op2); in emit_op_add()
629 unsigned op1 = currentInstruction[2].u.operand; in emitSlow_op_add() local
635 if (getOperandConstantImmediateInt(op1, op2, op, constant)) { in emitSlow_op_add()
643 ResultType opType = op == op1 ? types.first() : types.second(); in emitSlow_op_add()
664 stubCall.addArgument(op1); in emitSlow_op_add()
674 unsigned op1 = currentInstruction[2].u.operand; in emit_op_sub() local
682 emitSub32Constant(dst, op1, getConstantOperand(op2).asInt32(), types.first()); in emit_op_sub()
686 emitLoad2(op1, regT1, regT0, op2, regT3, regT2); in emit_op_sub()
692 emitStoreInt32(dst, regT0, (op1 == dst || op2 == dst)); in emit_op_sub()
702 emitBinaryDoubleOp(op_sub, dst, op1, op2, types, notInt32Op1, notInt32Op2); in emit_op_sub()
736 unsigned op1 = currentInstruction[2].u.operand; in emitSlow_op_sub() local
763 stubCall.addArgument(op1); in emitSlow_op_sub()
768 void JIT::emitBinaryDoubleOp(OpcodeID opcodeID, unsigned dst, unsigned op1, unsigned op2, OperandTy… in emitBinaryDoubleOp() argument
801 emitLoadDouble(op1, fpRegT2); in emitBinaryDoubleOp()
806 emitLoadDouble(op1, fpRegT2); in emitBinaryDoubleOp()
811 emitLoadDouble(op1, fpRegT1); in emitBinaryDoubleOp()
816 emitLoadDouble(op1, fpRegT1); in emitBinaryDoubleOp()
821 emitLoadDouble(op1, fpRegT2); in emitBinaryDoubleOp()
825 emitLoadDouble(op1, fpRegT2); in emitBinaryDoubleOp()
843 emitLoadPayload(op1, regT0); in emitBinaryDoubleOp()
894 unsigned op1 = currentInstruction[2].u.operand; in emit_op_mul() local
901 emitLoad2(op1, regT1, regT0, op2, regT3, regT2); in emit_op_mul()
909 emitStoreInt32(dst, regT0, (op1 == dst || op2 == dst)); in emit_op_mul()
919 emitBinaryDoubleOp(op_mul, dst, op1, op2, types, notInt32Op1, notInt32Op2); in emit_op_mul()
926 unsigned op1 = currentInstruction[2].u.operand; in emitSlow_op_mul() local
934 emitStoreInt32(dst, Imm32(0), (op1 == dst || op2 == dst)); in emitSlow_op_mul()
958 stubCall.addArgument(op1); in emitSlow_op_mul()
968 unsigned op1 = currentInstruction[2].u.operand; in emit_op_div() local
983 emitLoad2(op1, regT1, regT0, op2, regT3, regT2); in emit_op_div()
993 if (!isOperandConstantImmediateInt(op1) || getConstantOperand(op1).asInt32() > 1) { in emit_op_div()
1004 emitStoreInt32(dst, regT0, (op1 == dst || op2 == dst)); in emit_op_div()
1014 emitBinaryDoubleOp(op_div, dst, op1, op2, types, notInt32Op1, notInt32Op2); in emit_op_div()
1021 unsigned op1 = currentInstruction[2].u.operand; in emitSlow_op_div() local
1038 stubCall.addArgument(op1); in emitSlow_op_div()
1052 unsigned op1 = currentInstruction[2].u.operand; in emit_op_mod() local
1056 emitLoad(op1, X86::edx, X86::eax); in emit_op_mod()
1062 emitLoad2(op1, X86::edx, X86::eax, op2, X86::ebx, X86::ecx); in emit_op_mod()
1082 emitStoreInt32(dst, X86::edx, (op1 == dst || op2 == dst)); in emit_op_mod()
1089 unsigned op1 = currentInstruction[2].u.operand; in emitSlow_op_mod() local
1104 stubCall.addArgument(op1); in emitSlow_op_mod()
1114 unsigned op1 = currentInstruction[2].u.operand; in emit_op_mod() local
1118 stubCall.addArgument(op1); in emit_op_mod()
1136 unsigned op1 = currentInstruction[2].u.operand;
1139 emitGetVirtualRegisters(op1, regT0, op2, regT2);
1162 unsigned op1 = currentInstruction[2].u.operand;
1166 UNUSED_PARAM(op1);
1175 emitGetVirtualRegisters(op1, regT0, op2, regT2);
1188 unsigned op1 = currentInstruction[2].u.operand;
1193 emitGetVirtualRegister(op1, regT0);
1202 emitGetVirtualRegisters(op1, regT0, op2, regT2);
1213 emitJumpSlowCaseIfNotJSCell(regT0, op1);
1249 unsigned op1 = currentInstruction[2].u.operand;
1265 linkSlowCaseIfNotJSCell(iter, op1);
1274 stubCall.addArgument(op1, regT0);
1289 unsigned op1 = currentInstruction[1].u.operand;
1299 emitGetVirtualRegister(op1, regT0);
1307 } else if (isOperandConstantImmediateInt(op1)) {
1311 int32_t op1imm = getConstantOperandImmediateInt(op1);
1313 int32_t op1imm = static_cast<int32_t>(JSImmediate::rawValue(getConstantOperand(op1)));
1317 emitGetVirtualRegisters(op1, regT0, op2, regT1);
1327 unsigned op1 = currentInstruction[1].u.operand;
1346 if (!m_codeBlock->isKnownNotImmediate(op1))
1365 if (!m_codeBlock->isKnownNotImmediate(op1))
1377 } else if (isOperandConstantImmediateInt(op1)) {
1394 int32_t op1imm = getConstantOperand(op1).asInt32();;
1413 stubCall.addArgument(op1, regT2);
1432 if (!m_codeBlock->isKnownNotImmediate(op1))
1454 if (!m_codeBlock->isKnownNotImmediate(op1))
1474 unsigned op1 = currentInstruction[1].u.operand;
1484 emitGetVirtualRegister(op1, regT0);
1492 } else if (isOperandConstantImmediateInt(op1)) {
1496 int32_t op1imm = getConstantOperandImmediateInt(op1);
1498 int32_t op1imm = static_cast<int32_t>(JSImmediate::rawValue(getConstantOperand(op1)));
1502 emitGetVirtualRegisters(op1, regT0, op2, regT1);
1512 unsigned op1 = currentInstruction[1].u.operand;
1531 if (!m_codeBlock->isKnownNotImmediate(op1))
1550 if (!m_codeBlock->isKnownNotImmediate(op1))
1562 } else if (isOperandConstantImmediateInt(op1)) {
1579 int32_t op1imm = getConstantOperand(op1).asInt32();;
1598 stubCall.addArgument(op1, regT2);
1617 if (!m_codeBlock->isKnownNotImmediate(op1))
1639 if (!m_codeBlock->isKnownNotImmediate(op1))
1660 unsigned op1 = currentInstruction[2].u.operand;
1663 if (isOperandConstantImmediateInt(op1)) {
1667 int32_t imm = getConstantOperandImmediateInt(op1);
1672 andPtr(Imm32(static_cast<int32_t>(JSImmediate::rawValue(getConstantOperand(op1)))), regT0);
1675 emitGetVirtualRegister(op1, regT0);
1686 emitGetVirtualRegisters(op1, regT0, op2, regT1);
1696 unsigned op1 = currentInstruction[2].u.operand;
1700 if (isOperandConstantImmediateInt(op1)) {
1702 stubCall.addArgument(op1, regT2);
1712 stubCall.addArgument(op1, regT2);
1847 unsigned op1 = currentInstruction[2].u.operand;
1850 emitGetVirtualRegisters(op1, X86::eax, op2, X86::ecx);
1896 unsigned op1 = currentInstruction[2].u.operand;
1900 stubCall.addArgument(op1, regT2);
1918 void JIT::compileBinaryArithOp(OpcodeID opcodeID, unsigned, unsigned op1, unsigned op2, OperandType…
1920 emitGetVirtualRegisters(op1, regT0, op2, regT1);
1935 …opcodeID, Vector<SlowCaseEntry>::iterator& iter, unsigned result, unsigned op1, unsigned, OperandT…
1946 emitGetVirtualRegister(op1, regT0);
1995 unsigned op1 = currentInstruction[2].u.operand;
2001 stubCall.addArgument(op1, regT2);
2007 if (isOperandConstantImmediateInt(op1)) {
2010 addSlowCase(branchAdd32(Overflow, Imm32(getConstantOperandImmediateInt(op1)), regT0));
2013 emitGetVirtualRegister(op1, regT0);
2018 compileBinaryArithOp(op_add, result, op1, op2, types);
2026 unsigned op1 = currentInstruction[2].u.operand;
2029 if (isOperandConstantImmediateInt(op1) || isOperandConstantImmediateInt(op2)) {
2033 stubCall.addArgument(op1, regT2);
2037 …compileBinaryArithOpSlowCase(op_add, iter, result, op1, op2, OperandTypes::fromInt(currentInstruct…
2043 unsigned op1 = currentInstruction[2].u.operand;
2049 if (isOperandConstantImmediateInt(op1) && ((value = getConstantOperandImmediateInt(op1)) > 0)) {
2055 emitGetVirtualRegister(op1, regT0);
2060 compileBinaryArithOp(op_mul, result, op1, op2, types);
2068 unsigned op1 = currentInstruction[2].u.operand;
2072 if ((isOperandConstantImmediateInt(op1) && (getConstantOperandImmediateInt(op1) > 0))
2078 stubCall.addArgument(op1, regT2);
2082 compileBinaryArithOpSlowCase(op_mul, iter, result, op1, op2, types);
2088 unsigned op1 = currentInstruction[2].u.operand;
2092 compileBinaryArithOp(op_sub, result, op1, op2, types);
2100 unsigned op1 = currentInstruction[2].u.operand;
2104 compileBinaryArithOpSlowCase(op_sub, iter, result, op1, op2, types);
2285 unsigned op1 = currentInstruction[2].u.operand;
2288 if (isOperandConstantImmediateInt(op1)) {
2291 …addSlowCase(branchAdd32(Overflow, Imm32(getConstantOperandImmediateInt(op1) << JSImmediate::Intege…
2295 emitGetVirtualRegister(op1, regT0);
2303 …compileBinaryArithOp(op_add, result, op1, op2, OperandTypes::fromInt(currentInstruction[4].u.opera…
2306 stubCall.addArgument(op1, regT2);
2316 unsigned op1 = currentInstruction[2].u.operand;
2319 if (isOperandConstantImmediateInt(op1)) {
2322 … sub32(Imm32(getConstantOperandImmediateInt(op1) << JSImmediate::IntegerPayloadShift), regT0);
2325 stubCall.addArgument(op1, regT2);
2340 compileBinaryArithOpSlowCase(op_add, iter, result, op1, op2, types);
2347 unsigned op1 = currentInstruction[2].u.operand;
2352 if (isOperandConstantImmediateInt(op1) && ((value = getConstantOperandImmediateInt(op1)) > 0)) {
2361 emitGetVirtualRegister(op1, regT0);
2369 …compileBinaryArithOp(op_mul, result, op1, op2, OperandTypes::fromInt(currentInstruction[4].u.opera…
2375 unsigned op1 = currentInstruction[2].u.operand;
2378 if ((isOperandConstantImmediateInt(op1) && (getConstantOperandImmediateInt(op1) > 0))
2384 stubCall.addArgument(op1, regT2);
2388 …compileBinaryArithOpSlowCase(op_mul, iter, result, op1, op2, OperandTypes::fromInt(currentInstruct…