| Index: src/compiler/x64/code-generator-x64.cc
|
| diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc
|
| index 93aa8d4dfa7e61b247418658ce7a4df2f05e17da..56cbbc807937291a6c55b0da5922bdaf83575850 100644
|
| --- a/src/compiler/x64/code-generator-x64.cc
|
| +++ b/src/compiler/x64/code-generator-x64.cc
|
| @@ -44,6 +44,10 @@ class X64OperandConverter : public InstructionOperandConverter {
|
| DCHECK_EQ(0, bit_cast<int64_t>(constant.ToFloat64()));
|
| return Immediate(0);
|
| }
|
| + if (constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE ||
|
| + constant.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) {
|
| + return Immediate(constant.ToInt32(), constant.rmode());
|
| + }
|
| return Immediate(constant.ToInt32());
|
| }
|
|
|
|
|