Home | History | Annotate | Download | only in include

Lines Matching refs:Local

101 template <class T> class Local;
183 * There are two types of handles: local and persistent handles.
184 * Local handles are light-weight and transient and typically used in
185 * local operations. They are managed by HandleScopes. Persistent
301 template<class F> friend class Local;
327 * that return objects from within v8 return them in local handles. They
328 * are created within HandleScopes, and all local handles allocated within a
330 * is not necessary to explicitly deallocate local handles.
332 template <class T> class Local : public Handle<T> {
334 V8_INLINE Local();
335 template <class S> V8_INLINE Local(Local<S> that)
346 template <class S> V8_INLINE static Local<T> Cast(Local<S> that) {
350 if (that.IsEmpty()) return Local<T>();
352 return Local<T>(T::Cast(*that));
354 template <class S> V8_INLINE Local(Handle<S> that)
359 template <class S> V8_INLINE Local<S> As() {
360 return Local<S>::Cast(*this);
364 * Create a local handle for the content of another handle.
365 * The referee is kept alive by the local handle even when
368 V8_INLINE static Local<T> New(Isolate* isolate, Handle<T> that);
369 V8_INLINE static Local<T> New(Isolate* isolate,
378 template<class F> friend class Local;
390 template <class S> V8_INLINE Local(S* that) : Handle<T>(that) { }
391 V8_INLINE static Local<T> New(Isolate* isolate, T* that);
400 V8_INLINE Eternal(Isolate* isolate, Local<S> handle) : index_(kInitialValue) {
404 V8_INLINE Local<T> Get(Isolate* isolate);
406 template<class S> V8_INLINE void Set(Isolate* isolate, Local<S> handle);
420 V8_INLINE Local<T> GetValue() const { return handle_; }
425 WeakCallbackData(Isolate* isolate, Local<T> handle, P* parameter)
428 Local<T> handle_;
435 * a Local handle only lives as long as the HandleScope in which it was
560 template<class F> friend class Local;
704 template<class F> friend class Local;
787 * A stack-allocated class that governs a number of local handles.
788 * After a handle scope has been created, all local handles will be
795 * After the handle scope of a local handle has been deleted the
839 // Local::New uses CreateHandle with an Isolate* parameter.
840 template<class F> friend class Local;
863 V8_INLINE Local<T> Escape(Local<T> value) {
866 return Local<T>(reinterpret_cast<T*>(slot));
944 Local<Script> BindToCurrentContext();
968 static Local<Script> Compile(Handle<String> source,
972 static Local<Script> Compile(Handle<String> source,
980 Local<Value> Run();
985 Local<UnboundScript> GetUnboundScript();
1039 V8_INLINE Source(Local<String> source_string, const ScriptOrigin& origin,
1041 V8_INLINE Source(Local<String> source_string,
1056 Local<String> source_string;
1082 static Local<UnboundScript> CompileUnbound(
1097 static Local<Script> Compile(
1108 Local<String> Get() const;
1109 Local<String> GetSourceLine() const;
1196 Local<StackFrame> GetFrame(uint32_t index) const;
1206 Local<Array> AsArray();
1215 static Local<StackTrace> CurrentStackTrace(
1256 Local<String> GetScriptName() const;
1264 Local<String> GetScriptNameOrSourceURL() const;
1269 Local<String> GetFunctionName() const;
1297 static Local<Value> Parse(Local<String> json_string);
1503 Local<Boolean> ToBoolean() const;
1504 Local<Number> ToNumber() const;
1505 Local<String> ToString() const;
1506 Local<String> ToDetailString() const;
1507 Local<Object> ToObject() const;
1508 Local<Integer> ToInteger() const;
1509 Local<Uint32> ToUint32() const;
1510 Local<Int32> ToInt32() const;
1516 Local<Uint32> ToArrayIndex() const;
1648 V8_INLINE static v8::Local<v8::String> Empty(Isolate* isolate);
1768 static Local<String> NewFromUtf8(Isolate* isolate,
1774 static Local<String> NewFromOneByte(
1781 static Local<String> NewFromTwoByte(
1791 static Local<String> Concat(Handle<String> left, Handle<String> right);
1801 static Local<String> NewExternal(Isolate* isolate,
1823 static Local<String> NewExternal(Isolate* isolate,
1903 Local<Value> Name() const;
1906 static Local<Symbol> New(
1907 Isolate *isolate, Local<String> name = Local<String>());
1914 static Local<Symbol> For(Isolate *isolate, Local<String> name);
1918 static Local<Symbol> ForApi(Isolate *isolate, Local<String> name);
1935 Local<Value> Name() const;
1938 static Local<Private> New(
1939 Isolate *isolate, Local<String> name = Local<String>());
1948 static Local<Private> ForApi(Isolate *isolate, Local<String> name);
1961 static Local<Number> New(Isolate* isolate, double value);
1974 static Local<Integer> New(Isolate* isolate, int32_t value);
1975 static Local<Integer> NewFromUnsigned(Isolate* isolate, uint32_t value);
2042 Local<String> property,
2047 Local<String> property,
2048 Local<Value> value,
2084 // locally, but since the interceptor takes precedence the local property
2092 Local<Value> Get(Handle<Value> key);
2094 Local<Value> Get(uint32_t index);
2123 bool SetDeclaredAccessor(Local<String> name,
2124 Local<DeclaredAccessorDescriptor> descriptor,
2128 void SetAccessorProperty(Local<String> name,
2129 Local<Function> getter,
2143 Local<Value> GetPrivate(Handle<Private> key);
2151 Local<Array> GetPropertyNames();
2158 Local<Array> GetOwnPropertyNames();
2165 Local<Value> GetPrototype();
2178 Local<Object> FindInstanceInPrototypeChain(Handle<FunctionTemplate> tmpl);
2185 Local<String> ObjectProtoToString();
2191 Local<Value> GetConstructor();
2196 Local<String> GetConstructorName();
2208 V8_INLINE Local<Value> GetInternalField(int index);
2233 // Testers for local properties.
2243 Local<Value> GetRealNamedPropertyInPrototypeChain(Handle<String> key);
2250 Local<Value> GetRealNamedProperty(Handle<String> key);
2281 Local<Value> GetHiddenValue(Handle<String> key);
2297 Local<Object> Clone();
2302 Local<Context> CreationContext();
2342 Local<Value> CallAsFunction(Handle<Value> recv,
2351 Local<Value> CallAsConstructor(int argc, Handle<Value> argv[]);
2353 static Local<Object> New(Isolate* isolate);
2360 Local<Value> SlowGetInternalField(int index);
2376 Local<Object> CloneElementAt(uint32_t index);
2382 static Local<Array> New(Isolate* isolate, int length = 0);
2439 V8_INLINE Local<Value> operator[](int i) const;
2440 V8_INLINE Local<Function> Callee() const;
2441 V8_INLINE Local<Object> This() const;
2442 V8_INLINE Local<Object> Holder() const;
2444 V8_INLINE Local<Value> Data() const;
2480 V8_INLINE Local<Value> Data() const;
2481 V8_INLINE Local<Object> This() const;
2482 V8_INLINE Local<Object> Holder() const;
2515 static Local<Function> New(Isolate* isolate,
2517 Local<Value> data = Local<Value>(),
2520 Local<Object> NewInstance() const;
2521 Local<Object> NewInstance(int argc, Handle<Value> argv[]) const;
2522 Local<Value> Call(Handle<Value> recv, int argc, Handle<Value> argv[]);
2565 Local<Value> GetBoundFunction() const;
2588 static Local<Resolver> New(Isolate* isolate);
2593 Local<Promise> GetPromise();
2615 Local<Promise> Chain(Handle<Function> handler);
2616 Local<Promise> Catch(Handle<Function> handler);
2617 Local<Promise> Then(Handle<Function> handler);
2703 static Local<ArrayBuffer> New(Isolate* isolate, size_t byte_length);
2711 static Local<ArrayBuffer> New(Isolate* isolate, void* data,
2766 Local<ArrayBuffer> Buffer();
2814 static Local<Uint8Array> New(Handle<ArrayBuffer> array_buffer,
2830 static Local<Uint8ClampedArray> New(Handle<ArrayBuffer> array_buffer,
2845 static Local<Int8Array> New(Handle<ArrayBuffer> array_buffer,
2861 static Local<Uint16Array> New(Handle<ArrayBuffer> array_buffer,
2877 static Local<Int16Array> New(Handle<ArrayBuffer> array_buffer,
2893 static Local<Uint32Array> New(Handle<ArrayBuffer> array_buffer,
2909 static Local<Int32Array> New(Handle<ArrayBuffer> array_buffer,
2925 static Local<Float32Array> New(Handle<ArrayBuffer> array_buffer,
2941 static Local<Float64Array> New(Handle<ArrayBuffer> array_buffer,
2957 static Local<DataView> New(Handle<ArrayBuffer> array_buffer,
2972 static Local<Value> New(Isolate* isolate, double time);
3006 static Local<Value> New(Isolate* isolate, double value);
3022 static Local<Value> New(bool value);
3038 static Local<Value> New(Handle<String> value);
3040 Local<String> ValueOf() const;
3056 static Local<Value> New(Isolate* isolate, Handle<Symbol> value);
3058 Local<Symbol> ValueOf() const;
3093 static Local<RegExp> New(Handle<String> pattern, Flags flags);
3099 Local<String> GetSource() const;
3119 static Local<External> New(Isolate* isolate, void* value);
3141 Local<String> name,
3142 Local<FunctionTemplate> getter = Local<FunctionTemplate>(),
3143 Local<FunctionTemplate> setter = Local<FunctionTemplate>(),
3174 void SetNativeDataProperty(Local<String> name,
3177 // TODO(dcarney): gcc can't handle Local below
3180 Local<AccessorSignature> signature =
3181 Local<AccessorSignature>(),
3185 bool SetDeclaredAccessor(Local<String> name,
3186 Local<DeclaredAccessorDescriptor> descriptor,
3188 Local<AccessorSignature> signature =
3189 Local<AccessorSignature>(),
3205 Local<String> property,
3214 Local<String> property,
3215 Local<Value> value,
3225 Local<String> property,
3235 Local<String> property,
3262 Local<Value> value,
3309 typedef bool (*NamedSecurityCallback)(Local<Object> host,
3310 Local<Value> key,
3312 Local<Value> data);
3319 typedef bool (*IndexedSecurityCallback)(Local<Object> host,
3322 Local<Value> data);
3347 * v8::Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New();
3350 * v8::Local<v8::Template> proto_t = t->PrototypeTemplate();
3354 * v8::Local<v8::ObjectTemplate> instance_t = t->InstanceTemplate();
3359 * v8::Local<v8::Function> function = t->GetFunction();
3360 * v8::Local<v8::Object> instance = function->NewInstance();
3400 * Local<FunctionTemplate> parent = t;
3401 * Local<FunctionTemplate> child = FunctionTemplate::New();
3404 * Local<Function> child_function = child->GetFunction();
3405 * Local<Object> child_instance = child_function->NewInstance();
3420 static Local<FunctionTemplate> New(
3428 Local<Function> GetFunction();
3442 Local<ObjectTemplate> InstanceTemplate();
3451 Local<ObjectTemplate> PrototypeTemplate();
3508 static Local<ObjectTemplate> New(Isolate* isolate);
3510 static Local<ObjectTemplate> New();
3513 Local<Object> NewInstance();
3651 static Local<ObjectTemplate> New(internal::Isolate* isolate,
3663 static Local<Signature> New(Isolate* isolate,
3680 static Local<AccessorSignature> New(Isolate* isolate,
3698 static Local<RawOperationDescriptor> NewInternalFieldDereference(
3717 Local<DeclaredAccessorDescriptor> NewHandleDereference(Isolate* isolate);
3718 Local<RawOperationDescriptor> NewRawDereference(Isolate* isolate);
3719 Local<RawOperationDescriptor> NewRawShift(Isolate* isolate,
3721 Local<DeclaredAccessorDescriptor> NewPointerCompare(Isolate* isolate,
3723 Local<DeclaredAccessorDescriptor> NewPrimitiveValue(
3727 Local<DeclaredAccessorDescriptor> NewBitmaskCompare8(Isolate* isolate,
3730 Local<DeclaredAccessorDescriptor> NewBitmaskCompare16(
3734 Local<DeclaredAccessorDescriptor> NewBitmaskCompare32(
3750 static Local<TypeSwitch> New(Handle<FunctionTemplate> type);
3751 static Local<TypeSwitch> New(int argc, Handle<FunctionTemplate> types[]);
3908 static Local<Value> RangeError(Handle<String> message);
3909 static Local<Value> ReferenceError(Handle<String> message);
3910 static Local<Value> SyntaxError(Handle<String> message);
3911 static Local<Value> TypeError(Handle<String> message);
3912 static Local<Value> Error(Handle<String> message);
3958 typedef void (*FailedAccessCheckCallback)(Local<Object> target,
3960 Local<Value> data);
3968 typedef bool (*AllowCodeGenerationFromStringsCallback)(Local<Context> context);
4040 * executed within a local scope.
4223 Local<Context> GetCurrentContext();
4230 Local<Context> GetCallingContext();
4233 Local<Context> GetEnteredContext();
4241 Local<Value> ThrowException(Local<Value> exception);
4976 static Local<Value> GetEternal(Isolate* isolate, int index);
4979 template <class T> friend class Local;
5048 Local<Value> Exception() const;
5054 Local<Value> StackTrace() const;
5063 Local<v8::Message> Message() const;
5097 * 2) Address sanitizer allocates local C++ object in the heap when
5173 Local<Object> Global();
5199 static Local<Context> New(
5247 V8_INLINE Local<Value> GetEmbedderData(int index);
5301 * operations executed within a local scope.
5320 Local<Value> SlowGetEmbedderData(int index);
5700 Local<T>::Local() : Handle<T>() { }
5704 Local<T> Local<T>::New(Isolate* isolate, Handle<T> that) {
5709 Local<T> Local<T>::New(Isolate* isolate, const PersistentBase<T>& that) {
5724 Local<T> Local<T>::New(Isolate* isolate, T* that) {
5725 if (that == NULL) return Local<T>();
5728 return Local<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(
5735 void Eternal<T>::Set(Isolate* isolate, Local<S> handle) {
5742 Local<T> Eternal<T>::Get(Isolate* isolate) {
5743 return Local<T>(reinterpret_cast<T*>(*V8::GetEternal(isolate, index_)));
6026 Local<Value> FunctionCallbackInfo<T>::operator[](int i) const {
6027 if (i < 0 || length_ <= i) return Local<Value>(*Undefined(GetIsolate()));
6028 return Local<Value>(reinterpret_cast<Value*>(values_ - i));
6033 Local<Function> FunctionCallbackInfo<T>::Callee() const {
6034 return Local<Function>(reinterpret_cast<Function*>(
6040 Local<Object> FunctionCallbackInfo<T>::This() const {
6041 return Local<Object>(reinterpret_cast<Object*>(values_ + 1));
6046 Local<Object> FunctionCallbackInfo<T>::Holder() const {
6047 return Local<Object>(reinterpret_cast<Object*>(
6053 Local<Value> FunctionCallbackInfo<T>::Data() const {
6054 return Local<Value>(reinterpret_cast<Value*>(&implicit_args_[kDataIndex]));
6101 ScriptCompiler::Source::Source(Local<String> string, const ScriptOrigin& origin,
6111 ScriptCompiler::Source::Source(Local<String> string,
6137 Local<Value> Object::GetInternalField(int index) {
6149 return Local<Value>(reinterpret_cast<Value*>(result));
6180 Local<String> String::Empty(Isolate* isolate) {
6185 return Local<String>(reinterpret_cast<String*>(slot));
6516 Local<Value> PropertyCallbackInfo<T>::Data() const {
6517 return Local<Value>(reinterpret_cast<Value*>(&args_[kDataIndex]));
6522 Local<Object> PropertyCallbackInfo<T>::This() const {
6523 return Local<Object>(reinterpret_cast<Object*>(&args_[kThisIndex]));
6528 Local<Object> PropertyCallbackInfo<T>::Holder() const {
6529 return Local<Object>(reinterpret_cast<Object*>(&args_[kHolderIndex]));
6642 Local<Value> Context::GetEmbedderData(int index) {
6650 return Local<Value>(reinterpret_cast<Value*>(result));