• Home
  • Raw
  • Download

Lines Matching refs:Local

111 template <class T> class Local;  variable
216 class Local {
218 V8_INLINE Local() : val_(0) {} in Local() function
220 V8_INLINE Local(Local<S> that) in Local() function
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 template <class S> V8_INLINE Local<S> As() { in As()
295 return Local<S>::Cast(*this); in As()
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);
333 V8_INLINE Local(S* that) in Local() function
335 V8_INLINE static Local<T> New(Isolate* isolate, T* that);
343 using Handle = Local<T>;
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);
460 WeakCallbackData(Isolate* isolate, P* parameter, Local<T> handle) in WeakCallbackData()
465 V8_INLINE Local<T> GetValue() const { return handle_; } in GetValue()
470 Local<T> handle_;
507 V8_INLINE void Reset(Isolate* isolate, const Local<S>& other);
519 V8_INLINE Local<T> Get(Isolate* isolate) const { in Get()
520 return Local<T>::New(isolate, *this); in Get()
533 V8_INLINE bool operator==(const Local<S>& that) const {
547 V8_INLINE bool operator!=(const Local<S>& that) const {
643 template<class F> friend class Local; variable
722 V8_INLINE Persistent(Isolate* isolate, Local<S> that) in Persistent()
786 template<class F> friend class Local; variable
815 V8_INLINE Global(Isolate* isolate, Local<S> that) in Global()
927 template<class F> friend class Local; variable
950 V8_INLINE Local<T> Escape(Local<T> value) { in Escape()
953 return Local<T>(reinterpret_cast<T*>(slot)); in Escape()
1038 Local<Value> resource_name,
1039 Local<Integer> resource_line_offset = Local<Integer>(),
1040 Local<Integer> resource_column_offset = Local<Integer>(),
1041 Local<Boolean> resource_is_shared_cross_origin = Local<Boolean>(),
1042 Local<Integer> script_id = Local<Integer>(),
1043 Local<Boolean> resource_is_embedder_debug_script = Local<Boolean>(),
1044 Local<Value> source_map_url = Local<Value>(),
1045 Local<Boolean> resource_is_opaque = Local<Boolean>());
1046 V8_INLINE Local<Value> ResourceName() const;
1047 V8_INLINE Local<Integer> ResourceLineOffset() const;
1048 V8_INLINE Local<Integer> ResourceColumnOffset() const;
1052 V8_INLINE Local<Integer> ScriptID() const;
1053 V8_INLINE Local<Value> SourceMapUrl() const;
1057 Local<Value> resource_name_;
1058 Local<Integer> resource_line_offset_;
1059 Local<Integer> resource_column_offset_;
1061 Local<Integer> script_id_;
1062 Local<Value> source_map_url_;
1074 Local<Script> BindToCurrentContext();
1077 Local<Value> GetScriptName();
1082 Local<Value> GetSourceURL();
1086 Local<Value> GetSourceMappingURL();
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();
1184 V8_INLINE Source(Local<String> source_string, const ScriptOrigin& origin,
1186 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);
1410 Local<Context> context, Source* source,
1424 Local<Function> CompileFunctionInContext(
1426 Local<Context> context, size_t arguments_count,
1427 Local<String> arguments[],
1429 Local<Object> context_extensions[]));
1431 Local<Context> context, Source* source, size_t arguments_count,
1432 Local<String> arguments[], size_t context_extension_count,
1433 Local<Object> context_extensions[]);
1446 Local<String> Get() const;
1448 V8_DEPRECATE_SOON("Use maybe version", Local<String> GetSourceLine() const);
1450 Local<Context> context) const;
1462 Local<Value> GetScriptResourceName() const;
1469 Local<StackTrace> GetStackTrace() const;
1475 V8_WARN_UNUSED_RESULT Maybe<int> GetLineNumber(Local<Context> context) const;
1494 V8_WARN_UNUSED_RESULT Maybe<int> GetStartColumn(Local<Context> context) const;
1501 V8_WARN_UNUSED_RESULT Maybe<int> GetEndColumn(Local<Context> context) const;
1547 Local<StackFrame> GetFrame(uint32_t index) const;
1557 Local<Array> AsArray();
1566 static Local<StackTrace> CurrentStackTrace(
1607 Local<String> GetScriptName() const;
1615 Local<String> GetScriptNameOrSourceURL() const;
1620 Local<String> GetFunctionName() const;
1670 Local<Value> Parse(Local<String> json_string));
1672 Isolate* isolate, Local<String> json_string);
1683 static Local<NativeWeakMap> New(Isolate* isolate);
1684 void Set(Local<Value> key, Local<Value> value);
1685 Local<Value> Get(Local<Value> key);
1686 bool Has(Local<Value> key);
1687 bool Delete(Local<Value> key);
1966 Local<Context> context) const;
1968 Local<Context> context) const;
1970 Local<Context> context) const;
1972 Local<Context> context) const;
1974 Local<Context> context) const;
1976 Local<Context> context) const;
1978 Local<Context> context) const;
1979 V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
1982 Local<Boolean> ToBoolean(Isolate* isolate) const);
1984 Local<Number> ToNumber(Isolate* isolate) const);
1986 Local<String> ToString(Isolate* isolate) const);
1988 Local<String> ToDetailString(Isolate* isolate) const);
1990 Local<Object> ToObject(Isolate* isolate) const);
1992 Local<Integer> ToInteger(Isolate* isolate) const);
1994 Local<Uint32> ToUint32(Isolate* isolate) const);
1996 Local<Int32> ToInt32(Isolate* isolate) const);
1999 Local<Boolean> ToBoolean() const);
2000 inline V8_DEPRECATED("Use maybe version", Local<Number> ToNumber() const);
2001 inline V8_DEPRECATE_SOON("Use maybe version", Local<String> ToString() const);
2003 Local<String> ToDetailString() const);
2004 inline V8_DEPRECATE_SOON("Use maybe version", Local<Object> ToObject() const);
2006 Local<Integer> ToInteger() const);
2007 inline V8_DEPRECATED("Use maybe version", Local<Uint32> ToUint32() const);
2008 inline V8_DEPRECATED("Use maybe version", Local<Int32> ToInt32() const);
2014 V8_DEPRECATED("Use maybe version", Local<Uint32> ToArrayIndex() const);
2016 Local<Context> context) const;
2018 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(Local<Context> context) const;
2019 V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
2021 Local<Context> context) const;
2023 Local<Context> context) const;
2024 V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2033 V8_DEPRECATE_SOON("Use maybe version", bool Equals(Local<Value> that) const);
2034 V8_WARN_UNUSED_RESULT Maybe<bool> Equals(Local<Context> context,
2035 Local<Value> that) const;
2036 bool StrictEquals(Local<Value> that) const;
2037 bool SameValue(Local<Value> that) const;
2065 V8_INLINE static Local<Boolean> New(Isolate* isolate, bool value);
2186 V8_INLINE static v8::Local<v8::String> Empty(Isolate* isolate);
2309 Local<String> NewFromUtf8(Isolate* isolate, const char* data,
2322 Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
2335 Local<String> NewFromTwoByte(Isolate* isolate, const uint16_t* data,
2349 static Local<String> Concat(Local<String> left, Local<String> right);
2360 Local<String> NewExternal(
2386 Local<String> NewExternal(Isolate* isolate,
2416 explicit Utf8Value(Local<v8::Value> obj);
2438 explicit Value(Local<v8::Value> obj);
2468 Local<Value> Name() const;
2471 static Local<Symbol> New(Isolate* isolate,
2472 Local<String> name = Local<String>());
2479 static Local<Symbol> For(Isolate *isolate, Local<String> name);
2483 static Local<Symbol> ForApi(Isolate *isolate, Local<String> name);
2486 static Local<Symbol> GetIterator(Isolate* isolate);
2487 static Local<Symbol> GetUnscopables(Isolate* isolate);
2488 static Local<Symbol> GetToStringTag(Isolate* isolate);
2489 static Local<Symbol> GetIsConcatSpreadable(Isolate* isolate);
2507 Local<Value> Name() const;
2510 static Local<Private> New(Isolate* isolate,
2511 Local<String> name = Local<String>());
2520 static Local<Private> ForApi(Isolate* isolate, Local<String> name);
2533 static Local<Number> New(Isolate* isolate, double value);
2546 static Local<Integer> New(Isolate* isolate, int32_t value);
2547 static Local<Integer> NewFromUnsigned(Isolate* isolate, uint32_t value);
2597 Local<String> property,
2600 Local<Name> property,
2605 Local<String> property,
2606 Local<Value> value,
2609 Local<Name> property,
2610 Local<Value> value,
2637 bool Set(Local<Value> key, Local<Value> value));
2638 V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
2639 Local<Value> key, Local<Value> value);
2642 bool Set(uint32_t index, Local<Value> value));
2643 V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
2644 Local<Value> value);
2653 V8_WARN_UNUSED_RESULT Maybe<bool> CreateDataProperty(Local<Context> context,
2654 Local<Name> key,
2655 Local<Value> value);
2656 V8_WARN_UNUSED_RESULT Maybe<bool> CreateDataProperty(Local<Context> context,
2658 Local<Value> value);
2667 Local<Context> context, Local<Name> key, Local<Value> value,
2679 bool ForceSet(Local<Value> key, Local<Value> value,
2682 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
2683 Local<Value> value,
2686 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
2687 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2688 Local<Value> key);
2690 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index));
2691 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2700 PropertyAttribute GetPropertyAttributes(Local<Value> key));
2702 Local<Context> context, Local<Value> key);
2708 Local<Value> GetOwnPropertyDescriptor(Local<String> key));
2710 Local<Context> context, Local<String> key);
2712 V8_DEPRECATE_SOON("Use maybe version", bool Has(Local<Value> key));
2713 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
2714 Local<Value> key);
2716 V8_DEPRECATE_SOON("Use maybe version", bool Delete(Local<Value> key));
2718 Maybe<bool> Delete(Local<Context> context, Local<Value> key);
2721 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
2725 Maybe<bool> Delete(Local<Context> context, uint32_t index);
2728 bool SetAccessor(Local<String> name,
2731 Local<Value> data = Local<Value>(),
2735 bool SetAccessor(Local<Name> name,
2738 Local<Value> data = Local<Value>(),
2742 Maybe<bool> SetAccessor(Local<Context> context, Local<Name> name,
2749 void SetAccessorProperty(Local<Name> name, Local<Function> getter,
2750 Local<Function> setter = Local<Function>(),
2760 Maybe<bool> HasPrivate(Local<Context> context, Local<Private> key);
2761 Maybe<bool> SetPrivate(Local<Context> context, Local<Private> key,
2762 Local<Value> value);
2763 Maybe<bool> DeletePrivate(Local<Context> context, Local<Private> key);
2764 MaybeLocal<Value> GetPrivate(Local<Context> context, Local<Private> key);
2772 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetPropertyNames());
2774 Local<Context> context);
2781 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetOwnPropertyNames());
2783 Local<Context> context);
2790 Local<Value> GetPrototype();
2797 V8_DEPRECATED("Use maybe version", bool SetPrototype(Local<Value> prototype));
2798 V8_WARN_UNUSED_RESULT Maybe<bool> SetPrototype(Local<Context> context,
2799 Local<Value> prototype);
2805 Local<Object> FindInstanceInPrototypeChain(Local<FunctionTemplate> tmpl);
2812 V8_DEPRECATED("Use maybe version", Local<String> ObjectProtoToString());
2814 Local<Context> context);
2819 Local<String> GetConstructorName();
2831 V8_INLINE Local<Value> GetInternalField(int index);
2834 void SetInternalField(int index, Local<Value> value);
2857 V8_DEPRECATED("Use maybe version", bool HasOwnProperty(Local<String> key));
2858 V8_WARN_UNUSED_RESULT Maybe<bool> HasOwnProperty(Local<Context> context,
2859 Local<Name> key);
2861 bool HasRealNamedProperty(Local<String> key));
2862 V8_WARN_UNUSED_RESULT Maybe<bool> HasRealNamedProperty(Local<Context> context,
2863 Local<Name> key);
2867 Local<Context> context, uint32_t index);
2869 bool HasRealNamedCallbackProperty(Local<String> key));
2871 Local<Context> context, Local<Name> key);
2879 Local<Value> GetRealNamedPropertyInPrototypeChain(Local<String> key));
2881 Local<Context> context, Local<Name> key);
2891 Local<String> key));
2893 GetRealNamedPropertyAttributesInPrototypeChain(Local<Context> context,
2894 Local<Name> key);
2902 Local<Value> GetRealNamedProperty(Local<String> key));
2904 Local<Context> context, Local<Name> key);
2913 Local<String> key));
2915 Local<Context> context, Local<Name> key);
2933 bool SetHiddenValue(Local<String> key, Local<Value> value));
2935 Local<Value> GetHiddenValue(Local<String> key));
2937 bool DeleteHiddenValue(Local<String> key));
2944 Local<Object> Clone();
2949 Local<Context> CreationContext();
2963 Local<Value> CallAsFunction(Local<Value> recv, int argc,
2964 Local<Value> argv[]));
2965 V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context,
2966 Local<Value> recv,
2968 Local<Value> argv[]);
2976 Local<Value> CallAsConstructor(int argc, Local<Value> argv[]));
2978 Local<Context> context, int argc, Local<Value> argv[]);
2985 static Local<Object> New(Isolate* isolate);
2992 Local<Value> SlowGetInternalField(int index);
3009 Local<Object> CloneElementAt(uint32_t index));
3011 MaybeLocal<Object> CloneElementAt(Local<Context> context,
3018 static Local<Array> New(Isolate* isolate, int length = 0);
3034 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
3035 Local<Value> key);
3036 V8_WARN_UNUSED_RESULT MaybeLocal<Map> Set(Local<Context> context,
3037 Local<Value> key,
3038 Local<Value> value);
3039 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
3040 Local<Value> key);
3041 V8_WARN_UNUSED_RESULT Maybe<bool> Delete(Local<Context> context,
3042 Local<Value> key);
3048 Local<Array> AsArray() const;
3053 static Local<Map> New(Isolate* isolate);
3070 V8_WARN_UNUSED_RESULT MaybeLocal<Set> Add(Local<Context> context,
3071 Local<Value> key);
3072 V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
3073 Local<Value> key);
3074 V8_WARN_UNUSED_RESULT Maybe<bool> Delete(Local<Context> context,
3075 Local<Value> key);
3080 Local<Array> AsArray() const;
3085 static Local<Set> New(Isolate* isolate);
3109 V8_INLINE void Set(const Local<S> handle);
3149 V8_INLINE Local<Value> operator[](int i) const;
3150 V8_INLINE Local<Function> Callee() const;
3151 V8_INLINE Local<Object> This() const;
3152 V8_INLINE Local<Object> Holder() const;
3154 V8_INLINE Local<Value> Data() const;
3190 V8_INLINE Local<Value> Data() const;
3191 V8_INLINE Local<Object> This() const;
3192 V8_INLINE Local<Object> Holder() const;
3225 static MaybeLocal<Function> New(Local<Context> context,
3227 Local<Value> data = Local<Value>(),
3231 Local<Function> New(Isolate* isolate, FunctionCallback callback,
3232 Local<Value> data = Local<Value>(), int length = 0));
3235 Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
3237 Local<Context> context, int argc, Local<Value> argv[]) const;
3239 V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
3241 Local<Context> context) const { in NewInstance()
3246 Local<Value> Call(Local<Value> recv, int argc,
3247 Local<Value> argv[]));
3248 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
3249 Local<Value> recv, int argc,
3250 Local<Value> argv[]);
3252 void SetName(Local<String> name);
3253 Local<Value> GetName() const;
3261 Local<Value> GetInferredName() const;
3267 Local<Value> GetDebugName() const;
3273 Local<Value> GetDisplayName() const;
3300 Local<Value> GetBoundFunction() const;
3324 Local<Resolver> New(Isolate* isolate));
3326 Local<Context> context);
3331 Local<Promise> GetPromise();
3337 V8_DEPRECATE_SOON("Use maybe version", void Resolve(Local<Value> value));
3339 Maybe<bool> Resolve(Local<Context> context, Local<Value> value);
3341 V8_DEPRECATE_SOON("Use maybe version", void Reject(Local<Value> value));
3343 Maybe<bool> Reject(Local<Context> context, Local<Value> value);
3359 Local<Promise> Chain(Local<Function> handler));
3362 Local<Context> context, Local<Function> handler));
3365 Local<Promise> Catch(Local<Function> handler));
3366 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Catch(Local<Context> context,
3367 Local<Function> handler);
3370 Local<Promise> Then(Local<Function> handler));
3371 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Then(Local<Context> context,
3372 Local<Function> handler);
3394 Local<Object> GetTarget();
3395 Local<Value> GetHandler();
3402 static MaybeLocal<Proxy> New(Local<Context> context,
3403 Local<Object> local_target,
3404 Local<Object> local_handler);
3494 static Local<ArrayBuffer> New(Isolate* isolate, size_t byte_length);
3502 static Local<ArrayBuffer> New(
3575 Local<ArrayBuffer> Buffer();
3640 static Local<Uint8Array> New(Local<ArrayBuffer> array_buffer,
3642 static Local<Uint8Array> New(Local<SharedArrayBuffer> shared_array_buffer,
3658 static Local<Uint8ClampedArray> New(Local<ArrayBuffer> array_buffer,
3660 static Local<Uint8ClampedArray> New(
3661 Local<SharedArrayBuffer> shared_array_buffer, size_t byte_offset,
3676 static Local<Int8Array> New(Local<ArrayBuffer> array_buffer,
3678 static Local<Int8Array> New(Local<SharedArrayBuffer> shared_array_buffer,
3694 static Local<Uint16Array> New(Local<ArrayBuffer> array_buffer,
3696 static Local<Uint16Array> New(Local<SharedArrayBuffer> shared_array_buffer,
3712 static Local<Int16Array> New(Local<ArrayBuffer> array_buffer,
3714 static Local<Int16Array> New(Local<SharedArrayBuffer> shared_array_buffer,
3730 static Local<Uint32Array> New(Local<ArrayBuffer> array_buffer,
3732 static Local<Uint32Array> New(Local<SharedArrayBuffer> shared_array_buffer,
3748 static Local<Int32Array> New(Local<ArrayBuffer> array_buffer,
3750 static Local<Int32Array> New(Local<SharedArrayBuffer> shared_array_buffer,
3766 static Local<Float32Array> New(Local<ArrayBuffer> array_buffer,
3768 static Local<Float32Array> New(Local<SharedArrayBuffer> shared_array_buffer,
3784 static Local<Float64Array> New(Local<ArrayBuffer> array_buffer,
3786 static Local<Float64Array> New(Local<SharedArrayBuffer> shared_array_buffer,
3802 static Local<DataView> New(Local<ArrayBuffer> array_buffer,
3804 static Local<DataView> New(Local<SharedArrayBuffer> shared_array_buffer,
3857 static Local<SharedArrayBuffer> New(Isolate* isolate, size_t byte_length);
3865 static Local<SharedArrayBuffer> New(
3919 Local<Value> New(Isolate* isolate, double time));
3920 static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context,
3955 static Local<Value> New(Isolate* isolate, double value);
3971 static Local<Value> New(Isolate* isolate, bool value);
3972 V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
3988 static Local<Value> New(Local<String> value);
3990 Local<String> ValueOf() const;
4006 static Local<Value> New(Isolate* isolate, Local<Symbol> value);
4008 Local<Symbol> ValueOf() const;
4046 Local<RegExp> New(Local<String> pattern,
4048 static V8_WARN_UNUSED_RESULT MaybeLocal<RegExp> New(Local<Context> context,
4049 Local<String> pattern,
4056 Local<String> GetSource() const;
4076 static Local<External> New(Isolate* isolate, void* value);
4102 void Set(Local<Name> name, Local<Data> value,
4104 V8_INLINE void Set(Isolate* isolate, const char* name, Local<Data> value);
4107 Local<Name> name,
4108 Local<FunctionTemplate> getter = Local<FunctionTemplate>(),
4109 Local<FunctionTemplate> setter = Local<FunctionTemplate>(),
4141 Local<String> name, AccessorGetterCallback getter,
4144 Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
4145 Local<AccessorSignature> signature = Local<AccessorSignature>(),
4148 Local<Name> name, AccessorNameGetterCallback getter,
4151 Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
4152 Local<AccessorSignature> signature = Local<AccessorSignature>(),
4159 void SetIntrinsicDataProperty(Local<Name> name, Intrinsic intrinsic,
4175 Local<String> property,
4184 Local<String> property,
4185 Local<Value> value,
4195 Local<String> property,
4205 Local<String> property,
4224 Local<Name> property, const PropertyCallbackInfo<Value>& info);
4232 Local<Name> property, Local<Value> value,
4242 Local<Name> property, const PropertyCallbackInfo<Integer>& info);
4251 Local<Name> property, const PropertyCallbackInfo<Boolean>& info);
4277 Local<Value> value,
4324 typedef bool (*AccessCheckCallback)(Local<Context> accessing_context,
4325 Local<Object> accessed_object);
4332 typedef bool (*NamedSecurityCallback)(Local<Object> host,
4333 Local<Value> key,
4335 Local<Value> data);
4342 typedef bool (*IndexedSecurityCallback)(Local<Object> host,
4345 Local<Value> data);
4446 static Local<FunctionTemplate> New(
4448 Local<Value> data = Local<Value>(),
4449 Local<Signature> signature = Local<Signature>(), int length = 0);
4455 static Local<FunctionTemplate> NewWithFastHandler(
4458 Local<Value> data = Local<Value>(),
4459 Local<Signature> signature = Local<Signature>(), int length = 0);
4462 V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction());
4464 Local<Context> context);
4472 FunctionCallback callback, Local<Value> data = Local<Value>(),
4479 Local<ObjectTemplate> InstanceTemplate();
4482 void Inherit(Local<FunctionTemplate> parent);
4488 Local<ObjectTemplate> PrototypeTemplate();
4495 void SetClassName(Local<String> name);
4534 bool HasInstance(Local<Value> object);
4564 Local<Value> data = Local<Value>(),
4579 Local<Value> data;
4592 Local<Value> data = Local<Value>(),
4607 Local<Value> data;
4621 static Local<ObjectTemplate> New(
4623 Local<FunctionTemplate> constructor = Local<FunctionTemplate>());
4624 static V8_DEPRECATED("Use isolate version", Local<ObjectTemplate> New());
4627 V8_DEPRECATE_SOON("Use maybe version", Local<Object> NewInstance());
4628 V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(Local<Context> context);
4660 Local<String> name, AccessorGetterCallback getter,
4661 AccessorSetterCallback setter = 0, Local<Value> data = Local<Value>(),
4663 Local<AccessorSignature> signature = Local<AccessorSignature>());
4665 Local<Name> name, AccessorNameGetterCallback getter,
4666 AccessorNameSetterCallback setter = 0, Local<Value> data = Local<Value>(),
4668 Local<AccessorSignature> signature = Local<AccessorSignature>());
4696 Local<Value> data = Local<Value>());
4723 Local<Value> data = Local<Value>()) {
4734 Local<Value> data = Local<Value>());
4755 Local<Value> data = Local<Value>());
4761 Local<Value> data = Local<Value>()));
4777 static Local<ObjectTemplate> New(internal::Isolate* isolate,
4778 Local<FunctionTemplate> constructor);
4788 static Local<Signature> New(
4790 Local<FunctionTemplate> receiver = Local<FunctionTemplate>());
4803 static Local<AccessorSignature> New(
4805 Local<FunctionTemplate> receiver = Local<FunctionTemplate>());
4841 virtual v8::Local<v8::FunctionTemplate> GetNativeFunctionTemplate( in GetNativeFunctionTemplate()
4842 v8::Isolate* isolate, v8::Local<v8::String> name) { in GetNativeFunctionTemplate()
4843 return v8::Local<v8::FunctionTemplate>(); in GetNativeFunctionTemplate()
4874 V8_INLINE Local<Primitive> Undefined(Isolate* isolate);
4875 V8_INLINE Local<Primitive> Null(Isolate* isolate);
4876 V8_INLINE Local<Boolean> True(Isolate* isolate);
4877 V8_INLINE Local<Boolean> False(Isolate* isolate);
4934 typedef void (*MessageCallback)(Local<Message> message, Local<Value> error);
4946 static Local<Value> RangeError(Local<String> message);
4947 static Local<Value> ReferenceError(Local<String> message);
4948 static Local<Value> SyntaxError(Local<String> message);
4949 static Local<Value> TypeError(Local<String> message);
4950 static Local<Value> Error(Local<String> message);
4957 static Local<Message> CreateMessage(Isolate* isolate, Local<Value> exception);
4959 static Local<Message> CreateMessage(Local<Value> exception));
4965 static Local<StackTrace> GetStackTrace(Local<Value> exception);
5013 PromiseRejectMessage(Local<Promise> promise, PromiseRejectEvent event, in PromiseRejectMessage()
5014 Local<Value> value, Local<StackTrace> stack_trace) in PromiseRejectMessage()
5020 V8_INLINE Local<Promise> GetPromise() const { return promise_; } in GetPromise()
5022 V8_INLINE Local<Value> GetValue() const { return value_; } in GetValue()
5025 V8_INLINE Local<StackTrace> GetStackTrace() const) {
5030 Local<Promise> promise_;
5032 Local<Value> value_;
5033 Local<StackTrace> stack_trace_;
5042 typedef void (*FailedAccessCheckCallback)(Local<Object> target,
5044 Local<Value> data);
5052 typedef bool (*AllowCodeGenerationFromStringsCallback)(Local<Context> context);
5198 Local<UnboundScript> script;
5258 virtual void VisitExternalString(Local<String> string) {} in VisitExternalString()
5641 Local<Context> GetCurrentContext();
5651 Local<Context> GetCallingContext());
5654 Local<Context> GetEnteredContext();
5662 Local<Value> ThrowException(Local<Value> exception);
5828 void EnqueueMicrotask(Local<Function> microtask);
5992 Local<Value> data = Local<Value>());
6160 Local<Value> data = Local<Value>()));
6437 static Local<Value> GetEternal(Isolate* isolate, int index);
6442 template <class T> friend class Local; variable
6577 Local<Value> ReThrow();
6585 Local<Value> Exception() const;
6591 V8_DEPRECATE_SOON("Use maybe version.", Local<Value> StackTrace() const);
6593 Local<Context> context) const;
6602 Local<v8::Message> Message() const;
6712 Local<Object> Global();
6738 static Local<Context> New(
6740 Local<ObjectTemplate> global_template = Local<ObjectTemplate>(),
6741 Local<Value> global_object = Local<Value>());
6747 void SetSecurityToken(Local<Value> token);
6753 Local<Value> GetSecurityToken();
6784 V8_INLINE Local<Value> GetEmbedderData(int index);
6792 Local<Object> GetExtrasBindingObject();
6799 void SetEmbedderData(int index, Local<Value> value);
6842 void SetErrorMessageForCodeGenerationFromStrings(Local<String> message);
6855 explicit V8_INLINE Scope(Local<Context> context) : context_(context) { in Scope()
6861 Local<Context> context_;
6870 Local<Value> SlowGetEmbedderData(int index);
7256 Local<T> Local<T>::New(Isolate* isolate, Local<T> that) {
7261 Local<T> Local<T>::New(Isolate* isolate, const PersistentBase<T>& that) {
7267 Local<T> Local<T>::New(Isolate* isolate, T* that) {
7268 if (that == NULL) return Local<T>();
7271 return Local<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(
7278 void Eternal<T>::Set(Isolate* isolate, Local<S> handle) {
7285 Local<T> Eternal<T>::Get(Isolate* isolate) {
7286 return Local<T>(reinterpret_cast<T*>(*V8::GetEternal(isolate, index_)));
7291 Local<T> MaybeLocal<T>::ToLocalChecked() {
7293 return Local<T>(val_);
7369 void PersistentBase<T>::Reset(Isolate* isolate, const Local<S>& other) {
7516 void ReturnValue<T>::Set(const Local<S> handle) {
7620 Local<Value> FunctionCallbackInfo<T>::operator[](int i) const {
7621 if (i < 0 || length_ <= i) return Local<Value>(*Undefined(GetIsolate()));
7622 return Local<Value>(reinterpret_cast<Value*>(values_ - i));
7627 Local<Function> FunctionCallbackInfo<T>::Callee() const {
7628 return Local<Function>(reinterpret_cast<Function*>(
7634 Local<Object> FunctionCallbackInfo<T>::This() const {
7635 return Local<Object>(reinterpret_cast<Object*>(values_ + 1));
7640 Local<Object> FunctionCallbackInfo<T>::Holder() const {
7641 return Local<Object>(reinterpret_cast<Object*>(
7647 Local<Value> FunctionCallbackInfo<T>::Data() const {
7648 return Local<Value>(reinterpret_cast<Value*>(&implicit_args_[kDataIndex]));
7675 ScriptOrigin::ScriptOrigin(Local<Value> resource_name,
7676 Local<Integer> resource_line_offset,
7677 Local<Integer> resource_column_offset,
7678 Local<Boolean> resource_is_shared_cross_origin,
7679 Local<Integer> script_id,
7680 Local<Boolean> resource_is_embedder_debug_script,
7681 Local<Value> source_map_url,
7682 Local<Boolean> resource_is_opaque)
7694 Local<Value> ScriptOrigin::ResourceName() const { return resource_name_; }
7697 Local<Integer> ScriptOrigin::ResourceLineOffset() const {
7702 Local<Integer> ScriptOrigin::ResourceColumnOffset() const {
7707 Local<Integer> ScriptOrigin::ScriptID() const { return script_id_; }
7710 Local<Value> ScriptOrigin::SourceMapUrl() const { return source_map_url_; }
7713 ScriptCompiler::Source::Source(Local<String> string, const ScriptOrigin& origin,
7724 ScriptCompiler::Source::Source(Local<String> string,
7740 Local<Boolean> Boolean::New(Isolate* isolate, bool value) {
7745 void Template::Set(Isolate* isolate, const char* name, v8::Local<Data> value) {
7752 Local<Value> Object::GetInternalField(int index) {
7764 return Local<Value>(reinterpret_cast<Value*>(result));
7795 Local<String> String::Empty(Isolate* isolate) {
7800 return Local<String>(reinterpret_cast<String*>(slot));
7900 Local<Boolean> Value::ToBoolean() const {
7902 .FromMaybe(Local<Boolean>());
7906 Local<Number> Value::ToNumber() const {
7908 .FromMaybe(Local<Number>());
7912 Local<String> Value::ToString() const {
7914 .FromMaybe(Local<String>());
7918 Local<String> Value::ToDetailString() const {
7920 .FromMaybe(Local<String>());
7924 Local<Object> Value::ToObject() const {
7926 .FromMaybe(Local<Object>());
7930 Local<Integer> Value::ToInteger() const {
7932 .FromMaybe(Local<Integer>());
7936 Local<Uint32> Value::ToUint32() const {
7938 .FromMaybe(Local<Uint32>());
7942 Local<Int32> Value::ToInt32() const {
7944 .FromMaybe(Local<Int32>());
8243 Local<Value> PropertyCallbackInfo<T>::Data() const {
8244 return Local<Value>(reinterpret_cast<Value*>(&args_[kDataIndex]));
8249 Local<Object> PropertyCallbackInfo<T>::This() const {
8250 return Local<Object>(reinterpret_cast<Object*>(&args_[kThisIndex]));
8255 Local<Object> PropertyCallbackInfo<T>::Holder() const {
8256 return Local<Object>(reinterpret_cast<Object*>(&args_[kHolderIndex]));
8266 Local<Primitive> Undefined(Isolate* isolate) {
8271 return Local<Primitive>(reinterpret_cast<Primitive*>(slot));
8275 Local<Primitive> Null(Isolate* isolate) {
8280 return Local<Primitive>(reinterpret_cast<Primitive*>(slot));
8284 Local<Boolean> True(Isolate* isolate) {
8289 return Local<Boolean>(reinterpret_cast<Boolean*>(slot));
8293 Local<Boolean> False(Isolate* isolate) {
8298 return Local<Boolean>(reinterpret_cast<Boolean*>(slot));
8368 Local<Value> Context::GetEmbedderData(int index) {
8376 return Local<Value>(reinterpret_cast<Value*>(result));
8406 bool V8::AddMessageListener(MessageCallback that, Local<Value> data) {