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 bd7e22739f45aad8c06d78045d68e73344d9f996..0ef00c8bd9f620d4deb6772bb22b8f4977a7b269 100644 |
--- a/src/compiler/ppc/code-generator-ppc.cc |
+++ b/src/compiler/ppc/code-generator-ppc.cc |
@@ -2277,11 +2277,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 { |
@@ -2290,11 +2288,10 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
break; |
case Constant::kInt64: |
#if V8_TARGET_ARCH_PPC64 |
- 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())); |
#endif |
__ mov(dst, Operand(src.ToInt64())); |
#if V8_TARGET_ARCH_PPC64 |