Searched refs:layoutInfoHandle (Results 1 – 5 of 5) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | layout_info_test.cpp | 54 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); in HWTEST_F_L0() local 55 EXPECT_TRUE(*layoutInfoHandle != nullptr); in HWTEST_F_L0() 57 layoutInfoHandle->SetNumberOfElements(thread, 100); in HWTEST_F_L0() 58 EXPECT_EQ(layoutInfoHandle->NumberOfElements(), 100); in HWTEST_F_L0() 68 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); in HWTEST_F_L0() local 69 EXPECT_TRUE(*layoutInfoHandle != nullptr); in HWTEST_F_L0() 71 layoutInfoHandle->SetPropertyInit(thread, 0, key.GetTaggedValue(), defaultAttr); in HWTEST_F_L0() 72 EXPECT_EQ(layoutInfoHandle->GetKey(0), key.GetTaggedValue()); in HWTEST_F_L0() 73 EXPECT_EQ(layoutInfoHandle->GetAttr(0).GetNormalAttr(), static_cast<uint32_t>(infoLength)); in HWTEST_F_L0() 84 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); in HWTEST_F_L0() local [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_hclass.cpp | 229 JSMutableHandle<LayoutInfo> layoutInfoHandle(thread, newJsHClass->GetLayout()); in SetPropertyOfObjHClass() local 230 if (layoutInfoHandle->NumberOfElements() != static_cast<int>(offset)) { in SetPropertyOfObjHClass() 231 layoutInfoHandle.Update(factory->CopyAndReSort(layoutInfoHandle, offset, offset + 1)); in SetPropertyOfObjHClass() 232 …} else if (layoutInfoHandle->GetPropertiesCapacity() <= static_cast<int>(offset)) { // need to Grow in SetPropertyOfObjHClass() 233 layoutInfoHandle.Update( in SetPropertyOfObjHClass() 234 factory->ExtendLayoutInfo(layoutInfoHandle, offset)); in SetPropertyOfObjHClass() 236 newJsHClass->SetLayout(thread, layoutInfoHandle); in SetPropertyOfObjHClass() 237 layoutInfoHandle->AddKey(thread, offset, key.GetTaggedValue(), attr); in SetPropertyOfObjHClass() 266 JSMutableHandle<LayoutInfo> layoutInfoHandle(thread, newJsHClass->GetLayout()); in AddProperty() local 268 if (layoutInfoHandle->NumberOfElements() != static_cast<int>(offset)) { in AddProperty() [all …]
|
D | object_factory.cpp | 674 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(1); in CreateJSRegExpInstanceClass() local 680 layoutInfoHandle->AddKey(thread_, 0, globalConst->GetLastIndexString(), attributes); in CreateJSRegExpInstanceClass() 684 regexpClass->SetLayout(thread_, layoutInfoHandle); in CreateJSRegExpInstanceClass() 698 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(1); in CreateJSArrayInstanceClass() local 704 layoutInfoHandle->AddKey(thread_, 0, globalConst->GetLengthString(), attributes); in CreateJSArrayInstanceClass() 708 arrayClass->SetLayout(thread_, layoutInfoHandle); in CreateJSArrayInstanceClass() 726 …JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(JSArguments::LENGTH_OF_INLINE_PROPERTIES); in CreateJSArguments() local 732 …layoutInfoHandle->AddKey(thread_, JSArguments::LENGTH_INLINE_PROPERTY_INDEX, globalConst->GetLengt… in CreateJSArguments() 742 layoutInfoHandle->AddKey(thread_, JSArguments::ITERATOR_INLINE_PROPERTY_INDEX, in CreateJSArguments() 753 layoutInfoHandle->AddKey(thread_, JSArguments::CALLER_INLINE_PROPERTY_INDEX, in CreateJSArguments() [all …]
|
D | js_object.cpp | 153 JSHandle<LayoutInfo> layoutInfoHandle(thread, jshclass->GetLayout()); in TransitionToDictionary() local 154 ASSERT(layoutInfoHandle->GetLength() != 0); in TransitionToDictionary() 161 JSTaggedValue key = layoutInfoHandle->GetKey(i); in TransitionToDictionary() 162 PropertyAttributes attr = layoutInfoHandle->GetAttr(i); in TransitionToDictionary()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.cpp | 343 JSMutableHandle<LayoutInfo> layoutInfoHandle(thread, newHClassHandle->GetLayout()); in DEF_RUNTIME_STUBS() local 345 if (layoutInfoHandle->NumberOfElements() != static_cast<int>(offset)) { in DEF_RUNTIME_STUBS() 346 layoutInfoHandle.Update(factory->CopyAndReSort(layoutInfoHandle, offset, offset + 1)); in DEF_RUNTIME_STUBS() 347 newHClassHandle->SetLayout(thread, layoutInfoHandle); in DEF_RUNTIME_STUBS() 348 …} else if (layoutInfoHandle->GetPropertiesCapacity() <= static_cast<int>(offset)) { // need to Gr… in DEF_RUNTIME_STUBS() 349 layoutInfoHandle.Update( in DEF_RUNTIME_STUBS() 350 factory->ExtendLayoutInfo(layoutInfoHandle, offset)); in DEF_RUNTIME_STUBS() 351 newHClassHandle->SetLayout(thread, layoutInfoHandle); in DEF_RUNTIME_STUBS() 353 layoutInfoHandle->AddKey(thread, offset, keyHandle.GetTaggedValue(), attrValue); in DEF_RUNTIME_STUBS()
|