Index: src/arm64/lithium-codegen-arm64.cc |
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc |
index 89a5e5dc3a525c19e751cea8953fd8effecc87ab..9b8156e754e05d6bfb8dbf13f4e2cd91fcdf34c2 100644 |
--- a/src/arm64/lithium-codegen-arm64.cc |
+++ b/src/arm64/lithium-codegen-arm64.cc |
@@ -2707,10 +2707,11 @@ void LCodeGen::DoDivByConstI(LDivByConstI* instr) { |
} |
+// TODO(svenpanne) Refactor this to avoid code duplication with DoFlooringDivI. |
void LCodeGen::DoDivI(LDivI* instr) { |
HBinaryOperation* hdiv = instr->hydrogen(); |
- Register dividend = ToRegister32(instr->left()); |
- Register divisor = ToRegister32(instr->right()); |
+ Register dividend = ToRegister32(instr->dividend()); |
+ Register divisor = ToRegister32(instr->divisor()); |
Register result = ToRegister32(instr->result()); |
// Issue the division first, and then check for any deopt cases whilst the |
@@ -3936,6 +3937,7 @@ void LCodeGen::DoFlooringDivByConstI(LFlooringDivByConstI* instr) { |
} |
+// TODO(svenpanne) Refactor this to avoid code duplication with DoDivI. |
void LCodeGen::DoFlooringDivI(LFlooringDivI* instr) { |
Register dividend = ToRegister32(instr->dividend()); |
Register divisor = ToRegister32(instr->divisor()); |