Home | History | Annotate | Download | only in include

Lines Matching defs:Local

124 template <class T> class Local;
171 * There are two types of handles: local and persistent handles.
172 * Local handles are light-weight and transient and typically used in
173 * local operations. They are managed by HandleScopes. Persistent
271 * that return objects from within v8 return them in local handles. They
272 * are created within HandleScopes, and all local handles allocated within a
274 * is not necessary to explicitly deallocate local handles.
276 template <class T> class V8EXPORT_INLINE Local : public Handle<T> {
278 inline Local();
279 template <class S> inline Local(Local<S> that)
288 template <class S> inline Local(S* that) : Handle<T>(that) { }
289 template <class S> static inline Local<T> Cast(Local<S> that) {
293 if (that.IsEmpty()) return Local<T>();
295 return Local<T>(T::Cast(*that));
298 /** Create a local handle for the content of another handle.
299 * The referee is kept alive by the local handle even when
302 inline static Local<T> New(Handle<T> that);
308 * a Local handle only lives as long as the HandleScope in which it was
372 * 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);
552 static Local<Script> New(Handle<String> source,
567 static Local<Script> New(Handle<String> source,
586 static Local<Script> Compile(Handle<String> source,
604 static Local<Script> Compile(Handle<String> source,
615 Local<Value> Run();
620 Local<Value> Id();
636 Local<String> Get() const;
637 Local<String> GetSourceLine() const;
762 Local<Boolean> ToBoolean() const;
763 Local<Number> ToNumber() const;
764 Local<String> ToString() const;
765 Local<String> ToDetailString() const;
766 Local<Object> ToObject() const;
767 Local<Integer> ToInteger() const;
768 Local<Uint32> ToUint32() const;
769 Local<Int32> ToInt32() const;
775 Local<Uint32> ToArrayIndex() const;
851 static v8::Local<v8::String> Empty();
946 static Local<String> New(const char* data, int length = -1);
949 static Local<String> New(const uint16_t* data, int length = -1);
952 static Local<String> NewSymbol(const char* data, int length = -1);
958 static Local<String> Concat(Handle<String> left, Handle<String>right);
968 static Local<String> NewExternal(ExternalStringResource* resource);
988 static Local<String> NewExternal(ExternalAsciiStringResource* resource);
1006 static Local<String> NewUndetectable(const char* data, int length = -1);
1009 static Local<String> NewUndetectable(const uint16_t* data, int length = -1);
1091 static Local<Number> New(double value);
1104 static Local<Integer> New(int32_t value);
1105 static Local<Integer> NewFromUnsigned(uint32_t value);
1141 static Local<Value> New(double time);
1181 // Sets a local property on this object bypassing interceptors and
1185 // locally, but since the interceptor takes precedence the local property
1193 Local<Value> Get(Handle<Value> key);
1215 Local<Array> GetPropertyNames();
1222 Local<Value> GetPrototype();
1235 Local<Object> FindInstanceInPrototypeChain(Handle<FunctionTemplate> tmpl);
1242 Local<String> ObjectProtoToString();
1247 inline Local<Value> GetInternalField(int index);
1257 // Testers for local properties.
1266 Local<Value> GetRealNamedPropertyInPrototypeChain(Handle<String> key);
1273 Local<Value> GetRealNamedProperty(Handle<String> key);
1304 Local<Value> GetHiddenValue(Handle<String> key);
1320 Local<Object> Clone();
1342 static Local<Object> New();
1347 Local<Value> CheckedGetInternalField(int index);
1354 inline Local<Value> UncheckedGetInternalField(int index);
1369 Local<Object> CloneElementAt(uint32_t index);
1371 static Local<Array> New(int length = 0);
1384 Local<Object> NewInstance() const;
1385 Local<Object> NewInstance(int argc, Handle<Value> argv[]) const;
1386 Local<Value> Call(Handle<Object> recv, int argc, Handle<Value> argv[]);
1417 static Local<Value> Wrap(void* data);
1420 static Local<External> New(void* value);
1460 inline Local<Value> operator[](int i) const;
1461 inline Local<Function> Callee() const;
1462 inline Local<Object> This() const;
1463 inline Local<Object> Holder() const;
1465 inline Local<Value> Data() const;
1469 inline Arguments(Local<Value> data,
1470 Local<Object> holder,
1471 Local<Function> callee,
1474 Local<Value> data_;
1475 Local<Object> holder_;
1476 Local<Function> callee_;
1491 inline Local<Value> Data() const;
1492 inline Local<Object> This() const;
1493 inline Local<Object> Holder() const;
1501 typedef int (*LookupCallback)(Local<Object> self, Local<String> name);
1507 typedef Handle<Value> (*AccessorGetter)(Local<String> property,
1511 typedef void (*AccessorSetter)(Local<String> property,
1512 Local<Value> value,
1520 typedef Handle<Value> (*NamedPropertyGetter)(Local<String> property,
1528 typedef Handle<Value> (*NamedPropertySetter)(Local<String> property,
1529 Local<Value> value,
1537 typedef Handle<Boolean> (*NamedPropertyQuery)(Local<String> property,
1546 typedef Handle<Boolean> (*NamedPropertyDeleter)(Local<String> property,
1569 Local<Value> value,
1632 typedef bool (*NamedSecurityCallback)(Local<Object> host,
1633 Local<Value> key,
1635 Local<Value> data);
1642 typedef bool (*IndexedSecurityCallback)(Local<Object> host,
1645 Local<Value> data);
1670 * v8::Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New();
1673 * v8::Local<v8::Template> proto_t = t->PrototypeTemplate();
1677 * v8::Local<v8::ObjectTemplate> instance_t = t->InstanceTemplate();
1682 * v8::Local<v8::Function> function = t->GetFunction();
1683 * v8::Local<v8::Object> instance = function->NewInstance();
1723 * Local<FunctionTemplate> parent = t;
1724 * Local<FunctionTemplate> child = FunctionTemplate::New();
1727 * Local<Function> child_function = child->GetFunction();
1728 * Local<Object> child_instance = child_function->NewInstance();
1743 static Local<FunctionTemplate> New(
1748 Local<Function> GetFunction();
1759 Local<ObjectTemplate> InstanceTemplate();
1768 Local<ObjectTemplate> PrototypeTemplate();
1835 static Local<ObjectTemplate> New();
1838 Local<Object> NewInstance();
1965 static Local<ObjectTemplate> New(Handle<FunctionTemplate> constructor);
1976 static Local<Signature> New(Handle<FunctionTemplate> receiver =
1991 static Local<TypeSwitch> New(Handle<FunctionTemplate> type);
1992 static Local<TypeSwitch> New(int argc, Handle<FunctionTemplate> types[]);
2112 static Local<Value> RangeError(Handle<String> message);
2113 static Local<Value> ReferenceError(Handle<String> message);
2114 static Local<Value> SyntaxError(Handle<String> message);
2115 static Local<Value> TypeError(Handle<String> message);
2116 static Local<Value> Error(Handle<String> message);
2132 typedef void (*FailedAccessCheckCallback)(Local<Object> target,
2134 Local<Value> data);
2489 template <class T> friend class Local;
2546 Local<Value> Exception() const;
2552 Local<Value> StackTrace() const;
2561 Local<v8::Message> Message() const;
2628 Local<Object> Global();
2655 static Local<Context> GetEntered();
2658 static Local<Context> GetCurrent();
2665 static Local<Context> GetCalling();
2705 Local<Value> GetData();
2709 * operations executed within a local scope.
2977 Local<T>::Local() : Handle<T>() { }
2981 Local<T> Local<T>::New(Handle<T> that) {
2982 if (that.IsEmpty()) return Local<T>();
2984 return Local<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(*p)));
3032 Local<Value> Arguments::operator[](int i) const {
3033 if (i < 0 || length_ <= i) return Local<Value>(*Undefined());
3034 return Local<Value>(reinterpret_cast<Value*>(values_ - i));
3038 Local<Function> Arguments::Callee() const {
3043 Local<Object> Arguments::This() const {
3044 return Local<Object>(reinterpret_cast<Object*>(values_ + 1));
3048 Local<Object> Arguments::Holder() const {
3053 Local<Value> Arguments::Data() const {
3069 Local<T> HandleScope::Close(Handle<T> value) {
3072 return Local<T>(reinterpret_cast<T*>(after));
3100 Local<Value> Object::GetInternalField(int index) {
3102 Local<Value> quick_result = UncheckedGetInternalField(index);
3109 Local<Value> Object::UncheckedGetInternalField(int index) {
3120 return Local<Value>(reinterpret_cast<Value*>(result));
3122 return Local<Value>();
3261 Local<Value> AccessorInfo::Data() const {
3262 return Local<Value>(reinterpret_cast<Value*>(&args_[-3]));
3266 Local<Object> AccessorInfo::This() const {
3267 return Local<Object>(reinterpret_cast<Object*>(&args_[0]));
3271 Local<Object> AccessorInfo::Holder() const {
3272 return Local<Object>(reinterpret_cast<Object*>(&args_[-1]));