Home | History | Annotate | Download | only in include

Lines Matching defs:Object

88 class Object;
114 class Object;
127 * This callback should either explicitly invoke Dispose on |object| if
130 * \param object the weak global object to be reclaimed by the garbage collector
131 * \param parameter the value passed in when making the weak global object
133 typedef void (*WeakReferenceCallback)(Persistent<Value> object,
145 * An object reference managed by the v8 garbage collector.
150 * point directly to an object. Instead, all objects are stored in
152 * whenever an object moves. Handles should always be passed by value
163 * It is safe to extract the object stored in the handle by
164 * dereferencing the handle (for instance, to extract the Object* from
165 * a Handle<Object>); the value will still be governed by a handle
222 internal::Object** a = reinterpret_cast<internal::Object**>(**this);
223 internal::Object** b = reinterpret_cast<internal::Object**>(*that);
258 * A light-weight stack-allocated object handle. All operations
299 * An object reference that is independent of any handle scope. Where
305 * the v8 engine which holds an object value and which is updated by
306 * the garbage collector whenever the object is moved. A new storage
381 * Make the reference to this object weak. When only weak handles
382 * refer to the object, the garbage collector will perform a
384 * it the object reference and the given parameters.
388 /** Clears the weak reference to this object.*/
392 * Marks the reference to this object independent. Garbage collector
393 * is free to ignore any object groups containing this object.
401 *Checks if the handle holds the only reference to an object.
432 * garbage collector will no longer track the object stored in the
456 static internal::Object** CreateHandle(internal::Object* value);
458 static internal::Object** CreateHandle(internal::HeapObject* value);
472 internal::Object** next;
473 internal::Object** limit;
484 internal::Object** prev_next_;
485 internal::Object** prev_limit_;
490 internal::Object** RawClose(internal::Object** value);
500 * The superclass of values and API object templates.
602 * \return Compiled script object (context independent; when run it
612 * object (typically a string) as the script's origin.
615 * \param file_name file name object (typically a string) to be used
617 * \return Compiled script object (context independent; when run it
635 * \return Compiled script object, bound to the context that was active
646 * object (typically a string) as the script's origin.
653 * \return Compiled script object, bound to the context that was active
676 * Associate an additional data object with the script. This is mainly used
677 * with the debugger as this data object is only available through the
900 * Returns true if this value is an object.
935 * Returns true if this value is a Boolean object.
940 * Returns true if this value is a Number object.
945 * Returns true if this value is a String object.
963 V8EXPORT Local<Object> ToObject() const;
1268 * Converts an object to a UTF-8-encoded character array. Useful if
1269 * you want to print the object. If conversion to a string fails
1270 * (e.g. due to an exception in the toString() method of the object)
1291 * Converts an object to an ASCII string.
1292 * Useful if you want to print the object.
1294 * method of the object) then the length() method returns 0 and the * operator
1314 * Converts an object to a two-byte string.
1316 * method of the object) then the length() method returns 0 and the * operator
1413 * setting|getting a particular property. See Object and ObjectTemplate's
1447 * A JavaScript object (ECMA-262, 4.3.3)
1449 class Object : public Value {
1458 // Sets a local property on this object bypassing interceptors and
1461 // Note that if the object has an interceptor the property will be set
1487 // Delete a property on this object bypassing interceptors and
1504 * of this object, including properties from prototype objects. The
1506 * be enumerated by a for-in statement over this object.
1518 * Get the prototype object. This does not skip objects marked to
1525 * Set the prototype object. This does not skip objects marked to
1535 V8EXPORT Local<Object> FindInstanceInPrototypeChain(
1539 * Call builtin Object.prototype.toString on this object.
1546 * Returns the name of the function invoked as a constructor for this object.
1550 /** Gets the number of internal fields for this Object. */
1577 * If result.IsEmpty() no real property was located on the object or
1590 * Turns on access check on the object if the object is an instance of
1591 * a template that has access check callbacks. If an object has no
1592 * access check info, the object cannot be accessed by anyone.
1597 * Returns the identity hash for this object. The current implementation
1598 * uses a hidden property on the object to store the identity hash.
1625 * Clone this object with a fast but shallow copy. Values will point
1626 * to the same values as the original object.
1628 V8EXPORT Local<Object> Clone();
1631 * Returns the context in which the object was created.
1666 * When an Object is callable this method returns true.
1671 * Call an Object as a function if a callback is set by the
1674 V8EXPORT Local<Value> CallAsFunction(Handle<Object> recv,
1679 * Call an Object as a constructor if a callback is set by the
1686 V8EXPORT static Local<Object> New();
1687 static inline Object* Cast(Value* obj);
1690 V8EXPORT Object();
1706 class Array : public Object {
1714 V8EXPORT Local<Object> CloneElementAt(uint32_t index);
1730 * A JavaScript function object (ECMA-262, 15.3).
1732 class Function : public Object {
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,
1746 * to object properties.
1774 class Date : public Object {
1780 * because we know the structure of this object.
1793 * object.
1806 * A Number object (ECMA-262, 4.3.21).
1808 class NumberObject : public Object {
1813 * Returns the Number held by the object.
1825 * A Boolean object (ECMA-262, 4.3.15).
1827 class BooleanObject : public Object {
1832 * Returns the Boolean held by the object.
1844 * A String object (ECMA-262, 4.3.18).
1846 class StringObject : public Object {
1851 * Returns the String held by the object.
1865 class RegExp : public Object {
1914 * The Wrap function V8 will return the most optimal Value object wrapping the
1915 * C++ void*. The type of the value is not guaranteed to be an External object
1917 * value Unwrap should be used, all other operations on that object will lead
1940 * The superclass of object and function templates.
1967 inline Local<Object> This() const;
1968 inline Local<Object> Holder() const;
1977 inline Arguments(internal::Object** implicit_args,
1978 internal::Object** values,
1981 internal::Object** implicit_args_;
1982 internal::Object** values_;
1994 inline AccessorInfo(internal::Object** args)
1997 inline Local<Object> This() const;
1998 inline Local<Object> Holder() const;
2000 internal::Object** args_;
2007 * NamedProperty[Getter|Setter] are used as interceptors on object.
2099 * property with the given key on the host object.
2101 typedef bool (*NamedSecurityCallback)(Local<Object> host,
2109 * property with the given index on the host object.
2111 typedef bool (*IndexedSecurityCallback)(Local<Object> host,
2126 * function object when it is created.
2129 * used to create object instances when the function is used as a
2131 * each object instance.
2134 * is used to create the prototype object of the function.
2152 * v8::Local<v8::Object> instance = function->NewInstance();
2155 * Let's use "function" as the JS variable name of the function object
2156 * and "instance" for the instance object created above. The function
2184 * object of the Child() function has __proto__ pointing to the
2185 * Parent() function's prototype object. An instance of the Child
2197 * Local<Object> child_instance = child_function->NewInstance();
2234 * A PrototypeTemplate is the template used to create the prototype object
2251 * next object in the prototype chain.
2268 * Returns true if the given object is an instance of this function
2271 bool HasInstance(Handle<Value> object);
2304 * Properties added to an ObjectTemplate are added to each object
2313 Local<Object> NewInstance();
2316 * Sets an accessor on the object template.
2321 * on the JavaScript object.
2347 * Sets a named property handler on the object template.
2350 * this object template, the provided callback is invoked instead of
2351 * accessing the property directly on the JavaScript object.
2359 * properties of an object.
2371 * Sets an indexed property handler on the object template.
2374 * this object template, the provided callback is invoked instead of
2375 * accessing the property directly on the JavaScript object.
2379 * \param query The callback to invoke to check if an object has a property.
2382 * properties of an object.
2403 * Mark object instances of the template as undetectable.
2413 * Sets access check callbacks on the object template.
2415 * When accessing properties on instances of this object template,
2421 * Object::TurnOnAccessCheck().
2606 * Create new error objects by calling the corresponding error object
2658 typedef void (*FailedAccessCheckCallback)(Local<Object> target,
3100 * object in the group is alive, all objects in the group are alive.
3101 * After each garbage collection, object groups are removed. It is
3118 static void AddImplicitReferences(Persistent<Object> parent,
3184 * lock has been acquired with a Locker object with that thread.
3193 * been acquired with a Locker object. Therefore, in order to be
3220 * acquired the V8 lock with a Locker object.
3292 static internal::Object** GlobalizeReference(internal::Object** handle);
3293 static void DisposeGlobal(internal::Object** global_handle);
3294 static void MakeWeak(internal::Object** global_handle,
3297 static void ClearWeak(internal::Object** global_handle);
3298 static void MarkIndependent(internal::Object** global_handle);
3299 static bool IsGlobalNearDeath(internal::Object** global_handle);
3300 static bool IsGlobalWeak(internal::Object** global_handle);
3301 static void SetWrapperClassId(internal::Object** global_handle,
3364 * Returns the .stack property of the thrown object. If no .stack
3400 * Set whether or not this TryCatch should capture a Message object
3444 * Returns the global proxy object or global object itself for
3447 * Global proxy object is a thin wrapper whose prototype points to
3448 * actual context's global object with the properties like Object, etc.
3452 * Please note that changes to global proxy object prototype most probably
3453 * would break VM---v8 expects only global object as a prototype of
3454 * global proxy object.
3457 * object until global is reattached with ReattachGlobal().
3459 Local<Object> Global();
3462 * Detaches the global object from its context before
3463 * the global object can be reused to create a new context.
3468 * Reattaches a global object to a context. This can be used to
3469 * restore the connection between a global object and a context
3472 * \param global_object The global object to reattach to the
3473 * context. For this to work, the global object must be the global
3474 * object that was associated with this context before a call to
3477 void ReattachGlobal(Handle<Object> global_object);
3488 * \param global_template An optional object template from which the
3489 * global object for the newly created context will be created.
3491 * \param global_object An optional global object to be reused for
3492 * the newly created context. This global object must have been
3494 * template. The state of the global object will be completely reset
3495 * and only object identify will remain.
3516 * Sets the security token for the context. To access an object in
3548 * Associate an additional data object with the context. This is mainly used
3593 friend class Object;
3602 * accessing handles or holding onto object pointers obtained
3609 * v8::Locker is a scoped lock object. While it's
3628 * by destroying the v8::Locker object as above or by constructing a
3629 * v8::Unlocker object:
3642 * The Unlocker object is intended for use in a long-running callback
3809 static inline int SmiToInt(internal::Object* value) {
3825 static inline int SmiToInt(internal::Object* value) {
3886 static inline bool HasHeapObjectTag(internal::Object* value) {
3891 static inline bool HasSmiTag(internal::Object* value) {
3895 static inline int SmiValue(internal::Object* value) {
3899 static inline int GetInstanceType(internal::Object* obj) {
3900 typedef internal::Object O;
3905 static inline void* GetExternalPointerFromSmi(internal::Object* value) {
3910 static inline void* GetExternalPointer(internal::Object* obj) {
3926 static inline T ReadField(Object* ptr, int offset) {
3934 static inline bool CanCastToHeapObject(Object* o) { return true; }
3951 internal::Object** p = reinterpret_cast<internal::Object**>(that_ptr);
3963 internal::Object** p = reinterpret_cast<internal::Object**>(*that);
3971 return V8::IsGlobalNearDeath(reinterpret_cast<internal::Object**>(**this));
3978 return V8::IsGlobalWeak(reinterpret_cast<internal::Object**>(**this));
3985 V8::DisposeGlobal(reinterpret_cast<internal::Object**>(**this));
3994 V8::MakeWeak(reinterpret_cast<internal::Object**>(**this),
4001 V8::ClearWeak(reinterpret_cast<internal::Object**>(**this));
4006 V8::MarkIndependent(reinterpret_cast<internal::Object**>(**this));
4011 V8::SetWrapperClassId(reinterpret_cast<internal::Object**>(**this), class_id);
4014 Arguments::Arguments(internal::Object** implicit_args,
4015 Object** values, int length,
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*>(
4063 internal::Object** before = reinterpret_cast<internal::Object**>(*value);
4064 internal::Object** after = RawClose(before);
4093 Local<Value> Object::GetInternalField(int index) {
4102 Local<Value> Object::UncheckedGetInternalField(int index) {
4103 typedef internal::Object O;
4107 // If the object is a plain JSObject, which is the common case,
4130 typedef internal::Object O;
4136 void* Object::GetPointerFromInternalField(int index) {
4137 typedef internal::Object O;
4143 // If the object is a plain JSObject, which is the common case,
4164 typedef internal::Object O;
4190 typedef internal::Object O;
4254 Object* Object::Cast(v8::Value* value) {
4258 return static_cast<Object*>(value);
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]));