| 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 82e575e4843ae9807dbadc6802bd9f65d0091cdf..064383e9b24863a14aeb78151d7447b4085046b4 100644
|
| --- a/src/compiler/x87/code-generator-x87.cc
|
| +++ b/src/compiler/x87/code-generator-x87.cc
|
| @@ -60,7 +60,8 @@ class X87OperandConverter : public InstructionOperandConverter {
|
| Immediate ToImmediate(InstructionOperand* operand) {
|
| Constant constant = ToConstant(operand);
|
| if (constant.type() == Constant::kInt32 &&
|
| - constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) {
|
| + (constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE ||
|
| + constant.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE)) {
|
| return Immediate(reinterpret_cast<Address>(constant.ToInt32()),
|
| constant.rmode());
|
| }
|
|
|