| 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 044608813fe389a12b65b99e99154de22e88dbf7..ebbecf8b48894aff09111b864caa22a76bb5d513 100644
|
| --- a/src/compiler/ppc/code-generator-ppc.cc
|
| +++ b/src/compiler/ppc/code-generator-ppc.cc
|
| @@ -1924,21 +1924,23 @@ void CodeGenerator::AssembleMove(InstructionOperand* source,
|
| destination->IsRegister() ? g.ToRegister(destination) : kScratchReg;
|
| switch (src.type()) {
|
| case Constant::kInt32:
|
| -#if !V8_TARGET_ARCH_PPC64
|
| - if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) {
|
| +#if V8_TARGET_ARCH_PPC64
|
| + if (src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) {
|
| +#else
|
| + if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE ||
|
| + src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) {
|
| +#endif
|
| __ mov(dst, Operand(src.ToInt32(), src.rmode()));
|
| } else {
|
| -#endif
|
| __ mov(dst, Operand(src.ToInt32()));
|
| -#if !V8_TARGET_ARCH_PPC64
|
| }
|
| -#endif
|
| break;
|
| case Constant::kInt64:
|
| #if V8_TARGET_ARCH_PPC64
|
| if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) {
|
| __ mov(dst, Operand(src.ToInt64(), src.rmode()));
|
| } else {
|
| + DCHECK(src.rmode() != RelocInfo::WASM_MEMORY_SIZE_REFERENCE);
|
| #endif
|
| __ mov(dst, Operand(src.ToInt64()));
|
| #if V8_TARGET_ARCH_PPC64
|
|
|