5#ifndef INCLUDE_V8_FUNCTION_H_
6#define INCLUDE_V8_FUNCTION_H_
43 return NewInstance(context, 0,
nullptr);
53 SideEffectType side_effect_type = SideEffectType::kHasSideEffect)
const;
127#ifdef V8_ENABLE_CHECKS
130 return static_cast<Function*
>(value);
137 static void CheckCast(
Value* obj);
Definition: v8-function.h:26
MaybeLocal< Value > Call(Local< Context > context, Local< Value > recv, int argc, Local< Value > argv[])
Local< Value > GetName() const
bool Experimental_IsNopFunction() const
MaybeLocal< Value > Call(v8::Isolate *isolate, Local< Context > context, Local< Value > recv, int argc, Local< Value > argv[])
Local< Value > GetInferredName() const
MaybeLocal< String > FunctionProtoToString(Local< Context > context)
int GetScriptLineNumber() const
MaybeLocal< Object > NewInstance(Local< Context > context) const
Definition: v8-function.h:41
ScriptOrigin GetScriptOrigin() const
int GetScriptColumnNumber() const
static Function * Cast(Value *value)
Definition: v8-function.h:126
void SetName(Local< String > name)
static const int kLineOffsetNotFound
Definition: v8-function.h:133
MaybeLocal< Object > NewInstance(Local< Context > context, int argc, Local< Value > argv[]) const
static MaybeLocal< Function > New(Local< Context > context, FunctionCallback callback, Local< Value > data=Local< Value >(), int length=0, ConstructorBehavior behavior=ConstructorBehavior::kAllow, SideEffectType side_effect_type=SideEffectType::kHasSideEffect)
Local< Value > GetBoundFunction() const
Local< Value > GetDebugName() const
int GetScriptStartPosition() const
MaybeLocal< Object > NewInstanceWithSideEffectType(Local< Context > context, int argc, Local< Value > argv[], SideEffectType side_effect_type=SideEffectType::kHasSideEffect) const
Definition: v8-isolate.h:261
Definition: v8-local-handle.h:266
Definition: v8-local-handle.h:632
Definition: v8-object.h:233
Definition: v8-message.h:62
Definition: v8-value.h:32
Definition: libplatform.h:15
SideEffectType
Definition: v8-object.h:198
ConstructorBehavior
Definition: v8-template.h:460
void(*)(const FunctionCallbackInfo< Value > &info) FunctionCallback
Definition: v8-function-callback.h:333
#define V8_EXPORT
Definition: v8config.h:793
#define V8_INLINE
Definition: v8config.h:499
#define V8_WARN_UNUSED_RESULT
Definition: v8config.h:660