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 93fe36d8308442aa3c4bd1a2c5d26a4cd857e8be..6b491d77be5780cee265d4001c3756802e34770d 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -2084,9 +2084,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())); |