5#ifndef INCLUDE_V8_FUNCTION_H_
6#define INCLUDE_V8_FUNCTION_H_
134#ifdef V8_ENABLE_CHECKS
137 return static_cast<Function*
>(value);
144 static void CheckCast(
Value* obj);
int GetScriptStartPosition() const
Local< Value > GetDebugName() const
V8_WARN_UNUSED_RESULT bool Experimental_IsNopFunction() 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 > GetInferredName() const
Location GetScriptLocation() const
static V8_INLINE Function * Cast(Value *value)
V8_WARN_UNUSED_RESULT MaybeLocal< Object > NewInstance(Local< Context > context) const
V8_WARN_UNUSED_RESULT MaybeLocal< String > FunctionProtoToString(Local< Context > context)
static const int kLineOffsetNotFound
V8_WARN_UNUSED_RESULT MaybeLocal< Object > NewInstanceWithSideEffectType(Local< Context > context, int argc, Local< Value > argv[], SideEffectType side_effect_type=SideEffectType::kHasSideEffect) const
void SetName(Local< String > name)
Local< Value > GetName() const
ScriptOrigin GetScriptOrigin() const
int GetScriptColumnNumber() const
V8_WARN_UNUSED_RESULT MaybeLocal< Value > Call(v8::Isolate *isolate, Local< Context > context, Local< Value > recv, int argc, Local< Value > argv[])
Local< Value > GetBoundFunction() const
V8_WARN_UNUSED_RESULT MaybeLocal< Object > NewInstance(Local< Context > context, int argc, Local< Value > argv[]) const
V8_WARN_UNUSED_RESULT MaybeLocal< Value > Call(Local< Context > context, Local< Value > recv, int argc, Local< Value > argv[])
int GetScriptLineNumber() const
void(*)(const FunctionCallbackInfo< Value > &info) FunctionCallback
#define V8_WARN_UNUSED_RESULT