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 70b38c4d662c617003b70e89a890536c1dcd9f1f..6fe674e4f2cdffcb75efe2fdfe740b5e67f55470 100644 |
--- a/src/compiler/ppc/code-generator-ppc.cc |
+++ b/src/compiler/ppc/code-generator-ppc.cc |
@@ -1545,7 +1545,12 @@ void CodeGenerator::AssemblePrologue() { |
} else if (descriptor->IsJSFunctionCall()) { |
__ Prologue(this->info()->GeneratePreagedPrologue(), ip); |
} else if (frame()->needs_frame()) { |
- __ StubPrologue(ip); |
+ if (!ABI_CALL_VIA_IP && info()->output_code_kind() == Code::WASM_FUNCTION) { |
+ // TODO(mbrandy): Restrict only to the wasm wrapper case. |
+ __ StubPrologue(); |
+ } else { |
+ __ StubPrologue(ip); |
+ } |
} else { |
frame()->SetElidedFrameSizeInSlots(0); |
} |