Index: src/compiler/ia32/code-generator-ia32.cc |
diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc |
index 107276c4cf694ce9fcc362d77b5beb51d010ba63..afe734652fd6d73594bff38f1577a07c12bcef07 100644 |
--- a/src/compiler/ia32/code-generator-ia32.cc |
+++ b/src/compiler/ia32/code-generator-ia32.cc |
@@ -119,8 +119,8 @@ class IA32OperandConverter : public InstructionOperandConverter { |
} |
case kMode_MRI: { |
Register base = InputRegister(NextOffset(offset)); |
- int32_t disp = InputInt32(NextOffset(offset)); |
- return Operand(base, disp); |
+ Constant ctant = ToConstant(instr_->InputAt(NextOffset(offset))); |
+ return Operand(base, ctant.ToInt32(), ctant.rmode()); |
} |
case kMode_MR1: |
case kMode_MR2: |
@@ -139,8 +139,8 @@ class IA32OperandConverter : public InstructionOperandConverter { |
Register base = InputRegister(NextOffset(offset)); |
Register index = InputRegister(NextOffset(offset)); |
ScaleFactor scale = ScaleFor(kMode_MR1I, mode); |
- int32_t disp = InputInt32(NextOffset(offset)); |
- return Operand(base, index, scale, disp); |
+ Constant ctant = ToConstant(instr_->InputAt(NextOffset(offset))); |
+ return Operand(base, index, scale, ctant.ToInt32(), ctant.rmode()); |
} |
case kMode_M1: |
case kMode_M2: |
@@ -157,12 +157,12 @@ class IA32OperandConverter : public InstructionOperandConverter { |
case kMode_M8I: { |
Register index = InputRegister(NextOffset(offset)); |
ScaleFactor scale = ScaleFor(kMode_M1I, mode); |
- int32_t disp = InputInt32(NextOffset(offset)); |
- return Operand(index, scale, disp); |
+ Constant ctant = ToConstant(instr_->InputAt(NextOffset(offset))); |
+ return Operand(index, scale, ctant.ToInt32(), ctant.rmode()); |
} |
case kMode_MI: { |
- int32_t disp = InputInt32(NextOffset(offset)); |
- return Operand(Immediate(disp)); |
+ Constant ctant = ToConstant(instr_->InputAt(NextOffset(offset))); |
+ return Operand(ctant.ToInt32(), ctant.rmode()); |
} |
case kMode_None: |
UNREACHABLE(); |