Home | History | Annotate | Download | only in include

Lines Matching defs:Local

102 template <class T> class Local;
185 * There are two types of handles: local and persistent handles.
186 * Local handles are light-weight and transient and typically used in
187 * local operations. They are managed by HandleScopes. Persistent
303 template<class F> friend class Local;
329 * that return objects from within v8 return them in local handles. They
330 * are created within HandleScopes, and all local handles allocated within a
332 * is not necessary to explicitly deallocate local handles.
334 template <class T> class Local : public Handle<T> {
336 V8_INLINE Local();
337 template <class S> V8_INLINE Local(Local<S> that)
348 template <class S> V8_INLINE static Local<T> Cast(Local<S> that) {
352 if (that.IsEmpty()) return Local<T>();
354 return Local<T>(T::Cast(*that));
356 template <class S> V8_INLINE Local(Handle<S> that)
361 template <class S> V8_INLINE Local<S> As() {
362 return Local<S>::Cast(*this);
366 * Create a local handle for the content of another handle.
367 * The referee is kept alive by the local handle even when
370 V8_INLINE static Local<T> New(Isolate* isolate, Handle<T> that);
371 V8_INLINE static Local<T> New(Isolate* isolate,
380 template<class F> friend class Local;
392 template <class S> V8_INLINE Local(S* that) : Handle<T>(that) { }
393 V8_INLINE static Local<T> New(Isolate* isolate, T* that);
402 V8_INLINE Eternal(Isolate* isolate, Local<S> handle) : index_(kInitialValue) {
406 V8_INLINE Local<T> Get(Isolate* isolate);
408 template<class S> V8_INLINE void Set(Isolate* isolate, Local<S> handle);
422 V8_INLINE Local<T> GetValue() const { return handle_; }
427 WeakCallbackData(Isolate* isolate, Local<T> handle, P* parameter)
430 Local<T> handle_;
437 * a Local handle only lives as long as the HandleScope in which it was
562 template<class F> friend class Local;
706 template<class F> friend class Local;
789 * A stack-allocated class that governs a number of local handles.
790 * After a handle scope has been created, all local handles will be
797 * After the handle scope of a local handle has been deleted the
841 // Local::New uses CreateHandle with an Isolate* parameter.
842 template<class F> friend class Local;
865 V8_INLINE Local<T> Escape(Local<T> value) {
868 return Local<T>(reinterpret_cast<T*>(slot));
957 Local<Script> BindToCurrentContext();
990 static Local<Script> Compile(Handle<String> source,
994 static Local<Script> Compile(Handle<String> source,
1002 Local<Value> Run();
1007 Local<UnboundScript> GetUnboundScript();
1061 Local<String> source_string, const ScriptOrigin& origin,
1063 V8_INLINE Source(Local<String> source_string,
1078 Local<String> source_string;
1183 static Local<UnboundScript> CompileUnbound(
1198 static Local<Script> Compile(
1224 static Local<Script> Compile(Isolate* isolate, StreamedSource* source,
1235 Local<String> Get() const;
1236 Local<String> GetSourceLine() const;
1329 Local<StackFrame> GetFrame(uint32_t index) const;
1339 Local<Array> AsArray();
1348 static Local<StackTrace> CurrentStackTrace(
1389 Local<String> GetScriptName() const;
1397 Local<String> GetScriptNameOrSourceURL() const;
1402 Local<String> GetFunctionName() const;
1430 static Local<Value> Parse(Local<String> json_string);
1671 Local<Boolean> ToBoolean() const;
1672 Local<Number> ToNumber() const;
1673 Local<String> ToString() const;
1674 Local<String> ToDetailString() const;
1675 Local<Object> ToObject() const;
1676 Local<Integer> ToInteger() const;
1677 Local<Uint32> ToUint32() const;
1678 Local<Int32> ToInt32() const;
1684 Local<Uint32> ToArrayIndex() const;
1828 V8_INLINE static v8::Local<v8::String> Empty(Isolate* isolate);
1955 static Local<String> NewFromUtf8(Isolate* isolate,
1961 static Local<String> NewFromOneByte(
1968 static Local<String> NewFromTwoByte(
1978 static Local<String> Concat(Handle<String> left, Handle<String> right);
1988 static Local<String> NewExternal(Isolate* isolate,
2010 static Local<String> NewExternal(Isolate* isolate,
2090 Local<Value> Name() const;
2093 static Local<Symbol> New(
2094 Isolate *isolate, Local<String> name = Local<String>());
2101 static Local<Symbol> For(Isolate *isolate, Local<String> name);
2105 static Local<Symbol> ForApi(Isolate *isolate, Local<String> name);
2108 static Local<Symbol> GetIterator(Isolate* isolate);
2109 static Local<Symbol> GetUnscopables(Isolate* isolate);
2127 Local<Value> Name() const;
2130 static Local<Private> New(
2131 Isolate *isolate, Local<String> name = Local<String>());
2140 static Local<Private> ForApi(Isolate *isolate, Local<String> name);
2153 static Local<Number> New(Isolate* isolate, double value);
2166 static Local<Integer> New(Isolate* isolate, int32_t value);
2167 static Local<Integer> NewFromUnsigned(Isolate* isolate, uint32_t value);
2234 Local<String> property,
2237 Local<Name> property,
2242 Local<String> property,
2243 Local<Value> value,
2246 Local<Name> property,
2247 Local<Value> value,
2281 // locally, but since the interceptor takes precedence the local property
2289 Local<Value> Get(Handle<Value> key);
2291 Local<Value> Get(uint32_t index);
2303 Local<Value> GetOwnPropertyDescriptor(Local<String> key);
2331 bool SetDeclaredAccessor(Local<Name> name,
2332 Local<DeclaredAccessorDescriptor> descriptor,
2336 void SetAccessorProperty(Local<Name> name,
2337 Local<Function> getter,
2351 Local<Value> GetPrivate(Handle<Private> key);
2359 Local<Array> GetPropertyNames();
2366 Local<Array> GetOwnPropertyNames();
2373 Local<Value> GetPrototype();
2386 Local<Object> FindInstanceInPrototypeChain(Handle<FunctionTemplate> tmpl);
2393 Local<String> ObjectProtoToString();
2398 Local<String> GetConstructorName();
2410 V8_INLINE Local<Value> GetInternalField(int index);
2435 // Testers for local properties.
2445 Local<Value> GetRealNamedPropertyInPrototypeChain(Handle<String> key);
2452 Local<Value> GetRealNamedProperty(Handle<String> key);
2483 Local<Value> GetHiddenValue(Handle<String> key);
2499 Local<Object> Clone();
2504 Local<Context> CreationContext();
2544 Local<Value> CallAsFunction(Handle<Value> recv,
2553 Local<Value> CallAsConstructor(int argc, Handle<Value> argv[]);
2555 static Local<Object> New(Isolate* isolate);
2562 Local<Value> SlowGetInternalField(int index);
2578 Local<Object> CloneElementAt(uint32_t index);
2584 static Local<Array> New(Isolate* isolate, int length = 0);
2641 V8_INLINE Local<Value> operator[](int i) const;
2642 V8_INLINE Local<Function> Callee() const;
2643 V8_INLINE Local<Object> This() const;
2644 V8_INLINE Local<Object> Holder() const;
2646 V8_INLINE Local<Value> Data() const;
2682 V8_INLINE Local<Value> Data() const;
2683 V8_INLINE Local<Object> This() const;
2684 V8_INLINE Local<Object> Holder() const;
2717 static Local<Function> New(Isolate* isolate,
2719 Local<Value> data = Local<Value>(),
2722 Local<Object> NewInstance() const;
2723 Local<Object> NewInstance(int argc, Handle<Value> argv[]) const;
2724 Local<Value> Call(Handle<Value> recv, int argc, Handle<Value> argv[]);
2767 Local<Value> GetBoundFunction() const;
2790 static Local<Resolver> New(Isolate* isolate);
2795 Local<Promise> GetPromise();
2817 Local<Promise> Chain(Handle<Function> handler);
2818 Local<Promise> Catch(Handle<Function> handler);
2819 Local<Promise> Then(Handle<Function> handler);
2905 static Local<ArrayBuffer> New(Isolate* isolate, size_t byte_length);
2913 static Local<ArrayBuffer> New(Isolate* isolate, void* data,
2968 Local<ArrayBuffer> Buffer();
3016 static Local<Uint8Array> New(Handle<ArrayBuffer> array_buffer,
3032 static Local<Uint8ClampedArray> New(Handle<ArrayBuffer> array_buffer,
3047 static Local<Int8Array> New(Handle<ArrayBuffer> array_buffer,
3063 static Local<Uint16Array> New(Handle<ArrayBuffer> array_buffer,
3079 static Local<Int16Array> New(Handle<ArrayBuffer> array_buffer,
3095 static Local<Uint32Array> New(Handle<ArrayBuffer> array_buffer,
3111 static Local<Int32Array> New(Handle<ArrayBuffer> array_buffer,
3127 static Local<Float32Array> New(Handle<ArrayBuffer> array_buffer,
3143 static Local<Float64Array> New(Handle<ArrayBuffer> array_buffer,
3159 static Local<DataView> New(Handle<ArrayBuffer> array_buffer,
3174 static Local<Value> New(Isolate* isolate, double time);
3208 static Local<Value> New(Isolate* isolate, double value);
3224 static Local<Value> New(bool value);
3240 static Local<Value> New(Handle<String> value);
3242 Local<String> ValueOf() const;
3258 static Local
3260 Local<Symbol> ValueOf() const;
3295 static Local<RegExp> New(Handle<String> pattern, Flags flags);
3301 Local<String> GetSource() const;
3321 static Local<External> New(Isolate* isolate, void* value);
3343 Local<Name> name,
3344 Local<FunctionTemplate> getter = Local<FunctionTemplate>(),
3345 Local<FunctionTemplate> setter = Local<FunctionTemplate>(),
3376 void SetNativeDataProperty(Local<String> name,
3379 // TODO(dcarney): gcc can't handle Local below
3382 Local<AccessorSignature> signature =
3383 Local<AccessorSignature>(),
3385 void SetNativeDataProperty(Local<Name> name,
3388 // TODO(dcarney): gcc can't handle Local below
3391 Local<AccessorSignature> signature =
3392 Local<AccessorSignature>(),
3396 bool SetDeclaredAccessor(Local<Name> name,
3397 Local<DeclaredAccessorDescriptor> descriptor,
3399 Local<AccessorSignature> signature =
3400 Local<AccessorSignature>(),
3416 Local<String> property,
3425 Local<String> property,
3426 Local<Value> value,
3436 Local<String> property,
3446 Local<String> property,
3473 Local<Value> value,
3520 typedef bool (*NamedSecurityCallback)(Local<Object> host,
3521 Local<Value> key,
3523 Local<Value> data);
3530 typedef bool (*IndexedSecurityCallback)(Local<Object> host,
3533 Local<Value> data);
3558 * v8::Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New();
3561 * v8::Local<v8::Template> proto_t = t->PrototypeTemplate();
3565 * v8::Local<v8::ObjectTemplate> instance_t = t->InstanceTemplate();
3570 * v8::Local<v8::Function> function = t->GetFunction();
3571 * v8::Local<v8::Object> instance = function->NewInstance();
3611 * Local<FunctionTemplate> parent = t;
3612 * Local<FunctionTemplate> child = FunctionTemplate::New();
3615 * Local<Function> child_function = child->GetFunction();
3616 * Local<Object> child_instance = child_function->NewInstance();
3631 static Local<FunctionTemplate> New(
3639 Local<Function> GetFunction();
3653 Local<ObjectTemplate> InstanceTemplate();
3662 Local<ObjectTemplate> PrototypeTemplate();
3719 static Local<ObjectTemplate> New(Isolate* isolate);
3721 static Local<ObjectTemplate> New();
3724 Local<Object> NewInstance();
3870 static Local<ObjectTemplate> New(internal::Isolate* isolate,
3882 static Local<Signature> New(Isolate* isolate,
3899 static Local<AccessorSignature> New(Isolate* isolate,
3917 static Local<RawOperationDescriptor> NewInternalFieldDereference(
3936 Local<DeclaredAccessorDescriptor> NewHandleDereference(Isolate* isolate);
3937 Local<RawOperationDescriptor> NewRawDereference(Isolate* isolate);
3938 Local<RawOperationDescriptor> NewRawShift(Isolate* isolate,
3940 Local<DeclaredAccessorDescriptor> NewPointerCompare(Isolate* isolate,
3942 Local<DeclaredAccessorDescriptor> NewPrimitiveValue(
3946 Local<DeclaredAccessorDescriptor> NewBitmaskCompare8(Isolate* isolate,
3949 Local<DeclaredAccessorDescriptor> NewBitmaskCompare16(
3953 Local<DeclaredAccessorDescriptor> NewBitmaskCompare32(
3969 static Local<TypeSwitch> New(Handle<FunctionTemplate> type);
3970 static Local<TypeSwitch> New(int argc, Handle<FunctionTemplate> types[]);
4120 static Local<Value> RangeError(Handle<String> message);
4121 static Local<Value> ReferenceError(Handle<String> message);
4122 static Local<Value> SyntaxError(Handle<String> message);
4123 static Local<Value> TypeError(Handle<String> message);
4124 static Local<Value> Error(Handle<String> message);
4170 typedef void (*FailedAccessCheckCallback)(Local<Object> target,
4172 Local<Value> data);
4180 typedef bool (*AllowCodeGenerationFromStringsCallback)(Local<Context> context);
4384 * executed within a local scope.
4583 Local<Context> GetCurrentContext();
4590 Local<Context> GetCallingContext();
4593 Local<Context> GetEnteredContext();
4601 Local<Value> ThrowException(Local<Value> exception);
5233 static Local<Value> GetEternal(Isolate* isolate, int index);
5236 template <class T> friend class Local;
5305 Local<Value> Exception() const;
5311 Local<Value> StackTrace() const;
5320 Local<v8::Message> Message() const;
5355 * 2) Address sanitizer allocates local C++ object in the heap when
5433 Local<Object> Global();
5459 static Local<Context> New(
5499 V8_INLINE Local<Value> GetEmbedderData(int index);
5553 * operations executed within a local scope.
5572 Local<Value> SlowGetEmbedderData(int index);
5959 Local<T>::Local() : Handle<T>() { }
5963 Local<T> Local<T>::New(Isolate* isolate, Handle<T> that) {
5968 Local<T> Local<T>::New(Isolate* isolate, const PersistentBase<T>& that) {
5983 Local<T> Local<T>::New(Isolate* isolate, T* that) {
5984 if (that == NULL) return Local<T>();
5987 return Local<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(
5994 void Eternal<T>::Set(Isolate* isolate, Local<S> handle) {
6001 Local<T> Eternal<T>::Get(Isolate* isolate) {
6002 return Local<T>(reinterpret_cast<T*>(*V8::GetEternal(isolate, index_)));
6285 Local<Value> FunctionCallbackInfo<T>::operator[](int i) const {
6286 if (i < 0 || length_ <= i) return Local<Value>(*Undefined(GetIsolate()));
6287 return Local<Value>(reinterpret_cast<Value*>(values_ - i));
6292 Local<Function> FunctionCallbackInfo<T>::Callee() const {
6293 return Local<Function>(reinterpret_cast<Function*>(
6299 Local<Object> FunctionCallbackInfo<T>::This() const {
6300 return Local<Object>(reinterpret_cast<Object*>(values_ + 1));
6305 Local<Object> FunctionCallbackInfo<T>::Holder() const {
6306 return Local<Object>(reinterpret_cast<Object*>(
6312 Local<Value> FunctionCallbackInfo<T>::Data() const {
6313 return Local<Value>(reinterpret_cast<Value*>(&implicit_args_[kDataIndex]));
6366 ScriptCompiler::Source::Source(Local<String> string, const ScriptOrigin& origin,
6376 ScriptCompiler::Source::Source(Local<String> string,
6402 Local<Value> Object::GetInternalField(int index) {
6414 return Local<Value>(reinterpret_cast<Value*>(result));
6445 Local<String> String::Empty(Isolate* isolate) {
6450 return Local<String>(reinterpret_cast<String*>(slot));
6789 Local<Value> PropertyCallbackInfo<T>::Data() const {
6790 return Local<Value>(reinterpret_cast<Value*>(&args_[kDataIndex]));
6795 Local<Object> PropertyCallbackInfo<T>::This() const {
6796 return Local<Object>(reinterpret_cast<Object*>(&args_[kThisIndex]));
6801 Local<Object> PropertyCallbackInfo<T>::Holder() const {
6802 return Local<Object>(reinterpret_cast<Object*>(&args_[kHolderIndex]));
6915 Local<Value> Context::GetEmbedderData(int index) {
6923 return Local<Value>(reinterpret_cast<Value*>(result));