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 b03ff475ebd85570ce1f4068c5c750f6ee43fa1c..94832dc18d28a3726a2c616f83e663a2bd1418d4 100644 |
--- a/src/compiler/ppc/code-generator-ppc.cc |
+++ b/src/compiler/ppc/code-generator-ppc.cc |
@@ -1992,6 +1992,7 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
if (src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) { |
#else |
if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || |
+ src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE || |
src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) { |
#endif |
__ mov(dst, Operand(src.ToInt32(), src.rmode())); |
@@ -2001,7 +2002,8 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
break; |
case Constant::kInt64: |
#if V8_TARGET_ARCH_PPC64 |
- if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) { |
+ if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || |
+ src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE) { |
__ mov(dst, Operand(src.ToInt64(), src.rmode())); |
} else { |
DCHECK(src.rmode() != RelocInfo::WASM_MEMORY_SIZE_REFERENCE); |