| 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 4d63e9ad8355479b6f2f95d2351b9b91df14acf5..d15b1f0836dfea8900e8208f7ed83640b348bac2 100644
|
| --- a/src/compiler/x64/code-generator-x64.cc
|
| +++ b/src/compiler/x64/code-generator-x64.cc
|
| @@ -41,9 +41,7 @@ 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 ||
|
| - constant.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE) {
|
| + if (RelocInfo::IsWasmReference(constant.rmode())) {
|
| return Immediate(constant.ToInt32(), constant.rmode());
|
| }
|
| return Immediate(constant.ToInt32());
|
| @@ -2507,7 +2505,7 @@ void CodeGenerator::AssembleMove(InstructionOperand* source,
|
| if (value == 0) {
|
| __ xorl(dst, dst);
|
| } else {
|
| - if (src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) {
|
| + if (RelocInfo::IsWasmSizeReference(src.rmode())) {
|
| __ movl(dst, Immediate(value, src.rmode()));
|
| } else {
|
| __ movl(dst, Immediate(value));
|
| @@ -2521,7 +2519,7 @@ void CodeGenerator::AssembleMove(InstructionOperand* source,
|
| src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE) {
|
| __ movq(dst, src.ToInt64(), src.rmode());
|
| } else {
|
| - DCHECK(src.rmode() != RelocInfo::WASM_MEMORY_SIZE_REFERENCE);
|
| + DCHECK(!RelocInfo::IsWasmReference(src.rmode()));
|
| __ Set(dst, src.ToInt64());
|
| }
|
| break;
|
|
|