Lines Matching defs:Handle

101 template <class T> class Handle;
194 * a Handle<Object>); the value will still be governed by a handle
198 template <class T> class Handle {
203 V8_INLINE Handle() : val_(0) {}
209 * incompatible handles, for instance from a Handle<String> to a
210 * Handle<Number> it will cause a compile-time error. Assigning
212 * Handle<String> to a variable declared as Handle<Value>, is legal
215 template <class S> V8_INLINE Handle(Handle<S> that)
219 * handles. For example, converting from a Handle<String> to a
220 * Handle<Number>.
245 template <class S> V8_INLINE bool operator==(const Handle<S>& that) const {
268 template <class S> V8_INLINE bool operator!=(const Handle<S>& that) const {
277 template <class S> V8_INLINE static Handle<T> Cast(Handle<S> that) {
281 if (that.IsEmpty()) return Handle<T>();
283 return Handle<T>(T::Cast(*that));
286 template <class S> V8_INLINE Handle<S> As() {
287 return Handle<S>::Cast(*this);
290 V8_INLINE static Handle<T> New(Isolate* isolate, Handle<T> that) {
293 V8_INLINE static Handle<T> New(Isolate* isolate,
302 template<class F> friend class Handle;
307 friend Handle<Primitive> Undefined(Isolate* isolate);
308 friend Handle<Primitive> Null(Isolate* isolate);
309 friend Handle<Boolean> True(Isolate* isolate);
310 friend Handle<Boolean> False(Isolate* isolate);
319 V8_INLINE explicit Handle(T* val) : val_(val) {}
321 V8_INLINE static Handle<T> New(Isolate* isolate, T* that);
334 template <class T> class Local : public Handle<T> {
338 : Handle<T>(reinterpret_cast<T*>(*that)) {
341 * handles. For example, converting from a Handle<String> to a
342 * Handle<Number>.
356 template <class S> V8_INLINE Local(Handle<S> that)
357 : Handle<T>(reinterpret_cast<T*>(*that)) {
370 V8_INLINE static Local<T> New(Isolate* isolate, Handle<T> that);
379 template<class F> friend class Handle;
392 template <class S> V8_INLINE Local(S* that) : Handle<T>(that) { }
460 V8_INLINE void Reset(Isolate* isolate, const Handle<S>& other);
480 template <class S> V8_INLINE bool operator==(const Handle<S>& that) const {
493 template <class S> V8_INLINE bool operator!=(const Handle<S>& that) const {
561 template<class F> friend class Handle;
634 * Construct a Persistent from a Handle.
635 * When the Handle is non-empty, a new storage cell is created
638 template <class S> V8_INLINE Persistent(Isolate* isolate, Handle<S> that)
705 template<class F> friend class Handle;
735 * Construct a UniquePersistent from a Handle.
736 * When the Handle is non-empty, a new storage cell is created
740 V8_INLINE UniquePersistent(Isolate* isolate, Handle<S> that)
925 Handle<Value> resource_name,
926 Handle<Integer> resource_line_offset = Handle<Integer>(),
927 Handle<Integer> resource_column_offset = Handle<Integer>(),
928 Handle<Boolean> resource_is_shared_cross_origin = Handle<Boolean>(),
929 Handle<Integer> script_id = Handle<Integer>())
935 V8_INLINE Handle<Value> ResourceName() const;
936 V8_INLINE Handle<Integer> ResourceLineOffset() const;
937 V8_INLINE Handle<Integer> ResourceColumnOffset() const;
938 V8_INLINE Handle<Boolean> ResourceIsSharedCrossOrigin() const;
939 V8_INLINE Handle<Integer> ScriptID() const;
941 Handle<Value> resource_name_;
942 Handle<Integer> resource_line_offset_;
943 Handle<Integer> resource_column_offset_;
944 Handle<Boolean> resource_is_shared_cross_origin_;
945 Handle<Integer> script_id_;
960 Handle<Value> GetScriptName();
965 Handle<Value> GetSourceURL();
969 Handle<Value> GetSourceMappingURL();
990 static Local<Script> Compile(Handle<String> source,
994 static Local<Script> Compile(Handle<String> source,
995 Handle<String> file_name);
1081 Handle<Value> resource_name;
1082 Handle<Integer> resource_line_offset;
1083 Handle<Integer> resource_column_offset;
1084 Handle<Boolean> resource_is_shared_cross_origin;
1225 Handle<String> full_source_string,
1248 Handle<Value> GetScriptResourceName() const;
1255 Handle<StackTrace> GetStackTrace() const;
1693 bool Equals(Handle<Value> that) const;
1694 bool StrictEquals(Handle<Value> that) const;
1695 bool SameValue(Handle<Value> that) const;
1722 V8_INLINE static Handle<Boolean> New(Isolate* isolate, bool value);
1978 static Local<String> Concat(Handle<String> left, Handle<String> right);
2038 explicit Utf8Value(Handle<v8::Value> obj);
2060 explicit Value(Handle<v8::Value> obj);
2273 bool Set(Handle<Value> key, Handle<Value> value);
2275 bool Set(uint32_t index, Handle<Value> value);
2285 bool ForceSet(Handle<Value> key,
2286 Handle<Value> value,
2289 Local<Value> Get(Handle<Value> key);
2298 PropertyAttribute GetPropertyAttributes(Handle<Value> key);
2305 bool Has(Handle<Value> key);
2307 bool Delete(Handle<Value> key);
2311 bool ForceDelete(Handle<Value> key);
2317 bool SetAccessor(Handle<String> name,
2320 Handle<Value> data = Handle<Value>(),
2323 bool SetAccessor(Handle<Name> name,
2326 Handle<Value> data = Handle<Value>(),
2338 Handle<Function> setter = Handle<Function>(),
2348 bool HasPrivate(Handle<Private> key);
2349 bool SetPrivate(Handle<Private> key, Handle<Value> value);
2350 bool DeletePrivate(Handle<Private> key);
2351 Local<Value> GetPrivate(Handle<Private> key);
2380 bool SetPrototype(Handle<Value> prototype);
2386 Local<Object> FindInstanceInPrototypeChain(Handle<FunctionTemplate> tmpl);
2413 void SetInternalField(int index, Handle<Value> value);
2436 bool HasOwnProperty(Handle<String> key);
2437 bool HasRealNamedProperty(Handle<String> key);
2439 bool HasRealNamedCallbackProperty(Handle<String> key);
2445 Local<Value> GetRealNamedPropertyInPrototypeChain(Handle<String> key);
2452 Local<Value> GetRealNamedProperty(Handle<String> key);
2482 bool SetHiddenValue(Handle<String> key, Handle<Value> value);
2483 Local<Value> GetHiddenValue(Handle<String> key);
2484 bool DeleteHiddenValue(Handle<String> key);
2544 Local<Value> CallAsFunction(Handle<Value> recv,
2546 Handle<Value> argv[]);
2553 Local<Value> CallAsConstructor(int argc, Handle<Value> argv[]);
2600 // Handle setters
2602 template <typename S> V8_INLINE void Set(const Handle<S> handle);
2723 Local<Object> NewInstance(int argc, Handle<Value> argv[]) const;
2724 Local<Value> Call(Handle<Value> recv, int argc, Handle<Value> argv[]);
2725 void SetName(Handle<String> name);
2726 Handle<Value> GetName() const;
2734 Handle<Value> GetInferredName() const;
2740 Handle<Value> GetDisplayName() const;
2801 void Resolve(Handle<Value> value);
2802 void Reject(Handle<Value> value);
2817 Local<Promise> Chain(Handle<Function> handler);
2818 Local<Promise> Catch(Handle<Function> handler);
2819 Local<Promise> Then(Handle<Function> handler);
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,
3240 static Local<Value> New(Handle<String> value);
3258 static Local<Value> New(Isolate* isolate, Handle<Symbol> value);
3295 static Local<RegExp> New(Handle<String> pattern, Flags flags);
3338 void Set(Handle<Name> name, Handle<Data> value,
3340 V8_INLINE void Set(Isolate* isolate, const char* name, Handle<Data> value);
3380 Handle<Value> data = Handle<Value>(),
3389 Handle<Value> data = Handle<Value>(),
3634 Handle<Value> data = Handle<Value>(),
3635 Handle<Signature> signature = Handle<Signature>(),
3647 Handle<Value> data = Handle<Value>());
3656 void Inherit(Handle<FunctionTemplate> parent);
3669 void SetClassName(Handle<String> name);
3701 bool HasInstance(Handle<Value> object);
3755 void SetAccessor(Handle<String> name,
3758 Handle<Value> data = Handle<Value>(),
3761 Handle<AccessorSignature> signature =
3762 Handle<AccessorSignature>());
3763 void SetAccessor(Handle<Name> name,
3766 Handle<Value> data = Handle<Value>(),
3769 Handle<AccessorSignature> signature =
3770 Handle<AccessorSignature>());
3795 Handle<Value> data = Handle<Value>());
3819 Handle<Value> data = Handle<Value>());
3828 Handle<Value> data = Handle<Value>());
3853 Handle<Value> data = Handle<Value>(),
3871 Handle<FunctionTemplate> constructor);
3883 Handle<FunctionTemplate> receiver =
3884 Handle<FunctionTemplate>(),
3886 Handle<FunctionTemplate> argv[] = 0);
3900 Handle<FunctionTemplate> receiver =
3901 Handle<FunctionTemplate>());
3969 static Local<TypeSwitch> New(Handle<FunctionTemplate> type);
3970 static Local<TypeSwitch> New(int argc, Handle<FunctionTemplate> types[]);
3971 int match(Handle<Value> value);
4006 virtual v8::Handle<v8::FunctionTemplate> GetNativeFunctionTemplate(
4007 v8::Isolate* isolate, v8::Handle<v8::String> name) {
4008 return v8::Handle<v8::FunctionTemplate>();
4039 V8_INLINE Handle<Primitive> Undefined(Isolate* isolate);
4040 V8_INLINE Handle<Primitive> Null(Isolate* isolate);
4041 V8_INLINE Handle<Boolean> True(Isolate* isolate);
4042 V8_INLINE Handle<Boolean> False(Isolate* isolate);
4108 typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> error);
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);
4282 Handle<UnboundScript> script;
4735 void EnqueueMicrotask(Handle<Function> microtask);
4922 virtual void VisitExternalString(Handle<String> string) {}
5018 Handle<Value> data = Handle<Value>());
5235 template <class T> friend class Handle;
5297 Handle<Value> ReThrow();
5462 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(),
5463 Handle<Value> global_object = Handle<Value>());
5469 void SetSecurityToken(Handle<Value> token);
5475 Handle<Value> GetSecurityToken();
5506 void SetEmbedderData(int index, Handle<Value> value);
5549 void SetErrorMessageForCodeGenerationFromStrings(Handle<String> message);
5557 explicit V8_INLINE Scope(Handle<Context> context) : context_(context) {
5563 Handle<Context> context_;
5959 Local<T>::Local() : Handle<T>() { }
5963 Local<T> Local<T>::New(Isolate* isolate, Handle<T> that) {
5973 Handle<T> Handle<T>::New(Isolate* isolate, T* that) {
5974 if (that == NULL) return Handle<T>();
5977 return Handle<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(
6067 void PersistentBase<T>::Reset(Isolate* isolate, const Handle<S>& other) {
6181 void ReturnValue<T>::Set(const Handle<S> handle) {
6341 Handle<Value> ScriptOrigin::ResourceName() const {
6346 Handle<Integer> ScriptOrigin::ResourceLineOffset() const {
6351 Handle<Integer> ScriptOrigin::ResourceColumnOffset() const {
6356 Handle<Boolean> ScriptOrigin::ResourceIsSharedCrossOrigin() const {
6361 Handle<Integer> ScriptOrigin::ScriptID() const {
6392 Handle<Boolean> Boolean::New(Isolate* isolate, bool value) {
6397 void Template::Set(Isolate* isolate, const char* name, v8::Handle<Data> value) {
6812 Handle<Primitive> Undefined(Isolate* isolate) {
6817 return Handle<Primitive>(reinterpret_cast<Primitive*>(slot));
6821 Handle<Primitive> Null(Isolate* isolate) {
6826 return Handle<Primitive>(reinterpret_cast<Primitive*>(slot));
6830 Handle<Boolean> True(Isolate* isolate) {
6835 return Handle<Boolean>(reinterpret_cast<Boolean*>(slot));
6839 Handle<Boolean> False(Isolate* isolate) {
6844 return Handle<Boolean>(reinterpret_cast<Boolean*>(slot));