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()
997 Local<Value> resource_name,
998 Local<Integer> resource_line_offset = Local<Integer>(),
999 Local<Integer> resource_column_offset = Local<Integer>(),
1000 Local<Boolean> resource_is_shared_cross_origin = Local<Boolean>(),
1001 Local<Integer> script_id = Local<Integer>(),
1002 Local<Boolean> resource_is_embedder_debug_script = Local<Boolean>(),
1003 Local<Value> source_map_url = Local<Value>(),
1004 Local<Boolean> resource_is_opaque = Local<Boolean>());
1005 V8_INLINE Local<Value> ResourceName() const;
1006 V8_INLINE Local<Integer> ResourceLineOffset() const;
1007 V8_INLINE Local<Integer> ResourceColumnOffset() const;
1011 V8_INLINE Local<Integer> ScriptID() const;
1012 V8_INLINE Local<Value> SourceMapUrl() const;
1016 Local<Value> resource_name_;
1017 Local<Integer> resource_line_offset_;
1018 Local<Integer> resource_column_offset_;
1020 Local<Integer> script_id_;
1021 Local<Value> source_map_url_;
1033 Local<Script> BindToCurrentContext();
1036 Local<Value> GetScriptName();
1041 Local<Value> GetSourceURL();
1045 Local<Value> GetSourceMappingURL();
1073 Local<String> GetModuleRequest(int i) const;
1080 typedef MaybeLocal<Module> (*ResolveCallback)(Local<Context> context,
1081 Local<String> specifier,
1082 Local<Module> referrer);
1089 V8_WARN_UNUSED_RESULT bool Instantiate(Local<Context> context,
1095 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Evaluate(Local<Context> context);
1109 Local<Script> Compile(Local<String> source,
1112 Local<Context> context, Local<String> source,
1115 static Local<Script> V8_DEPRECATE_SOON("Use maybe version",
1116 Compile(Local<String> source,
1117 Local<String> file_name));
1124 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Run());
1125 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Run(Local<Context> context);
1130 Local<UnboundScript> GetUnboundScript();
1183 V8_INLINE Source(Local<String> source_string, const ScriptOrigin& origin,
1185 V8_INLINE Source(Local<String> source_string,
1201 Local<String> source_string;
1204 Local<Value> resource_name;
1205 Local<Integer> resource_line_offset;
1206 Local<Integer> resource_column_offset;
1208 Local<Value> source_map_url;
1322 Local<UnboundScript> CompileUnbound(
1342 Local<Script> Compile(Isolate* isolate, Source* source,
1345 Local<Context> context, Source* source,
1371 Local<Script> Compile(Isolate* isolate,
1373 Local<String> full_source_string,
1376 Local<Context> context, StreamedSource* source,
1377 Local<String> full_source_string, const ScriptOrigin& origin);
1423 Local<Function> CompileFunctionInContext(
1425 Local<Context> context, size_t arguments_count,
1426 Local<String> arguments[],
1428 Local<Object> context_extensions[]));
1430 Local<Context> context, Source* source, size_t arguments_count,
1431 Local<String> arguments[], size_t context_extension_count,
1432 Local<Object> context_extensions[]);
1445 Local<String> Get() const;
1447 V8_DEPRECATE_SOON("Use maybe version", Local<String> GetSourceLine() const);
1449 Local<Context> context) const;
1461 Local<Value> GetScriptResourceName() const;
1468 Local<StackTrace> GetStackTrace() const;
1474 V8_WARN_UNUSED_RESULT Maybe<int> GetLineNumber(Local<Context> context) const;
1493 V8_WARN_UNUSED_RESULT Maybe<int> GetStartColumn(Local<Context> context) const;
1500 V8_WARN_UNUSED_RESULT Maybe<int> GetEndColumn(Local<Context> context) const;
1546 Local<StackFrame> GetFrame(uint32_t index) const;
1556 Local<Array> AsArray();
1565 static Local<StackTrace> CurrentStackTrace(
1606 Local<String> GetScriptName() const;
1614 Local<String> GetScriptNameOrSourceURL() const;
1619 Local<String> GetFunctionName() const;
1668 Local<Value> Parse(Local<String> json_string));
1671 Local<String> json_string));
1673 Local<Context> context, Local<String> json_string);
1683 Local<Context> context, Local<Object> json_object,
1684 Local<String> gap = Local<String>());
1706 virtual void ThrowDataCloneError(Local<String> message) = 0;
1713 virtual Maybe<bool> WriteHostObject(Isolate* isolate, Local<Object> object);
1741 V8_WARN_UNUSED_RESULT Maybe<bool> WriteValue(Local<Context> context,
1742 Local<Value> value);
1764 Local<ArrayBuffer> array_buffer);
1770 Local<SharedArrayBuffer> shared_array_buffer);
1821 V8_WARN_UNUSED_RESULT Maybe<bool> ReadHeader(Local<Context> context);
1826 V8_WARN_UNUSED_RESULT MaybeLocal<Value> ReadValue(Local<Context> context);
1833 Local<ArrayBuffer> array_buffer);
1840 Local<SharedArrayBuffer> shared_array_buffer);
1883 static Local<NativeWeakMap> New(Isolate* isolate);
1884 void Set(Local<Value> key, Local<Value> value);
1885 Local<Value> Get(Local<Value> key);
1886 bool Has(Local<Value> key);
1887 bool Delete(Local<Value> key);
2172 Local<Context> context) const;
2174 Local<Context> context) const;
2176 Local<Context> context) const;
2178 Local<Context> context) const;
2180 Local<Context> context) const;
2182 Local<Context> context) const;
2184 Local<Context> context) const;
2185 V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
2188 Local<Boolean> ToBoolean(Isolate* isolate) const);
2190 Local<Number> ToNumber(Isolate* isolate) const);
2192 Local<String> ToString(Isolate* isolate) const);
2194 Local<String> ToDetailString(Isolate* isolate) const);
2196 Local<Object> ToObject(Isolate* isolate) const);
2198 Local<Integer> ToInteger(Isolate* isolate) const);
2200 Local<Uint32> ToUint32(Isolate* isolate) const);
2202 Local<Int32> ToInt32(Isolate* isolate) const);
2205 Local<Boolean> ToBoolean() const);
2206 inline V8_DEPRECATED("Use maybe version", Local<Number> ToNumber() const);
2207 inline V8_DEPRECATE_SOON("Use maybe version", Local<String> ToString() const);
2209 Local<String> ToDetailString() const);
2210 inline V8_DEPRECATE_SOON("Use maybe version", Local<Object> ToObject() const);
2212 Local<Integer> ToInteger() const);
2213 inline V8_DEPRECATED("Use maybe version", Local<Uint32> ToUint32() const);
2214 inline V8_DEPRECATED("Use maybe version", Local<Int32> ToInt32() const);
2220 V8_DEPRECATED("Use maybe version", Local<Uint32> ToArrayIndex() const);
2222 Local<Context> context) const;
2224 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(Local<Context> context) const;
2225 V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
2227 Local<Context> context) const;
2229 Local<Context> context) const;
2230 V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2239 V8_DEPRECATE_SOON("Use maybe version", bool Equals(Local<Value> that) const);
2240 V8_WARN_UNUSED_RESULT Maybe<bool> Equals(Local<Context> context,
2241 Local<Value> that) const;
2242 bool StrictEquals(Local<Value> that) const;
2243 bool SameValue(Local<Value> that) const;
2247 Local<String> TypeOf(v8::Isolate*);
2273 V8_INLINE static Local<Boolean> New(Isolate* isolate, bool value);
2394 V8_INLINE static v8::Local<v8::String> Empty(Isolate* isolate);
2517 Local<String> NewFromUtf8(Isolate* isolate, const char* data,
2530 Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
2543 Local<String> NewFromTwoByte(Isolate* isolate, const uint16_t* data,
2557 static Local<String> Concat(Local<String> left, Local<String> right);
2568 Local<String> NewExternal(
2594 Local<String> NewExternal(Isolate* isolate,
2624 explicit Utf8Value(Local<v8::Value> obj);
2647 explicit Value(Local<v8::Value> obj);
2678 Local<Value> Name() const;
2681 static Local<Symbol> New(Isolate* isolate,
2682 Local<String> name = Local<String>());
2689 static Local<Symbol> For(Isolate *isolate, Local<String> name);
2693 static Local<Symbol> ForApi(Isolate *isolate, Local<String> name);
2696 static Local<Symbol> GetIterator(Isolate* isolate);
2697 static Local<Symbol> GetUnscopables(Isolate* isolate);
2698 static Local<Symbol> GetToStringTag(Isolate* isolate);
2699 static Local<Symbol> GetIsConcatSpreadable(Isolate* isolate);
2717 Local<Value> Name() const;
2720 static Local<Private> New(Isolate* isolate,
2721 Local<String> name = Local<String>());
2730 static Local<Private> ForApi(Isolate* isolate, Local<String> name);
2743 static Local<Number> New(Isolate* isolate, double value);
2756 static Local<Integer> New(Isolate* isolate, int32_t value);
2757 static Local<Integer> NewFromUnsigned(Isolate* isolate, uint32_t value);
2813 Local<String> property,
2816 Local<Name> property,
2821 Local<String> property,
2822 Local<Value> value,
2825 Local<Name> property,
2826 Local<Value> value,
2884 bool Set(Local<Value> key, Local<Value> value));
2885 V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
2886 Local<Value> key, Local<Value> value);
2889 bool Set(uint32_t index, Local<Value> value));
2890 V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
2891 Local<Value> value);
2900 V8_WARN_UNUSED_RESULT Maybe<bool> CreateDataProperty(Local<Context> context,
2901 Local<Name> key,
2902 Local<Value> value);
2903 V8_WARN_UNUSED_RESULT Maybe<bool> CreateDataProperty(Local<Context> context,
2905 Local<Value> value);
2914 Local<Context> context, Local<Name> key, Local<Value> value,
2931 Local<Context> context, Local<Name> key, PropertyDescriptor& descriptor);
2937 // locally, but since the interceptor takes precedence the local property
2942 bool ForceSet(Local<Value> key, Local<Value> value,
2945 Maybe<bool> ForceSet(Local<Context> context,
2946 Local<Value> key, Local<Value> value,
2949 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
2950 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2951 Local<Value> key);
2953 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index));
2954 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2963 PropertyAttribute GetPropertyAttributes(Local<Value> key));
2965 Local<Context> context, Local<Value> key);
2971 Local<Value> GetOwnPropertyDescriptor(Local<String> key));
2973 Local<Context> context, Local<String> key);
2975 V8_DEPRECATE_SOON("Use maybe version", bool Has(Local<Value> key));
2991 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
2992 Local<Value> key);
2994 V8_DEPRECATE_SOON("Use maybe version", bool Delete(Local<Value> key));
2996 Maybe<bool> Delete(Local<Context> context, Local<Value> key);
2999 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
3003 Maybe<bool> Delete(Local<Context> context, uint32_t index);
3006 bool SetAccessor(Local<String> name,
3009 Local<Value> data = Local<Value>(),
3013 bool SetAccessor(Local<Name> name,
3016 Local<Value> data = Local<Value>(),
3020 Maybe<bool> SetAccessor(Local<Context> context, Local<Name> name,
3027 void SetAccessorProperty(Local<Name> name, Local<Function> getter,
3028 Local<Function> setter = Local<Function>(),
3038 Maybe<bool> HasPrivate(Local<Context> context, Local<Private> key);
3039 Maybe<bool> SetPrivate(Local<Context> context, Local<Private> key,
3040 Local<Value> value);
3041 Maybe<bool> DeletePrivate(Local<Context> context, Local<Private> key);
3042 MaybeLocal<Value> GetPrivate(Local<Context> context, Local<Private> key);
3050 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetPropertyNames());
3052 Local<Context> context);
3054 Local<Context> context, KeyCollectionMode mode,
3062 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetOwnPropertyNames());
3064 Local<Context> context);
3073 Local<Context> context, PropertyFilter filter);
3080 Local<Value> GetPrototype();
3087 V8_DEPRECATED("Use maybe version", bool SetPrototype(Local<Value> prototype));
3088 V8_WARN_UNUSED_RESULT Maybe<bool> SetPrototype(Local<Context> context,
3089 Local<Value> prototype);
3095 Local<Object> FindInstanceInPrototypeChain(Local<FunctionTemplate> tmpl);
3102 V8_DEPRECATED("Use maybe version", Local<String> ObjectProtoToString());
3104 Local<Context> context);
3109 Local<String> GetConstructorName();
3114 Maybe<bool> SetIntegrityLevel(Local<Context> context, IntegrityLevel level);
3126 V8_INLINE Local<Value> GetInternalField(int index);
3129 void SetInternalField(int index, Local<Value> value);
3153 // Testers for local properties.
3154 V8_DEPRECATED("Use maybe version", bool HasOwnProperty(Local<String> key));
3161 V8_WARN_UNUSED_RESULT Maybe<bool> HasOwnProperty(Local<Context> context,
3162 Local<Name> key);
3163 V8_WARN_UNUSED_RESULT Maybe<bool> HasOwnProperty(Local<Context> context,
3166 bool HasRealNamedProperty(Local<String> key));
3180 V8_WARN_UNUSED_RESULT Maybe<bool> HasRealNamedProperty(Local<Context> context,
3181 Local<Name> key);
3185 Local<Context> context, uint32_t index);
3187 bool HasRealNamedCallbackProperty(Local<String> key));
3189 Local<Context> context, Local<Name> key);
3197 Local<Value> GetRealNamedPropertyInPrototypeChain(Local<String> key));
3199 Local<Context> context, Local<Name> key);
3209 Local<String> key));
3211 GetRealNamedPropertyAttributesInPrototypeChain(Local<Context> context,
3212 Local<Name> key);
3220 Local<Value> GetRealNamedProperty(Local<String> key));
3222 Local<Context> context, Local<Name> key);
3231 Local<String> key));
3233 Local<Context> context, Local<Name> key);
3255 Local<Object> Clone();
3260 Local<Context> CreationContext();
3263 V8_INLINE static Local<Context> CreationContext( in CreationContext()
3285 Local<Value> CallAsFunction(Local<Value> recv, int argc,
3286 Local<Value> argv[]));
3287 V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context,
3288 Local<Value> recv,
3290 Local<Value> argv[]);
3298 Local<Value> CallAsConstructor(int argc, Local<Value> argv[]));
3300 Local<Context> context, int argc, Local<Value> argv[]);
3307 static Local<Object> New(Isolate* isolate);
3314 Local<Value> SlowGetInternalField(int index);
3331 Local<Object> CloneElementAt(uint32_t index));
3333 MaybeLocal<Object> CloneElementAt(Local<Context> context,
3340 static Local<Array> New(Isolate* isolate, int length = 0);
3356 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
3357 Local<Value> key);
3358 V8_WARN_UNUSED_RESULT MaybeLocal<Map> Set(Local<Context> context,
3359 Local<Value> key,
3360 Local<Value> value);
3361 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
3362 Local<Value> key);
3363 V8_WARN_UNUSED_RESULT Maybe<bool> Delete(Local<Context> context,
3364 Local<Value> key);
3370 Local<Array> AsArray() const;
3375 static Local<Map> New(Isolate* isolate);
3392 V8_WARN_UNUSED_RESULT MaybeLocal<Set> Add(Local<Context> context,
3393 Local<Value> key);
3394 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
3395 Local<Value> key);
3396 V8_WARN_UNUSED_RESULT Maybe<bool> Delete(Local<Context> context,
3397 Local<Value> key);
3402 Local<Array> AsArray() const;
3407 static Local<Set> New(Isolate* isolate);
3424 // Local setters
3431 V8_INLINE void Set(const Local<S> handle);
3448 // Getter. Creates a new Local<> so it comes with a certain performance
3451 V8_INLINE Local<Value> Get() const;
3476 V8_INLINE Local<Value> operator[](int i) const;
3478 Local<Function> Callee() const);
3479 V8_INLINE Local<Object> This() const;
3480 V8_INLINE Local<Object> Holder() const;
3481 V8_INLINE Local<Value> NewTarget() const;
3483 V8_INLINE Local<Value> Data() const;
3526 V8_INLINE Local<Value> Data() const;
3535 * void GetterCallback(Local<Name> name,
3539 * v8::Local<v8::Value> a_this =
3543 * v8::Local<v8::Value> a_holder =
3554 * v8::Local<v8::FunctionTemplate> templ =
3560 * ->Set(env.local(), v8_str("obj"), templ->GetFunction(env.local())
3562 * ->NewInstance(env.local())
3569 V8_INLINE Local<Object> This() const;
3580 V8_INLINE Local<Object> Holder() const;
3635 Local<Context> context, FunctionCallback callback,
3636 Local<Value> data = Local<Value>(), int length = 0,
3640 Local<Function> New(Isolate* isolate, FunctionCallback callback,
3641 Local<Value> data = Local<Value>(), int length = 0));
3644 Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
3646 Local<Context> context, int argc, Local<Value> argv[]) const;
3648 V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
3650 Local<Context> context) const { in NewInstance()
3655 Local<Value> Call(Local<Value> recv, int argc,
3656 Local<Value> argv[]));
3657 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
3658 Local<Value> recv, int argc,
3659 Local<Value> argv[]);
3661 void SetName(Local<String> name);
3662 Local<Value> GetName() const;
3670 Local<Value> GetInferredName() const;
3676 Local<Value> GetDebugName() const;
3682 Local<Value> GetDisplayName() const;
3709 Local<Value> GetBoundFunction() const;
3733 Local<Resolver> New(Isolate* isolate));
3735 Local<Context> context);
3740 Local<Promise> GetPromise();
3746 V8_DEPRECATE_SOON("Use maybe version", void Resolve(Local<Value> value));
3748 Maybe<bool> Resolve(Local<Context> context, Local<Value> value);
3750 V8_DEPRECATE_SOON("Use maybe version", void Reject(Local<Value> value));
3752 Maybe<bool> Reject(Local<Context> context, Local<Value> value);
3768 Local<Promise> Catch(Local<Function> handler));
3769 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Catch(Local<Context> context,
3770 Local<Function> handler);
3773 Local<Promise> Then(Local<Function> handler));
3774 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Then(Local<Context> context,
3775 Local<Function> handler);
3805 * v8::PropertyDescriptor d(Local<Value>()), false);
3815 * v8::PropertyDescriptor d(v8::Undefined(isolate), Local<Value>()));
3824 PropertyDescriptor(Local<Value> value);
3827 PropertyDescriptor(Local<Value> value, bool writable);
3830 PropertyDescriptor(Local<Value> get, Local<Value> set);
3834 Local<Value> value() const;
3837 Local<Value> get() const;
3839 Local<Value> set() const;
3869 Local<Object> GetTarget();
3870 Local<Value> GetHandler();
3877 static MaybeLocal<Proxy> New(Local<Context> context,
3878 Local<Object> local_target,
3879 Local<Object> local_handler);
3894 Local<String> GetWasmWireBytes();
4014 static Local<ArrayBuffer> New(Isolate* isolate, size_t byte_length);
4022 static Local<ArrayBuffer> New(
4095 Local<ArrayBuffer> Buffer();
4160 static Local<Uint8Array> New(Local<ArrayBuffer> array_buffer,
4162 static Local<Uint8Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4178 static Local<Uint8ClampedArray> New(Local<ArrayBuffer> array_buffer,
4180 static Local<Uint8ClampedArray> New(
4181 Local<SharedArrayBuffer> shared_array_buffer, size_t byte_offset,
4196 static Local<Int8Array> New(Local<ArrayBuffer> array_buffer,
4198 static Local<Int8Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4214 static Local<Uint16Array> New(Local<ArrayBuffer> array_buffer,
4216 static Local<Uint16Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4232 static Local<Int16Array> New(Local<ArrayBuffer> array_buffer,
4234 static Local<Int16Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4250 static Local<Uint32Array> New(Local<ArrayBuffer> array_buffer,
4252 static Local<Uint32Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4268 static Local<Int32Array> New(Local<ArrayBuffer> array_buffer,
4270 static Local<Int32Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4286 static Local<Float32Array> New(Local<ArrayBuffer> array_buffer,
4288 static Local<Float32Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4304 static Local<Float64Array> New(Local<ArrayBuffer> array_buffer,
4306 static Local<Float64Array> New(Local<SharedArrayBuffer> shared_array_buffer,
4322 static Local<DataView> New(Local<ArrayBuffer> array_buffer,
4324 static Local<DataView> New(Local<SharedArrayBuffer> shared_array_buffer,
4377 static Local<SharedArrayBuffer> New(Isolate* isolate, size_t byte_length);
4385 static Local<SharedArrayBuffer> New(
4439 Local<Value> New(Isolate* isolate, double time));
4440 static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context,
4475 static Local<Value> New(Isolate* isolate, double value);
4491 static Local<Value> New(Isolate* isolate, bool value);
4492 V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
4508 static Local<Value> New(Local<String> value);
4510 Local<String> ValueOf() const;
4526 static Local<Value> New(Isolate* isolate, Local<Symbol> value);
4528 Local<Symbol> ValueOf() const;
4566 Local<RegExp> New(Local<String> pattern,
4568 static V8_WARN_UNUSED_RESULT MaybeLocal<RegExp> New(Local<Context> context,
4569 Local<String> pattern,
4576 Local<String> GetSource() const;
4596 static Local<External> New(Isolate* isolate, void* value);
4626 void Set(Local<Name> name, Local<Data> value,
4628 void SetPrivate(Local<Private> name, Local<Data> value,
4630 V8_INLINE void Set(Isolate* isolate, const char* name, Local<Data> value);
4633 Local<Name> name,
4634 Local<FunctionTemplate> getter = Local<FunctionTemplate>(),
4635 Local<FunctionTemplate> setter = Local<FunctionTemplate>(),
4667 Local<String> name, AccessorGetterCallback getter,
4669 // TODO(dcarney): gcc can't handle Local below
4670 Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
4671 Local<AccessorSignature> signature = Local<AccessorSignature>(),
4674 Local<Name> name, AccessorNameGetterCallback getter,
4676 // TODO(dcarney): gcc can't handle Local below
4677 Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
4678 Local<AccessorSignature> signature = Local<AccessorSignature>(),
4685 void SetLazyDataProperty(Local<Name> name, AccessorNameGetterCallback getter,
4686 Local<Value> data = Local<Value>(),
4693 void SetIntrinsicDataProperty(Local<Name> name, Intrinsic intrinsic,
4709 Local<String> property,
4718 Local<String> property,
4719 Local<Value> value,
4729 Local<String> property,
4739 Local<String> property,
4768 * Local<Name> name,
4773 * v8::Local<v8::FunctionTemplate> templ =
4779 * ->Set(env.local(), v8_str("obj"), templ->GetFunction(env.local())
4781 * ->NewInstance(env.local())
4784 * v8::Local<v8::Value> result = CompileRun("obj.a = 17; obj.a");
4785 * CHECK(v8_num(42)->Equals(env.local(), result).FromJust());
4791 Local<Name> property, const PropertyCallbackInfo<Value>& info);
4815 Local<Name> property, Local<Value> value,
4840 Local<Name> property, const PropertyCallbackInfo<Integer>& info);
4864 Local<Name> property, const PropertyCallbackInfo<Boolean>& info);
4895 Local<Name> property, const PropertyDescriptor& desc,
4918 Local<Name> property, const PropertyCallbackInfo<Value>& info);
4932 Local<Value> value,
4984 typedef bool (*AccessCheckCallback)(Local<Context> accessing_context,
4985 Local<Object> accessed_object,
4986 Local<Value> data);
5013 * v8::Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(isolate);
5016 * v8::Local<v8::Template> proto_t = t->PrototypeTemplate();
5022 * v8::Local<v8::ObjectTemplate> instance_t = t->InstanceTemplate();
5029 * v8::Local<v8::Function> function = t->GetFunction();
5030 * v8::Local<v8::Object> instance = function->NewInstance();
5070 * Local<FunctionTemplate> parent = t;
5071 * Local<FunctionTemplate> child = FunctionTemplate::New();
5074 * Local<Function> child_function = child->GetFunction();
5075 * Local<Object> child_instance = child_function->NewInstance();
5090 static Local<FunctionTemplate> New(
5092 Local<Value> data = Local<Value>(),
5093 Local<Signature> signature = Local<Signature>(), int length = 0,
5104 static Local<FunctionTemplate> NewWithFastHandler(
5107 Local<Value> data = Local<Value>(),
5108 Local<Signature> signature = Local<Signature>(), int length = 0);
5113 static Local<FunctionTemplate> NewWithCache(
5115 Local<Private> cache_property, Local<Value> data = Local<Value>(),
5116 Local<Signature> signature = Local<Signature>(), int length = 0);
5119 V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction());
5121 Local<Context> context);
5138 FunctionCallback callback, Local<Value> data = Local<Value>(),
5145 Local<ObjectTemplate> InstanceTemplate();
5148 void Inherit(Local<FunctionTemplate> parent);
5154 Local<ObjectTemplate> PrototypeTemplate();
5161 void SetClassName(Local<String> name);
5200 bool HasInstance(Local<Value> object);
5244 Local<Value> data = Local<Value>(),
5263 Local<Value> data = Local<Value>(),
5282 Local<Value> data;
5295 Local<Value> data = Local<Value>(),
5314 Local<Value> data = Local<Value>(),
5333 Local<Value> data;
5347 static Local<ObjectTemplate> New(
5349 Local<FunctionTemplate> constructor = Local<FunctionTemplate>());
5350 static V8_DEPRECATED("Use isolate version", Local<ObjectTemplate> New());
5357 V8_DEPRECATE_SOON("Use maybe version", Local<Object> NewInstance());
5358 V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(Local<Context> context);
5390 Local<String> name, AccessorGetterCallback getter,
5391 AccessorSetterCallback setter = 0, Local<Value> data = Local<Value>(),
5393 Local<AccessorSignature> signature = Local<AccessorSignature>());
5395 Local<Name> name, AccessorNameGetterCallback getter,
5396 AccessorNameSetterCallback setter = 0, Local<Value> data = Local<Value>(),
5398 Local<AccessorSignature> signature = Local<AccessorSignature>());
5428 Local<Value> data = Local<Value>());
5466 Local<Value> data = Local<Value>()) {
5490 Local<Value> data = Local<Value>());
5511 Local<Value> data = Local<Value>());
5523 Local<Value> data = Local<Value>());
5550 static Local<ObjectTemplate> New(internal::Isolate* isolate,
5551 Local<FunctionTemplate> constructor);
5561 static Local<Signature> New(
5563 Local<FunctionTemplate> receiver = Local<FunctionTemplate>());
5576 static Local<AccessorSignature> New(
5578 Local<FunctionTemplate> receiver = Local<FunctionTemplate>());
5614 virtual v8::Local<v8::FunctionTemplate> GetNativeFunctionTemplate( in GetNativeFunctionTemplate()
5615 v8::Isolate* isolate, v8::Local<v8::String> name) { in GetNativeFunctionTemplate()
5616 return v8::Local<v8::FunctionTemplate>(); in GetNativeFunctionTemplate()
5647 V8_INLINE Local<Primitive> Undefined(Isolate* isolate);
5648 V8_INLINE Local<Primitive> Null(Isolate* isolate);
5649 V8_INLINE Local<Boolean> True(Isolate* isolate);
5650 V8_INLINE Local<Boolean> False(Isolate* isolate);
5721 typedef void (*MessageCallback)(Local<Message> message, Local<Value> error);
5733 static Local<Value> RangeError(Local<String> message);
5734 static Local<Value> ReferenceError(Local<String> message);
5735 static Local<Value> SyntaxError(Local<String> message);
5736 static Local<Value> TypeError(Local<String> message);
5737 static Local<Value> Error(Local<String> message);
5744 static Local<Message> CreateMessage(Isolate* isolate, Local<Value> exception);
5746 static Local<Message> CreateMessage(Local<Value> exception));
5752 static Local<StackTrace> GetStackTrace(Local<Value> exception);
5798 PromiseRejectMessage(Local<Promise> promise, PromiseRejectEvent event, in PromiseRejectMessage()
5799 Local<Value> value, Local<StackTrace> stack_trace) in PromiseRejectMessage()
5805 V8_INLINE Local<Promise> GetPromise() const { return promise_; } in GetPromise()
5807 V8_INLINE Local<Value> GetValue() const { return value_; } in GetValue()
5810 V8_INLINE Local<StackTrace> GetStackTrace() const) {
5815 Local<Promise> promise_;
5817 Local<Value> value_;
5818 Local<StackTrace> stack_trace_;
5880 typedef void (*FailedAccessCheckCallback)(Local<Object> target,
5882 Local<Value> data);
5890 typedef bool (*AllowCodeGenerationFromStringsCallback)(Local<Context> context);
6066 Local<UnboundScript> script;
6148 virtual void VisitExternalString(Local<String> string) {} in VisitExternalString()
6254 typedef StartupData (*SerializeInternalFieldsCallback)(Local<Object> holder,
6260 typedef void (*DeserializeInternalFieldsCallback)(Local<Object> holder,
6354 * executed within a local scope.
6694 Local<Context> GetCurrentContext();
6704 Local<Context> GetCallingContext());
6707 Local<Context> GetEnteredContext();
6715 Local<Value> ThrowException(Local<Value> exception);
6905 void EnqueueMicrotask(Local<Function> microtask);
7103 Local<Value> data = Local<Value>());
7276 Local<Value> data = Local<Value>()));
7551 static Local<Value> GetEternal(Isolate* isolate, int index);
7562 template <class T> friend class Local; variable
7604 size_t AddContext(Local<Context> context);
7610 size_t AddTemplate(Local<Template> template_obj);
7761 Local<Value> ReThrow();
7769 Local<Value> Exception() const;
7775 V8_DEPRECATE_SOON("Use maybe version.", Local<Value> StackTrace() const);
7777 Local<Context> context) const;
7786 Local<v8::Message> Message() const;
7821 * 2) Address sanitizer allocates local C++ object in the heap when
7894 Local<Object> Global();
7920 static Local<Context> New(
7949 Isolate* isolate, Local<ObjectTemplate> global_template,
7956 void SetSecurityToken(Local<Value> token);
7962 Local<Value> GetSecurityToken();
7993 V8_INLINE Local<Value> GetEmbedderData(int index);
8001 Local<Object> GetExtrasBindingObject();
8008 void SetEmbedderData(int index, Local<Value> value);
8051 void SetErrorMessageForCodeGenerationFromStrings(Local<String> message);
8060 * operations executed within a local scope.
8064 explicit V8_INLINE Scope(Local<Context> context) : context_(context) { in Scope()
8070 Local<Context> context_;
8079 Local<Value> SlowGetEmbedderData(int index);
8461 Local<T> Local<T>::New(Isolate* isolate, Local<T> that) {
8466 Local<T> Local<T>::New(Isolate* isolate, const PersistentBase<T>& that) {
8472 Local<T> Local<T>::New(Isolate* isolate, T* that) {
8473 if (that == NULL) return Local<T>();
8476 return Local<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(
8483 void Eternal<T>::Set(Isolate* isolate, Local<S> handle) {
8490 Local<T> Eternal<T>::Get(Isolate* isolate) {
8491 return Local<T>(reinterpret_cast<T*>(*V8::GetEternal(isolate, index_)));
8496 Local<T> MaybeLocal<T>::ToLocalChecked() {
8498 return Local<T>(val_);
8574 void PersistentBase<T>::Reset(Isolate* isolate, const Local<S>& other) {
8688 void ReturnValue<T>::Set(const Local<S> handle) {
8767 Local<Value> ReturnValue<T>::Get() const {
8770 return Local<Value>(*Undefined(GetIsolate()));
8771 return Local<Value>::New(GetIsolate(), reinterpret_cast<Value*>(value_));
8794 Local<Value> FunctionCallbackInfo<T>::operator[](int i) const {
8795 if (i < 0 || length_ <= i) return Local<Value>(*Undefined(GetIsolate()));
8796 return Local<Value>(reinterpret_cast<Value*>(values_ - i));
8801 Local<Function> FunctionCallbackInfo<T>::Callee() const {
8802 return Local<Function>(reinterpret_cast<Function*>(
8808 Local<Object> FunctionCallbackInfo<T>::This() const {
8809 return Local<Object>(reinterpret_cast<Object*>(values_ + 1));
8814 Local<Object> FunctionCallbackInfo<T>::Holder() const {
8815 return Local<Object>(reinterpret_cast<Object*>(
8820 Local<Value> FunctionCallbackInfo<T>::NewTarget() const {
8821 return Local<Value>(
8826 Local<Value> FunctionCallbackInfo<T>::Data() const {
8827 return Local<Value>(reinterpret_cast<Value*>(&implicit_args_[kDataIndex]));
8854 ScriptOrigin::ScriptOrigin(Local<Value> resource_name,
8855 Local<Integer> resource_line_offset,
8856 Local<Integer> resource_column_offset,
8857 Local<Boolean> resource_is_shared_cross_origin,
8858 Local<Integer> script_id,
8859 Local<Boolean> resource_is_embedder_debug_script,
8860 Local<Value> source_map_url,
8861 Local<Boolean> resource_is_opaque)
8873 Local<Value> ScriptOrigin::ResourceName() const { return resource_name_; }
8876 Local<Integer> ScriptOrigin::ResourceLineOffset() const {
8881 Local<Integer> ScriptOrigin::ResourceColumnOffset() const {
8886 Local<Integer> ScriptOrigin::ScriptID() const { return script_id_; }
8889 Local<Value> ScriptOrigin::SourceMapUrl() const { return source_map_url_; }
8892 ScriptCompiler::Source::Source(Local<String> string, const ScriptOrigin& origin,
8903 ScriptCompiler::Source::Source(Local<String> string,
8919 Local<Boolean> Boolean::New(Isolate* isolate, bool value) {
8924 void Template::Set(Isolate* isolate, const char* name, v8::Local<Data> value) {
8931 Local<Value> Object::GetInternalField(int index) {
8945 return Local<Value>(reinterpret_cast<Value*>(result));
8977 Local<String> String::Empty(Isolate* isolate) {
8982 return Local<String>(reinterpret_cast<String*>(slot));
9082 Local<Boolean> Value::ToBoolean() const {
9084 .FromMaybe(Local<Boolean>());
9088 Local<Number> Value::ToNumber() const {
9090 .FromMaybe(Local<Number>());
9094 Local<String> Value::ToString() const {
9096 .FromMaybe(Local<String>());
9100 Local<String> Value::ToDetailString() const {
9102 .FromMaybe(Local<String>());
9106 Local<Object> Value::ToObject() const {
9108 .FromMaybe(Local<Object>());
9112 Local<Integer> Value::ToInteger() const {
9114 .FromMaybe(Local<Integer>());
9118 Local<Uint32> Value::ToUint32() const {
9120 .FromMaybe(Local<Uint32>());
9124 Local<Int32> Value::ToInt32() const {
9126 .FromMaybe(Local<Int32>());
9431 Local<Value> PropertyCallbackInfo<T>::Data() const {
9432 return Local<Value>(reinterpret_cast<Value*>(&args_[kDataIndex]));
9437 Local<Object> PropertyCallbackInfo<T>::This() const {
9438 return Local<Object>(reinterpret_cast<Object*>(&args_[kThisIndex]));
9443 Local<Object> PropertyCallbackInfo<T>::Holder() const {
9444 return Local<Object>(reinterpret_cast<Object*>(&args_[kHolderIndex]));
9460 Local<Primitive> Undefined(Isolate* isolate) {
9465 return Local<Primitive>(reinterpret_cast<Primitive*>(slot));
9469 Local<Primitive> Null(Isolate* isolate) {
9474 return Local<Primitive>(reinterpret_cast<Primitive*>(slot));
9478 Local<Boolean> True(Isolate* isolate) {
9483 return Local<Boolean>(reinterpret_cast<Boolean*>(slot));
9487 Local<Boolean> False(Isolate* isolate) {
9492 return Local<Boolean>(reinterpret_cast<Boolean*>(slot));
9557 Local<Value> Context::GetEmbedderData(int index) {
9565 return Local<Value>(reinterpret_cast<Value*>(result));
9595 bool V8::AddMessageListener(MessageCallback that, Local<Value> data) {