Index: src/compiler/arm64/code-generator-arm64.cc |
diff --git a/src/compiler/arm64/code-generator-arm64.cc b/src/compiler/arm64/code-generator-arm64.cc |
index 50c72e2eee28c2c82f842f034e53ef9a30c349fc..6ec5e5e98d1ea4c54ff801ec5725602f2c151ac2 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -210,7 +210,8 @@ class Arm64OperandConverter final : public InstructionOperandConverter { |
return Operand(constant.ToInt32()); |
} |
case Constant::kInt64: |
- if (constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) { |
+ if (constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || |
+ constant.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE) { |
return Operand(constant.ToInt64(), constant.rmode()); |
} else { |
DCHECK(constant.rmode() != RelocInfo::WASM_MEMORY_SIZE_REFERENCE); |