5 #include "src/builtins/builtins-utils.h" 6 #include "src/builtins/builtins.h" 7 #include "src/handles-inl.h" 8 #include "src/isolate.h" 9 #include "src/objects-inl.h" 14 Handle<Code> Builtins::CallFunction(ConvertReceiverMode mode) {
16 case ConvertReceiverMode::kNullOrUndefined:
17 return builtin_handle(kCallFunction_ReceiverIsNullOrUndefined);
18 case ConvertReceiverMode::kNotNullOrUndefined:
19 return builtin_handle(kCallFunction_ReceiverIsNotNullOrUndefined);
20 case ConvertReceiverMode::kAny:
21 return builtin_handle(kCallFunction_ReceiverIsAny);
26 Handle<Code> Builtins::Call(ConvertReceiverMode mode) {
28 case ConvertReceiverMode::kNullOrUndefined:
29 return builtin_handle(kCall_ReceiverIsNullOrUndefined);
30 case ConvertReceiverMode::kNotNullOrUndefined:
31 return builtin_handle(kCall_ReceiverIsNotNullOrUndefined);
32 case ConvertReceiverMode::kAny:
33 return builtin_handle(kCall_ReceiverIsAny);