| Index: src/compiler/mips/code-generator-mips.cc
|
| diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc
|
| index 12ab4af771b83ca0c5d3d4387532fe843af1e99c..d0589644f8acebc1be384407b09b59e5871b4124 100644
|
| --- a/src/compiler/mips/code-generator-mips.cc
|
| +++ b/src/compiler/mips/code-generator-mips.cc
|
| @@ -2025,9 +2025,7 @@ void CodeGenerator::AssembleMove(InstructionOperand* source,
|
| destination->IsRegister() ? g.ToRegister(destination) : kScratchReg;
|
| switch (src.type()) {
|
| case Constant::kInt32:
|
| - if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE ||
|
| - src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE ||
|
| - src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) {
|
| + if (RelocInfo::IsWasmReference(src.rmode())) {
|
| __ li(dst, Operand(src.ToInt32(), src.rmode()));
|
| } else {
|
| __ li(dst, Operand(src.ToInt32()));
|
|
|