Lines Matching refs:Local
114 template <class T> class Local; variable
303 class Local {
305 V8_INLINE Local() : val_(0) {}
307 V8_INLINE Local(Local<S> that)
338 V8_INLINE bool operator==(const Local<S>& that) const {
362 V8_INLINE bool operator!=(const Local<S>& that) const {
376 template <class S> V8_INLINE static Local<T> Cast(Local<S> that) {
380 if (that.IsEmpty()) return Local<T>();
382 return Local<T>(T::Cast(*that));
391 V8_INLINE Local<S> As() const {
392 return Local<S>::Cast(*this);
400 V8_INLINE static Local<T> New(Isolate* isolate, Local<T> that);
401 V8_INLINE static Local<T> New(Isolate* isolate,
409 template<class F> friend class Local;
420 friend Local<Primitive> Undefined(Isolate* isolate);
421 friend Local<Primitive> Null(Isolate* isolate);
422 friend Local<Boolean> True(Isolate* isolate);
423 friend Local<Boolean> False(Isolate* isolate);
432 explicit V8_INLINE Local(T* that) : val_(that) {}
433 V8_INLINE static Local<T> New(Isolate* isolate, T* that);
441 using Handle = Local<T>;
460 V8_INLINE MaybeLocal(Local<S> that)
472 V8_WARN_UNUSED_RESULT V8_INLINE bool ToLocal(Local<S>* out) const {
481 V8_INLINE Local<T> ToLocalChecked();
488 V8_INLINE Local<S> FromMaybe(Local<S> default_value) const {
489 return IsEmpty() ? default_value : Local<S>(val_);
504 V8_INLINE Eternal(Isolate* isolate, Local<S> handle) : val_(nullptr) {
508 V8_INLINE Local<T> Get(Isolate* isolate) const;
510 template<class S> V8_INLINE void Set(Isolate* isolate, Local<S> handle);
586 V8_INLINE void Reset(Isolate* isolate, const Local<S>& other);
598 V8_INLINE Local<T> Get(Isolate* isolate) const {
599 return Local<T>::New(isolate, *this);
612 V8_INLINE bool operator==(const Local<S>& that) const {
626 V8_INLINE bool operator!=(const Local<S>& that) const {
719 template<class F> friend class Local;
796 V8_INLINE Persistent(Isolate* isolate, Local<S> that)
861 template<class F> friend class Local;
890 V8_INLINE Global(Isolate* isolate, Local<S> that)
1006 template<class F> friend class Local;
1029 V8_INLINE Local<T> Escape(Local<T> value) {
1032 return Local<T>(reinterpret_cast<T*>(slot));
1037 return Escape(value.FromMaybe(Local<T>()));
1105 Local<Value> GetResourceName();
1111 Local<PrimitiveArray> GetHostDefinedOptions();
1124 static Local<PrimitiveArray> New(Isolate* isolate, int length);
1126 void Set(Isolate* isolate, int index, Local<Primitive> item);
1127 Local<Primitive> Get(Isolate* isolate, int index);
1130 void Set(int index, Local<Primitive> item));
1131 V8_DEPRECATED("Use Isolate version", Local<Primitive> Get(int index));
1174 Local<Value> resource_name,
1175 Local<Integer> resource_line_offset = Local<Integer>(),
1176 Local<Integer> resource_column_offset = Local<Integer>(),
1177 Local<Boolean> resource_is_shared_cross_origin = Local<Boolean>(),
1178 Local<Integer> script_id = Local<Integer>(),
1179 Local<Value> source_map_url = Local<Value>(),
1180 Local<Boolean> resource_is_opaque = Local<Boolean>(),
1181 Local<Boolean> is_wasm = Local<Boolean>(),
1182 Local<Boolean> is_module = Local<Boolean>(),
1183 Local<PrimitiveArray> host_defined_options = Local<PrimitiveArray>());
1185 V8_INLINE Local<Value> ResourceName() const;
1186 V8_INLINE Local<Integer> ResourceLineOffset() const;
1187 V8_INLINE Local<Integer> ResourceColumnOffset() const;
1188 V8_INLINE Local<Integer> ScriptID() const;
1189 V8_INLINE Local<Value> SourceMapUrl() const;
1190 V8_INLINE Local<PrimitiveArray> HostDefinedOptions() const;
1194 Local<Value> resource_name_;
1195 Local<Integer> resource_line_offset_;
1196 Local<Integer> resource_column_offset_;
1198 Local<Integer> script_id_;
1199 Local<Value> source_map_url_;
1200 Local<PrimitiveArray> host_defined_options_;
1211 Local<Script> BindToCurrentContext();
1214 Local<Value> GetScriptName();
1219 Local<Value> GetSourceURL();
1223 Local<Value> GetSourceMappingURL();
1286 Local<Value> GetException() const;
1297 Local<String> GetModuleRequest(int i) const;
1310 typedef MaybeLocal<Module> (*ResolveCallback)(Local<Context> context,
1311 Local<String> specifier,
1312 Local<Module> referrer);
1321 V8_WARN_UNUSED_RESULT Maybe<bool> InstantiateModule(Local<Context> context,
1332 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Evaluate(Local<Context> context);
1339 Local<Value> GetModuleNamespace();
1347 Local<UnboundModuleScript> GetUnboundModuleScript();
1360 Local<Context> context, Local<String> source,
1368 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Run(Local<Context> context);
1373 Local<UnboundScript> GetUnboundScript();
1426 V8_INLINE Source(Local<String> source_string, const ScriptOrigin& origin,
1428 V8_INLINE Source(Local<String> source_string,
1446 Local<String> source_string;
1449 Local<Value> resource_name;
1450 Local<Integer> resource_line_offset;
1451 Local<Integer> resource_column_offset;
1453 Local<Value> source_map_url;
1454 Local<PrimitiveArray> host_defined_options;
1611 Local<Context> context, Source* source,
1638 Local<Context> context, StreamedSource* source,
1639 Local<String> full_source_string, const ScriptOrigin& origin);
1684 Local<Context> context, Source* source, size_t arguments_count,
1685 Local<String> arguments[], size_t context_extension_count,
1686 Local<Object> context_extensions[],
1695 static CachedData* CreateCodeCache(Local<UnboundScript> unbound_script);
1703 Local<UnboundModuleScript> unbound_module_script);
1711 static CachedData* CreateCodeCacheForFunction(Local<Function> function);
1725 Local<String> Get() const;
1733 Local<Context> context) const;
1745 Local<Value> GetScriptResourceName() const;
1752 Local<StackTrace> GetStackTrace() const;
1757 V8_WARN_UNUSED_RESULT Maybe<int> GetLineNumber(Local<Context> context) const;
1781 V8_WARN_UNUSED_RESULT Maybe<int> GetStartColumn(Local<Context> context) const;
1788 V8_WARN_UNUSED_RESULT Maybe<int> GetEndColumn(Local<Context> context) const;
1837 Local<StackFrame> GetFrame(uint32_t index) const);
1838 Local<StackFrame> GetFrame(Isolate* isolate, uint32_t index) const;
1852 static Local<StackTrace> CurrentStackTrace(
1891 Local<String> GetScriptName() const;
1899 Local<String> GetScriptNameOrSourceURL() const;
1904 Local<String> GetFunctionName() const;
1968 Local<String> json_string));
1970 Local<Context> context, Local<String> json_string);
1980 Local<Context> context, Local<Value> json_object,
1981 Local<String> gap = Local<String>());
2003 virtual void ThrowDataCloneError(Local<String> message) = 0;
2010 virtual Maybe<bool> WriteHostObject(Isolate* isolate, Local<Object> object);
2023 Isolate* isolate, Local<SharedArrayBuffer> shared_array_buffer);
2026 Isolate* isolate, Local<WasmCompiledModule> module);
2061 V8_WARN_UNUSED_RESULT Maybe<bool> WriteValue(Local<Context> context,
2062 Local<Value> value);
2084 Local<ArrayBuffer> array_buffer);
2092 Local<SharedArrayBuffer> shared_array_buffer));
2166 V8_WARN_UNUSED_RESULT Maybe<bool> ReadHeader(Local<Context> context);
2171 V8_WARN_UNUSED_RESULT MaybeLocal<Value> ReadValue(Local<Context> context);
2178 Local<ArrayBuffer> array_buffer);
2186 Local<SharedArrayBuffer> shared_array_buffer);
2516 Local<Context> context) const;
2518 Local<Context> context) const;
2520 Local<Context> context) const;
2522 Local<Context> context) const;
2524 Local<Context> context) const;
2526 Local<Context> context) const;
2528 Local<Context> context) const;
2530 Local<Context> context) const;
2531 V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
2534 Local<Boolean> ToBoolean(Isolate* isolate) const);
2536 Local<Number> ToNumber(Isolate* isolate) const);
2538 Local<String> ToString(Isolate* isolate) const);
2540 Local<Object> ToObject(Isolate* isolate) const);
2542 Local<Integer> ToInteger(Isolate* isolate) const);
2544 Local<Int32> ToInt32(Isolate* isolate) const);
2546 inline V8_DEPRECATED("Use maybe version", Local<Boolean> ToBoolean() const);
2547 inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
2548 inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
2549 inline V8_DEPRECATED("Use maybe version", Local<Integer> ToInteger() const);
2556 Local<Context> context) const;
2558 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(Local<Context> context) const;
2559 V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
2561 Local<Context> context) const;
2563 Local<Context> context) const;
2564 V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2573 V8_DEPRECATED("Use maybe version", bool Equals(Local<Value> that) const);
2574 V8_WARN_UNUSED_RESULT Maybe<bool> Equals(Local<Context> context,
2575 Local<Value> that) const;
2576 bool StrictEquals(Local<Value> that) const;
2577 bool SameValue(Local<Value> that) const;
2581 Local<String> TypeOf(Isolate*);
2583 Maybe<bool> InstanceOf(Local<Context> context, Local<Object> object);
2610 V8_INLINE static Local<Boolean> New(Isolate* isolate, bool value);
2759 V8_INLINE static Local<String> Empty(Isolate* isolate);
2883 Local<String> NewFromUtf8(Isolate* isolate, const char* data,
2902 Local<String> NewFromTwoByte(Isolate* isolate, const uint16_t* data,
2916 static Local<String> Concat(Isolate* isolate, Local<String> left,
2917 Local<String> right);
2919 Local<String> Concat(Local<String> left,
2920 Local<String> right));
2954 Local<String> NewExternal(Isolate* isolate,
2978 bool StringEquals(Local<String> str);
2989 Utf8Value(Isolate* isolate, Local<v8::Value> obj);
3012 Value(Isolate* isolate, Local<v8::Value> obj);
3049 Local<Value> Name() const;
3054 static Local<Symbol> New(Isolate* isolate,
3055 Local<String> name = Local<String>());
3064 static Local<Symbol> For(Isolate *isolate, Local<String> name);
3070 static Local<Symbol> ForApi(Isolate *isolate, Local<String> name);
3073 static Local<Symbol> GetHasInstance(Isolate* isolate);
3074 static Local<Symbol> GetIsConcatSpreadable(Isolate* isolate);
3075 static Local<Symbol> GetIterator(Isolate* isolate);
3076 static Local<Symbol> GetMatch(Isolate* isolate);
3077 static Local<Symbol> GetReplace(Isolate* isolate);
3078 static Local<Symbol> GetSearch(Isolate* isolate);
3079 static Local<Symbol> GetSplit(Isolate* isolate);
3080 static Local<Symbol> GetToPrimitive(Isolate* isolate);
3081 static Local<Symbol> GetToStringTag(Isolate* isolate);
3082 static Local<Symbol> GetUnscopables(Isolate* isolate);
3102 Local<Value> Name() const;
3107 static Local<Private> New(Isolate* isolate,
3108 Local<String> name = Local<String>());
3119 static Local<Private> ForApi(Isolate* isolate, Local<String> name);
3136 static Local<Number> New(Isolate* isolate, double value);
3149 static Local<Integer> New(Isolate* isolate, int32_t value);
3150 static Local<Integer> NewFromUnsigned(Isolate* isolate, uint32_t value);
3191 static Local<BigInt> New(Isolate* isolate, int64_t value);
3192 static Local<BigInt> NewFromUnsigned(Isolate* isolate, uint64_t value);
3200 static MaybeLocal<BigInt> NewFromWords(Local<Context> context, int sign_bit,
3261 Local<String> property,
3264 Local<Name> property,
3269 Local<String> property,
3270 Local<Value> value,
3273 Local<Name> property,
3274 Local<Value> value,
3347 bool Set(Local<Value> key, Local<Value> value));
3348 V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
3349 Local<Value> key, Local<Value> value);
3352 bool Set(uint32_t index, Local<Value> value));
3353 V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
3354 Local<Value> value);
3363 V8_WARN_UNUSED_RESULT Maybe<bool> CreateDataProperty(Local<Context> context,
3364 Local<Name> key,
3365 Local<Value> value);
3366 V8_WARN_UNUSED_RESULT Maybe<bool> CreateDataProperty(Local<Context> context,
3368 Local<Value> value);
3377 Local<Context> context, Local<Name> key, Local<Value> value,
3394 Local<Context> context, Local<Name> key, PropertyDescriptor& descriptor);
3396 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
3397 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
3398 Local<Value> key);
3400 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index));
3401 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
3410 Local<Context> context, Local<Value> key);
3416 Local<Context> context, Local<Name> key);
3418 V8_DEPRECATE_SOON("Use maybe version", bool Has(Local<Value> key));
3434 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
3435 Local<Value> key);
3437 V8_DEPRECATE_SOON("Use maybe version", bool Delete(Local<Value> key));
3438 V8_WARN_UNUSED_RESULT Maybe<bool> Delete(Local<Context> context,
3439 Local<Value> key);
3441 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
3443 V8_WARN_UNUSED_RESULT Maybe<bool> Delete(Local<Context> context,
3450 Local<Context> context, Local<Name> name,
3456 void SetAccessorProperty(Local<Name> name, Local<Function> getter,
3457 Local<Function> setter = Local<Function>(),
3466 Local<Context> context, Local<Name> name,
3469 Local<Value> data = Local<Value>(), PropertyAttribute attributes = None,
3481 Local<Context> context, Local<Name> name,
3482 AccessorNameGetterCallback getter, Local<Value> data = Local<Value>(),
3492 Maybe<bool> HasPrivate(Local<Context> context, Local<Private> key);
3493 Maybe<bool> SetPrivate(Local<Context> context, Local<Private> key,
3494 Local<Value> value);
3495 Maybe<bool> DeletePrivate(Local<Context> context, Local<Private> key);
3496 MaybeLocal<Value> GetPrivate(Local<Context> context, Local<Private> key);
3504 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetPropertyNames());
3506 Local<Context> context);
3508 Local<Context> context, KeyCollectionMode mode,
3517 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetOwnPropertyNames());
3519 Local<Context> context);
3528 Local<Context> context, PropertyFilter filter,
3536 Local<Value> GetPrototype();
3543 V8_WARN_UNUSED_RESULT Maybe<bool> SetPrototype(Local<Context> context,
3544 Local<Value> prototype);
3550 Local<Object> FindInstanceInPrototypeChain(Local<FunctionTemplate> tmpl);
3558 Local<Context> context);
3563 Local<String> GetConstructorName();
3568 Maybe<bool> SetIntegrityLevel(Local<Context> context, IntegrityLevel level);
3580 V8_INLINE Local<Value> GetInternalField(int index);
3583 void SetInternalField(int index, Local<Value> value);
3612 V8_WARN_UNUSED_RESULT Maybe<bool> HasOwnProperty(Local<Context> context,
3613 Local<Name> key);
3614 V8_WARN_UNUSED_RESULT Maybe<bool> HasOwnProperty(Local<Context> context,
3617 bool HasRealNamedProperty(Local<String> key));
3631 V8_WARN_UNUSED_RESULT Maybe<bool> HasRealNamedProperty(Local<Context> context,
3632 Local<Name> key);
3636 Local<Context> context, uint32_t index);
3638 bool HasRealNamedCallbackProperty(Local<String> key));
3640 Local<Context> context, Local<Name> key);
3647 Local<Context> context, Local<Name> key);
3655 GetRealNamedPropertyAttributesInPrototypeChain(Local<Context> context,
3656 Local<Name> key);
3664 Local<Context> context, Local<Name> key);
3672 Local<Context> context, Local<Name> key);
3694 Local<Object> Clone();
3699 Local<Context> CreationContext();
3702 V8_INLINE static Local<Context> CreationContext(
3723 V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context,
3724 Local<Value> recv,
3726 Local<Value> argv[]);
3734 Local<Context> context, int argc, Local<Value> argv[]);
3752 static Local<Object> New(Isolate* isolate);
3759 Local<Value> SlowGetInternalField(int index);
3775 static Local<Array> New(Isolate* isolate, int length = 0);
3791 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
3792 Local<Value> key);
3793 V8_WARN_UNUSED_RESULT MaybeLocal<Map> Set(Local<Context> context,
3794 Local<Value> key,
3795 Local<Value> value);
3796 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
3797 Local<Value> key);
3798 V8_WARN_UNUSED_RESULT Maybe<bool> Delete(Local<Context> context,
3799 Local<Value> key);
3805 Local<Array> AsArray() const;
3810 static Local<Map> New(Isolate* isolate);
3827 V8_WARN_UNUSED_RESULT MaybeLocal<Set> Add(Local<Context> context,
3828 Local<Value> key);
3829 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
3830 Local<Value> key);
3831 V8_WARN_UNUSED_RESULT Maybe<bool> Delete(Local<Context> context,
3832 Local<Value> key);
3837 Local<Array> AsArray() const;
3842 static Local<Set> New(Isolate* isolate);
3866 V8_INLINE void Set(const Local<S> handle);
3886 V8_INLINE Local<Value> Get() const;
3913 V8_INLINE Local<Value> operator[](int i) const;
3915 V8_INLINE Local<Object> This() const;
3926 V8_INLINE Local<Object> Holder() const;
3928 V8_INLINE Local<Value> NewTarget() const;
3932 V8_INLINE Local<Value> Data() const;
3976 V8_INLINE Local<Value> Data() const;
4019 V8_INLINE Local<Object> This() const;
4030 V8_INLINE Local<Object> Holder() const;
4085 Local<Context> context, FunctionCallback callback,
4086 Local<Value> data = Local<Value>(), int length = 0,
4091 Local<Function> New(Isolate* isolate, FunctionCallback callback,
4092 Local<Value> data = Local<Value>(), int length = 0));
4095 Local<Context> context, int argc, Local<Value> argv[]) const;
4098 Local<Context> context) const {
4108 Local<Context> context, int argc, Local<Value> argv[],
4112 Local<Value> Call(Local<Value> recv, int argc,
4113 Local<Value> argv[]));
4114 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
4115 Local<Value> recv, int argc,
4116 Local<Value> argv[]);
4118 void SetName(Local<String> name);
4119 Local<Value> GetName() const;
4127 Local<Value> GetInferredName() const;
4133 Local<Value> GetDebugName() const;
4139 Local<Value> GetDisplayName() const;
4161 Local<Value> GetBoundFunction() const;
4194 Local<Context> context);
4199 Local<Promise> GetPromise();
4205 V8_WARN_UNUSED_RESULT Maybe<bool> Resolve(Local<Context> context,
4206 Local<Value> value);
4208 V8_WARN_UNUSED_RESULT Maybe<bool> Reject(Local<Context> context,
4209 Local<Value> value);
4224 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Catch(Local<Context> context,
4225 Local<Function> handler);
4227 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Then(Local<Context> context,
4228 Local<Function> handler);
4240 Local<Value> Result();
4290 PropertyDescriptor(Local<Value> value);
4293 PropertyDescriptor(Local<Value> value, bool writable);
4296 PropertyDescriptor(Local<Value> get, Local<Value> set);
4300 Local<Value> value() const;
4303 Local<Value> get() const;
4305 Local<Value> set() const;
4335 Local<Value> GetTarget();
4336 Local<Value> GetHandler();
4343 static MaybeLocal<Proxy> New(Local<Context> context,
4344 Local<Object> local_target,
4345 Local<Object> local_handler);
4428 Local<String> GetWasmWireBytes());
4510 Local<Value> value);
4532 Local<Promise> GetPromise();
4691 static Local<ArrayBuffer> New(Isolate* isolate, size_t byte_length);
4702 static Local<ArrayBuffer> New(
4773 Local<ArrayBuffer> Buffer();
4843 static Local<Uint8Array> New(Local<ArrayBuffer> array_buffer,
4845 static Local<Uint8Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4860 static Local<Uint8ClampedArray> New(Local<ArrayBuffer> array_buffer,
4862 static Local<Uint8ClampedArray> New(
4863 Local<SharedArrayBuffer> shared_array_buffer, size_t byte_offset,
4877 static Local<Int8Array> New(Local<ArrayBuffer> array_buffer,
4879 static Local<Int8Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4894 static Local<Uint16Array> New(Local<ArrayBuffer> array_buffer,
4896 static Local<Uint16Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4911 static Local<Int16Array> New(Local<ArrayBuffer> array_buffer,
4913 static Local<Int16Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4928 static Local<Uint32Array> New(Local<ArrayBuffer> array_buffer,
4930 static Local<Uint32Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4945 static Local<Int32Array> New(Local<ArrayBuffer> array_buffer,
4947 static Local<Int32Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4962 static Local<Float32Array> New(Local<ArrayBuffer> array_buffer,
4964 static Local<Float32Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4979 static Local<Float64Array> New(Local<ArrayBuffer> array_buffer,
4981 static Local<Float64Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4995 static Local<BigInt64Array> New(Local<ArrayBuffer> array_buffer,
4997 static Local<BigInt64Array> New(Local<SharedArrayBuffer> shared_array_buffer,
5011 static Local<BigUint64Array> New(Local<ArrayBuffer> array_buffer,
5013 static Local<BigUint64Array> New(Local<SharedArrayBuffer> shared_array_buffer,
5027 static Local<DataView> New(Local<ArrayBuffer> array_buffer,
5029 static Local<DataView> New(Local<SharedArrayBuffer> shared_array_buffer,
5109 static Local<SharedArrayBuffer> New(Isolate* isolate, size_t byte_length);
5117 static Local<SharedArrayBuffer> New(
5171 Local<Value> New(Isolate* isolate, double time));
5172 static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context,
5207 static Local<Value> New(Isolate* isolate, double value);
5222 static Local<Value> New(Isolate* isolate, int64_t value);
5224 Local<BigInt> ValueOf() const;
5237 static Local<Value> New(Isolate* isolate, bool value);
5253 static Local<Value> New(Isolate* isolate, Local<String> value);
5255 Local<Value> New(Local<String> value));
5257 Local<String> ValueOf() const;
5271 static Local<Value> New(Isolate* isolate, Local<Symbol> value);
5273 Local<Symbol> ValueOf() const;
5311 static V8_WARN_UNUSED_RESULT MaybeLocal<RegExp> New(Local<Context> context,
5312 Local<String> pattern,
5319 Local<String> GetSource() const;
5339 static Local<External> New(Isolate* isolate, void* value);
5374 void Set(Local<Name> name, Local<Data> value,
5376 void SetPrivate(Local<Private> name, Local<Data> value,
5378 V8_INLINE void Set(Isolate* isolate, const char* name, Local<Data> value);
5381 Local<Name> name,
5382 Local<FunctionTemplate> getter = Local<FunctionTemplate>(),
5383 Local<FunctionTemplate> setter = Local<FunctionTemplate>(),
5415 Local<String> name, AccessorGetterCallback getter,
5418 Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
5419 Local<AccessorSignature> signature = Local<AccessorSignature>(),
5423 Local<Name> name, AccessorNameGetterCallback getter,
5426 Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
5427 Local<AccessorSignature> signature = Local<AccessorSignature>(),
5436 Local<Name> name, AccessorNameGetterCallback getter,
5437 Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
5444 void SetIntrinsicDataProperty(Local<Name> name, Intrinsic intrinsic,
5494 Local<Name> property, const PropertyCallbackInfo<Value>& info);
5518 Local<Name> property, Local<Value> value,
5543 Local<Name> property, const PropertyCallbackInfo<Integer>& info);
5567 Local<Name> property, const PropertyCallbackInfo<Boolean>& info);
5599 Local<Name> property, const PropertyDescriptor& desc,
5622 Local<Name> property, const PropertyCallbackInfo<Value>& info);
5636 Local<Value> value,
5691 typedef bool (*AccessCheckCallback)(Local<Context> accessing_context,
5692 Local<Object> accessed_object,
5693 Local<Value> data);
5798 static Local<FunctionTemplate> New(
5800 Local<Value> data = Local<Value>(),
5801 Local<Signature> signature = Local<Signature>(), int length = 0,
5812 static Local<FunctionTemplate> NewWithCache(
5814 Local<Private> cache_property, Local<Value> data = Local<Value>(),
5815 Local<Signature> signature = Local<Signature>(), int length = 0,
5819 V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction());
5821 Local<Context> context);
5838 FunctionCallback callback, Local<Value> data = Local<Value>(),
5845 Local<ObjectTemplate> InstanceTemplate();
5852 void Inherit(Local<FunctionTemplate> parent);
5858 Local<ObjectTemplate> PrototypeTemplate();
5866 void SetPrototypeProviderTemplate(Local<FunctionTemplate> prototype_provider);
5873 void SetClassName(Local<String> name);
5912 bool HasInstance(Local<Value> object);
5966 Local<Value> data = Local<Value>(),
5985 Local<Value> data = Local<Value>(),
6004 Local<Value> data = Local<Value>(),
6023 Local<Value> data;
6036 Local<Value> data = Local<Value>(),
6055 Local<Value> data = Local<Value>(),
6074 Local<Value> data = Local<Value>(),
6093 Local<Value> data;
6107 static Local<ObjectTemplate> New(
6109 Local<FunctionTemplate> constructor = Local<FunctionTemplate>());
6116 V8_DEPRECATE_SOON("Use maybe version", Local<Object> NewInstance());
6117 V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(Local<Context> context);
6149 Local<String> name, AccessorGetterCallback getter,
6150 AccessorSetterCallback setter = 0, Local<Value> data = Local<Value>(),
6152 Local<AccessorSignature> signature = Local<AccessorSignature>(),
6155 Local<Name> name, AccessorNameGetterCallback getter,
6156 AccessorNameSetterCallback setter = 0, Local<Value> data = Local<Value>(),
6158 Local<AccessorSignature> signature = Local<AccessorSignature>(),
6197 Local<Value> data = Local<Value>()) {
6221 Local<Value> data = Local<Value>());
6242 Local<Value> data = Local<Value>());
6254 Local<Value> data = Local<Value>());
6283 static Local<ObjectTemplate> New(internal::Isolate* isolate,
6284 Local<FunctionTemplate> constructor);
6299 static Local<Signature> New(
6301 Local<FunctionTemplate> receiver = Local<FunctionTemplate>());
6318 static Local<AccessorSignature> New(
6320 Local<FunctionTemplate> receiver = Local<FunctionTemplate>());
6360 virtual Local<FunctionTemplate> GetNativeFunctionTemplate(
6361 Isolate* isolate, Local<String> name) {
6362 return Local<FunctionTemplate>();
6394 V8_INLINE Local<Primitive> Undefined(Isolate* isolate);
6395 V8_INLINE Local<Primitive> Null(Isolate* isolate);
6396 V8_INLINE Local<Boolean> True(Isolate* isolate);
6397 V8_INLINE Local<Boolean> False(Isolate* isolate);
6496 typedef void (*MessageCallback)(Local<Message> message, Local<Value> data);
6508 static Local<Value> RangeError(Local<String> message);
6509 static Local<Value> ReferenceError(Local<String> message);
6510 static Local<Value> SyntaxError(Local<String> message);
6511 static Local<Value> TypeError(Local<String> message);
6512 static Local<Value> Error(Local<String> message);
6519 static Local<Message> CreateMessage(Isolate* isolate, Local<Value> exception);
6525 static Local<StackTrace> GetStackTrace(Local<Value> exception);
6565 Local<Context> context, Local<ScriptOrModule> referrer,
6566 Local<String> specifier);
6578 typedef void (*HostInitializeImportMetaObjectCallback)(Local<Context> context,
6579 Local<Module> module,
6580 Local<Object> meta);
6600 typedef void (*PromiseHook)(PromiseHookType type, Local<Promise> promise,
6601 Local<Value> parent);
6613 PromiseRejectMessage(Local<Promise> promise, PromiseRejectEvent event,
6614 Local<Value> value, Local<StackTrace> stack_trace)
6620 V8_INLINE Local<Promise> GetPromise() const { return promise_; }
6622 V8_INLINE Local<Value> GetValue() const { return value_; }
6625 Local<Promise> promise_;
6627 Local<Value> value_;
6628 Local<StackTrace> stack_trace_;
6690 typedef void (*FailedAccessCheckCallback)(Local<Object> target,
6692 Local<Value> data);
6700 typedef bool (*AllowCodeGenerationFromStringsCallback)(Local<Context> context,
6701 Local<String> source);
6706 typedef bool (*AllowWasmCodeGenerationCallback)(Local<Context> context,
6707 Local<String> source);
6717 typedef bool (*WasmThreadsEnabledCallback)(Local<Context> context);
6927 Local<UnboundScript> script;
7011 virtual void VisitExternalString(Local<String> string) {}
7185 typedef StartupData (*CallbackFunction)(Local<Object> holder, int index,
7202 typedef void (*CallbackFunction)(Local<Object> holder, int index,
7207 void (*callback)(Local<Object> holder, int index, StartupData payload,
7740 Local<Context> GetCurrentContext();
7743 Local<Context> GetEnteredContext();
7751 Local<Context> GetEnteredOrMicrotaskContext();
7757 Local<Context> GetIncumbentContext();
7765 Local<Value> ThrowException(Local<Value> exception);
7863 Local<SharedArrayBuffer> array_buffer,
8020 void EnqueueMicrotask(Local<Function> microtask);
8276 Local<Value> data = Local<Value>());
8291 Local<Value> data = Local<Value>());
8597 template <class T> friend class Local;
8654 void SetDefaultContext(Local<Context> context,
8666 size_t AddContext(Local<Context> context,
8674 size_t AddTemplate(Local<Template> template_obj);
8683 V8_INLINE size_t AddData(Local<Context> context, Local<T> object);
8692 V8_INLINE size_t AddData(Local<T> object);
8709 size_t AddData(Local<Context> context, internal::Object* object);
8877 Local<Value> ReThrow();
8885 Local<Value> Exception() const;
8892 Local<Context> context) const;
8901 Local<v8::Message> Message() const;
9019 Local<Object> Global();
9045 static Local<Context> New(
9096 Isolate* isolate, Local<ObjectTemplate> global_template,
9103 void SetSecurityToken(Local<Value> token);
9109 Local<Value> GetSecurityToken();
9143 V8_INLINE Local<Value> GetEmbedderData(int index);
9151 Local<Object> GetExtrasBindingObject();
9158 void SetEmbedderData(int index, Local<Value> value);
9201 void SetErrorMessageForCodeGenerationFromStrings(Local<String> message);
9217 explicit V8_INLINE Scope(Local<Context> context) : context_(context) {
9223 Local<Context> context_;
9237 explicit BackupIncumbentScope(Local<Context> backup_incumbent_context);
9243 Local<Context> backup_incumbent_context_;
9254 Local<Value> SlowGetEmbedderData(int index);
9581 Local<T> Local<T>::New(Isolate* isolate, Local<T> that) {
9586 Local<T> Local<T>::New(Isolate* isolate, const PersistentBase<T>& that) {
9592 Local<T> Local<T>::New(Isolate* isolate, T* that) {
9593 if (that == NULL) return Local<T>();
9596 return Local<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(
9603 void Eternal<T>::Set(Isolate* isolate, Local<S> handle) {
9610 Local<T> Eternal<T>::Get(Isolate* isolate) const {
9613 return Local<T>(val_);
9618 Local<T> MaybeLocal<T>::ToLocalChecked() {
9620 return Local<T>(val_);
9694 void PersistentBase<T>::Reset(Isolate* isolate, const Local<S>& other) {
9813 void ReturnValue<T>::Set(const Local<S> handle) {
9892 Local<Value> ReturnValue<T>::Get() const {
9895 return Local<Value>(*Undefined(GetIsolate()));
9896 return Local<Value>::New(GetIsolate(), reinterpret_cast<Value*>(value_));
9919 Local<Value> FunctionCallbackInfo<T>::operator[](int i) const {
9920 if (i < 0 || length_ <= i) return Local<Value>(*Undefined(GetIsolate()));
9921 return Local<Value>(reinterpret_cast<Value*>(values_ - i));
9926 Local<Object> FunctionCallbackInfo<T>::This() const {
9927 return Local<Object>(reinterpret_cast<Object*>(values_ + 1));
9932 Local<Object> FunctionCallbackInfo<T>::Holder() const {
9933 return Local<Object>(reinterpret_cast<Object*>(
9938 Local<Value> FunctionCallbackInfo<T>::NewTarget() const {
9939 return Local<Value>(
9944 Local<Value> FunctionCallbackInfo<T>::Data() const {
9945 return Local<Value>(reinterpret_cast<Value*>(&implicit_args_[kDataIndex]));
9972 ScriptOrigin::ScriptOrigin(Local<Value> resource_name,
9973 Local<Integer> resource_line_offset,
9974 Local<Integer> resource_column_offset,
9975 Local<Boolean> resource_is_shared_cross_origin,
9976 Local<Integer> script_id,
9977 Local<Value> source_map_url,
9978 Local<Boolean> resource_is_opaque,
9979 Local<Boolean> is_wasm, Local<Boolean> is_module,
9980 Local<PrimitiveArray> host_defined_options)
9993 Local<Value> ScriptOrigin::ResourceName() const { return resource_name_; }
9995 Local<PrimitiveArray> ScriptOrigin::HostDefinedOptions() const {
9999 Local<Integer> ScriptOrigin::ResourceLineOffset() const {
10004 Local<Integer> ScriptOrigin::ResourceColumnOffset() const {
10009 Local<Integer> ScriptOrigin::ScriptID() const { return script_id_; }
10012 Local<Value> ScriptOrigin::SourceMapUrl() const { return source_map_url_; }
10014 ScriptCompiler::Source::Source(Local<String> string, const ScriptOrigin& origin,
10025 ScriptCompiler::Source::Source(Local<String> string,
10044 Local<Boolean> Boolean::New(Isolate* isolate, bool value) {
10048 void Template::Set(Isolate* isolate, const char* name, Local<Data> value) {
10082 Local<Value> Object::GetInternalField(int index) {
10097 return Local<Value>(reinterpret_cast<Value*>(result));
10130 Local<String> String::Empty(Isolate* isolate) {
10135 return Local<String>(reinterpret_cast<String*>(slot));
10254 Local<Boolean> Value::ToBoolean() const {
10256 .FromMaybe(Local<Boolean>());
10259 Local<String> Value::ToString() const {
10261 .FromMaybe(Local<String>());
10264 Local<Object> Value::ToObject() const {
10266 .FromMaybe(Local<Object>());
10269 Local<Integer> Value::ToInteger() const {
10271 .FromMaybe(Local<Integer>());
10608 Local<Value> PropertyCallbackInfo<T>::Data() const {
10609 return Local<Value>(reinterpret_cast<Value*>(&args_[kDataIndex]));
10614 Local<Object> PropertyCallbackInfo<T>::This() const {
10615 return Local<Object>(reinterpret_cast<Object*>(&args_[kThisIndex]));
10620 Local<Object> PropertyCallbackInfo<T>::Holder() const {
10621 return Local<Object>(reinterpret_cast<Object*>(&args_[kHolderIndex]));
10637 Local<Primitive> Undefined(Isolate* isolate) {
10642 return Local<Primitive>(reinterpret_cast<Primitive*>(slot));
10646 Local<Primitive> Null(Isolate* isolate) {
10651 return Local<Primitive>(reinterpret_cast<Primitive*>(slot));
10655 Local<Boolean> True(Isolate* isolate) {
10660 return Local<Boolean>(reinterpret_cast<Boolean*>(slot));
10664 Local<Boolean> False(Isolate* isolate) {
10669 return Local<Boolean>(reinterpret_cast<Boolean*>(slot));
10694 return Local<T>(data);
10731 Local<Value> Context::GetEmbedderData(int index) {
10738 return Local<Value>(reinterpret_cast<Value*>(result));
10758 return Local<T>(data);
10762 size_t SnapshotCreator::AddData(Local<Context> context, Local<T> object) {
10769 size_t SnapshotCreator::AddData(Local<T> object) {