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 c0649d39d780bce2ffb9fe0e6bed2cd1924678ed..619cd2eaaddec7019cabb5ba3cb563291733abb3 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -209,17 +209,16 @@ class Arm64OperandConverter final : public InstructionOperandConverter { |
Constant constant = ToConstant(operand); |
switch (constant.type()) { |
case Constant::kInt32: |
- if (constant.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) { |
+ if (RelocInfo::IsWasmSizeReference(constant.rmode())) { |
return Operand(constant.ToInt32(), constant.rmode()); |
} else { |
return Operand(constant.ToInt32()); |
} |
case Constant::kInt64: |
- if (constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || |
- constant.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE) { |
+ if (RelocInfo::IsWasmPtrReference(constant.rmode())) { |
return Operand(constant.ToInt64(), constant.rmode()); |
} else { |
- DCHECK(constant.rmode() != RelocInfo::WASM_MEMORY_SIZE_REFERENCE); |
+ DCHECK(!RelocInfo::IsWasmSizeReference(constant.rmode())); |
return Operand(constant.ToInt64()); |
} |
case Constant::kFloat32: |