PPC: [builtins] Remove the weird STACK_OVERFLOW builtin.
Port 39604dda56
Original commit message:
Just use a %ThrowStackOverflow runtime function instead, which
does the trick, especially since the Isolate already has a
preallocated StackOverflow error for that.
R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
BUG=
Review URL: https://codereview.chromium.org/1334303002
Cr-Commit-Position: refs/heads/master@{#30697}
This commit is contained in:
parent
e7a3e2aae4
commit
62ab109d18
@ -160,7 +160,7 @@ void FullCodeGenerator::Generate() {
|
||||
__ LoadRoot(r5, Heap::kRealStackLimitRootIndex);
|
||||
__ cmpl(ip, r5);
|
||||
__ bc_short(ge, &ok);
|
||||
__ InvokeBuiltin(Context::STACK_OVERFLOW_BUILTIN_INDEX, CALL_FUNCTION);
|
||||
__ CallRuntime(Runtime::kThrowStackOverflow, 0);
|
||||
__ bind(&ok);
|
||||
}
|
||||
__ LoadRoot(ip, Heap::kUndefinedValueRootIndex);
|
||||
|
@ -759,7 +759,7 @@ static void Generate_CheckStackOverflow(MacroAssembler* masm,
|
||||
__ SmiTag(argc);
|
||||
}
|
||||
__ Push(r4, argc);
|
||||
__ InvokeBuiltin(Context::STACK_OVERFLOW_BUILTIN_INDEX, CALL_FUNCTION);
|
||||
__ CallRuntime(Runtime::kThrowStackOverflow, 0);
|
||||
|
||||
__ bind(&okay);
|
||||
}
|
||||
@ -908,7 +908,7 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) {
|
||||
__ LoadRoot(r0, Heap::kRealStackLimitRootIndex);
|
||||
__ cmpl(r6, r0);
|
||||
__ bge(&ok);
|
||||
__ InvokeBuiltin(Context::STACK_OVERFLOW_BUILTIN_INDEX, CALL_FUNCTION);
|
||||
__ CallRuntime(Runtime::kThrowStackOverflow, 0);
|
||||
__ bind(&ok);
|
||||
|
||||
// If ok, push undefined as the initial value for all register file entries.
|
||||
@ -1826,7 +1826,7 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
|
||||
{
|
||||
FrameScope frame(masm, StackFrame::MANUAL);
|
||||
EnterArgumentsAdaptorFrame(masm);
|
||||
__ InvokeBuiltin(Context::STACK_OVERFLOW_BUILTIN_INDEX, CALL_FUNCTION);
|
||||
__ CallRuntime(Runtime::kThrowStackOverflow, 0);
|
||||
__ bkpt(0);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user