Index: src/compiler/ia32/code-generator-ia32.cc |
diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc |
index a7e5e387e1fdf427867f380d61eba2b50c28b5f0..9493756eac554529e1a9e6f1c6e8bb04a52a8b08 100644 |
--- a/src/compiler/ia32/code-generator-ia32.cc |
+++ b/src/compiler/ia32/code-generator-ia32.cc |
@@ -67,6 +67,7 @@ class IA32OperandConverter : public InstructionOperandConverter { |
Constant constant = ToConstant(operand); |
if (constant.type() == Constant::kInt32 && |
(constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || |
+ constant.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE || |
constant.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE)) { |
return Immediate(reinterpret_cast<Address>(constant.ToInt32()), |
constant.rmode()); |