• Home
  • Raw
  • Download

Lines Matching full:local

111 template <class T> class Local;  variable
202 * There are two types of handles: local and persistent handles.
203 * Local handles are light-weight and transient and typically used in
204 * local operations. They are managed by HandleScopes. Persistent
211 * a Local<Object>); the value will still be governed by a handle
216 class Local {
218 V8_INLINE Local() : val_(0) {} in Local() function
220 V8_INLINE Local(Local<S> that) in Local() function
224 * handles. For example, converting from a Local<String> to a in Local()
225 * Local<Number>. in Local()
251 V8_INLINE bool operator==(const Local<S>& that) const {
275 V8_INLINE bool operator!=(const Local<S>& that) const {
284 template <class S> V8_INLINE static Local<T> Cast(Local<S> that) { in Cast()
288 if (that.IsEmpty()) return Local<T>(); in Cast()
290 return Local<T>(T::Cast(*that)); in Cast()
294 V8_INLINE Local<S> As() const { in As()
295 return Local<S>::Cast(*this); in As()
299 * Create a local handle for the content of another handle.
300 * The referee is kept alive by the local handle even when
303 V8_INLINE static Local<T> New(Isolate* isolate, Local<T> that);
304 V8_INLINE static Local<T> New(Isolate* isolate,
312 template<class F> friend class Local; variable
322 friend Local<Primitive> Undefined(Isolate* isolate);
323 friend Local<Primitive> Null(Isolate* isolate);
324 friend Local<Boolean> True(Isolate* isolate);
325 friend Local<Boolean> False(Isolate* isolate);
334 explicit V8_INLINE Local(T* that) : val_(that) {} in Local() function
335 V8_INLINE static Local<T> New(Isolate* isolate, T* that);
341 // Handle is an alias for Local for historical reasons.
343 using Handle = Local<T>;
348 * A MaybeLocal<> is a wrapper around Local<> that enforces a check whether
349 * the Local<> is empty before it can be used.
362 V8_INLINE MaybeLocal(Local<S> that) in MaybeLocal()
370 V8_WARN_UNUSED_RESULT V8_INLINE bool ToLocal(Local<S>* out) const { in ToLocal()
376 V8_INLINE Local<T> ToLocalChecked();
379 V8_INLINE Local<S> FromMaybe(Local<S> default_value) const { in FromMaybe()
380 return IsEmpty() ? default_value : Local<S>(val_); in FromMaybe()
393 V8_INLINE Eternal(Isolate* isolate, Local<S> handle) : index_(kInitialValue) { in Eternal()
397 V8_INLINE Local<T> Get(Isolate* isolate);
399 template<class S> V8_INLINE void Set(Isolate* isolate, Local<S> handle);
467 * a Local handle only lives as long as the HandleScope in which it was
490 V8_INLINE void Reset(Isolate* isolate, const Local<S>& other);
502 V8_INLINE Local<T> Get(Isolate* isolate) const { in Get()
503 return Local<T>::New(isolate, *this); in Get()
516 V8_INLINE bool operator==(const Local<S>& that) const {
530 V8_INLINE bool operator!=(const Local<S>& that) const {
609 template<class F> friend class Local; variable
681 * Construct a Persistent from a Local.
682 * When the Local is non-empty, a new storage cell is created
686 V8_INLINE Persistent(Isolate* isolate, Local<S> that) in Persistent()
751 template<class F> friend class Local; variable
775 * Construct a Global from a Local.
776 * When the Local is non-empty, a new storage cell is created
780 V8_INLINE Global(Isolate* isolate, Local<S> that) in Global()
840 * A stack-allocated class that governs a number of local handles.
841 * After a handle scope has been created, all local handles will be
848 * After the handle scope of a local handle has been deleted the
890 // Local::New uses CreateHandle with an Isolate* parameter.
891 template<class F> friend class Local; variable
914 V8_INLINE Local<T> Escape(Local<T> value) { in Escape()
917 return Local<T>(reinterpret_cast<T*>(slot)); in Escape()
999 Local<Value> resource_name,
1000 Local<Integer> resource_line_offset = Local<Integer>(),
1001 Local<Integer> resource_column_offset = Local<Integer>(),
1002 Local<Boolean> resource_is_shared_cross_origin = Local<Boolean>(),
1003 Local<Integer> script_id = Local<Integer>(),
1004 Local<Value> source_map_url = Local<Value>(),
1005 Local<Boolean> resource_is_opaque = Local<Boolean>(),
1006 Local<Boolean> is_wasm = Local<Boolean>(),
1007 Local<Boolean> is_module = Local<Boolean>());
1009 V8_INLINE Local<Value> ResourceName() const;
1010 V8_INLINE Local<Integer> ResourceLineOffset() const;
1011 V8_INLINE Local<Integer> ResourceColumnOffset() const;
1015 V8_INLINE Local<Integer> ScriptID() const;
1016 V8_INLINE Local<Value> SourceMapUrl() const;
1020 Local<Value> resource_name_;
1021 Local<Integer> resource_line_offset_;
1022 Local<Integer> resource_column_offset_;
1024 Local<Integer> script_id_;
1025 Local<Value> source_map_url_;
1037 Local<Script> BindToCurrentContext();
1040 Local<Value> GetScriptName();
1045 Local<Value> GetSourceURL();
1049 Local<Value> GetSourceMappingURL();
1077 Local<String> GetModuleRequest(int i) const;
1084 typedef MaybeLocal<Module> (*ResolveCallback)(Local<Context> context,
1085 Local<String> specifier,
1086 Local<Module> referrer);
1093 V8_WARN_UNUSED_RESULT bool Instantiate(Local<Context> context,
1099 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Evaluate(Local<Context> context);
1113 Local<Script> Compile(Local<String> source,
1116 Local<Context> context, Local<String> source,
1119 static Local<Script> V8_DEPRECATE_SOON("Use maybe version",
1120 Compile(Local<String> source,
1121 Local<String> file_name));
1128 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Run());
1129 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Run(Local<Context> context);
1134 Local<UnboundScript> GetUnboundScript();
1187 V8_INLINE Source(Local<String> source_string, const ScriptOrigin& origin,
1189 V8_INLINE Source(Local<String> source_string,
1207 Local<String> source_string;
1210 Local<Value> resource_name;
1211 Local<Integer> resource_line_offset;
1212 Local<Integer> resource_column_offset;
1214 Local<Value> source_map_url;
1328 Local<UnboundScript> CompileUnbound(
1348 Local<Script> Compile(Isolate* isolate, Source* source,
1351 Local<Context> context, Source* source,
1377 Local<Script> Compile(Isolate* isolate,
1379 Local<String> full_source_string,
1382 Local<Context> context, StreamedSource* source,
1383 Local<String> full_source_string, const ScriptOrigin& origin);
1429 Local<Function> CompileFunctionInContext(
1431 Local<Context> context, size_t arguments_count,
1432 Local<String> arguments[],
1434 Local<Object> context_extensions[]));
1436 Local<Context> context, Source* source, size_t arguments_count,
1437 Local<String> arguments[], size_t context_extension_count,
1438 Local<Object> context_extensions[]);
1451 Local<String> Get() const;
1453 V8_DEPRECATE_SOON("Use maybe version", Local<String> GetSourceLine() const);
1455 Local<Context> context) const;
1467 Local<Value> GetScriptResourceName() const;
1474 Local<StackTrace> GetStackTrace() const;
1480 V8_WARN_UNUSED_RESULT Maybe<int> GetLineNumber(Local<Context> context) const;
1504 V8_WARN_UNUSED_RESULT Maybe<int> GetStartColumn(Local<Context> context) const;
1511 V8_WARN_UNUSED_RESULT Maybe<int> GetEndColumn(Local<Context> context) const;
1557 Local<StackFrame> GetFrame(uint32_t index) const;
1567 Local<Array> AsArray();
1576 static Local<StackTrace> CurrentStackTrace(
1617 Local<String> GetScriptName() const;
1625 Local<String> GetScriptNameOrSourceURL() const;
1630 Local<String> GetFunctionName() const;
1679 Local<Value> Parse(Local<String> json_string));
1682 Local<String> json_string));
1684 Local<Context> context, Local<String> json_string);
1694 Local<Context> context, Local<Object> json_object,
1695 Local<String> gap = Local<String>());
1717 virtual void ThrowDataCloneError(Local<String> message) = 0;
1724 virtual Maybe<bool> WriteHostObject(Isolate* isolate, Local<Object> object);
1737 Isolate* isolate, Local<SharedArrayBuffer> shared_array_buffer);
1769 V8_WARN_UNUSED_RESULT Maybe<bool> WriteValue(Local<Context> context,
1770 Local<Value> value);
1792 Local<ArrayBuffer> array_buffer);
1800 Local<SharedArrayBuffer> shared_array_buffer));
1860 V8_WARN_UNUSED_RESULT Maybe<bool> ReadHeader(Local<Context> context);
1865 V8_WARN_UNUSED_RESULT MaybeLocal<Value> ReadValue(Local<Context> context);
1872 Local<ArrayBuffer> array_buffer);
1880 Local<SharedArrayBuffer> shared_array_buffer);
1923 static Local<NativeWeakMap> New(Isolate* isolate);
1924 void Set(Local<Value> key, Local<Value> value);
1925 Local<Value> Get(Local<Value> key);
1926 bool Has(Local<Value> key);
1927 bool Delete(Local<Value> key);
2194 Local<Context> context) const;
2196 Local<Context> context) const;
2198 Local<Context> context) const;
2200 Local<Context> context) const;
2202 Local<Context> context) const;
2204 Local<Context> context) const;
2206 Local<Context> context) const;
2207 V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
2210 Local<Boolean> ToBoolean(Isolate* isolate) const);
2212 Local<Number> ToNumber(Isolate* isolate) const);
2214 Local<String> ToString(Isolate* isolate) const);
2216 Local<String> ToDetailString(Isolate* isolate) const);
2218 Local<Object> ToObject(Isolate* isolate) const);
2220 Local<Integer> ToInteger(Isolate* isolate) const);
2222 Local<Uint32> ToUint32(Isolate* isolate) const);
2224 Local<Int32> ToInt32(Isolate* isolate) const);
2227 Local<Boolean> ToBoolean() const);
2228 inline V8_DEPRECATED("Use maybe version", Local<Number> ToNumber() const);
2229 inline V8_DEPRECATE_SOON("Use maybe version", Local<String> ToString() const);
2231 Local<String> ToDetailString() const);
2232 inline V8_DEPRECATE_SOON("Use maybe version", Local<Object> ToObject() const);
2234 Local<Integer> ToInteger() const);
2235 inline V8_DEPRECATED("Use maybe version", Local<Uint32> ToUint32() const);
2236 inline V8_DEPRECATED("Use maybe version", Local<Int32> ToInt32() const);
2242 V8_DEPRECATED("Use maybe version", Local<Uint32> ToArrayIndex() const);
2244 Local<Context> context) const;
2246 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(Local<Context> context) const;
2247 V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
2249 Local<Context> context) const;
2251 Local<Context> context) const;
2252 V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2261 V8_DEPRECATE_SOON("Use maybe version", bool Equals(Local<Value> that) const);
2262 V8_WARN_UNUSED_RESULT Maybe<bool> Equals(Local<Context> context,
2263 Local<Value> that) const;
2264 bool StrictEquals(Local<Value> that) const;
2265 bool SameValue(Local<Value> that) const;
2269 Local<String> TypeOf(Isolate*);
2296 V8_INLINE static Local<Boolean> New(Isolate* isolate, bool value);
2418 V8_INLINE static Local<String> Empty(Isolate* isolate);
2542 Local<String> NewFromUtf8(Isolate* isolate, const char* data,
2555 Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
2568 Local<String> NewFromTwoByte(Isolate* isolate, const uint16_t* data,
2582 static Local<String> Concat(Local<String> left, Local<String> right);
2593 Local<String> NewExternal(
2619 Local<String> NewExternal(Isolate* isolate,
2649 explicit Utf8Value(Local<v8::Value> obj);
2672 explicit Value(Local<v8::Value> obj);
2701 Local<Value> Name() const;
2704 static Local<Symbol> New(Isolate* isolate,
2705 Local<String> name = Local<String>());
2712 static Local<Symbol> For(Isolate *isolate, Local<String> name);
2716 static Local<Symbol> ForApi(Isolate *isolate, Local<String> name);
2719 static Local<Symbol> GetIterator(Isolate* isolate);
2720 static Local<Symbol> GetUnscopables(Isolate* isolate);
2721 static Local<Symbol> GetToPrimitive(Isolate* isolate);
2722 static Local<Symbol> GetToStringTag(Isolate* isolate);
2723 static Local<Symbol> GetIsConcatSpreadable(Isolate* isolate);
2741 Local<Value> Name() const;
2744 static Local<Private> New(Isolate* isolate,
2745 Local<String> name = Local<String>());
2754 static Local<Private> ForApi(Isolate* isolate, Local<String> name);
2767 static Local<Number> New(Isolate* isolate, double value);
2780 static Local<Integer> New(Isolate* isolate, int32_t value);
2781 static Local<Integer> NewFromUnsigned(Isolate* isolate, uint32_t value);
2837 Local<String> property,
2840 Local<Name> property,
2845 Local<String> property,
2846 Local<Value> value,
2849 Local<Name> property,
2850 Local<Value> value,
2908 bool Set(Local<Value> key, Local<Value> value));
2909 V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
2910 Local<Value> key, Local<Value> value);
2913 bool Set(uint32_t index, Local<Value> value));
2914 V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
2915 Local<Value> value);
2924 V8_WARN_UNUSED_RESULT Maybe<bool> CreateDataProperty(Local<Context> context,
2925 Local<Name> key,
2926 Local<Value> value);
2927 V8_WARN_UNUSED_RESULT Maybe<bool> CreateDataProperty(Local<Context> context,
2929 Local<Value> value);
2938 Local<Context> context, Local<Name> key, Local<Value> value,
2955 Local<Context> context, Local<Name> key, PropertyDescriptor& descriptor);
2961 // locally, but since the interceptor takes precedence the local property
2966 bool ForceSet(Local<Value> key, Local<Value> value,
2969 Maybe<bool> ForceSet(Local<Context> context,
2970 Local<Value> key, Local<Value> value,
2973 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
2974 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2975 Local<Value> key);
2977 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index));
2978 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2987 PropertyAttribute GetPropertyAttributes(Local<Value> key));
2989 Local<Context> context, Local<Value> key);
2995 Local<Value> GetOwnPropertyDescriptor(Local<String> key));
2997 Local<Context> context, Local<String> key);
2999 V8_DEPRECATE_SOON("Use maybe version", bool Has(Local<Value> key));
3015 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
3016 Local<Value> key);
3018 V8_DEPRECATE_SOON("Use maybe version", bool Delete(Local<Value> key));
3020 Maybe<bool> Delete(Local<Context> context, Local<Value> key);
3023 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
3027 Maybe<bool> Delete(Local<Context> context, uint32_t index);
3030 bool SetAccessor(Local<String> name,
3033 Local<Value> data = Local<Value>(),
3037 bool SetAccessor(Local<Name> name,
3040 Local<Value> data = Local<Value>(),
3044 Maybe<bool> SetAccessor(Local<Context> context, Local<Name> name,
3051 void SetAccessorProperty(Local<Name> name, Local<Function> getter,
3052 Local<Function> setter = Local<Function>(),
3062 Maybe<bool> HasPrivate(Local<Context> context, Local<Private> key);
3063 Maybe<bool> SetPrivate(Local<Context> context, Local<Private> key,
3064 Local<Value> value);
3065 Maybe<bool> DeletePrivate(Local<Context> context, Local<Private> key);
3066 MaybeLocal<Value> GetPrivate(Local<Context> context, Local<Private> key);
3074 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetPropertyNames());
3076 Local<Context> context);
3078 Local<Context> context, KeyCollectionMode mode,
3086 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetOwnPropertyNames());
3088 Local<Context> context);
3097 Local<Context> context, PropertyFilter filter);
3104 Local<Value> GetPrototype();
3111 V8_DEPRECATED("Use maybe version", bool SetPrototype(Local<Value> prototype));
3112 V8_WARN_UNUSED_RESULT Maybe<bool> SetPrototype(Local<Context> context,
3113 Local<Value> prototype);
3119 Local<Object> FindInstanceInPrototypeChain(Local<FunctionTemplate> tmpl);
3126 V8_DEPRECATED("Use maybe version", Local<String> ObjectProtoToString());
3128 Local<Context> context);
3133 Local<String> GetConstructorName();
3138 Maybe<bool> SetIntegrityLevel(Local<Context> context, IntegrityLevel level);
3150 V8_INLINE Local<Value> GetInternalField(int index);
3153 void SetInternalField(int index, Local<Value> value);
3177 // Testers for local properties.
3178 V8_DEPRECATED("Use maybe version", bool HasOwnProperty(Local<String> key));
3185 V8_WARN_UNUSED_RESULT Maybe<bool> HasOwnProperty(Local<Context> context,
3186 Local<Name> key);
3187 V8_WARN_UNUSED_RESULT Maybe<bool> HasOwnProperty(Local<Context> context,
3190 bool HasRealNamedProperty(Local<String> key));
3204 V8_WARN_UNUSED_RESULT Maybe<bool> HasRealNamedProperty(Local<Context> context,
3205 Local<Name> key);
3209 Local<Context> context, uint32_t index);
3211 bool HasRealNamedCallbackProperty(Local<String> key));
3213 Local<Context> context, Local<Name> key);
3221 Local<Value> GetRealNamedPropertyInPrototypeChain(Local<String> key));
3223 Local<Context> context, Local<Name> key);
3233 Local<String> key));
3235 GetRealNamedPropertyAttributesInPrototypeChain(Local<Context> context,
3236 Local<Name> key);
3244 Local<Value> GetRealNamedProperty(Local<String> key));
3246 Local<Context> context, Local<Name> key);
3255 Local<String> key));
3257 Local<Context> context, Local<Name> key);
3279 Local<Object> Clone();
3284 Local<Context> CreationContext();
3287 V8_INLINE static Local<Context> CreationContext( in CreationContext()
3309 Local<Value> CallAsFunction(Local<Value> recv, int argc,
3310 Local<Value> argv[]));
3311 V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context,
3312 Local<Value> recv,
3314 Local<Value> argv[]);
3322 Local<Value> CallAsConstructor(int argc, Local<Value> argv[]));
3324 Local<Context> context, int argc, Local<Value> argv[]);
3331 static Local<Object> New(Isolate* isolate);
3338 Local<Value> SlowGetInternalField(int index);
3355 Local<Object> CloneElementAt(uint32_t index));
3357 MaybeLocal<Object> CloneElementAt(Local<Context> context,
3364 static Local<Array> New(Isolate* isolate, int length = 0);
3380 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
3381 Local<Value> key);
3382 V8_WARN_UNUSED_RESULT MaybeLocal<Map> Set(Local<Context> context,
3383 Local<Value> key,
3384 Local<Value> value);
3385 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
3386 Local<Value> key);
3387 V8_WARN_UNUSED_RESULT Maybe<bool> Delete(Local<Context> context,
3388 Local<Value> key);
3394 Local<Array> AsArray() const;
3399 static Local<Map> New(Isolate* isolate);
3416 V8_WARN_UNUSED_RESULT MaybeLocal<Set> Add(Local<Context> context,
3417 Local<Value> key);
3418 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
3419 Local<Value> key);
3420 V8_WARN_UNUSED_RESULT Maybe<bool> Delete(Local<Context> context,
3421 Local<Value> key);
3426 Local<Array> AsArray() const;
3431 static Local<Set> New(Isolate* isolate);
3448 // Local setters
3455 V8_INLINE void Set(const Local<S> handle);
3472 // Getter. Creates a new Local<> so it comes with a certain performance
3475 V8_INLINE Local<Value> Get() const;
3500 V8_INLINE Local<Value> operator[](int i) const;
3502 Local<Function> Callee() const);
3503 V8_INLINE Local<Object> This() const;
3504 V8_INLINE Local<Object> Holder() const;
3505 V8_INLINE Local<Value> NewTarget() const;
3507 V8_INLINE Local<Value> Data() const;
3550 V8_INLINE Local<Value> Data() const;
3559 * void GetterCallback(Local<Name> name,
3563 * v8::Local<v8::Value> a_this =
3567 * v8::Local<v8::Value> a_holder =
3578 * v8::Local<v8::FunctionTemplate> templ =
3584 * ->Set(env.local(), v8_str("obj"), templ->GetFunction(env.local())
3586 * ->NewInstance(env.local())
3593 V8_INLINE Local<Object> This() const;
3604 V8_INLINE Local<Object> Holder() const;
3659 Local<Context> context, FunctionCallback callback,
3660 Local<Value> data = Local<Value>(), int length = 0,
3664 Local<Function> New(Isolate* isolate, FunctionCallback callback,
3665 Local<Value> data = Local<Value>(), int length = 0));
3668 Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
3670 Local<Context> context, int argc, Local<Value> argv[]) const;
3672 V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
3674 Local<Context> context) const { in NewInstance()
3679 Local<Value> Call(Local<Value> recv, int argc,
3680 Local<Value> argv[]));
3681 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
3682 Local<Value> recv, int argc,
3683 Local<Value> argv[]);
3685 void SetName(Local<String> name);
3686 Local<Value> GetName() const;
3694 Local<Value> GetInferredName() const;
3700 Local<Value> GetDebugName() const;
3706 Local<Value> GetDisplayName() const;
3733 Local<Value> GetBoundFunction() const;
3762 Local<Resolver> New(Isolate* isolate));
3764 Local<Context> context);
3769 Local<Promise> GetPromise();
3775 V8_DEPRECATE_SOON("Use maybe version", void Resolve(Local<Value> value));
3777 Maybe<bool> Resolve(Local<Context> context, Local<Value> value);
3779 V8_DEPRECATE_SOON("Use maybe version", void Reject(Local<Value> value));
3781 Maybe<bool> Reject(Local<Context> context, Local<Value> value);
3797 Local<Promise> Catch(Local<Function> handler));
3798 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Catch(Local<Context> context,
3799 Local<Function> handler);
3802 Local<Promise> Then(Local<Function> handler));
3803 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Then(Local<Context> context,
3804 Local<Function> handler);
3816 Local<Value> Result();
3845 * v8::PropertyDescriptor d(Local<Value>()), false);
3855 * v8::PropertyDescriptor d(v8::Undefined(isolate), Local<Value>()));
3864 PropertyDescriptor(Local<Value> value);
3867 PropertyDescriptor(Local<Value> value, bool writable);
3870 PropertyDescriptor(Local<Value> get, Local<Value> set);
3874 Local<Value> value() const;
3877 Local<Value> get() const;
3879 Local<Value> set() const;
3909 Local<Object> GetTarget();
3910 Local<Value> GetHandler();
3917 static MaybeLocal<Proxy> New(Local<Context> context,
3918 Local<Object> local_target,
3919 Local<Object> local_handler);
3934 Local<String> GetWasmWireBytes();
4051 static Local<ArrayBuffer> New(Isolate* isolate, size_t byte_length);
4059 static Local<ArrayBuffer> New(
4130 Local<ArrayBuffer> Buffer();
4193 static Local<Uint8Array> New(Local<ArrayBuffer> array_buffer,
4195 static Local<Uint8Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4210 static Local<Uint8ClampedArray> New(Local<ArrayBuffer> array_buffer,
4212 static Local<Uint8ClampedArray> New(
4213 Local<SharedArrayBuffer> shared_array_buffer, size_t byte_offset,
4227 static Local<Int8Array> New(Local<ArrayBuffer> array_buffer,
4229 static Local<Int8Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4244 static Local<Uint16Array> New(Local<ArrayBuffer> array_buffer,
4246 static Local<Uint16Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4261 static Local<Int16Array> New(Local<ArrayBuffer> array_buffer,
4263 static Local<Int16Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4278 static Local<Uint32Array> New(Local<ArrayBuffer> array_buffer,
4280 static Local<Uint32Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4295 static Local<Int32Array> New(Local<ArrayBuffer> array_buffer,
4297 static Local<Int32Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4312 static Local<Float32Array> New(Local<ArrayBuffer> array_buffer,
4314 static Local<Float32Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4329 static Local<Float64Array> New(Local<ArrayBuffer> array_buffer,
4331 static Local<Float64Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4346 static Local<DataView> New(Local<ArrayBuffer> array_buffer,
4348 static Local<DataView> New(Local<SharedArrayBuffer> shared_array_buffer,
4401 static Local<SharedArrayBuffer> New(Isolate* isolate, size_t byte_length);
4409 static Local<SharedArrayBuffer> New(
4463 Local<Value> New(Isolate* isolate, double time));
4464 static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context,
4499 static Local<Value> New(Isolate* isolate, double value);
4515 static Local<Value> New(Isolate* isolate, bool value);
4516 V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
4532 static Local<Value> New(Local<String> value);
4534 Local<String> ValueOf() const;
4548 static Local<Value> New(Isolate* isolate, Local<Symbol> value);
4550 Local<Symbol> ValueOf() const;
4588 Local<RegExp> New(Local<String> pattern,
4590 static V8_WARN_UNUSED_RESULT MaybeLocal<RegExp> New(Local<Context> context,
4591 Local<String> pattern,
4598 Local<String> GetSource() const;
4618 static Local<External> New(Isolate* isolate, void* value);
4651 void Set(Local<Name> name, Local<Data> value,
4653 void SetPrivate(Local<Private> name, Local<Data> value,
4655 V8_INLINE void Set(Isolate* isolate, const char* name, Local<Data> value);
4658 Local<Name> name,
4659 Local<FunctionTemplate> getter = Local<FunctionTemplate>(),
4660 Local<FunctionTemplate> setter = Local<FunctionTemplate>(),
4692 Local<String> name, AccessorGetterCallback getter,
4694 // TODO(dcarney): gcc can't handle Local below
4695 Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
4696 Local<AccessorSignature> signature = Local<AccessorSignature>(),
4699 Local<Name> name, AccessorNameGetterCallback getter,
4701 // TODO(dcarney): gcc can't handle Local below
4702 Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
4703 Local<AccessorSignature> signature = Local<AccessorSignature>(),
4710 void SetLazyDataProperty(Local<Name> name, AccessorNameGetterCallback getter,
4711 Local<Value> data = Local<Value>(),
4718 void SetIntrinsicDataProperty(Local<Name> name, Intrinsic intrinsic,
4734 Local<String> property,
4743 Local<String> property,
4744 Local<Value> value,
4754 Local<String> property,
4764 Local<String> property,
4793 * Local<Name> name,
4798 * v8::Local<v8::FunctionTemplate> templ =
4804 * ->Set(env.local(), v8_str("obj"), templ->GetFunction(env.local())
4806 * ->NewInstance(env.local())
4809 * v8::Local<v8::Value> result = CompileRun("obj.a = 17; obj.a");
4810 * CHECK(v8_num(42)->Equals(env.local(), result).FromJust());
4816 Local<Name> property, const PropertyCallbackInfo<Value>& info);
4840 Local<Name> property, Local<Value> value,
4865 Local<Name> property, const PropertyCallbackInfo<Integer>& info);
4889 Local<Name> property, const PropertyCallbackInfo<Boolean>& info);
4920 Local<Name> property, const PropertyDescriptor& desc,
4943 Local<Name> property, const PropertyCallbackInfo<Value>& info);
4957 Local<Value> value,
5009 typedef bool (*AccessCheckCallback)(Local<Context> accessing_context,
5010 Local<Object> accessed_object,
5011 Local<Value> data);
5038 * v8::Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(isolate);
5041 * v8::Local<v8::Template> proto_t = t->PrototypeTemplate();
5047 * v8::Local<v8::ObjectTemplate> instance_t = t->InstanceTemplate();
5054 * v8::Local<v8::Function> function = t->GetFunction();
5055 * v8::Local<v8::Object> instance = function->NewInstance();
5095 * Local<FunctionTemplate> parent = t;
5096 * Local<FunctionTemplate> child = FunctionTemplate::New();
5099 * Local<Function> child_function = child->GetFunction();
5100 * Local<Object> child_instance = child_function->NewInstance();
5115 static Local<FunctionTemplate> New(
5117 Local<Value> data = Local<Value>(),
5118 Local<Signature> signature = Local<Signature>(), int length = 0,
5129 static Local<FunctionTemplate> NewWithFastHandler(
5132 Local<Value> data = Local<Value>(),
5133 Local<Signature> signature = Local<Signature>(), int length = 0);
5138 static Local<FunctionTemplate> NewWithCache(
5140 Local<Private> cache_property, Local<Value> data = Local<Value>(),
5141 Local<Signature> signature = Local<Signature>(), int length = 0);
5144 V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction());
5146 Local<Context> context);
5163 FunctionCallback callback, Local<Value> data = Local<Value>(),
5170 Local<ObjectTemplate> InstanceTemplate();
5177 void Inherit(Local<FunctionTemplate> parent);
5183 Local<ObjectTemplate> PrototypeTemplate();
5191 void SetPrototypeProviderTemplate(Local<FunctionTemplate> prototype_provider);
5198 void SetClassName(Local<String> name);
5237 bool HasInstance(Local<Value> object);
5281 Local<Value> data = Local<Value>(),
5300 Local<Value> data = Local<Value>(),
5319 Local<Value> data;
5332 Local<Value> data = Local<Value>(),
5351 Local<Value> data = Local<Value>(),
5370 Local<Value> data;
5384 static Local<ObjectTemplate> New(
5386 Local<FunctionTemplate> constructor = Local<FunctionTemplate>());
5387 static V8_DEPRECATED("Use isolate version", Local<ObjectTemplate> New());
5394 V8_DEPRECATE_SOON("Use maybe version", Local<Object> NewInstance());
5395 V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(Local<Context> context);
5427 Local<String> name, AccessorGetterCallback getter,
5428 AccessorSetterCallback setter = 0, Local<Value> data = Local<Value>(),
5430 Local<AccessorSignature> signature = Local<AccessorSignature>());
5432 Local<Name> name, AccessorNameGetterCallback getter,
5433 AccessorNameSetterCallback setter = 0, Local<Value> data = Local<Value>(),
5435 Local<AccessorSignature> signature = Local<AccessorSignature>());
5465 Local<Value> data = Local<Value>());
5503 Local<Value> data = Local<Value>()) {
5527 Local<Value> data = Local<Value>());
5548 Local<Value> data = Local<Value>());
5560 Local<Value> data = Local<Value>());
5587 static Local<ObjectTemplate> New(internal::Isolate* isolate,
5588 Local<FunctionTemplate> constructor);
5598 static Local<Signature> New(
5600 Local<FunctionTemplate> receiver = Local<FunctionTemplate>());
5613 static Local<AccessorSignature> New(
5615 Local<FunctionTemplate> receiver = Local<FunctionTemplate>());
5651 virtual Local<FunctionTemplate> GetNativeFunctionTemplate( in GetNativeFunctionTemplate()
5652 Isolate* isolate, Local<String> name) { in GetNativeFunctionTemplate()
5653 return Local<FunctionTemplate>(); in GetNativeFunctionTemplate()
5684 V8_INLINE Local<Primitive> Undefined(Isolate* isolate);
5685 V8_INLINE Local<Primitive> Null(Isolate* isolate);
5686 V8_INLINE Local<Boolean> True(Isolate* isolate);
5687 V8_INLINE Local<Boolean> False(Isolate* isolate);
5758 typedef void (*MessageCallback)(Local<Message> message, Local<Value> data);
5770 static Local<Value> RangeError(Local<String> message);
5771 static Local<Value> ReferenceError(Local<String> message);
5772 static Local<Value> SyntaxError(Local<String> message);
5773 static Local<Value> TypeError(Local<String> message);
5774 static Local<Value> Error(Local<String> message);
5781 static Local<Message> CreateMessage(Isolate* isolate, Local<Value> exception);
5783 static Local<Message> CreateMessage(Local<Value> exception));
5789 static Local<StackTrace> GetStackTrace(Local<Value> exception);
5845 typedef void (*PromiseHook)(PromiseHookType type, Local<Promise> promise,
5846 Local<Value> parent);
5856 PromiseRejectMessage(Local<Promise> promise, PromiseRejectEvent event, in PromiseRejectMessage()
5857 Local<Value> value, Local<StackTrace> stack_trace) in PromiseRejectMessage()
5863 V8_INLINE Local<Promise> GetPromise() const { return promise_; } in GetPromise()
5865 V8_INLINE Local<Value> GetValue() const { return value_; } in GetValue()
5868 V8_INLINE Local<StackTrace> GetStackTrace() const) {
5873 Local<Promise> promise_;
5875 Local<Value> value_;
5876 Local<StackTrace> stack_trace_;
5938 typedef void (*FailedAccessCheckCallback)(Local<Object> target,
5940 Local<Value> data);
5948 typedef bool (*AllowCodeGenerationFromStringsCallback)(Local<Context> context);
5957 typedef bool (*AllowWasmCompileCallback)(Isolate* isolate, Local<Value> source,
5961 Local<Value> module_or_bytes,
6139 Local<UnboundScript> script;
6221 virtual void VisitExternalString(Local<String> string) {} in VisitExternalString()
6329 typedef StartupData (*CallbackFunction)(Local<Object> holder, int index,
6343 typedef void (*CallbackFunction)(Local<Object> holder, int index,
6348 void (*callback)(Local<Object> holder, int index, StartupData payload,
6443 * executed within a local scope.
6796 Local<Context> GetCurrentContext();
6806 Local<Context> GetCallingContext());
6809 Local<Context> GetEnteredContext();
6817 Local<Context> GetEnteredOrMicrotaskContext();
6825 Local<Value> ThrowException(Local<Value> exception);
7027 void EnqueueMicrotask(Local<Function> microtask);
7252 Local<Value> data = Local<Value>());
7267 Local<Value> data = Local<Value>());
7440 Local<Value> data = Local<Value>()));
7715 static Local<Value> GetEternal(Isolate* isolate, int index);
7726 template <class T> friend class Local; variable
7769 void SetDefaultContext(Local<Context> context);
7779 size_t AddContext(Local<Context> context,
7787 size_t AddTemplate(Local<Template> template_obj);
7936 Local<Value> ReThrow();
7944 Local<Value> Exception() const;
7950 V8_DEPRECATE_SOON("Use maybe version.", Local<Value> StackTrace() const);
7952 Local<Context> context) const;
7961 Local<v8::Message> Message() const;
7996 * 2) Address sanitizer allocates local C++ object in the heap when
8069 Local<Object> Global();
8095 static Local<Context> New(
8144 Isolate* isolate, Local<ObjectTemplate> global_template,
8151 void SetSecurityToken(Local<Value> token);
8157 Local<Value> GetSecurityToken();
8188 V8_INLINE Local<Value> GetEmbedderData(int index);
8196 Local<Object> GetExtrasBindingObject();
8203 void SetEmbedderData(int index, Local<Value> value);
8246 void SetErrorMessageForCodeGenerationFromStrings(Local<String> message);
8255 * operations executed within a local scope.
8259 explicit V8_INLINE Scope(Local<Context> context) : context_(context) { in Scope()
8265 Local<Context> context_;
8274 Local<Value> SlowGetEmbedderData(int index);
8656 Local<T> Local<T>::New(Isolate* isolate, Local<T> that) {
8661 Local<T> Local<T>::New(Isolate* isolate, const PersistentBase<T>& that) {
8667 Local<T> Local<T>::New(Isolate* isolate, T* that) {
8668 if (that == NULL) return Local<T>();
8671 return Local<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(
8678 void Eternal<T>::Set(Isolate* isolate, Local<S> handle) {
8685 Local<T> Eternal<T>::Get(Isolate* isolate) {
8686 return Local<T>(reinterpret_cast<T*>(*V8::GetEternal(isolate, index_)));
8691 Local<T> MaybeLocal<T>::ToLocalChecked() {
8693 return Local<T>(val_);
8769 void PersistentBase<T>::Reset(Isolate* isolate, const Local<S>& other) {
8883 void ReturnValue<T>::Set(const Local<S> handle) {
8962 Local<Value> ReturnValue<T>::Get() const {
8965 return Local<Value>(*Undefined(GetIsolate()));
8966 return Local<Value>::New(GetIsolate(), reinterpret_cast<Value*>(value_));
8989 Local<Value> FunctionCallbackInfo<T>::operator[](int i) const {
8990 if (i < 0 || length_ <= i) return Local<Value>(*Undefined(GetIsolate()));
8991 return Local<Value>(reinterpret_cast<Value*>(values_ - i));
8996 Local<Function> FunctionCallbackInfo<T>::Callee() const {
8997 return Local<Function>(reinterpret_cast<Function*>(
9003 Local<Object> FunctionCallbackInfo<T>::This() const {
9004 return Local<Object>(reinterpret_cast<Object*>(values_ + 1));
9009 Local<Object> FunctionCallbackInfo<T>::Holder() const {
9010 return Local<Object>(reinterpret_cast<Object*>(
9015 Local<Value> FunctionCallbackInfo<T>::NewTarget() const {
9016 return Local<Value>(
9021 Local<Value> FunctionCallbackInfo<T>::Data() const {
9022 return Local<Value>(reinterpret_cast<Value*>(&implicit_args_[kDataIndex]));
9049 ScriptOrigin::ScriptOrigin(Local<Value> resource_name,
9050 Local<Integer> resource_line_offset,
9051 Local<Integer> resource_column_offset,
9052 Local<Boolean> resource_is_shared_cross_origin,
9053 Local<Integer> script_id,
9054 Local<Value> source_map_url,
9055 Local<Boolean> resource_is_opaque,
9056 Local<Boolean> is_wasm, Local<Boolean> is_module)
9068 Local<Value> ScriptOrigin::ResourceName() const { return resource_name_; }
9071 Local<Integer> ScriptOrigin::ResourceLineOffset() const {
9076 Local<Integer> ScriptOrigin::ResourceColumnOffset() const {
9081 Local<Integer> ScriptOrigin::ScriptID() const { return script_id_; }
9084 Local<Value> ScriptOrigin::SourceMapUrl() const { return source_map_url_; }
9087 ScriptCompiler::Source::Source(Local<String> string, const ScriptOrigin& origin,
9098 ScriptCompiler::Source::Source(Local<String> string,
9117 Local<Boolean> Boolean::New(Isolate* isolate, bool value) {
9121 void Template::Set(Isolate* isolate, const char* name, Local<Data> value) {
9128 Local<Value> Object::GetInternalField(int index) {
9142 return Local<Value>(reinterpret_cast<Value*>(result));
9174 Local<String> String::Empty(Isolate* isolate) {
9179 return Local<String>(reinterpret_cast<String*>(slot));
9296 Local<Boolean> Value::ToBoolean() const {
9298 .FromMaybe(Local<Boolean>());
9302 Local<Number> Value::ToNumber() const {
9304 .FromMaybe(Local<Number>());
9308 Local<String> Value::ToString() const {
9310 .FromMaybe(Local<String>());
9314 Local<String> Value::ToDetailString() const {
9316 .FromMaybe(Local<String>());
9320 Local<Object> Value::ToObject() const {
9322 .FromMaybe(Local<Object>());
9326 Local<Integer> Value::ToInteger() const {
9328 .FromMaybe(Local<Integer>());
9332 Local<Uint32> Value::ToUint32() const {
9334 .FromMaybe(Local<Uint32>());
9338 Local<Int32> Value::ToInt32() const {
9340 .FromMaybe(Local<Int32>());
9645 Local<Value> PropertyCallbackInfo<T>::Data() const {
9646 return Local<Value>(reinterpret_cast<Value*>(&args_[kDataIndex]));
9651 Local<Object> PropertyCallbackInfo<T>::This() const {
9652 return Local<Object>(reinterpret_cast<Object*>(&args_[kThisIndex]));
9657 Local<Object> PropertyCallbackInfo<T>::Holder() const {
9658 return Local<Object>(reinterpret_cast<Object*>(&args_[kHolderIndex]));
9674 Local<Primitive> Undefined(Isolate* isolate) {
9679 return Local<Primitive>(reinterpret_cast<Primitive*>(slot));
9683 Local<Primitive> Null(Isolate* isolate) {
9688 return Local<Primitive>(reinterpret_cast<Primitive*>(slot));
9692 Local<Boolean> True(Isolate* isolate) {
9697 return Local<Boolean>(reinterpret_cast<Boolean*>(slot));
9701 Local<Boolean> False(Isolate* isolate) {
9706 return Local<Boolean>(reinterpret_cast<Boolean*>(slot));
9770 Local<Value> Context::GetEmbedderData(int index) {
9778 return Local<Value>(reinterpret_cast<Value*>(result));
9808 bool V8::AddMessageListener(MessageCallback that, Local<Value> data) {