Index: src/compiler/x87/code-generator-x87.cc |
diff --git a/src/compiler/x87/code-generator-x87.cc b/src/compiler/x87/code-generator-x87.cc |
index e65a983700433a3de6cb342e9f152e13e52c5548..2fc009c4360f875530d9ff7284a0453abb7dc87d 100644 |
--- a/src/compiler/x87/code-generator-x87.cc |
+++ b/src/compiler/x87/code-generator-x87.cc |
@@ -61,6 +61,7 @@ class X87OperandConverter : 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()); |