5 #include "src/builtins/builtins-utils.h" 6 #include "src/builtins/builtins.h" 7 #include "src/globals.h" 8 #include "src/handles-inl.h" 9 #include "src/objects-inl.h" 14 Handle<Code> Builtins::InterpreterPushArgsThenCall(
15 ConvertReceiverMode receiver_mode, InterpreterPushArgsMode mode) {
17 case InterpreterPushArgsMode::kArrayFunction:
21 case InterpreterPushArgsMode::kWithFinalSpread:
22 return builtin_handle(kInterpreterPushArgsThenCallWithFinalSpread);
23 case InterpreterPushArgsMode::kOther:
24 switch (receiver_mode) {
25 case ConvertReceiverMode::kNullOrUndefined:
26 return builtin_handle(kInterpreterPushUndefinedAndArgsThenCall);
27 case ConvertReceiverMode::kNotNullOrUndefined:
28 case ConvertReceiverMode::kAny:
29 return builtin_handle(kInterpreterPushArgsThenCall);
35 Handle<Code> Builtins::InterpreterPushArgsThenConstruct(
36 InterpreterPushArgsMode mode) {
38 case InterpreterPushArgsMode::kArrayFunction:
39 return builtin_handle(kInterpreterPushArgsThenConstructArrayFunction);
40 case InterpreterPushArgsMode::kWithFinalSpread:
41 return builtin_handle(kInterpreterPushArgsThenConstructWithFinalSpread);
42 case InterpreterPushArgsMode::kOther:
43 return builtin_handle(kInterpreterPushArgsThenConstruct);