Home | History | Annotate | Download | only in include

Lines Matching full:local

99 template <class T> class Local;
153 * There are two types of handles: local and persistent handles.
154 * Local handles are light-weight and transient and typically used in
155 * local operations. They are managed by HandleScopes. Persistent
257 * that return objects from within v8 return them in local handles. They
258 * are created within HandleScopes, and all local handles allocated within a
260 * is not necessary to explicitly deallocate local handles.
262 template <class T> class Local : public Handle<T> {
264 inline Local();
265 template <class S> inline Local(Local<S> that)
274 template <class S> inline Local(S* that) : Handle<T>(that) { }
275 template <class S> static inline Local<T> Cast(Local<S> that) {
279 if (that.IsEmpty()) return Local<T>();
281 return Local<T>(T::Cast(*that));
284 template <class S> inline Local<S> As() {
285 return Local<S>::Cast(*this);
288 /** Create a local handle for the content of another handle.
289 * The referee is kept alive by the local handle even when
292 inline static Local<T> New(Handle<T> that);
298 * a Local handle only lives as long as the HandleScope in which it was
366 * Creates a new persistent handle for an existing local or
413 * A stack-allocated class that governs a number of local handles.
414 * After a handle scope has been created, all local handles will be
421 * After the handle scope of a local handle has been deleted the
436 template <class T> Local<T> Close(Handle<T> value);
596 static Local<Script> New(Handle<String> source,
611 static Local<Script> New(Handle<String> source,
630 static Local<Script> Compile(Handle<String> source,
648 static Local<Script> Compile(Handle<String> source,
659 Local<Value> Run();
664 Local<Value> Id();
680 Local<String> Get() const;
681 Local<String> GetSourceLine() const;
765 Local<StackFrame> GetFrame(uint32_t index) const;
775 Local<Array> AsArray();
784 static Local<StackTrace> CurrentStackTrace(
816 Local<String> GetScriptName() const;
823 Local<String> GetScriptNameOrSourceURL() const;
828 Local<String> GetFunctionName() const;
931 V8EXPORT Local<Boolean> ToBoolean() const;
932 V8EXPORT Local<Number> ToNumber() const;
933 V8EXPORT Local<String> ToString() const;
934 V8EXPORT Local<String> ToDetailString() const;
935 V8EXPORT Local<Object> ToObject() const;
936 V8EXPORT Local<Integer> ToInteger() const;
937 V8EXPORT Local<Uint32> ToUint32() const;
938 V8EXPORT Local<Int32> ToInt32() const;
944 V8EXPORT Local<Uint32> ToArrayIndex() const;
1042 V8EXPORT static v8::Local<v8::String> Empty();
1156 V8EXPORT static Local<String> New(const char* data, int length = -1);
1159 V8EXPORT static Local<String> New(const uint16_t* data, int length = -1);
1162 V8EXPORT static Local<String> NewSymbol(const char* data, int length = -1);
1168 V8EXPORT static Local<String> Concat(Handle<String> left,
1179 V8EXPORT static Local<String> NewExternal(ExternalStringResource* resource);
1200 V8EXPORT static Local<String> NewExternal(
1220 V8EXPORT static Local<String> NewUndetectable(const char* data,
1224 V8EXPORT static Local<String> NewUndetectable(const uint16_t* data,
1307 V8EXPORT static Local<Number> New(double value);
1320 V8EXPORT static Local<Integer> New(int32_t value);
1321 V8EXPORT static Local<Integer> NewFromUnsigned(uint32_t value);
1357 V8EXPORT static Local<Value> New(double time);
1412 V8EXPORT static Local<RegExp> New(Handle<String> pattern,
1419 V8EXPORT Local<String> GetSource() const;
1456 typedef Handle<Value> (*AccessorGetter)(Local<String> property,
1460 typedef void (*AccessorSetter)(Local<String> property,
1461 Local<Value> value,
1498 // Sets a local property on this object bypassing interceptors and
1502 // locally, but since the interceptor takes precedence the local property
1510 V8EXPORT Local<Value> Get(Handle<Value> key);
1512 V8EXPORT Local<Value> Get(uint32_t index);
1541 V8EXPORT Local<Array> GetPropertyNames();
1548 V8EXPORT Local<Value> GetPrototype();
1561 V8EXPORT Local<Object> FindInstanceInPrototypeChain(
1569 V8EXPORT Local<String> ObjectProtoToString();
1574 V8EXPORT Local<String> GetConstructorName();
1579 inline Local<Value> GetInternalField(int index);
1589 // Testers for local properties.
1598 V8EXPORT Local<Value> GetRealNamedPropertyInPrototypeChain(
1606 V8EXPORT Local<Value> GetRealNamedProperty(Handle<String> key);
1637 V8EXPORT Local<Value> GetHiddenValue(Handle<String> key);
1653 V8EXPORT Local<Object> Clone();
1658 V8EXPORT Local<Context> CreationContext();
1688 V8EXPORT static Local<Object> New();
1693 V8EXPORT Local<Value> CheckedGetInternalField(int index);
1700 inline Local<Value> UncheckedGetInternalField(int index);
1715 V8EXPORT Local<Object> CloneElementAt(uint32_t index);
1721 V8EXPORT static Local<Array> New(int length = 0);
1735 V8EXPORT Local<Object> NewInstance() const;
1736 V8EXPORT Local<Object> NewInstance(int argc, Handle<Value> argv[]) const;
1737 V8EXPORT Local<Value> Call(Handle<Object> recv,
1770 V8EXPORT static Local<Value> Wrap(void* data);
1773 V8EXPORT static Local<External> New(void* value);
1813 inline Local<Value> operator[](int i) const;
1814 inline Local<Function> Callee() const;
1815 inline Local<Object> This() const;
1816 inline Local<Object> Holder() const;
1818 inline Local<Value> Data() const;
1844 inline Local<Value> Data() const;
1845 inline Local<Object> This() const;
1846 inline Local<Object> Holder() const;
1858 typedef Handle<Value> (*NamedPropertyGetter)(Local<String> property,
1866 typedef Handle<Value> (*NamedPropertySetter)(Local<String> property,
1867 Local<Value> value,
1875 typedef Handle<Integer> (*NamedPropertyQuery)(Local<String> property,
1884 typedef Handle<Boolean> (*NamedPropertyDeleter)(Local<String> property,
1907 Local<Value> value,
1949 typedef bool (*NamedSecurityCallback)(Local<Object> host,
1950 Local<Value> key,
1952 Local<Value> data);
1959 typedef bool (*IndexedSecurityCallback)(Local<Object> host,
1962 Local<Value> data);
1987 * v8::Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New();
1990 * v8::Local<v8::Template> proto_t = t->PrototypeTemplate();
1994 * v8::Local<v8::ObjectTemplate> instance_t = t->InstanceTemplate();
1999 * v8::Local<v8::Function> function = t->GetFunction();
2000 * v8::Local<v8::Object> instance = function->NewInstance();
2040 * Local<FunctionTemplate> parent = t;
2041 * Local<FunctionTemplate> child = FunctionTemplate::New();
2044 * Local<Function> child_function = child->GetFunction();
2045 * Local<Object> child_instance = child_function->NewInstance();
2060 static Local<FunctionTemplate> New(
2065 Local<Function> GetFunction();
2076 Local<ObjectTemplate> InstanceTemplate();
2085 Local<ObjectTemplate> PrototypeTemplate();
2152 static Local<ObjectTemplate> New();
2155 Local<Object> NewInstance();
2284 static Local<ObjectTemplate> New(Handle<FunctionTemplate> constructor);
2295 static Local<Signature> New(Handle<FunctionTemplate> receiver =
2310 static Local<TypeSwitch> New(Handle<FunctionTemplate> type);
2311 static Local<TypeSwitch> New(int argc, Handle<FunctionTemplate> types[]);
2434 static Local<Value> RangeError(Handle<String> message);
2435 static Local<Value> ReferenceError(Handle<String> message);
2436 static Local<Value> SyntaxError(Handle<String> message);
2437 static Local<Value> TypeError(Handle<String> message);
2438 static Local<Value> Error(Handle<String> message);
2478 typedef void (*FailedAccessCheckCallback)(Local<Object> target,
2480 Local<Value> data);
2571 * executed within a local scope.
3043 template <class T> friend class Local;
3100 Local<Value> Exception() const;
3106 Local<Value> StackTrace() const;
3115 Local<v8::Message> Message() const;
3197 Local<Object> Global();
3241 static Local<Context> GetEntered();
3244 static Local<Context> GetCurrent();
3251 static Local<Context> GetCalling();
3291 Local<Value> GetData();
3295 * operations executed within a local scope.
3653 Local<T>::Local() : Handle<T>() { }
3657 Local<T> Local<T>::New(Handle<T> that) {
3658 if (that.IsEmpty()) return Local<T>();
3662 return Local<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(
3665 return Local<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(*p)));
3727 Local<Value> Arguments::operator[](int i) const {
3728 if (i < 0 || length_ <= i) return Local<Value>(*Undefined());
3729 return Local<Value>(reinterpret_cast<Value*>(values_ - i));
3733 Local<Function> Arguments::Callee() const {
3734 return Local<Function>(reinterpret_cast<Function*>(
3739 Local<Object> Arguments::This() const {
3740 return Local<Object>(reinterpret_cast<Object*>(values_ + 1));
3744 Local<Object> Arguments::Holder() const {
3745 return Local<Object>(reinterpret_cast<Object*>(
3750 Local<Value> Arguments::Data() const {
3751 return Local<Value>(reinterpret_cast<Value*>(&implicit_args_[kDataIndex]));
3766 Local<T> HandleScope::Close(Handle<T> value) {
3769 return Local<T>(reinterpret_cast<T*>(after));
3797 Local<Value> Object::GetInternalField(int index) {
3799 Local<Value> quick_result = UncheckedGetInternalField(index);
3806 Local<Value> Object::UncheckedGetInternalField(int index) {
3817 return Local<Value>(reinterpret_cast<Value*>(result));
3819 return Local<Value>();
3966 Local<Value> AccessorInfo::Data() const {
3967 return Local<Value>(reinterpret_cast<Value*>(&args_[-2]));
3971 Local<Object> AccessorInfo::This() const {
3972 return Local<Object>(reinterpret_cast<Object*>(&args_[0]));
3976 Local<Object> AccessorInfo::Holder() const {
3977 return Local<Object>(reinterpret_cast<Object*>(&args_[-1]));