X87: [builtins] Use BUILTIN frame in DatePrototype_GetField.
port 198e09de5a
(r37053)
original commit message:
Construct a BUILTIN frame before throwing an exception from runtime.
BUG=
Review-Url: https://codereview.chromium.org/2094223002
Cr-Commit-Position: refs/heads/master@{#37275}
This commit is contained in:
parent
a93f1bdb83
commit
b0c5705159
@ -1194,6 +1194,9 @@ void Builtins::Generate_NotifyLazyDeoptimized(MacroAssembler* masm) {
|
||||
void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm,
|
||||
int field_index) {
|
||||
// ----------- S t a t e -------------
|
||||
// -- eax : number of arguments
|
||||
// -- edi : function
|
||||
// -- esi : context
|
||||
// -- esp[0] : return address
|
||||
// -- esp[4] : receiver
|
||||
// -----------------------------------
|
||||
@ -1236,7 +1239,11 @@ void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm,
|
||||
__ bind(&receiver_not_date);
|
||||
{
|
||||
FrameScope scope(masm, StackFrame::MANUAL);
|
||||
__ EnterFrame(StackFrame::INTERNAL);
|
||||
__ Push(ebp);
|
||||
__ Move(ebp, esp);
|
||||
__ Push(esi);
|
||||
__ Push(edi);
|
||||
__ Push(Immediate(0));
|
||||
__ CallRuntime(Runtime::kThrowNotDateError);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user