Index: src/compiler/s390/code-generator-s390.cc |
diff --git a/src/compiler/s390/code-generator-s390.cc b/src/compiler/s390/code-generator-s390.cc |
index 3824d87e0bfba40a459c9e0b04afebe546a34a59..ec009ef18ed4dc0fa521646711d01b7a258fdbed 100644 |
--- a/src/compiler/s390/code-generator-s390.cc |
+++ b/src/compiler/s390/code-generator-s390.cc |
@@ -2365,11 +2365,9 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
switch (src.type()) { |
case Constant::kInt32: |
#if V8_TARGET_ARCH_S390X |
- if (src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) { |
+ if (RelocInfo::IsWasmSizeReference(src.rmode())) { |
#else |
- if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || |
- src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE || |
- src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) { |
+ if (RelocInfo::IsWasmReference(src.rmode())) { |
#endif |
__ mov(dst, Operand(src.ToInt32(), src.rmode())); |
} else { |
@@ -2378,11 +2376,10 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
break; |
case Constant::kInt64: |
#if V8_TARGET_ARCH_S390X |
- if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || |
- src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE) { |
+ if (RelocInfo::IsWasmPtrReference(src.rmode())) { |
__ mov(dst, Operand(src.ToInt64(), src.rmode())); |
} else { |
- DCHECK(src.rmode() != RelocInfo::WASM_MEMORY_SIZE_REFERENCE); |
+ DCHECK(!RelocInfo::IsWasmSizeReference(src.rmode())); |
__ mov(dst, Operand(src.ToInt64())); |
} |
#else |