| Index: src/compiler/mips64/code-generator-mips64.cc
|
| diff --git a/src/compiler/mips64/code-generator-mips64.cc b/src/compiler/mips64/code-generator-mips64.cc
|
| index ce0936b59a63945ae2b84a139ae071f87373cd10..12f7161f98e27cd1d4b2c9f480b9bfb1137535e5 100644
|
| --- a/src/compiler/mips64/code-generator-mips64.cc
|
| +++ b/src/compiler/mips64/code-generator-mips64.cc
|
| @@ -2405,7 +2405,7 @@ void CodeGenerator::AssembleMove(InstructionOperand* source,
|
| destination->IsRegister() ? g.ToRegister(destination) : kScratchReg;
|
| switch (src.type()) {
|
| case Constant::kInt32:
|
| - if (src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) {
|
| + if (RelocInfo::IsWasmSizeReference(src.rmode())) {
|
| __ li(dst, Operand(src.ToInt32(), src.rmode()));
|
| } else {
|
| __ li(dst, Operand(src.ToInt32()));
|
| @@ -2415,11 +2415,10 @@ void CodeGenerator::AssembleMove(InstructionOperand* source,
|
| __ li(dst, isolate()->factory()->NewNumber(src.ToFloat32(), TENURED));
|
| break;
|
| case Constant::kInt64:
|
| - if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE ||
|
| - src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE) {
|
| + if (RelocInfo::IsWasmPtrReference(src.rmode())) {
|
| __ li(dst, Operand(src.ToInt64(), src.rmode()));
|
| } else {
|
| - DCHECK(src.rmode() != RelocInfo::WASM_MEMORY_SIZE_REFERENCE);
|
| + DCHECK(!RelocInfo::IsWasmSizeReference(src.rmode()));
|
| __ li(dst, Operand(src.ToInt64()));
|
| }
|
| break;
|
|
|