Home | History | Annotate | Download | only in include

Lines Matching refs:Local

102 template <class T> class Local;
156 * There are two types of handles: local and persistent handles.
157 * Local handles are light-weight and transient and typically used in
158 * local operations. They are managed by HandleScopes. Persistent
259 * that return objects from within v8 return them in local handles. They
260 * are created within HandleScopes, and all local handles allocated within a
262 * is not necessary to explicitly deallocate local handles.
264 template <class T> class Local : public Handle<T> {
266 inline Local();
267 template <class S> inline Local(Local<S> that)
276 template <class S> inline Local(S* that) : Handle<T>(that) { }
277 template <class S> static inline Local<T> Cast(Local<S> that) {
281 if (that.IsEmpty()) return Local<T>();
283 return Local<T>(T::Cast(*that));
286 template <class S> inline Local<S> As() {
287 return Local<S>::Cast(*this);
290 /** Create a local handle for the content of another handle.
291 * The referee is kept alive by the local handle even when
294 inline static Local<T> New(Handle<T> that);
300 * a Local handle only lives as long as the HandleScope in which it was
367 * Creates a new persistent handle for an existing local or
423 * A stack-allocated class that governs a number of local handles.
424 * After a handle scope has been created, all local handles will be
431 * After the handle scope of a local handle has been deleted the
446 template <class T> Local<T> Close(Handle<T> value);
605 static Local<Script> New(Handle<String> source,
620 static Local<Script> New(Handle<String> source,
639 static Local<Script> Compile(Handle<String> source,
657 static Local<Script> Compile(Handle<String> source,
668 Local<Value> Run();
673 Local<Value> Id();
689 Local<String> Get() const;
690 Local<String> GetSourceLine() const;
774 Local<StackFrame> GetFrame(uint32_t index) const;
784 Local<Array> AsArray();
793 static Local<StackTrace> CurrentStackTrace(
825 Local<String> GetScriptName() const;
832 Local<String> GetScriptNameOrSourceURL() const;
837 Local<String> GetFunctionName() const;
959 V8EXPORT Local<Boolean> ToBoolean() const;
960 V8EXPORT Local<Number> ToNumber() const;
961 V8EXPORT Local<String> ToString() const;
962 V8EXPORT Local<String> ToDetailString() const;
963 V8EXPORT Local<Object> ToObject() const;
964 V8EXPORT Local<Integer> ToInteger() const;
965 V8EXPORT Local<Uint32> ToUint32() const;
966 V8EXPORT Local<Int32> ToInt32() const;
972 V8EXPORT Local<Uint32> ToArrayIndex() const;
1081 V8EXPORT static v8::Local<v8::String> Empty();
1196 V8EXPORT static Local<String> New(const char* data, int length = -1);
1199 V8EXPORT static Local<String> New(const uint16_t* data, int length = -1);
1202 V8EXPORT static Local<String> NewSymbol(const char* data, int length = -1);
1208 V8EXPORT static Local<String> Concat(Handle<String> left,
1219 V8EXPORT static Local<String> NewExternal(ExternalStringResource* resource);
1240 V8EXPORT static Local<String> NewExternal(
1260 V8EXPORT static Local<String> NewUndetectable(const char* data,
1264 V8EXPORT static Local<String> NewUndetectable(const uint16_t* data,
1347 V8EXPORT static Local<Number> New(double value);
1360 V8EXPORT static Local<Integer> New(int32_t value);
1361 V8EXPORT static Local<Integer> NewFromUnsigned(uint32_t value);
1416 typedef Handle<Value> (*AccessorGetter)(Local<String> property,
1420 typedef void (*AccessorSetter)(Local<String> property,
1421 Local<Value> value,
1458 // Sets a local property on this object bypassing interceptors and
1462 // locally, but since the interceptor takes precedence the local property
1470 V8EXPORT Local<Value> Get(Handle<Value> key);
1472 V8EXPORT Local<Value> Get(uint32_t index);
1508 V8EXPORT Local<Array> GetPropertyNames();
1515 V8EXPORT Local<Array> GetOwnPropertyNames();
1522 V8EXPORT Local<Value> GetPrototype();
1535 V8EXPORT Local<Object> FindInstanceInPrototypeChain(
1543 V8EXPORT Local<String> ObjectProtoToString();
1548 V8EXPORT Local<String> GetConstructorName();
1553 inline Local<Value> GetInternalField(int index);
1563 // Testers for local properties.
1573 V8EXPORT Local<Value> GetRealNamedPropertyInPrototypeChain(
1581 V8EXPORT Local<Value> GetRealNamedProperty(Handle<String> key);
1612 V8EXPORT Local<Value> GetHiddenValue(Handle<String> key);
1628 V8EXPORT Local<Object> Clone();
1633 V8EXPORT Local<Context> CreationContext();
1674 V8EXPORT Local<Value> CallAsFunction(Handle<Object> recv,
1683 V8EXPORT Local<Value> CallAsConstructor(int argc,
1686 V8EXPORT static Local<Object> New();
1692 V8EXPORT Local<Value> CheckedGetInternalField(int index);
1699 inline Local<Value> UncheckedGetInternalField(int index);
1714 V8EXPORT Local<Object> CloneElementAt(uint32_t index);
1720 V8EXPORT static Local<Array> New(int length = 0);
1734 V8EXPORT Local<Object> NewInstance() const;
1735 V8EXPORT Local<Object> NewInstance(int argc, Handle<Value> argv[]) const;
1736 V8EXPORT Local<Value> Call(Handle<Object> recv,
1776 V8EXPORT static Local<Value> New(double time);
1810 V8EXPORT static Local<Value> New(double value);
1829 V8EXPORT static Local<Value> New(bool value);
1848 V8EXPORT static Local<Value> New(Handle<String> value);
1853 V8EXPORT Local<String> StringValue() const;
1888 V8EXPORT static Local<RegExp> New(Handle<String> pattern,
1895 V8EXPORT Local<String> GetSource() const;
1922 V8EXPORT static Local<Value> Wrap(void* data);
1925 V8EXPORT static Local<External> New(void* value);
1965 inline Local<Value> operator[](int i) const;
1966 inline Local<Function> Callee() const;
1967 inline Local<Object> This() const;
1968 inline Local<Object> Holder() const;
1970 inline Local<Value> Data() const;
1996 inline Local<Value> Data() const;
1997 inline Local<Object> This() const;
1998 inline Local<Object> Holder() const;
2010 typedef Handle<Value> (*NamedPropertyGetter)(Local<String> property,
2018 typedef Handle<Value> (*NamedPropertySetter)(Local<String> property,
2019 Local<Value> value,
2027 typedef Handle<Integer> (*NamedPropertyQuery)(Local<String> property,
2036 typedef Handle<Boolean> (*NamedPropertyDeleter)(Local<String> property,
2059 Local<Value> value,
2101 typedef bool (*NamedSecurityCallback)(Local<Object> host,
2102 Local<Value> key,
2104 Local<Value> data);
2111 typedef bool (*IndexedSecurityCallback)(Local<Object> host,
2114 Local<Value> data);
2139 * v8::Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New();
2142 * v8::Local<v8::Template> proto_t = t->PrototypeTemplate();
2146 * v8::Local<v8::ObjectTemplate> instance_t = t->InstanceTemplate();
2151 * v8::Local<v8::Function> function = t->GetFunction();
2152 * v8::Local<v8::Object> instance = function->NewInstance();
2192 * Local<FunctionTemplate> parent = t;
2193 * Local<FunctionTemplate> child = FunctionTemplate::New();
2196 * Local<Function> child_function = child->GetFunction();
2197 * Local<Object> child_instance = child_function->NewInstance();
2212 static Local<FunctionTemplate> New(
2217 Local<Function> GetFunction();
2228 Local<ObjectTemplate> InstanceTemplate();
2237 Local<ObjectTemplate> PrototypeTemplate();
2310 static Local<ObjectTemplate> New();
2313 Local<Object> NewInstance();
2442 static Local<ObjectTemplate> New(Handle<FunctionTemplate> constructor);
2453 static Local<Signature> New(Handle<FunctionTemplate> receiver =
2468 static Local<TypeSwitch> New(Handle<FunctionTemplate> type);
2469 static Local<TypeSwitch> New(int argc, Handle<FunctionTemplate> types[]);
2611 static Local<Value> RangeError(Handle<String> message);
2612 static Local<Value> ReferenceError(Handle<String> message);
2613 static Local<Value> SyntaxError(Handle<String> message);
2614 static Local<Value> TypeError(Handle<String> message);
2615 static Local<Value> Error(Handle<String> message);
2658 typedef void (*FailedAccessCheckCallback)(Local<Object> target,
2660 Local<Value> data);
2668 typedef bool (*AllowCodeGenerationFromStringsCallback)(Local<Context> context);
2742 * executed within a local scope.
3305 template <class T> friend class Local;
3361 Local<Value> Exception() const;
3367 Local<Value> StackTrace() const;
3376 Local<v8::Message> Message() const;
3459 Local<Object> Global();
3503 static Local<Context> GetEntered();
3506 static Local<Context> GetCurrent();
3513 static Local<Context> GetCalling();
3553 Local<Value> GetData();
3578 * operations executed within a local scope.
3944 Local<T>::Local() : Handle<T>() { }
3948 Local<T> Local<T>::New(Handle<T> that) {
3949 if (that.IsEmpty()) return Local<T>();
3953 return Local<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(
3956 return Local<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(*p)));
4023 Local<Value> Arguments::operator[](int i) const {
4024 if (i < 0 || length_ <= i) return Local<Value>(*Undefined());
4025 return Local<Value>(reinterpret_cast<Value*>(values_ - i));
4029 Local<Function> Arguments::Callee() const {
4030 return Local<Function>(reinterpret_cast<Function*>(
4035 Local<Object> Arguments::This() const {
4036 return Local<Object>(reinterpret_cast<Object*>(values_ + 1));
4040 Local<Object> Arguments::Holder() const {
4041 return Local<Object>(reinterpret_cast<Object*>(
4046 Local<Value> Arguments::Data() const {
4047 return Local<Value>(reinterpret_cast<Value*>(&implicit_args_[kDataIndex]));
4062 Local<T> HandleScope::Close(Handle<T> value) {
4065 return Local<T>(reinterpret_cast<T*>(after));
4093 Local<Value> Object::GetInternalField(int index) {
4095 Local<Value> quick_result = UncheckedGetInternalField(index);
4102 Local<Value> Object::UncheckedGetInternalField(int index) {
4113 return Local<Value>(reinterpret_cast<Value*>(result));
4115 return Local<Value>();
4286 Local<Value> AccessorInfo::Data() const {
4287 return Local<Value>(reinterpret_cast<Value*>(&args_[-2]));
4291 Local<Object> AccessorInfo::This() const {
4292 return Local<Object>(reinterpret_cast<Object*>(&args_[0]));
4296 Local<Object> AccessorInfo::Holder() const {
4297 return Local<Object>(reinterpret_cast<Object*>(&args_[-1]));