| Index: src/builtins.h
|
| diff --git a/src/builtins.h b/src/builtins.h
|
| index e7c94f538c3ed532160fd4a767f8f28f32c2570e..c245f4d74155bd7188d308652c18abbf2a39b511 100644
|
| --- a/src/builtins.h
|
| +++ b/src/builtins.h
|
| @@ -214,6 +214,7 @@ inline bool operator&(BuiltinExtraArguments lhs, BuiltinExtraArguments rhs) {
|
| V(InterpreterEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \
|
| V(InterpreterExitTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \
|
| V(InterpreterPushArgsAndCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \
|
| + V(InterpreterPushArgsAndTailCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \
|
| V(InterpreterPushArgsAndConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \
|
| V(InterpreterNotifyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \
|
| V(InterpreterNotifySoftDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \
|
| @@ -362,6 +363,7 @@ class Builtins {
|
| Handle<Code> Call(ConvertReceiverMode = ConvertReceiverMode::kAny,
|
| TailCallMode tail_call_mode = TailCallMode::kDisallow);
|
| Handle<Code> CallBoundFunction(TailCallMode tail_call_mode);
|
| + Handle<Code> InterpreterPushArgsAndCall(TailCallMode tail_call_mode);
|
|
|
| Code* builtin(Name name) {
|
| // Code::cast cannot be used here since we access builtins
|
| @@ -577,7 +579,15 @@ class Builtins {
|
|
|
| static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm);
|
| static void Generate_InterpreterExitTrampoline(MacroAssembler* masm);
|
| - static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm);
|
| + static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm) {
|
| + return Generate_InterpreterPushArgsAndCallImpl(masm,
|
| + TailCallMode::kDisallow);
|
| + }
|
| + static void Generate_InterpreterPushArgsAndTailCall(MacroAssembler* masm) {
|
| + return Generate_InterpreterPushArgsAndCallImpl(masm, TailCallMode::kAllow);
|
| + }
|
| + static void Generate_InterpreterPushArgsAndCallImpl(
|
| + MacroAssembler* masm, TailCallMode tail_call_mode);
|
| static void Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm);
|
| static void Generate_InterpreterNotifyDeoptimized(MacroAssembler* masm);
|
| static void Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm);
|
|
|