5 #include "src/builtins/builtins.h" 6 #include "src/globals.h" 7 #include "src/macro-assembler.h" 12 void Builtins::Generate_InterpreterPushArgsThenCall(MacroAssembler* masm) {
13 return Generate_InterpreterPushArgsThenCallImpl(
14 masm, ConvertReceiverMode::kAny, InterpreterPushArgsMode::kOther);
17 void Builtins::Generate_InterpreterPushUndefinedAndArgsThenCall(
18 MacroAssembler* masm) {
19 return Generate_InterpreterPushArgsThenCallImpl(
20 masm, ConvertReceiverMode::kNullOrUndefined,
21 InterpreterPushArgsMode::kOther);
24 void Builtins::Generate_InterpreterPushArgsThenCallWithFinalSpread(
25 MacroAssembler* masm) {
26 return Generate_InterpreterPushArgsThenCallImpl(
27 masm, ConvertReceiverMode::kAny,
28 InterpreterPushArgsMode::kWithFinalSpread);
31 void Builtins::Generate_InterpreterPushArgsThenConstruct(MacroAssembler* masm) {
32 return Generate_InterpreterPushArgsThenConstructImpl(
33 masm, InterpreterPushArgsMode::kOther);
36 void Builtins::Generate_InterpreterPushArgsThenConstructWithFinalSpread(
37 MacroAssembler* masm) {
38 return Generate_InterpreterPushArgsThenConstructImpl(
39 masm, InterpreterPushArgsMode::kWithFinalSpread);
42 void Builtins::Generate_InterpreterPushArgsThenConstructArrayFunction(
43 MacroAssembler* masm) {
44 return Generate_InterpreterPushArgsThenConstructImpl(
45 masm, InterpreterPushArgsMode::kArrayFunction);