Index: src/compiler/ppc/code-generator-ppc.cc |
diff --git a/src/compiler/ppc/code-generator-ppc.cc b/src/compiler/ppc/code-generator-ppc.cc |
index f8f3099209c4b310ce8d06373642cb9db0246a4c..bf3886026507087d957e7f3c2d688210ccf4362b 100644 |
--- a/src/compiler/ppc/code-generator-ppc.cc |
+++ b/src/compiler/ppc/code-generator-ppc.cc |
@@ -2237,11 +2237,9 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
switch (src.type()) { |
case Constant::kInt32: |
#if V8_TARGET_ARCH_PPC64 |
- 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 { |
@@ -2254,7 +2252,7 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE) { |
__ mov(dst, Operand(src.ToInt64(), src.rmode())); |
} else { |
- DCHECK(src.rmode() != RelocInfo::WASM_MEMORY_SIZE_REFERENCE); |
+ DCHECK(!RelocInfo::IsWasmReference(src.rmode())); |
#endif |
__ mov(dst, Operand(src.ToInt64())); |
#if V8_TARGET_ARCH_PPC64 |