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 83b7081c8dbe63f487e3160b22f9f7dd850a95d7..90c68be49ac004e20454208abf3f2ceec6be2b88 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -1853,6 +1853,7 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
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) { |
__ li(dst, Operand(src.ToInt32(), src.rmode())); |
} else { |