Searched refs:layoutInfoHandle (Results 1 - 6 of 6) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | layout_info_test.cpp | 30 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); in HWTEST_F_L0() local 31 EXPECT_TRUE(*layoutInfoHandle != nullptr); in HWTEST_F_L0() 33 layoutInfoHandle->SetNumberOfElements(thread, 100); in HWTEST_F_L0() 34 EXPECT_EQ(layoutInfoHandle->NumberOfElements(), 100); in HWTEST_F_L0() 44 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); in HWTEST_F_L0() local 45 EXPECT_TRUE(*layoutInfoHandle != nullptr); in HWTEST_F_L0() 47 layoutInfoHandle->SetPropertyInit(thread, 0, key.GetTaggedValue(), defaultAttr); in HWTEST_F_L0() 48 EXPECT_EQ(layoutInfoHandle->GetKey(0), key.GetTaggedValue()); in HWTEST_F_L0() 49 EXPECT_EQ(layoutInfoHandle->GetAttr(0).GetNormalAttr(), static_cast<uint32_t>(infoLength)); in HWTEST_F_L0() 60 JSHandle<LayoutInfo> layoutInfoHandle in HWTEST_F_L0() local 81 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); HWTEST_F_L0() local 122 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); GetAllKeysCommon() local [all...] |
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_hclass-inl.h | 367 JSMutableHandle<LayoutInfo> layoutInfoHandle(thread, newJsHClass->GetLayout()); in AddPropertyToNewHClass() 369 if (layoutInfoHandle->NumberOfElements() != static_cast<int>(offset)) { in AddPropertyToNewHClass() 370 layoutInfoHandle.Update(factory->CopyAndReSort(layoutInfoHandle, offset, offset + 1)); in AddPropertyToNewHClass() 371 } else if (layoutInfoHandle->GetPropertiesCapacity() <= static_cast<int>(offset)) { // need to Grow in AddPropertyToNewHClass() 372 layoutInfoHandle.Update( in AddPropertyToNewHClass() 373 factory->ExtendLayoutInfo(layoutInfoHandle, offset)); in AddPropertyToNewHClass() 375 newJsHClass->SetLayout(thread, layoutInfoHandle); in AddPropertyToNewHClass() 376 layoutInfoHandle->AddKey<checkDuplicateKeys>(thread, offset, key.GetTaggedValue(), attr); in AddPropertyToNewHClass()
|
H A D | js_hclass.cpp | 339 JSMutableHandle<LayoutInfo> layoutInfoHandle(thread, attrs); in TransitionExtension() 340 layoutInfoHandle.Update(factory->CopyLayoutInfo(layoutInfoHandle).GetTaggedValue()); in TransitionExtension() 341 newJsHClass->SetLayout(thread, layoutInfoHandle); in TransitionExtension() 373 JSMutableHandle<LayoutInfo> layoutInfoHandle(thread, layout); in TransitionProto() 374 layoutInfoHandle.Update(factory->CopyLayoutInfo(layoutInfoHandle).GetTaggedValue()); in TransitionProto() 375 newJsHClass->SetLayout(thread, layoutInfoHandle); in TransitionProto() 538 JSMutableHandle<LayoutInfo> layoutInfoHandle(thread, layout); in OptimizePrototypeForIC() 539 layoutInfoHandle in OptimizePrototypeForIC() 595 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(numberOfProperties); OptimizeAsFastProperties() local [all...] |
H A D | shared_object_factory.cpp | 61 JSHandle<LayoutInfo> layoutInfoHandle = CreateSLayoutInfo(JSFunction::LENGTH_OF_INLINE_PROPERTIES); in CreateSFunctionClass() local 64 layoutInfoHandle->AddKey(thread_, fieldOrder, globalConst->GetLengthString(), attributes); in CreateSFunctionClass() 71 layoutInfoHandle->AddKey(thread_, fieldOrder, in CreateSFunctionClass() 79 layoutInfoHandle->AddKey(thread_, fieldOrder, in CreateSFunctionClass() 85 JSHandle<JSTaggedValue>(layoutInfoHandle)); in CreateSFunctionClass() 401 JSHandle<LayoutInfo> layoutInfoHandle = JSHandle<LayoutInfo>::Cast(NewSTaggedArrayWithoutInit(arrayLength)); in CreateSLayoutInfo() local 402 layoutInfoHandle->Initialize(thread_); in CreateSLayoutInfo() 403 return layoutInfoHandle; in CreateSLayoutInfo() 408 JSHandle<LayoutInfo> layoutInfoHandle = JSHandle<LayoutInfo>::Cast( in NewSEmptyLayoutInfo() local 410 layoutInfoHandle in NewSEmptyLayoutInfo() [all...] |
H A D | object_factory.cpp | 856 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(1); in CreateJSRegExpInstanceClass() local 862 layoutInfoHandle->AddKey(thread_, 0, globalConst->GetLastIndexString(), attributes); in CreateJSRegExpInstanceClass() 866 regexpClass->SetLayout(thread_, layoutInfoHandle); in CreateJSRegExpInstanceClass() 880 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(1); in CreateJSArrayInstanceClass() local 886 layoutInfoHandle->AddKey(thread_, 0, globalConst->GetLengthString(), attributes); in CreateJSArrayInstanceClass() 890 arrayClass->SetLayout(thread_, layoutInfoHandle); in CreateJSArrayInstanceClass() 908 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(JSArguments::LENGTH_OF_INLINE_PROPERTIES); in CreateJSArguments() local 914 layoutInfoHandle->AddKey(thread_, JSArguments::LENGTH_INLINE_PROPERTY_INDEX, globalConst->GetLengthString(), in CreateJSArguments() 924 layoutInfoHandle->AddKey(thread_, JSArguments::ITERATOR_INLINE_PROPERTY_INDEX, in CreateJSArguments() 935 layoutInfoHandle in CreateJSArguments() 1808 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(JSFunction::LENGTH_OF_INLINE_PROPERTIES); CreateFunctionClass() local 1866 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(JSFunction::LENGTH_OF_INLINE_PROPERTIES); CreateBoundFunctionClass() local 3057 JSHandle<LayoutInfo> layoutInfoHandle = JSHandle<LayoutInfo>::Cast(NewTaggedArrayWithoutInit(arrayLength, type)); CreateLayoutInfo() local 3882 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(length); CreateObjectClass() local 4791 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(2); // 2 means two field CreateIteratorResultInstanceClass() local [all...] |
H A D | js_object.cpp | 179 JSHandle<LayoutInfo> layoutInfoHandle(thread, jshclass->GetLayout()); in TransitionToDictionary() 186 JSTaggedValue key = layoutInfoHandle->GetKey(i); in TransitionToDictionary() 187 PropertyAttributes attr = layoutInfoHandle->GetAttr(i); in TransitionToDictionary()
|
Completed in 17 milliseconds