Lines Matching defs:Object
131 class Object;
167 class Object;
205 * This callback should either explicitly invoke Dispose on |object| if
208 * \param object the weak global object to be reclaimed by the garbage collector
209 * \param parameter the value passed in when making the weak global object
215 Persistent<T>* object,
228 * An object reference managed by the v8 garbage collector.
233 * point directly to an object. Instead, all objects are stored in
235 * whenever an object moves. Handles should always be passed by value
246 * It is safe to extract the object stored in the handle by
247 * dereferencing the handle (for instance, to extract the Object* from
248 * a Handle<Object>); the value will still be governed by a handle
307 internal::Object** a = reinterpret_cast<internal::Object**>(**this);
308 internal::Object** b = reinterpret_cast<internal::Object**>(*that);
317 internal::Object** a = reinterpret_cast<internal::Object**>(**this);
318 internal::Object** b = reinterpret_cast<internal::Object**>(*that);
397 * A light-weight stack-allocated object handle. All operations
472 friend class Object;
482 * An object reference that is independent of any handle scope. Where
488 * the v8 engine which holds an object value and which is updated by
489 * the garbage collector whenever the object is moved. A new storage
614 internal::Object** a = reinterpret_cast<internal::Object**>(**this);
615 internal::Object** b = reinterpret_cast<internal::Object**>(*that);
622 internal::Object** a = reinterpret_cast<internal::Object**>(**this);
623 internal::Object** b = reinterpret_cast<internal::Object**>(*that);
642 * Make the reference to this object weak. When only weak handles
643 * refer to the object, the garbage collector will perform a
645 * it the object reference and the given parameters.
675 * Marks the reference to this object independent. Garbage collector is free
676 * to ignore any object groups containing this object. Weak callback for an
686 * Marks the reference to this object partially dependent. Partially dependent
688 * dependencies are provided through object groups. It provides a way to build
689 * smaller object groups for young objects that represent only a subset of all
707 /** Checks if the handle holds the only reference to an object. */
752 * responsible of eventually destroying the underlying object (by creating a
813 * garbage collector will no longer track the object stored in the
840 static internal::Object** CreateHandle(internal::Object* value);
841 static internal::Object** CreateHandle(internal::Isolate* isolate,
842 internal::Object* value);
844 static internal::Object** CreateHandle(internal::HeapObject* value);
858 internal::Object** next;
859 internal::Object** limit;
871 internal::Object** prev_next_;
872 internal::Object** prev_limit_;
877 internal::Object** RawClose(internal::Object** value);
887 * The superclass of values and API object templates.
993 * \return Compiled script object (context independent; when run it
1003 * object (typically a string) as the script's origin.
1006 * \param file_name file name object (typically a string) to be used
1008 * \return Compiled script object (context independent; when run it
1026 * \return Compiled script object, bound to the context that was active
1037 * object (typically a string) as the script's origin.
1044 * \return Compiled script object, bound to the context that was active
1073 * Associate an additional data object with the script. This is mainly used
1074 * with the debugger as this data object is only available through the
1339 * Returns true if this value is an object.
1374 * Returns true if this value is a Boolean object.
1379 * Returns true if this value is a Number object.
1384 * Returns true if this value is a String object.
1389 * Returns true if this value is a Symbol object.
1487 Local<Object> ToObject() const;
1856 * Converts an object to a UTF-8-encoded character array. Useful if
1857 * you want to print the object. If conversion to a string fails
1858 * (e.g. due to an exception in the toString() method of the object)
1879 * Converts an object to an ASCII string.
1880 * Useful if you want to print the object.
1882 * method of the object) then the length() method returns 0 and the * operator
1903 * Converts an object to a two-byte string.
1905 * method of the object) then the length() method returns 0 and the * operator
2030 * setting|getting a particular property. See Object and ObjectTemplate's
2071 * A JavaScript object (ECMA-262, 4.3.3)
2073 class V8_EXPORT Object : public Value {
2081 // Sets a local property on this object bypassing interceptors and
2084 // Note that if the object has an interceptor the property will be set
2108 // Delete a property on this object bypassing interceptors and
2137 * of this object, including properties from prototype objects. The
2139 * be enumerated by a for-in statement over this object.
2151 * Get the prototype object. This does not skip objects marked to
2158 * Set the prototype object. This does not skip objects marked to
2168 Local<Object> FindInstanceInPrototypeChain(Handle<FunctionTemplate> tmpl);
2171 * Call builtin Object.prototype.toString on this object.
2178 * Returns the function invoked as a constructor for this object.
2184 * Returns the name of the function invoked as a constructor for this object.
2188 /** Gets the number of internal fields for this Object. */
2224 * If result.IsEmpty() no real property was located on the object or
2237 * Turns on access check on the object if the object is an instance of
2238 * a template that has access check callbacks. If an object has no
2239 * access check info, the object cannot be accessed by anyone.
2244 * Returns the identity hash for this object. The current implementation
2245 * uses a hidden property on the object to store the identity hash.
2272 * Clone this object with a fast but shallow copy. Values will point
2273 * to the same values as the original object.
2275 Local<Object> Clone();
2278 * Returns the context in which the object was created.
2312 * When an Object is callable this method returns true.
2317 * Call an Object as a function if a callback is set by the
2320 Local<Value> CallAsFunction(Handle<Object> recv,
2325 * Call an Object as a constructor if a callback is set by the
2331 static Local<Object> New();
2332 V8_INLINE(static Object* Cast(Value* obj));
2335 Object();
2345 class V8_EXPORT Array : public Object {
2353 Local<Object> CloneElementAt(uint32_t index);
2369 * A JavaScript function object (ECMA-262, 15.3).
2371 class V8_EXPORT Function : public Object {
2373 Local<Object> NewInstance() const;
2374 Local<Object> NewInstance(int argc, Handle<Value> argv[]) const;
2375 Local<Value> Call(Handle<Object> recv, int argc, Handle<Value> argv[]);
2383 * to object properties.
2399 * Returns scriptId object.
2427 class V8_EXPORT ArrayBuffer : public Object {
2507 * unless the object is externalized.
2566 class V8_EXPORT ArrayBufferView : public Object {
2779 class V8_EXPORT Date : public Object {
2789 * because we know the structure of this object.
2802 * object.
2815 * A Number object (ECMA-262, 4.3.21).
2817 class V8_EXPORT NumberObject : public Object {
2826 * Returns the Number held by the object.
2838 * A Boolean object (ECMA-262, 4.3.15).
2840 class V8_EXPORT BooleanObject : public Object {
2849 * Returns the Boolean held by the object.
2861 * A String object (ECMA-262, 4.3.18).
2863 class V8_EXPORT StringObject : public Object {
2872 * Returns the String held by the object.
2884 * A Symbol object (ECMA-262 edition 6).
2888 class V8_EXPORT SymbolObject : public Object {
2897 * Returns the Symbol held by the object.
2911 class V8_EXPORT RegExp : public Object {
2972 * The superclass of object and function templates.
3014 V8_INLINE(internal::Object* GetDefaultValue());
3015 V8_INLINE(explicit ReturnValue(internal::Object** slot));
3016 internal::Object** value_;
3032 V8_INLINE(Local<Object> This() const);
3033 V8_INLINE(Local<Object> Holder() const);
3051 V8_INLINE(FunctionCallbackInfo(internal::Object** implicit_args,
3052 internal::Object** values,
3055 internal::Object** implicit_args_;
3056 internal::Object** values_;
3065 V8_INLINE(Arguments(internal::Object** implicit_args,
3066 internal::Object** values,
3080 V8_INLINE(Local<Object> This() const);
3081 V8_INLINE(Local<Object> Holder() const);
3097 V8_INLINE(PropertyCallbackInfo(internal::Object** args))
3099 internal::Object** args_;
3106 V8_INLINE(AccessorInfo(internal::Object** args))
3115 * NamedProperty[Getter|Setter] are used as interceptors on object.
3241 * property with the given key on the host object.
3243 typedef bool (*NamedSecurityCallback)(Local<Object> host,
3251 * property with the given index on the host object.
3253 typedef bool (*IndexedSecurityCallback)(Local<Object> host,
3268 * function object when it is created.
3271 * used to create object instances when the function is used as a
3273 * each object instance.
3276 * is used to create the prototype object of the function.
3294 * v8::Local<v8::Object> instance = function->NewInstance();
3297 * Let's use "function" as the JS variable name of the function object
3298 * and "instance" for the instance object created above. The function
3326 * object of the Child() function has __proto__ pointing to the
3327 * Parent() function's prototype object. An instance of the Child
3339 * Local<Object> child_instance = child_function->NewInstance();
3388 * A PrototypeTemplate is the template used to create the prototype object
3404 * next object in the prototype chain.
3421 * Returns true if the given object is an instance of this function
3424 bool HasInstance(Handle<Value> object);
3439 * Properties added to an ObjectTemplate are added to each object
3448 Local<Object> NewInstance();
3451 * Sets an accessor on the object template.
3456 * on the JavaScript object.
3505 * Sets a named property handler on the object template.
3508 * this object template, the provided callback is invoked instead of
3509 * accessing the property directly on the JavaScript object.
3517 * properties of an object.
3537 * Sets an indexed property handler on the object template.
3540 * this object template, the provided callback is invoked instead of
3541 * accessing the property directly on the JavaScript object.
3545 * \param query The callback to invoke to check if an object has a property.
3548 * properties of an object.
3580 * Mark object instances of the template as undetectable.
3590 * Sets access check callbacks on the object template.
3592 * When accessing properties on instances of this object template,
3598 * Object::TurnOnAccessCheck().
3856 * Create new error objects by calling the corresponding error object
3908 typedef void (*FailedAccessCheckCallback)(Local<Object> target,
4098 * object in the group is alive, all objects in the group are alive.
4099 * After each garbage collection, object groups are removed. It is
4102 * wrapper objects. Object groups for all dependent handles need to
4104 * garbage collection types it is sufficient to provide object groups
4107 void SetObjectGroupId(const Persistent<Value>& object,
4111 * Allows the host application to declare implicit references from an object
4112 * group to an object. If the objects of the object group are alive, the child
4113 * object is alive too. After each garbage collection, all implicit references
4121 * Allows the host application to declare implicit references from an object
4122 * to another object. If the parent object is alive, the child object is alive
4126 void SetReference(const Persistent<Object>& parent,
4255 // Name of the object associated with the code, note that the string is not
4414 * Otherwise, the exception object will be passed to the callback instead.
4646 * lock has been acquired with a Locker object with that thread.
4655 * been acquired with a Locker object. Therefore, in order to be
4682 * acquired the V8 lock with a Locker object.
4712 * acquired the V8 lock with a Locker object.
4792 static internal::Object** GlobalizeReference(internal::Isolate* isolate,
4793 internal::Object** handle);
4794 static void DisposeGlobal(internal::Object** global_handle);
4796 static void MakeWeak(internal::Object** global_handle,
4799 static void ClearWeak(internal::Object** global_handle);
4801 internal::Object** handle);
4802 static internal::Object** GetEternal(internal::Isolate* isolate, int index);
4875 * Returns the .stack property of the thrown object. If no .stack
4911 * Set whether or not this TryCatch should capture a Message object
4965 * Returns the global proxy object or global object itself for
4968 * Global proxy object is a thin wrapper whose prototype points to
4969 * actual context's global object with the properties like Object, etc.
4973 * Please note that changes to global proxy object prototype most probably
4974 * would break VM---v8 expects only global object as a prototype of
4975 * global proxy object.
4978 * object until global is reattached with ReattachGlobal().
4980 Local<Object> Global();
4983 * Detaches the global object from its context before
4984 * the global object can be reused to create a new context.
4989 * Reattaches a global object to a context. This can be used to
4990 * restore the connection between a global object and a context
4993 * \param global_object The global object to reattach to the
4994 * context. For this to work, the global object must be the global
4995 * object that was associated with this context before a call to
4998 void ReattachGlobal(Handle<Object> global_object);
5009 * \param global_template An optional object template from which the
5010 * global object for the newly created context will be created.
5012 * \param global_object An optional global object to be reused for
5013 * the newly created context. This global object must have been
5015 * template. The state of the global object will be completely reset
5016 * and only object identify will remain.
5045 * Sets the security token for the context. To access an object in
5163 friend class Object;
5175 * object pointers obtained from V8 handles while in the particular V8 isolate.
5181 * v8::Locker is a scoped lock object. While it's active, i.e. between its
5199 * destroying the v8::Locker object as above or by constructing a v8::Unlocker
5200 * object:
5213 * The Unlocker object is intended for use in a long-running callback from V8,
5399 V8_INLINE(internal::Object* IntToSmi(int value)) {
5403 return reinterpret_cast<internal::Object*>(tagged_value);
5410 V8_INLINE(static int SmiToInt(internal::Object* value)) {
5415 V8_INLINE(static internal::Object* IntToSmi(int value)) {
5438 V8_INLINE(static int SmiToInt(internal::Object* value)) {
5443 V8_INLINE(static internal::Object* IntToSmi(int value)) {
5512 V8_INLINE(static bool HasHeapObjectTag(internal::Object* value)) {
5517 V8_INLINE(static int SmiValue(internal::Object* value)) {
5521 V8_INLINE(static internal::Object* IntToSmi(int value)) {
5529 V8_INLINE(static int GetInstanceType(internal::Object* obj)) {
5530 typedef internal::Object O;
5535 V8_INLINE(static int GetOddballKind(internal::Object* obj)) {
5536 typedef internal::Object O;
5545 V8_INLINE(static uint8_t GetNodeFlag(internal::Object** obj, int shift)) {
5550 V8_INLINE(static void UpdateNodeFlag(internal::Object** obj,
5557 V8_INLINE(static uint8_t GetNodeState(internal::Object** obj)) {
5562 V8_INLINE(static void UpdateNodeState(internal::Object** obj,
5580 V8_INLINE(static internal::Object** GetRoot(v8::Isolate* isolate,
5583 return reinterpret_cast<internal::Object**>(addr + index * kApiPointerSize);
5587 V8_INLINE(static T ReadField(Object* ptr, int offset)) {
5594 typedef internal::Object O;
5608 V8_INLINE(static bool CanCastToHeapObject(Object* o)) { return true; }
5625 internal::Object** p = reinterpret_cast<internal::Object**>(that_ptr);
5649 internal::Object** p = reinterpret_cast<internal::Object**>(that_ptr);
5660 internal::Object** p = reinterpret_cast<internal::Object**>(that_ptr);
5669 reinterpret_cast<internal::Object**>(this->val_));
5675 internal::Object** handle =
5703 internal::Object** p = reinterpret_cast<internal::Object**>(that);
5714 return I::GetNodeFlag(reinterpret_cast<internal::Object**>(this->val_),
5724 I::GetNodeState(reinterpret_cast<internal::Object**>(this->val_));
5734 return I::GetNodeState(reinterpret_cast<internal::Object**>(this->val_)) ==
5742 V8::DisposeGlobal(reinterpret_cast<internal::Object**>(this->val_));
5756 V8::MakeWeak(reinterpret_cast<internal::Object**>(this->val_),
5793 V8::ClearWeak(reinterpret_cast<internal::Object**>(this->val_));
5801 I::UpdateNodeFlag(reinterpret_cast<internal::Object**>(this->val_),
5811 I::UpdateNodeFlag(reinterpret_cast<internal::Object**>(this->val_),
5827 internal::Object** p = reinterpret_cast<internal::Object**>(other.val_);
5842 internal::Object** p = reinterpret_cast<internal::Object**>(other.val_);
5867 internal::Object** obj = reinterpret_cast<internal::Object**>(this->val_);
5877 internal::Object** obj = reinterpret_cast<internal::Object**>(this->val_);
5884 ReturnValue<T>::ReturnValue(internal::Object** slot) : value_(slot) {}
5893 *value_ = *reinterpret_cast<internal::Object**>(*handle);
5904 *value_ = *reinterpret_cast<internal::Object**>(*handle);
5979 internal::Object* ReturnValue<T>::GetDefaultValue() {
5986 FunctionCallbackInfo<T>::FunctionCallbackInfo(internal::Object** implicit_args,
5987 internal::Object** values,
5996 Arguments::Arguments(internal::Object** args,
5997 internal::Object** values,
6018 Local<Object> FunctionCallbackInfo<T>::This() const {
6019 return Local<Object>(reinterpret_cast<Object*>(values_ + 1));
6024 Local<Object> FunctionCallbackInfo<T>::Holder() const {
6025 return Local<Object>(reinterpret_cast<Object*>(
6062 internal::Object** before = reinterpret_cast<internal::Object**>(*value);
6063 internal::Object** after = RawClose(before);
6096 Local<Value> Object::GetInternalField(int index) {
6098 typedef internal::Object O;
6101 // Fast path: If the object is a plain JSObject, which is the common case, we
6114 void* Object::GetAlignedPointerFromInternalField(int index) {
6116 typedef internal::Object O;
6119 // Fast path: If the object is a plain JSObject, which is the common case, we
6139 typedef internal::Object* S;
6174 typedef internal::Object O;
6193 typedef internal::Object O;
6220 typedef internal::Object O;
6238 typedef internal::Object O;
6256 typedef internal::Object O;
6341 Object* Object::Cast(v8::Value* value) {
6345 return static_cast<Object*>(value);
6490 Local<Object> PropertyCallbackInfo<T>::This() const {
6491 return Local<Object>(reinterpret_cast<Object*>(&args_[kThisIndex]));
6496 Local<Object> PropertyCallbackInfo<T>::Holder() const {
6497 return Local<Object>(reinterpret_cast<Object*>(&args_[kHolderIndex]));
6508 typedef internal::Object* S;
6517 typedef internal::Object* S;
6526 typedef internal::Object* S;
6535 typedef internal::Object* S;
6557 typedef internal::Object O;