| 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 09d3dc3e42b890d7c439a55f79d3e67f41d4b62b..7c622be49e0cbc6fde58c0fbeb0065e5e4a8892e 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());
|
| }
|
|
|