| 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 1f61af8abf9c14f56ff27a7eb4dae6bcd8b40f6a..44456367b2ca0c389a4b5d7bdc2c09c5b52488f6 100644
|
| --- a/src/compiler/ia32/code-generator-ia32.cc
|
| +++ b/src/compiler/ia32/code-generator-ia32.cc
|
| @@ -68,6 +68,11 @@ class IA32OperandConverter : public InstructionOperandConverter {
|
|
|
| Immediate ToImmediate(InstructionOperand* operand) {
|
| Constant constant = ToConstant(operand);
|
| + if (constant.type() == Constant::kInt32 &&
|
| + constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) {
|
| + return Immediate(reinterpret_cast<Address>(constant.ToInt32()),
|
| + constant.rmode());
|
| + }
|
| switch (constant.type()) {
|
| case Constant::kInt32:
|
| return Immediate(constant.ToInt32());
|
|
|