Lines Matching defs:Object
91 class Object;
151 class Object;
193 * An object reference managed by the v8 garbage collector.
198 * point directly to an object. Instead, all objects are stored in
200 * whenever an object moves. Handles should always be passed by value
211 * It is safe to extract the object stored in the handle by
212 * dereferencing the handle (for instance, to extract the Object* from
213 * a Local<Object>); the value will still be governed by a handle
254 internal::Object** a = reinterpret_cast<internal::Object**>(this->val_);
255 internal::Object** b = reinterpret_cast<internal::Object**>(that.val_);
263 internal::Object** a = reinterpret_cast<internal::Object**>(this->val_);
264 internal::Object** b = reinterpret_cast<internal::Object**>(that.val_);
320 friend class Object;
462 // will pass a void* parameter back, but is invoked before the object is
468 * An object reference that is independent of any handle scope. Where
474 * the v8 engine which holds an object value and which is updated by
475 * the garbage collector whenever the object is moved. A new storage
510 internal::Object** a = reinterpret_cast<internal::Object**>(this->val_);
511 internal::Object** b = reinterpret_cast<internal::Object**>(that.val_);
519 internal::Object** a = reinterpret_cast<internal::Object**>(this->val_);
520 internal::Object** b = reinterpret_cast<internal::Object**>(that.val_);
537 * Install a finalization callback on this object.
551 * that the object is no longer reachable.
564 * Allows the embedder to tell the v8 garbage collector that a certain object
571 * Marks the reference to this object independent. Garbage collector is free
572 * to ignore any object groups containing this object. Weak callback for an
579 * Marks the reference to this object partially dependent. Partially dependent
581 * dependencies are provided through object groups. It provides a way to build
582 * smaller object groups for young objects that represent only a subset of all
591 * Marks the reference to this object as active. The scavenge garbage
599 /** Checks if the handle holds the only reference to an object. */
629 friend class Object;
654 Uncompilable<Object>();
696 * pointing to the same object, and no flags are set.
706 * pointing to the same object, and no flags are set.
789 * pointing to the same object, and no flags are set.
799 * pointing to the same object, and no flags are set.
860 * garbage collector will no longer track the object stored in the
884 static internal::Object** CreateHandle(internal::Isolate* isolate,
885 internal::Object* value);
889 static internal::Object** CreateHandle(internal::HeapObject* heap_object,
890 internal::Object* value);
900 internal::Object** prev_next_;
901 internal::Object** prev_limit_;
906 // Object::GetInternalField and Context::GetEmbedderData use CreateHandle with
908 friend class Object;
928 internal::Object** slot =
929 Escape(reinterpret_cast<internal::Object**>(*value));
934 internal::Object** Escape(internal::Object** escape_value);
943 internal::Object** escape_slot_;
960 internal::Object** prev_limit_;
969 * The superclass of values and API object templates.
1136 // data and guarantees that it stays alive until the CachedData object is
1138 // (with delete[]) when the CachedData object is destroyed.
1168 // caller. The CachedData object is alive as long as the Source object is
1253 // caller. The CachedData object is alive as long as the StreamedSource
1254 // object is alive.
1287 * Cached data as part of the source object can be optionally produced to be
1295 * \return Compiled script object (context independent; for running it must be
1313 * \return Compiled script object, bound to the context that was active
1406 Local<Object> context_extensions[]));
1410 Local<Object> context_extensions[]);
1654 * Tries to stringify the JSON-serializable object |json_object| and returns
1657 * \param json_object The JSON-serializable object to stringify.
1661 Local<Context> context, Local<Object> json_object,
1741 * Returns true if this value is an object.
1776 * Returns true if this value is an Arguments object.
1781 * Returns true if this value is a Boolean object.
1786 * Returns true if this value is a Number object.
1791 * Returns true if this value is a String object.
1796 * Returns true if this value is a Symbol object.
1818 * Returns true if this value is a Generator object (iterator).
1963 V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
1980 Local<Object> ToObject(Isolate* isolate) const);
1994 inline V8_DEPRECATE_SOON("Use maybe version", Local<Object> ToObject() const);
2070 * Returns the identity hash for this object. The current implementation
2071 * uses an inline property on the object to store the identity hash.
2400 * Converts an object to a UTF-8-encoded character array. Useful if
2401 * you want to print the object. If conversion to a string fails
2402 * (e.g. due to an exception in the toString() method of the object)
2423 * Converts an object to a two-byte string.
2425 * method of the object) then the length() method returns 0 and the * operator
2585 * setting|getting a particular property. See Object and ObjectTemplate's
2638 * the collected properties to the given Object only. kIncludesPrototypes will
2655 * A JavaScript object (ECMA-262, 4.3.3)
2657 class V8_EXPORT Object : public Value {
2672 // on the object unless the property already exists and is not configurable
2673 // or the object is not extensible.
2693 // Sets an own property on this object bypassing interceptors and
2696 // Note that if the object has an interceptor the property will be set
2728 * Returns Object.getOwnPropertyDescriptor as per ES5 section 15.2.3.3.
2791 * of this object, including properties from prototype objects. The
2793 * be enumerated by a for-in statement over this object.
2813 * of this object, including properties from prototype objects. The
2815 * be enumerated by a for-in statement over this object.
2821 * Get the prototype object. This does not skip objects marked to
2828 * Set the prototype object. This does not skip objects marked to
2840 Local<Object> FindInstanceInPrototypeChain(Local<FunctionTemplate> tmpl);
2843 * Call builtin Object.prototype.toString on this object.
2852 * Returns the name of the function invoked as a constructor for this object.
2857 * Sets the integrity level of the object.
2861 /** Gets the number of internal fields for this Object. */
2866 const PersistentBase<Object>& object) {
2867 return object.val_->InternalFieldCount();
2885 const PersistentBase<Object>& object, int index) {
2886 return object.val_->GetAlignedPointerFromInternalField(index);
2939 * If result.IsEmpty() no real property was located on the object or
2966 * Returns the identity hash for this object. The current implementation
2967 * uses a hidden property on the object to store the identity hash.
2975 * Clone this object with a fast but shallow copy. Values will point
2976 * to the same values as the original object.
2979 Local<Object> Clone();
2982 * Returns the context in which the object was created.
2989 * When an Object is callable this method returns true.
2994 * True if this object is a constructor.
2999 * Call an Object as a function if a callback is set by the
3011 * Call an Object as a constructor if a callback is set by the
3021 * Return the isolate to which the Object belongs to.
3025 static Local<Object> New(Isolate* isolate);
3027 V8_INLINE static Object* Cast(Value* obj);
3030 Object();
3040 class V8_EXPORT Array : public Object {
3049 Local<Object> CloneElementAt(uint32_t index));
3051 MaybeLocal<Object> CloneElementAt(Local<Context> context,
3070 class V8_EXPORT Map : public Object {
3106 class V8_EXPORT Set : public Object {
3177 V8_INLINE void SetInternal(internal::Object* value) { *value_ = value; }
3178 V8_INLINE internal::Object* GetDefaultValue();
3179 V8_INLINE explicit ReturnValue(internal::Object** slot);
3180 internal::Object** value_;
3197 V8_INLINE Local<Object> This() const;
3198 V8_INLINE Local<Object> Holder() const;
3219 V8_INLINE FunctionCallbackInfo(internal::Object** implicit_args,
3220 internal::Object** values, int length);
3221 internal::Object** implicit_args_;
3222 internal::Object** values_;
3236 V8_INLINE Local<Object> This() const;
3237 V8_INLINE Local<Object> Holder() const;
3255 V8_INLINE PropertyCallbackInfo(internal::Object** args) : args_(args) {}
3256 internal::Object** args_;
3265 * A JavaScript function object (ECMA-262, 15.3).
3267 class V8_EXPORT Function : public Object {
3283 Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
3284 V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
3287 V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
3288 V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
3307 * to object properties.
3364 class V8_EXPORT Promise : public Object {
3366 class V8_EXPORT Resolver : public Object {
3440 class V8_EXPORT Proxy : public Object {
3442 Local<Object> GetTarget();
3451 Local<Object> local_target,
3452 Local<Object> local_handler);
3475 class V8_EXPORT ArrayBuffer : public Object {
3550 * unless the object is externalized.
3628 class V8_EXPORT ArrayBufferView : public Object {
3876 class V8_EXPORT SharedArrayBuffer : public Object {
3913 * unless the object is externalized.
3974 class V8_EXPORT Date : public Object {
3983 * because we know the structure of this object.
3996 * object.
4009 * A Number object (ECMA-262, 4.3.21).
4011 class V8_EXPORT NumberObject : public Object {
4025 * A Boolean object (ECMA-262, 4.3.15).
4027 class V8_EXPORT BooleanObject : public Object {
4042 * A String object
4044 class V8_EXPORT StringObject : public Object {
4058 * A Symbol object (ECMA-262 edition 6).
4062 class V8_EXPORT SymbolObject : public Object {
4078 class V8_EXPORT RegExp : public Object {
4155 * The superclass of object and function templates.
4179 * on the JavaScript object.
4233 * NamedProperty[Getter|Setter] are used as interceptors on object.
4282 * GenericNamedProperty[Getter|Setter] are used as interceptors on object.
4384 * object.
4387 Local<Object> accessed_object,
4402 * function object when it is created.
4405 * used to create object instances when the function is used as a
4407 * each object instance.
4410 * is used to create the prototype object of the function.
4428 * v8::Local<v8::Object> instance = function->NewInstance();
4431 * Let's use "function" as the JS variable name of the function object
4432 * and "instance" for the instance object created above. The function
4460 * object of the Child() function has __proto__ pointing to the
4461 * Parent() function's prototype object. An instance of the Child
4473 * Local<Object> child_instance = child_function->NewInstance();
4531 * A PrototypeTemplate is the template used to create the prototype object
4554 * next object in the prototype chain.
4577 * Returns true if the given object is an instance of this function
4580 bool HasInstance(Local<Value> object);
4661 * Properties added to an ObjectTemplate are added to each object
4676 V8_DEPRECATE_SOON("Use maybe version", Local<Object> NewInstance());
4677 V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(Local<Context> context);
4680 * Sets an accessor on the object template.
4685 * on the JavaScript object.
4720 * Sets a named property handler on the object template.
4723 * from this object template, the provided callback is invoked instead of
4724 * accessing the property directly on the JavaScript object.
4735 * properties of an object.
4749 * Sets an indexed property handler on the object template.
4752 * this object template, the provided callback is invoked instead of
4753 * accessing the property directly on the JavaScript object.
4757 * \param query The callback to invoke to check if an object has a property.
4760 * properties of an object.
4786 * Mark object instances of the template as undetectable.
4796 * Sets access check callback on the object template and enables access
4799 * When accessing properties on instances of this object template,
5004 * Create new error objects by calling the corresponding error object
5156 typedef void (*FailedAccessCheckCallback)(Local<Object> target,
5190 * constructing retained object infos.
5347 // Name of the object associated with the code, note that the string is not
5453 * each js object reachable from any of the given wrappers.
5836 * \param space_statistics The HeapSpaceStatistics object to fill in
5853 * \param object_statistics The HeapObjectStatistics object to fill in
5855 * \param type_index The index of the type of object to fill details about,
5865 * \param object_statistics The HeapCodeStatistics object to fill in
5953 * object in the group is alive, all objects in the group are alive.
5954 * After each garbage collection, object groups are removed. It is
5957 * wrapper objects. Object groups for all dependent handles need to
5959 * garbage collection types it is sufficient to provide object groups
5962 template<typename T> void SetObjectGroupId(const Persistent<T>& object,
5966 * Allows the host application to declare implicit references from an object
5967 * group to an object. If the objects of the object group are alive, the child
5968 * object is alive too. After each garbage collection, all implicit references
5976 * Allows the host application to declare implicit references from an object
5977 * to another object. If the parent objectobject is alive
6033 * acquired the V8 lock with a Locker object.
6059 * acquired the V8 lock with a Locker object.
6331 * Otherwise, the exception object will be passed to the callback instead.
6398 void SetObjectGroupId(internal::Object** object, UniqueId id);
6399 void SetReferenceFromGroup(UniqueId id, internal::Object** object);
6400 void SetReference(internal::Object** parent, internal::Object** child);
6503 * Otherwise, the exception object will be passed to the callback instead.
6616 * acquired the V8 lock with a Locker object.
6649 * acquired the V8 lock with a Locker object.
6765 static internal::Object** GlobalizeReference(internal::Isolate* isolate,
6766 internal::Object** handle);
6767 static internal::Object** CopyPersistent(internal::Object** handle);
6768 static void DisposeGlobal(internal::Object** global_handle);
6769 static void MakeWeak(internal::Object** location, void* data,
6772 static void MakeWeak(internal::Object** location, void* data,
6778 static void MakeWeak(internal::Object*** location_addr);
6779 static void* ClearWeak(internal::Object** location);
6785 static void RegisterExternallyReferencedObject(internal::Object** object,
6862 * A simple Maybe type, representing an object which may or may not have a
6993 * Returns the .stack property of the thrown object. If no .stack
7032 * Set whether or not this TryCatch should capture a Message object
7039 * There are cases when the raw address of C++ TryCatch object cannot be
7042 * 2) Address sanitizer allocates local C++ object in the heap when
7106 * Returns the global proxy object.
7108 * Global proxy object is a thin wrapper whose prototype points to actual
7109 * context's global object with the properties like Object, etc. This is done
7113 * Please note that changes to global proxy object prototype most probably
7114 * would break VM---v8 expects only global object as a prototype of global
7115 * proxy object.
7117 Local<Object> Global();
7120 * Detaches the global object from its context before
7121 * the global object can be reused to create a new context.
7134 * \param global_template An optional object template from which the
7135 * global object for the newly created context will be created.
7137 * \param global_object An optional global object to be reused for
7138 * the newly created context. This global object must have been
7140 * template. The state of the global object will be completely reset
7141 * and only object identify will remain.
7150 * Sets the security token for the context. To access an object in
7193 * Gets the binding object used by V8 extras. Extra natives get a reference
7194 * to this object and can use it to "export" functionality by adding
7198 Local<Object> GetExtrasBindingObject();
7273 friend class Object;
7285 * object pointers obtained from V8 handles while in the particular V8 isolate.
7291 * v8::Locker is a scoped lock object. While it's active, i.e. between its
7309 * destroying the v8::Locker object as above or by constructing a v8::Unlocker
7310 * object:
7323 * The Unlocker object is intended for use in a long-running callback from V8,
7427 V8_INLINE internal::Object* IntToSmi(int value) {
7431 return reinterpret_cast<internal::Object*>(tagged_value);
7439 V8_INLINE static int SmiToInt(const internal::Object* value) {
7444 V8_INLINE static internal::Object* IntToSmi(int value) {
7468 V8_INLINE static int SmiToInt(const internal::Object* value) {
7473 V8_INLINE static internal::Object* IntToSmi(int value) {
7555 V8_INLINE static bool HasHeapObjectTag(const internal::Object* value) {
7560 V8_INLINE static int SmiValue(const internal::Object* value) {
7564 V8_INLINE static internal::Object* IntToSmi(int value) {
7572 V8_INLINE static int GetInstanceType(const internal::Object* obj) {
7573 typedef internal::Object O;
7580 V8_INLINE static int GetOddballKind(const internal::Object* obj) {
7581 typedef internal::Object O;
7590 V8_INLINE static uint8_t GetNodeFlag(internal::Object** obj, int shift) {
7595 V8_INLINE static void UpdateNodeFlag(internal::Object** obj,
7602 V8_INLINE static uint8_t GetNodeState(internal::Object** obj) {
7607 V8_INLINE static void UpdateNodeState(internal::Object** obj,
7628 V8_INLINE static internal::Object** GetRoot(v8::Isolate* isolate,
7631 return reinterpret_cast<internal::Object**>(addr + index * kApiPointerSize);
7635 V8_INLINE static T ReadField(const internal::Object* ptr, int offset) {
7643 typedef internal::Object O;
7673 internal::Object** p = reinterpret_cast<internal::Object**>(that_ptr);
7714 internal::Object** p = reinterpret_cast<internal::Object**>(that);
7727 internal::Object** p = reinterpret_cast<internal::Object**>(that.val_);
7737 return I::GetNodeFlag(reinterpret_cast<internal::Object**>(this->val_),
7747 I::GetNodeState(reinterpret_cast<internal::Object**>(this->val_));
7757 return I::GetNodeState(reinterpret_cast<internal::Object**>(this->val_)) ==
7765 V8::DisposeGlobal(reinterpret_cast<internal::Object**>(this->val_));
7797 V8::MakeWeak(reinterpret_cast<internal::Object**>(this->val_), parameter,
7803 V8::MakeWeak(reinterpret_cast<internal::Object***>(&this->val_));
7810 V8::ClearWeak(reinterpret_cast<internal::Object**>(this->val_)));
7817 reinterpret_cast<internal::Object**>(this->val_),
7825 I::UpdateNodeFlag(reinterpret_cast<internal::Object**>(this->val_),
7835 I::UpdateNodeFlag(reinterpret_cast<internal::Object**>(this->val_),
7845 I::UpdateNodeFlag(reinterpret_cast<internal::Object**>(this->val_), true,
7854 internal::Object** obj = reinterpret_cast<internal::Object**>(this->val_);
7864 internal::Object** obj = reinterpret_cast<internal::Object**>(this->val_);
7871 ReturnValue<T>::ReturnValue(internal::Object** slot) : value_(slot) {}
7880 *value_ = *reinterpret_cast<internal::Object**>(*handle);
7891 *value_ = *reinterpret_cast<internal::Object**>(*handle);
7902 *value_ = *reinterpret_cast<internal::Object**>(*handle);
7991 internal::Object* ReturnValue<T>::GetDefaultValue() {
7997 FunctionCallbackInfo<T>::FunctionCallbackInfo(internal::Object** implicit_args,
7998 internal::Object** values,
8017 Local<Object> FunctionCallbackInfo<T>::This() const {
8018 return Local<Object>(reinterpret_cast<Object*>(values_ + 1));
8023 Local<Object> FunctionCallbackInfo<T>::Holder() const {
8024 return Local<Object>(reinterpret_cast<Object*>(
8140 Local<Value> Object::GetInternalField(int index) {
8142 typedef internal::Object O;
8146 // Fast path: If the object is a plain JSObject, which is the common case, we
8161 void* Object::GetAlignedPointerFromInternalField(int index) {
8163 typedef internal::Object O;
8166 // Fast path: If the object is a plain JSObject, which is the common case, we
8188 typedef internal::Object* S;
8197 typedef internal::Object O;
8216 typedef internal::Object O;
8243 typedef internal::Object O;
8261 typedef internal::Object O;
8279 typedef internal::Object O;
8316 Local<Object> Value::ToObject() const {
8318 .FromMaybe(Local<Object>());
8444 Object* Object::Cast(v8::Value* value) {
8448 return static_cast<Object*>(value);
8641 Local<Object> PropertyCallbackInfo<T>::This() const {
8642 return Local<Object>(reinterpret_cast<Object*>(&args_[kThisIndex]));
8647 Local<Object> PropertyCallbackInfo<T>::Holder() const {
8648 return Local<Object>(reinterpret_cast<Object*>(&args_[kHolderIndex]));
8665 typedef internal::Object* S;
8674 typedef internal::Object* S;
8683 typedef internal::Object* S;
8692 typedef internal::Object* S;
8735 void Isolate::SetObjectGroupId(const Persistent<T>& object,
8738 SetObjectGroupId(reinterpret_cast<v8::internal::Object**>(object.val_), id);
8744 const Persistent<T>& object) {
8747 reinterpret_cast<v8::internal::Object**>(object.val_));
8754 TYPE_CHECK(Object, T);
8756 SetReference(reinterpret_cast<v8::internal::Object**>(parent.val_),
8757 reinterpret_cast<v8::internal::Object**>(child.val_));
8763 typedef internal::Object O;