| 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 5f0ad29c86975bce9124f1c350093c3bdd8601a5..46561932e3ba509544ea6d675fc6b1f1d7357980 100644
|
| --- a/src/compiler/ia32/code-generator-ia32.cc
|
| +++ b/src/compiler/ia32/code-generator-ia32.cc
|
| @@ -66,7 +66,8 @@ class IA32OperandConverter : 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());
|
| }
|
|
|