Home
last modified time | relevance | path

Searched refs:layoutInfoHandle (Results 1 – 5 of 5) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Dlayout_info_test.cpp54 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/
Djs_hclass.cpp229 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 …]
Dobject_factory.cpp674 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
732layoutInfoHandle->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 …]
Djs_object.cpp153 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/
Druntime_stubs.cpp343 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()