#include "src/api/api-arguments-inl.h"
#include "src/api/api-natives.h"
#include "src/base/small-vector.h"
#include "src/builtins/builtins-utils-inl.h"
#include "src/builtins/builtins.h"
#include "src/common/assert-scope.h"
#include "src/logging/log.h"
#include "src/logging/runtime-call-stats-scope.h"
#include "src/objects/objects-inl.h"
#include "src/objects/prototype.h"
#include "src/objects/templates.h"
#include "src/objects/visitors.h"
namespace v8 {
namespace internal {
namespace {
Tagged<JSReceiver> GetCompatibleReceiver(Isolate* isolate,
Tagged<FunctionTemplateInfo> info,
Tagged<JSReceiver> receiver) { … }
template <bool is_construct>
V8_WARN_UNUSED_RESULT MaybeHandle<Object> HandleApiCallHelper(
Isolate* isolate, Handle<HeapObject> new_target,
DirectHandle<FunctionTemplateInfo> fun_data, Handle<Object> receiver,
Address* argv, int argc) { … }
}
BUILTIN(HandleApiConstruct) { … }
namespace {
class RelocatableArguments : public Relocatable { … };
}
MaybeHandle<Object> Builtins::InvokeApiFunction(
Isolate* isolate, bool is_construct, Handle<FunctionTemplateInfo> function,
Handle<Object> receiver, int argc, Handle<Object> args[],
Handle<HeapObject> new_target) { … }
V8_WARN_UNUSED_RESULT static Tagged<Object>
HandleApiCallAsFunctionOrConstructorDelegate(Isolate* isolate,
bool is_construct_call,
BuiltinArguments args) { … }
BUILTIN(…) { …
BUILTIN(…) { …
}
}