• Home
  • Raw
  • Download

Lines Matching full:object

31 // 19.1.1.1 Object ( [ value ] )
36 BUILTINS_API_TRACE(thread, Object, Constructor); in ObjectConstructor()
63 // 19.1.2.1 Object.assign ( target, ...sources )
68 BUILTINS_API_TRACE(thread, Object, Assign); in Assign()
139 BUILTINS_API_TRACE(thread, Object, DefineProperties); in ObjectDefineProperties()
141 // 1.If Type(O) is not Object, throw a TypeError exception. in ObjectDefineProperties()
144 THROW_TYPE_ERROR_AND_RETURN(thread, "is not an object", JSTaggedValue::Exception()); in ObjectDefineProperties()
211 // 19.1.2.2 Object.create ( O [ , Properties ] )
216 BUILTINS_API_TRACE(thread, Object, Create); in Create()
218 // 1.If Type(O) is neither Object nor Null, throw a TypeError exception. in Create()
222 …THROW_TYPE_ERROR_AND_RETURN(thread, "Create: O is neither Object nor Null", JSTaggedValue::Excepti… in Create()
240 // 19.1.2.3 Object.defineProperties ( O, Properties )
245 BUILTINS_API_TRACE(thread, Object, DefineProperties); in DefineProperties()
251 // 19.1.2.4 Object.defineProperty ( O, P, Attributes )
256 BUILTINS_API_TRACE(thread, Object, DefineProperty); in DefineProperty()
259 // 1.If Type(O) is not Object, throw a TypeError exception. in DefineProperty()
263 …THROW_TYPE_ERROR_AND_RETURN(thread, "DefineProperty: O is not Object", JSTaggedValue::Exception()); in DefineProperty()
288 // 19.1.2.5 Object.freeze ( O )
293 BUILTINS_API_TRACE(thread, Object, Freeze); in Freeze()
295 // 1.If Type(O) is not Object, return O. in Freeze()
319 // 19.1.2.6 Object.getOwnPropertyDescriptor ( O, P )
324 BUILTINS_API_TRACE(thread, Object, GetOwnPropertyDescriptor); in GetOwnPropertyDescriptor()
354 …edValue BuiltinsObject::GetOwnPropertyKeys(JSThread *thread, const JSHandle<JSTaggedValue> &object, in GetOwnPropertyKeys() argument
357 BUILTINS_API_TRACE(thread, Object, GetOwnPropertyKeys); in GetOwnPropertyKeys()
360 JSHandle<JSObject> obj = JSTaggedValue::ToObject(thread, object); in GetOwnPropertyKeys()
409 // 19.1.2.7 Object.getOwnPropertyNames ( O )
414 BUILTINS_API_TRACE(thread, Object, GetOwnPropertyNames); in GetOwnPropertyNames()
423 // 19.1.2.8 Object.getOwnPropertySymbols ( O )
428 BUILTINS_API_TRACE(thread, Object, GetOwnPropertySymbols); in GetOwnPropertySymbols()
437 // 19.1.2.9 Object.getPrototypeOf ( O )
442 BUILTINS_API_TRACE(thread, Object, GetPrototypeOf); in GetPrototypeOf()
457 // 19.1.2.10 Object.is ( value1, value2 )
461 BUILTINS_API_TRACE(argv->GetThread(), Object, Is); in Is()
468 // 19.1.2.11 Object.isExtensible ( O )
473 // 1.If Type(O) is not Object, return false. in IsExtensible()
483 // 19.1.2.12 Object.isFrozen ( O )
487 // 1.If Type(O) is not Object, return true. in IsFrozen()
501 // 19.1.2.13 Object.isSealed ( O )
506 // 1.If Type(O) is not Object, return true. in IsSealed()
520 // 19.1.2.14 Object.keys(O)
525 BUILTINS_API_TRACE(thread, Object, Keys); in Keys()
547 // 20.1.2.22 Object.values(O)
552 BUILTINS_API_TRACE(thread, Object, Values); in Values()
573 // 19.1.2.15 Object.preventExtensions(O)
578 BUILTINS_API_TRACE(thread, Object, PreventExtensions); in PreventExtensions()
579 // 1. If Type(O) is not Object, return O. in PreventExtensions()
601 // 19.1.2.16 Object.prototype
603 // 19.1.2.17 Object.seal(O)
608 BUILTINS_API_TRACE(thread, Object, Seal); in Seal()
610 // 1. If Type(O) is not Object, return O. in Seal()
619 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, msg); in Seal() local
620 bool status = JSObject::SetIntegrityLevel(thread, object, IntegrityLevel::SEALED); in Seal()
632 return object.GetTaggedValue(); in Seal()
635 // 19.1.2.18 Object.setPrototypeOf(O, proto)
640 BUILTINS_API_TRACE(thread, Object, SetPrototypeOf); in SetPrototypeOf()
643 …JSHandle<JSTaggedValue> object = JSTaggedValue::RequireObjectCoercible(thread, GetCallArg(argv, 0)… in SetPrototypeOf() local
648 // 3. If Type(proto) is neither Object nor Null, throw a TypeError exception. in SetPrototypeOf()
652 THROW_TYPE_ERROR_AND_RETURN(thread, "SetPrototypeOf: proto is neither Object nor Null", in SetPrototypeOf()
656 // 4. If Type(O) is not Object, return O. in SetPrototypeOf()
657 if (!object->IsECMAObject()) { in SetPrototypeOf()
658 return object.GetTaggedValue(); in SetPrototypeOf()
662 bool status = JSTaggedValue::SetPrototype(thread, object, proto); in SetPrototypeOf()
674 return object.GetTaggedValue(); in SetPrototypeOf()
677 // 19.1.3.1 Object.prototype.constructor
679 // 19.1.3.2 Object.prototype.hasOwnProperty(V)
684 BUILTINS_API_TRACE(thread, Object, HasOwnProperty); in HasOwnProperty()
694 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, GetThis(argv)); in HasOwnProperty() local
700 … bool res = JSTaggedValue::HasOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(object), property); in HasOwnProperty()
704 // 19.1.3.3 Object.prototype.isPrototypeOf(V)
709 BUILTINS_API_TRACE(thread, Object, IsPrototypeOf); in IsPrototypeOf()
710 // 1. If Type(V) is not Object, return false. in IsPrototypeOf()
717 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, GetThis(argv)); in IsPrototypeOf() local
727 if (JSTaggedValue::SameValue(object.GetTaggedValue(), msgValueHandle.GetTaggedValue())) { in IsPrototypeOf()
735 // 19.1.3.4 Object.prototype.propertyIsEnumerable(V)
749 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, GetThis(argv)); in PropertyIsEnumerable() local
755 JSTaggedValue::GetOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(object), property, desc); in PropertyIsEnumerable()
769 // 19.1.3.5 Object.prototype.toLocaleString([reserved1[, reserved2]])
774 BUILTINS_API_TRACE(thread, Object, ToLocaleString); in ToLocaleString()
777 JSHandle<JSTaggedValue> object = GetThis(argv); in ToLocaleString() local
784 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, object, undefin… in ToLocaleString()
790 JSTaggedValue BuiltinsObject::GetBuiltinTag(JSThread *thread, const JSHandle<JSObject> &object) in GetBuiltinTag() argument
792 BUILTINS_API_TRACE(thread, Object, GetBuiltinTag); in GetBuiltinTag()
794 bool isArray = object->IsJSArray(); in GetBuiltinTag()
799 JSHandle<EcmaString> builtinTag = factory->NewFromASCII("Object"); in GetBuiltinTag()
803 } else if (object->IsJSPrimitiveRef()) { in GetBuiltinTag()
804 // 7. Else, if O is an exotic String object, let builtinTag be "String". in GetBuiltinTag()
805 JSPrimitiveRef *primitiveRef = JSPrimitiveRef::Cast(*object); in GetBuiltinTag()
815 } else if (object->IsArguments()) { in GetBuiltinTag()
817 } else if (object->IsCallable()) { in GetBuiltinTag()
819 } else if (object->IsJSError()) { in GetBuiltinTag()
821 } else if (object->IsDate()) { in GetBuiltinTag()
823 } else if (object->IsJSRegExp()) { in GetBuiltinTag()
826 // 15. Else, let builtinTag be "Object". in GetBuiltinTag()
830 // 19.1.3.6 Object.prototype.toString()
835 BUILTINS_API_TRACE(thread, Object, ToString); in ToString()
837 // 1. If the this value is undefined, return "[object Undefined]". in ToString()
841 return GetTaggedString(thread, "[object Undefined]"); in ToString()
843 // 2. If the this value is null, return "[object Null]". in ToString()
845 return GetTaggedString(thread, "[object Null]"); in ToString()
849 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, GetThis(argv)); in ToString() local
851 JSHandle<JSTaggedValue> builtinTag(thread, GetBuiltinTag(thread, object)); in ToString()
868 // 19. Return the String that is the result of concatenating "[object ", tag, and "]". in ToString()
869 JSHandle<EcmaString> leftString(factory->NewFromASCII("[object ")); in ToString()
878 // 19.1.3.7 Object.prototype.valueOf()
883 BUILTINS_API_TRACE(thread, Object, ValueOf); in ValueOf()
887 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, GetThis(argv)); in ValueOf() local
889 return object.GetTaggedValue(); in ValueOf()
891 // B.2.2.1 Object.prototype.__proto__
896 BUILTINS_API_TRACE(thread, Object, ProtoGetter); in ProtoGetter()
913 BUILTINS_API_TRACE(thread, Object, ProtoSetter); in ProtoSetter()
921 // 3. If Type(proto) is neither Object nor Null, return undefined.. in ProtoSetter()
927 // 4. If Type(O) is not Object, return undefined. in ProtoSetter()
962 BUILTINS_API_TRACE(thread, Object, ToString); in Entries()
967 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, obj); in Entries() local
970 …JSHandle<TaggedArray> nameList = JSObject::EnumerableOwnPropertyNames(thread, object, PropertyKind… in Entries()
980 BUILTINS_API_TRACE(thread, Object, FromEntries); in FromEntries()
989 // 2. Let obj be ! OrdinaryObjectCreate(%Object.prototype%). in FromEntries()
990 // 3. Assert: obj is an extensible ordinary object with no own properties. in FromEntries()
1014 BUILTINS_API_TRACE(thread, Object, CreateDataPropertyOnObjectFunctions); in CreateDataPropertyOnObjectFunctions()
1021 // 2. Assert: Type(O) is Object. in CreateDataPropertyOnObjectFunctions()
1022 // 3. Assert: O is an extensible ordinary object. in CreateDataPropertyOnObjectFunctions()