5#ifndef INCLUDE_V8_FUNCTION_H_
6#define INCLUDE_V8_FUNCTION_H_
25
26
30
31
32
35 Local<
Value> data = Local<Value>(),
int length = 0,
48
49
50
51
68
69
70
71
72
76
77
78
82
83
84
87
88
89
93
94
95
99
100
101
105
106
110
111
112
116
117
118
119
120
125
126
127
128
129
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
#define V8_WARN_UNUSED_RESULT