/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_shared_array_test.cpp | 91 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in TestFlatMapFunc() local 96 auto property = JSSharedArray::GetProperty(thread, JSHandle<JSTaggedValue>(obj), lengthKeyHandle, in TestFlatMapFunc() 261 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in HWTEST_F_L0() local 265 EXPECT_EQ(JSSharedArray::GetProperty(thread, JSHandle<JSTaggedValue>(obj), lengthKeyHandle, SCheckMode::SKIP) \ in HWTEST_F_L0() 307 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in HWTEST_F_L0() local 338 JSSharedArray::GetProperty(thread, JSHandle<JSTaggedValue>(valueHandle), lengthKeyHandle, in HWTEST_F_L0() 350 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in HWTEST_F_L0() local 355 EXPECT_EQ(JSSharedArray::GetProperty(thread, JSHandle<JSTaggedValue>(obj), lengthKeyHandle, SCheckMode::SKIP) \ in HWTEST_F_L0() 380 JSSharedArray::GetProperty(thread, JSHandle<JSTaggedValue>(valueHandle), lengthKeyHandle, in HWTEST_F_L0() 387 JSHandle<JSTaggedValue> lengthKeyHandle in HWTEST_F_L0() local 419 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 456 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 491 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 523 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 556 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 632 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 693 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 754 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 795 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 853 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 880 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 903 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 932 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 953 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 974 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1009 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1035 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1058 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1104 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1140 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1180 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1224 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1248 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1272 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1557 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1611 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local [all...] |
H A D | builtins_array_test.cpp | 99 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in TestFlatMapFunc() local 104 auto property = JSArray::GetProperty(thread, JSHandle<JSTaggedValue>(obj), lengthKeyHandle); in TestFlatMapFunc() 271 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in HWTEST_F_L0() local 275 EXPECT_EQ(JSArray::GetProperty(thread, JSHandle<JSTaggedValue>(obj), lengthKeyHandle).GetValue()->GetInt(), 0); in HWTEST_F_L0() 299 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in HWTEST_F_L0() local 303 EXPECT_EQ(JSArray::GetProperty(thread, JSHandle<JSTaggedValue>(obj), lengthKeyHandle).GetValue()->GetInt(), 0); in HWTEST_F_L0() 374 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in HWTEST_F_L0() local 404 JSArray::GetProperty(thread, JSHandle<JSTaggedValue>(valueHandle), lengthKeyHandle).GetValue()->GetInt(), 6); in HWTEST_F_L0() 413 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in HWTEST_F_L0() local 417 EXPECT_EQ(JSArray::GetProperty(thread, JSHandle<JSTaggedValue>(obj), lengthKeyHandle) in HWTEST_F_L0() 444 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 475 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 509 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 540 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 577 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 607 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 640 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 712 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 742 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 773 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 847 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 903 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 958 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1021 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1061 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1090 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1115 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1163 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1189 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1216 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1246 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1271 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1293 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1363 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1414 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1448 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1514 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1547 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1576 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1612 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1644 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local 1673 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); HWTEST_F_L0() local [all...] |
H A D | builtins_json_test.cpp | 158 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in HWTEST_F_L0() local 171 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(valueHandle), lengthKeyHandle).GetValue(); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_array_test.cpp | 37 JSHandle<JSTaggedValue> lengthKeyHandle(thread->GlobalConstants()->GetHandledLengthString()); in HWTEST_F_L0() 41 EXPECT_EQ(JSArray::GetProperty(thread, obj, lengthKeyHandle).GetValue()->GetInt(), 0); in HWTEST_F_L0() 46 EXPECT_EQ(JSArray::GetProperty(thread, obj2, lengthKeyHandle).GetValue()->GetInt(), 10); in HWTEST_F_L0() 51 JSHandle<JSTaggedValue> lengthKeyHandle(thread->GlobalConstants()->GetHandledLengthString()); in HWTEST_F_L0() 55 EXPECT_EQ(JSArray::GetProperty(thread, JSHandle<JSTaggedValue>(obj), lengthKeyHandle).GetValue()->GetInt(), 0); in HWTEST_F_L0() 60 EXPECT_EQ(JSArray::GetProperty(thread, obj2, lengthKeyHandle).GetValue()->GetInt(), 10); in HWTEST_F_L0() 67 JSHandle<JSTaggedValue> lengthKeyHandle(thread->GlobalConstants()->GetHandledLengthString()); in HWTEST_F_L0() 71 EXPECT_EQ(JSArray::GetProperty(thread, obj, lengthKeyHandle).GetValue()->GetInt(), 0); in HWTEST_F_L0() 79 EXPECT_EQ(JSArray::GetProperty(thread, obj, lengthKeyHandle).GetValue()->GetInt(), 2); in HWTEST_F_L0() 84 EXPECT_EQ(JSArray::GetProperty(thread, obj, lengthKeyHandle) in HWTEST_F_L0() [all...] |
H A D | js_shared_array_test.cpp | 34 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in HWTEST_F_L0() local 40 EXPECT_EQ(JSSharedArray::GetProperty(thread, obj, lengthKeyHandle, SCheckMode::SKIP).GetValue()->GetInt(), 0); in HWTEST_F_L0() 94 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in HWTEST_F_L0() local 102 EXPECT_EQ(JSSharedArray::GetProperty(thread, JSHandle<JSTaggedValue>(obj), lengthKeyHandle, SCheckMode::SKIP) in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/shared_objects/ |
H A D | js_shared_array.cpp | 235 JSHandle<JSTaggedValue> lengthKeyHandle(thread->GlobalConstants()->GetHandledLengthString()); in ArraySetLength() 240 return JSObject::OrdinaryDefineOwnProperty(thread, array, lengthKeyHandle, desc); in ArraySetLength() 254 [[maybe_unused]] bool success = GetOwnProperty(thread, array, lengthKeyHandle, oldLenDesc); in ArraySetLength() 266 return JSObject::OrdinaryDefineOwnProperty(thread, array, lengthKeyHandle, newLenDesc); in ArraySetLength() 297 success = JSObject::DefineOwnProperty(thread, array, lengthKeyHandle, readonly); in ArraySetLength()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_array.cpp | 292 JSHandle<JSTaggedValue> lengthKeyHandle(thread->GlobalConstants()->GetHandledLengthString()); in ArraySetLength() 297 return JSObject::OrdinaryDefineOwnProperty(thread, array, lengthKeyHandle, desc); in ArraySetLength() 311 [[maybe_unused]] bool success = GetOwnProperty(thread, array, lengthKeyHandle, oldLenDesc); in ArraySetLength() 323 return JSObject::OrdinaryDefineOwnProperty(thread, array, lengthKeyHandle, newLenDesc); in ArraySetLength() 354 success = JSObject::DefineOwnProperty(thread, array, lengthKeyHandle, readonly); in ArraySetLength()
|
H A D | js_object-inl.h | 433 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in CreateListFromArrayLike() local 435 JSHandle<JSTaggedValue> value = GetProperty(thread, obj, lengthKeyHandle).GetValue(); in CreateListFromArrayLike()
|
H A D | js_function.cpp | 728 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in SetFunctionLength() local 734 return JSTaggedValue::DefinePropertyOrThrow(thread, funcHandle, lengthKeyHandle, lengthDesc); in SetFunctionLength()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
H A D | json_parser_test.cpp | 197 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in HWTEST_F_L0() local 209 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(valueHandle), lengthKeyHandle).GetValue(); in HWTEST_F_L0()
|