18 if (IsJSFunction(*function)) {
21 if (IsScript(*script))
return Cast<Script>(script)->source();
31 if (IsJSFunction(*function)) {
34 if (IsScript(*script)) {
45 if (IsJSFunction(*function)) {
59 int pos = fun->shared()->StartPosition();
69 return isolate->heap()->ToBoolean(f->shared()->IsApiFunction());
76 int const argc =
args.length() - 2;
80 for (
int i = 0;
i < argc; ++
i) {
81 arguments[
i] =
args.at(2 +
i);
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT MaybeHandle< Object > Call(Isolate *isolate, DirectHandle< Object > callable, DirectHandle< Object > receiver, base::Vector< const DirectHandle< Object > > args)
static DirectHandle< Object > GetSourceCode(Isolate *isolate, DirectHandle< SharedFunctionInfo > shared)
static constexpr Tagged< Smi > FromInt(int value)
#define RUNTIME_FUNCTION(Name)
#define RETURN_RESULT_OR_FAILURE(isolate, call)
base::Vector< const DirectHandle< Object > > args
SharedFunctionInfoRef shared
constexpr Vector< T > VectorOf(T *start, size_t size)
kInterpreterTrampolineOffset script
Tagged< To > Cast(Tagged< From > value, const v8::SourceLocation &loc=INIT_SOURCE_LOCATION_IN_DEBUG)
#define DCHECK_LE(v1, v2)
#define DCHECK_EQ(v1, v2)