/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | test_runtime_stubs.cpp | 109 ASSERT(targetHandle->IsECMAObject()); in DEF_RUNTIME_STUBS() 112 ASSERT(handlerHandle->IsECMAObject()); in DEF_RUNTIME_STUBS() 113 ASSERT(targetHandle->IsECMAObject()); in DEF_RUNTIME_STUBS() 126 ASSERT(funcHandle->IsECMAObject()); in DEF_RUNTIME_STUBS() 133 ASSERT(handlerHandle->IsECMAObject()); in DEF_RUNTIME_STUBS() 147 ASSERT(handlerHandle->IsECMAObject()); in DEF_RUNTIME_STUBS() 148 ASSERT(targetHandle->IsECMAObject()); in DEF_RUNTIME_STUBS() 162 ASSERT(value->IsECMAObject()); in DEF_RUNTIME_STUBS()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_reflect.cpp | 95 if (!target->IsECMAObject()) { in ReflectDefineProperty() 119 if (!target->IsECMAObject()) { in ReflectDeleteProperty() 138 if (!val->IsECMAObject()) { in ReflectGet() 164 if (!target->IsECMAObject()) { in ReflectGetOwnPropertyDescriptor() 190 if (!val->IsECMAObject()) { in ReflectGetPrototypeOf() 206 if (!target->IsECMAObject()) { in ReflectHas() 224 if (!target->IsECMAObject()) { in ReflectIsExtensible() 240 if (!target->IsECMAObject()) { in ReflectOwnKeys() 260 if (!target->IsECMAObject()) { in ReflectPreventExtensions() 277 if (!targetVal->IsECMAObject()) { in ReflectSet() [all …]
|
D | builtins_object.cpp | 142 if (!obj->IsECMAObject()) { in ObjectDefineProperties() 220 if (!obj->IsECMAObject() && !obj->IsNull()) { in Create() 261 if (!obj->IsECMAObject()) { in DefineProperty() 297 if (!obj->IsECMAObject()) { in Freeze() 491 if (!obj->IsECMAObject()) { in IsFrozen() 510 if (!obj->IsECMAObject()) { in IsSealed() 583 if (!obj->IsECMAObject()) { in PreventExtensions() 614 if (!msg->IsECMAObject()) { in Seal() 652 if (!proto->IsNull() && !proto->IsECMAObject()) { in SetPrototypeOf() 659 if (!object->IsECMAObject()) { in SetPrototypeOf() [all …]
|
D | builtins_dataview.cpp | 43 if (!bufferHandle->IsECMAObject()) { in DataViewConstructor() 117 if (!thisHandle->IsECMAObject()) { in GetBuffer() 141 if (!thisHandle->IsECMAObject()) { in GetByteLength() 171 if (!thisHandle->IsECMAObject()) { in GetOffset() 356 if (!view->IsECMAObject()) { in GetViewValue() 411 if (!view->IsECMAObject()) { in SetViewValue()
|
D | builtins_sharedarraybuffer.cpp | 61 if (!arg->IsECMAObject()) { in IsSharedArrayBuffer() 143 if (!thisHandle->IsECMAObject()) { in GetByteLength() 169 if (!thisHandle->IsECMAObject()) { in Slice()
|
D | builtins_async_from_sync_iterator.cpp | 119 if (!result->IsECMAObject()) { in Throw() 194 if (!result->IsECMAObject()) { in Return()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_proxy_test.cpp | 81 EXPECT_TRUE(handlerHandle->IsECMAObject()); in HWTEST_F_L0() 105 EXPECT_TRUE(targetHandle->IsECMAObject()); in HWTEST_F_L0() 113 EXPECT_TRUE(handlerHandle->IsECMAObject()); in HWTEST_F_L0() 146 EXPECT_TRUE(targetHandle->IsECMAObject()); in HWTEST_F_L0() 154 EXPECT_TRUE(handlerHandle->IsECMAObject()); in HWTEST_F_L0() 190 EXPECT_TRUE(targetHandle->IsECMAObject()); in HWTEST_F_L0() 196 EXPECT_TRUE(handlerHandle->IsECMAObject()); in HWTEST_F_L0() 231 EXPECT_TRUE(targetHandle->IsECMAObject()); in HWTEST_F_L0() 237 EXPECT_TRUE(handlerHandle->IsECMAObject()); in HWTEST_F_L0() 273 EXPECT_TRUE(targetHandle->IsECMAObject()); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_global_object.h | 27 ASSERT(JSTaggedValue(object).IsECMAObject()); in Cast() 40 ASSERT(JSTaggedValue(object).IsECMAObject()); in Cast()
|
D | js_iterator.cpp | 70 if (!iter->IsECMAObject()) { in GetIterator() 107 if (!iterator->IsECMAObject()) { in GetAsyncIterator() 129 if (!ret.IsECMAObject()) { in IteratorNext() 152 if (!ret.IsECMAObject()) { in IteratorNext() 174 if (!ret.IsECMAObject()) { in IteratorNext() 193 if (!ret.IsECMAObject()) { in IteratorNext() 202 ASSERT_PRINT(iterResult->IsECMAObject(), "iterResult must be JSObject"); in IteratorComplete() 212 ASSERT_PRINT(iterResult->IsECMAObject(), "iterResult must be JSObject"); in IteratorValue() 243 ASSERT_PRINT(iter->IsECMAObject(), "iter must be JSObject"); in IteratorClose() 293 if (!innerResult->IsECMAObject()) { in IteratorClose()
|
D | js_proxy.cpp | 31 if (!target->IsECMAObject()) { in ProxyCreate() 37 if (!handler->IsECMAObject()) { in ProxyCreate() 60 ASSERT(handler->IsECMAObject()); in GetPrototype() 83 if (!handlerProto.IsECMAObject() && !handlerProto.IsNull()) { in GetPrototype() 113 ASSERT(proto->IsECMAObject() || proto->IsNull()); in SetPrototype() 121 ASSERT(handler.IsECMAObject()); in SetPrototype() 181 ASSERT(handler.IsECMAObject()); in IsExtensible() 236 ASSERT(handler.IsECMAObject()); in PreventExtensions() 289 ASSERT(handler.IsECMAObject()); in GetOwnProperty() 311 if (!trapResultObj.IsECMAObject() && !trapResultObj.IsUndefined()) { in GetOwnProperty() [all …]
|
D | js_tagged_value.cpp | 350 if (tagged->IsECMAObject()) { in ToPrimitive() 365 if (!valueResult.IsECMAObject()) { in ToPrimitive() 381 ASSERT(tagged->IsECMAObject()); in OrdinaryToPrimitive() 398 if (!valueResult.IsECMAObject()) { in OrdinaryToPrimitive() 450 if (tagged->IsECMAObject()) { in ToString() 507 if (tagged->IsECMAObject()) { in ToObject() 724 if (!obj->IsECMAObject()) { in DeletePropertyOrThrow() 747 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in DefinePropertyOrThrow() 812 if (obj->IsSpecialContainer() || !obj->IsECMAObject()) { in SetPrototype() 829 if (!obj->IsECMAObject()) { in GetPrototype() [all …]
|
D | js_object.cpp | 132 if (!argument->IsECMAObject()) { in IsRegExp() 474 ASSERT_PRINT(obj->IsECMAObject(), "obj is not object"); in GetAllElementKeysByFilter() 650 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid JSObject"); in SetProperty() 711 if (!receiver->IsECMAObject()) { in SetProperty() 862 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid JSObject"); in GetProperty() 1185 ASSERT_PRINT(proto->IsECMAObject() || proto->IsNull(), "proto must be object or null"); in SetPrototype() 1196 if (tempProtoHandle->IsNull() || !tempProtoHandle->IsECMAObject()) { in SetPrototype() 1371 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateDataProperty() 1385 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateDataProperty() 1399 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateDataPropertyOrThrow() [all …]
|
D | js_object-inl.h | 71 inline bool JSObject::IsECMAObject() const in IsECMAObject() function 73 return GetJSHClass()->IsECMAObject(); in IsECMAObject() 366 if (!obj->IsECMAObject()) { in CreateListFromArrayLike()
|
D | js_generator_object.cpp | 27 if (!obj->IsECMAObject()) { in GeneratorValidate()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | json_parser_test.cpp | 131 EXPECT_TRUE(result->IsECMAObject()); in HWTEST_F_L0() 152 EXPECT_TRUE(resultValue.IsECMAObject()); in HWTEST_F_L0() 178 EXPECT_TRUE(resultValue.IsECMAObject()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_weak_map_test.cpp | 92 EXPECT_TRUE(result.IsECMAObject()); in CreateBuiltinsWeakMap() 149 EXPECT_TRUE(result2.IsECMAObject()); in HWTEST_F_L0() 187 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0() 239 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0()
|
D | builtins_weak_set_test.cpp | 90 EXPECT_TRUE(result.IsECMAObject()); in CreateBuiltinsWeakSet() 144 EXPECT_TRUE(result2.IsECMAObject()); in HWTEST_F_L0() 182 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0() 233 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0()
|
D | builtins_errors_test.cpp | 143 EXPECT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 179 EXPECT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 268 EXPECT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 303 EXPECT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 394 EXPECT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 429 EXPECT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 514 EXPECT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 549 EXPECT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 635 EXPECT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 670 EXPECT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() [all …]
|
D | builtins_proxy_test.cpp | 85 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 113 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0()
|
D | builtins_object_test.cpp | 108 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 185 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 208 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 283 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 325 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 379 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 408 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 432 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 650 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 666 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() [all …]
|
D | builtins_set_test.cpp | 94 EXPECT_TRUE(result.IsECMAObject()); in CreateBuiltinsSet() 157 EXPECT_TRUE(result2.IsECMAObject()); in HWTEST_F_L0() 218 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0() 262 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0()
|
D | builtins_boolean_test.cpp | 76 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 96 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0()
|
D | builtins_map_test.cpp | 94 EXPECT_TRUE(result.IsECMAObject()); in CreateBuiltinsMap() 164 EXPECT_TRUE(result2.IsECMAObject()); in HWTEST_F_L0() 202 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0() 244 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0()
|
D | builtins_weak_ref_test.cpp | 106 ASSERT_TRUE(result.IsECMAObject()); in HWTEST_F_L0() 211 ASSERT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | error_helper.cpp | 41 if (!thisValue->IsECMAObject()) { in ErrorCommonToString() 174 if (options->IsECMAObject()) { in ErrorCommonConstructor()
|