| Index: src/compiler/x87/code-generator-x87.cc
 | 
| diff --git a/src/compiler/x87/code-generator-x87.cc b/src/compiler/x87/code-generator-x87.cc
 | 
| index da7fdb481be90c60b97d29716cf96a428593b1ff..2b9795aae01daeca3c6aaf634ea08d726b93d149 100644
 | 
| --- a/src/compiler/x87/code-generator-x87.cc
 | 
| +++ b/src/compiler/x87/code-generator-x87.cc
 | 
| @@ -59,6 +59,11 @@ class X87OperandConverter : 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());
 | 
| 
 |