| Index: src/ppc/builtins-ppc.cc
|
| diff --git a/src/ppc/builtins-ppc.cc b/src/ppc/builtins-ppc.cc
|
| index a2d8721fa31fed327aca79ccac15ce962d64f7b0..c3c2b84be817acd7a6645128cd1226e8abb57158 100644
|
| --- a/src/ppc/builtins-ppc.cc
|
| +++ b/src/ppc/builtins-ppc.cc
|
| @@ -2772,8 +2772,15 @@ void Builtins::Generate_StringToNumber(MacroAssembler* masm) {
|
| __ blr();
|
|
|
| __ bind(&runtime);
|
| - __ push(r3); // Push argument.
|
| - __ TailCallRuntime(Runtime::kStringToNumber);
|
| + {
|
| + FrameScope frame(masm, StackFrame::INTERNAL);
|
| + // Push argument.
|
| + __ push(r3);
|
| + // We cannot use a tail call here because this builtin can also be called
|
| + // from wasm.
|
| + __ CallRuntime(Runtime::kStringToNumber);
|
| + }
|
| + __ Ret();
|
| }
|
|
|
| // static
|
| @@ -2810,8 +2817,15 @@ void Builtins::Generate_NonNumberToNumber(MacroAssembler* masm) {
|
| __ blr();
|
| __ bind(¬_oddball);
|
|
|
| - __ push(r3); // Push argument.
|
| - __ TailCallRuntime(Runtime::kToNumber);
|
| + {
|
| + FrameScope frame(masm, StackFrame::INTERNAL);
|
| + // Push argument.
|
| + __ push(r3);
|
| + // We cannot use a tail call here because this builtin can also be called
|
| + // from wasm.
|
| + __ CallRuntime(Runtime::kToNumber);
|
| + }
|
| + __ Ret();
|
| }
|
|
|
| void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
|
|
|