Lines Matching defs:object

646     ASSERT_PRINT(obj->IsECMAObject(), "obj is not object");
847 ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object");
868 ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object");
882 ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object");
1089 ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object");
1109 ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object");
1120 ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object");
1424 // 7bi. If O is not undefined, convert the property named P of object O from a data property to an
1428 // 7ci. If O is not undefined, convert the property named P of object O from an accessor property to a
1457 // a. For each field of Desc that is present, set the corresponding attribute of the property named P of object
1497 ASSERT_PRINT(proto->IsECMAObject() || proto->IsNull(), "proto must be object or null");
1715 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object");
1733 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object");
1748 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object");
1761 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object");
1773 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object");
1816 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object");
1879 "Obj is not a valid shared object");
1881 // It is not extensible for shared object.
1909 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object");
1951 ASSERT_PRINT(obj->IsECMAObject(), "obj is not object");
2048 ASSERT_PRINT(obj->IsECMAObject(), "obj is not object");
2123 JSHandle<GlobalEnv> JSObject::GetFunctionRealm(JSThread *thread, const JSHandle<JSTaggedValue> &object)
2125 // 1. Assert: obj is a callable object.
2126 ASSERT(object->IsCallable());
2128 // 3. If obj is a Bound Function exotic object, then
2129 if (object->IsBoundFunction()) {
2131 JSHandle<JSTaggedValue> target(thread, JSHandle<JSBoundFunction>(object)->GetBoundTarget());
2135 // 4. If obj is a Proxy exotic object, then
2136 if (object->IsJSProxy()) {
2138 if (JSHandle<JSProxy>(object)->GetHandler().IsNull()) {
2143 JSHandle<JSTaggedValue> proxyTarget(thread, JSHandle<JSProxy>(object)->GetTarget());
2147 if (object->IsJSShared()) {
2152 JSTaggedValue maybeGlobalEnv = JSHandle<JSFunction>(object)->GetLexicalEnv();
2162 bool JSObject::InstanceOf(JSThread *thread, const JSHandle<JSTaggedValue> &object,
2179 // a. Return ! ToBoolean(? Call(instOfHandler, target, «object»)).
2184 info->SetCallArg(object.GetTaggedValue());
2195 // 6. Return ? OrdinaryHasInstance(target, object).
2196 return JSFunction::OrdinaryHasInstance(thread, target, object);
2455 ASSERT_PRINT(obj->IsECMAObject(), "obj must be js object");
2620 JSHandle<JSTaggedValue> object;
2623 object = JSHandle<JSTaggedValue>::Cast(JSPrimitiveRef::StringCreate(thread, obj, undefined));
2625 object = JSTaggedValue::ToPrototypeOrObj(thread, obj);
2630 if (object->IsNull() || object->IsUndefined()) {
2636 keys.Update(TryGetEnumCache(thread, object.GetTaggedValue()));
2638 cachedHclass.Update(JSTaggedValue(JSHandle<JSObject>::Cast(object)->GetJSHClass()));
2639 return thread->GetEcmaVM()->GetFactory()->NewJSForinIterator(object, keys, cachedHclass);
2641 return LoadEnumerateProperties(thread, object);
2644 JSHandle<JSForInIterator> JSObject::LoadEnumerateProperties(JSThread *thread, const JSHandle<JSTaggedValue> &object)
2646 PropertyAccessor accessor(thread, object);
2658 return thread->GetEcmaVM()->GetFactory()->NewJSForinIterator(object, keys, cachedHclass);
2665 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object");
2686 ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object");
2696 ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object");
2729 // if check failed, get literal object again
2765 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object");
2796 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object");
2826 ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object");
2846 void JSObject::TrimInlinePropsSpace(const JSThread *thread, const JSHandle<JSObject> &object,
2851 uint32_t newSize = object->GetClass()->GetObjectSize();
2853 factory->FillFreeObject(ToUintPtr(*object) + newSize, trimBytes, RemoveSlots::YES, ToUintPtr(*object));
2976 JSHandle<JSTaggedValue> object(obj);
2977 bool isShared = object->IsJSShared();