Home
last modified time | relevance | path

Searched refs:list (Results 1 - 25 of 238) sorted by relevance

12345678910

/arkcompiler/runtime_core/libpandabase/tests/
H A Dlist_test.cpp17 #include "utils/list.h"
18 #include <list>
66 size_t GetListSize(const List<TestNode> &list) const in GetListSize()
69 for (auto it : list) in GetListSize()
82 List<TestNode> list; in TEST_F() local
85 ASSERT_TRUE(list.Empty()); in TEST_F()
88 list.PushFront(*node); in TEST_F()
90 ASSERT_FALSE(list.Empty()); in TEST_F()
91 ASSERT_EQ(node, &list.Front()); in TEST_F()
92 ASSERT_EQ(node, &*list in TEST_F()
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dlist_test.cpp17 #include "utils/list.h"
18 #include <list>
67 size_t GetListSize(const List<TestNode> &list) const in GetListSize()
70 for (auto it : list) { in GetListSize()
84 List<TestNode> list; in TEST_F() local
87 ASSERT_TRUE(list.Empty()); in TEST_F()
90 list.PushFront(*node); in TEST_F()
92 ASSERT_FALSE(list.Empty()); in TEST_F()
93 ASSERT_EQ(node, &list.Front()); in TEST_F()
94 ASSERT_EQ(node, &*list in TEST_F()
[all...]
/arkcompiler/ets_runtime/ecmascript/js_api/
H A Djs_api_linked_list.h33 static void Add(JSThread *thread, const JSHandle<JSAPILinkedList> &list, const JSHandle<JSTaggedValue> &value);
34 static JSHandle<JSAPILinkedList> Clone(JSThread *thread, const JSHandle<JSAPILinkedList> &list);
35 static void AddFirst(JSThread *thread, const JSHandle<JSAPILinkedList> &list, const JSHandle<JSTaggedValue> &value);
36 static JSTaggedValue Insert(JSThread *thread, const JSHandle<JSAPILinkedList> &list,
38 static JSTaggedValue PUBLIC_API Set(JSThread *thread, const JSHandle<JSAPILinkedList> &list,
40 static JSTaggedValue ConvertToArray(const JSThread *thread, const JSHandle<JSAPILinkedList> &list);
41 static JSHandle<TaggedArray> OwnKeys(JSThread *thread, const JSHandle<JSAPILinkedList> &list);
42 static bool GetOwnProperty(JSThread *thread, const JSHandle<JSAPILinkedList> &list,
44 static OperationResult GetProperty(JSThread *thread, const JSHandle<JSAPILinkedList> &list,
49 static JSTaggedValue RemoveFirst(JSThread *thread, const JSHandle<JSAPILinkedList> &list);
[all...]
H A Djs_api_list.cpp23 void JSAPIList::Add(JSThread *thread, const JSHandle<JSAPIList> &list, const JSHandle<JSTaggedValue> &value) in Add() argument
25 JSHandle<TaggedSingleList> singleList(thread, list->GetSingleList()); in Add()
27 list->SetSingleList(thread, newList); in Add()
48 JSTaggedValue JSAPIList::Insert(JSThread *thread, const JSHandle<JSAPIList> &list, const JSHandle<JSTaggedValue> &value, in Insert() argument
51 JSHandle<TaggedSingleList> singleList(thread, list->GetSingleList()); in Insert()
61 list->SetSingleList(thread, newList); in Insert()
63 list->SetIsOrderedList(false); in Insert()
68 JSTaggedValue JSAPIList::Set(JSThread *thread, const JSHandle<JSAPIList> &list, in Set() argument
71 JSHandle<TaggedSingleList> singleList(thread, list->GetSingleList()); in Set()
110 JSTaggedValue JSAPIList::FastGet(JSThread *thread, const int index, const JSHandle<JSAPIList> &list) in FastGet() argument
151 RemoveByIndex(JSThread *thread, const JSHandle<JSAPIList> &list, const int &index) RemoveByIndex() argument
182 JSHandle<JSAPIList> list = JSHandle<JSAPIList>::Cast(thisHandle); ReplaceAllElements() local
190 JSHandle<JSAPIList> list = JSHandle<JSAPIList>::Cast(thisHandle); Sort() local
196 Equal(JSThread *thread, const JSHandle<JSAPIList> &list) Equal() argument
202 ConvertToArray(const JSThread *thread, const JSHandle<JSAPIList> &list) ConvertToArray() argument
208 GetSubList(JSThread *thread, const JSHandle<JSAPIList> &list, const int fromIndex, const int toIndex) GetSubList() argument
242 OwnKeys(JSThread *thread, const JSHandle<JSAPIList> &list) OwnKeys() argument
248 GetOwnProperty(JSThread *thread, const JSHandle<JSAPIList> &list, const JSHandle<JSTaggedValue> &key) GetOwnProperty() argument
273 GetProperty(JSThread *thread, const JSHandle<JSAPIList> &list, const JSHandle<JSTaggedValue> &key) GetProperty() argument
[all...]
H A Djs_api_linked_list.cpp22 JSTaggedValue JSAPILinkedList::Insert(JSThread *thread, const JSHandle<JSAPILinkedList> &list, in Insert() argument
25 JSHandle<TaggedDoubleList> doubleList(thread, list->GetDoubleList()); in Insert()
35 list->SetDoubleList(thread, newList); in Insert()
47 JSHandle<JSAPILinkedList> JSAPILinkedList::Clone(JSThread *thread, const JSHandle<JSAPILinkedList> &list) in Clone() argument
49 JSTaggedValue doubleListTaggedValue = list->GetDoubleList(); in Clone()
65 JSTaggedValue JSAPILinkedList::RemoveFirst(JSThread *thread, const JSHandle<JSAPILinkedList> &list) in RemoveFirst() argument
67 JSHandle<TaggedDoubleList> doubleList(thread, list->GetDoubleList()); in RemoveFirst()
76 JSTaggedValue JSAPILinkedList::RemoveLast(JSThread *thread, const JSHandle<JSAPILinkedList> &list) in RemoveLast() argument
78 JSHandle<TaggedDoubleList> doubleList(thread, list->GetDoubleList()); in RemoveLast()
87 JSTaggedValue JSAPILinkedList::RemoveByIndex(JSThread *thread, JSHandle<JSAPILinkedList> &list, cons argument
116 RemoveFirstFound(JSThread *thread, JSHandle<JSAPILinkedList> &list, const JSTaggedValue &element) RemoveFirstFound() argument
128 RemoveLastFound(JSThread *thread, JSHandle<JSAPILinkedList> &list, const JSTaggedValue &element) RemoveLastFound() argument
140 Add(JSThread *thread, const JSHandle<JSAPILinkedList> &list, const JSHandle<JSTaggedValue> &value) Add() argument
147 AddFirst(JSThread *thread, const JSHandle<JSAPILinkedList> &list, const JSHandle<JSTaggedValue> &value) AddFirst() argument
173 Set(JSThread *thread, const JSHandle<JSAPILinkedList> &list, const int index, const JSHandle<JSTaggedValue> &value) Set() argument
222 ConvertToArray(const JSThread *thread, const JSHandle<JSAPILinkedList> &list) ConvertToArray() argument
228 OwnKeys(JSThread *thread, const JSHandle<JSAPILinkedList> &list) OwnKeys() argument
234 GetOwnProperty(JSThread *thread, const JSHandle<JSAPILinkedList> &list, const JSHandle<JSTaggedValue> &key) GetOwnProperty() argument
266 GetProperty(JSThread *thread, const JSHandle<JSAPILinkedList> &list, const JSHandle<JSTaggedValue> &key) GetProperty() argument
[all...]
H A Djs_api_list.h57 static void Add(JSThread *thread, const JSHandle<JSAPIList> &list, const JSHandle<JSTaggedValue> &value);
58 static JSTaggedValue Insert(JSThread *thread, const JSHandle<JSAPIList> &list,
60 static JSTaggedValue PUBLIC_API Set(JSThread *thread, const JSHandle<JSAPIList> &list,
67 static JSTaggedValue ConvertToArray(const JSThread *thread, const JSHandle<JSAPIList> &list);
68 static JSTaggedValue GetSubList(JSThread *thread, const JSHandle<JSAPIList> &list,
70 static JSTaggedValue RemoveByIndex(JSThread *thread, const JSHandle<JSAPIList> &list, const int &index);
71 static JSHandle<TaggedArray> OwnKeys(JSThread *thread, const JSHandle<JSAPIList> &list);
72 static bool GetOwnProperty(JSThread *thread, const JSHandle<JSAPIList> &list,
74 static OperationResult GetProperty(JSThread *thread, const JSHandle<JSAPIList> &list,
79 static JSTaggedValue FastGet(JSThread *thread, const int index, const JSHandle<JSAPIList> &list);
[all...]
/arkcompiler/ets_runtime/ecmascript/containers/tests/
H A Dcontainers_list_test.cpp66 JSHandle<JSTaggedValue> list = GetCallArg(argv, 2); // 2 means the secode arg in TestForEachFunc() local
67 if (!list->IsUndefined()) { in TestForEachFunc()
70 JSAPIList::Set(thread, JSHandle<JSAPIList>::Cast(list), index->GetInt(), newValue); in TestForEachFunc()
111 JSHandle<JSAPIList> list(thread, result); in CreateJSAPIList()
112 return list; in CreateJSAPIList()
115 JSTaggedValue ListAdd(JSHandle<JSAPIList> list, JSTaggedValue value) in ListAdd() argument
119 callInfo->SetThis(list.GetTaggedValue()); in ListAdd()
128 JSTaggedValue ListEqual(JSHandle<JSAPIList> list, JSHandle<JSAPIList> compareList) in ListEqual() argument
132 callInfo->SetThis(list.GetTaggedValue()); in ListEqual()
157 JSHandle<JSAPIList> list(threa in HWTEST_F_L0()
172 JSHandle<JSAPIList> list = CreateJSAPIList(); HWTEST_F_L0() local
216 JSHandle<JSAPIList> list = CreateJSAPIList(); HWTEST_F_L0() local
262 JSHandle<JSAPIList> list = CreateJSAPIList(); HWTEST_F_L0() local
307 JSHandle<JSAPIList> list = CreateJSAPIList(); HWTEST_F_L0() local
349 JSHandle<JSAPIList> list = CreateJSAPIList(); HWTEST_F_L0() local
384 JSHandle<JSAPIList> list = CreateJSAPIList(); HWTEST_F_L0() local
413 JSHandle<JSAPIList> list = CreateJSAPIList(); HWTEST_F_L0() local
452 JSHandle<JSAPIList> list = CreateJSAPIList(); HWTEST_F_L0() local
498 JSHandle<JSAPIList> list = CreateJSAPIList(); HWTEST_F_L0() local
534 JSHandle<JSAPIList> list = CreateJSAPIList(); HWTEST_F_L0() local
563 JSHandle<JSAPIList> list = CreateJSAPIList(); HWTEST_F_L0() local
[all...]
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/java_test_framework/java_cases/
H A DArrayListTest.java24 ArrayList<String> list = new ArrayList<>(); in main()
27 list.add("Apple"); in main()
28 list.add("Banana"); in main()
29 list.add("Cherry"); in main()
33 for (int i = 0; i < list.size(); i++) { in main()
34 System.out.println(list.get(i)); in main()
H A DIteratorTest.java26 List<String> list = new ArrayList<>(); in main()
28 list.add("Apple"); in main()
29 list.add("Banana"); in main()
30 list.add("Cherry"); in main()
31 list.add("Date"); in main()
34 Iterator<String> iterator = list.iterator(); in main()
H A DLinkedListTest.java24 LinkedList<Integer> list = new LinkedList<>(); in main()
25 list.add(1); in main()
26 list.add(2); in main()
27 list.add(3); in main()
28 System.out.println("LinkedList element at index 1: " + list.get(1)); in main()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/compiler_verification/
H A Dast.py30 AstNodeOrList = AstNode | list[AstNode]
63 if not isinstance(statements_list, list):
73 statements_list = list(map(statements_filter, statements_list))
80 if isinstance(ast_node, list):
89 if (stmts := ast_node.get("statements")) and isinstance(stmts, list):
94 elif isinstance(ast_node, list):
104 if not isinstance(statements_list, list):
124 elif isinstance(ast_node, list):
125 return list(map(replace_generated_names, ast_node))
133 method_names_list = list(method_names_candidate
[all...]
/arkcompiler/ets_runtime/test/moduletest/container/
H A Dcontainer_list.js25 let list = new List();
28 map.set("test list isEmpty1:", list.isEmpty() === true);
30 list.add(i);
34 map.set("test list isEmpty2:", list.isEmpty() === false);
35 map.set("test list get 1:", list.get(1) === 1);
36 map.set("test list has:", list
[all...]
H A Dcontainer_linked_list.js25 let list = new LinkedList();
29 list.add(i);
32 map.set("test linkedlist has:", list.has(8));
33 map.set("test linkedlist not has:", list.has(2));
34 map.set("test linkedlist getLastIndexOf:", list.getLastIndexOf(1) === 1);
35 map.set("test linkedlist getIndexOf:", list.getIndexOf(5) === 5);
37 list.removeByIndex(9);
42 if (list[i] !== testArray[i]) {
48 const removeRes = list.remove(8);
52 if (list[
[all...]
/arkcompiler/runtime_core/static_core/scripts/
H A Dgc_pause_stats.py22 def min_handle(times: list) -> float:
26 def max_handle(times: list) -> float:
30 def avg_handle(times: list) -> float:
36 def median_handle(times: list) -> float:
42 def stdev_handle(times: list) -> float:
48 def stdev_mean_percent(times: list) -> float:
70 LIST_OF_STATS = list(STATS_MAP.keys())
73 self.times = list()
105 def get_stats(self) -> list:
106 sorted_info = sorted(list(sel
[all...]
/arkcompiler/toolchain/tooling/test/testcases/js/
H A Dcontainer.js187 let list = new List();
188 list.add(18);
189 list.add(1587);
190 list.add(527);
191 list.add(0);
192 list.add('one');
193 list.add('three');
194 list.add(88);
195 list.add('nine');
196 list
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/
H A Dchecker.cpp51 std::string Checker::FormatMsg(std::initializer_list<TypeErrorMessageElement> list) in FormatMsg() argument
55 for (const auto &it : list) { in FormatMsg()
78 void Checker::ThrowTypeError(std::initializer_list<TypeErrorMessageElement> list, const lexer::SourcePosition &pos) in ThrowTypeError() argument
80 ThrowTypeError(FormatMsg(list), pos); in ThrowTypeError()
91 void Checker::LogTypeError(std::initializer_list<TypeErrorMessageElement> list, const lexer::SourcePosition &pos) in LogTypeError() argument
93 LogTypeError(FormatMsg(list), pos); in LogTypeError()
115 void Checker::ReportWarning(std::initializer_list<TypeErrorMessageElement> list, const lexer::SourcePosition &pos) in ReportWarning() argument
117 Warning(FormatMsg(list), pos); in ReportWarning()
147 bool Checker::IsTypeIdenticalTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, in IsTypeIdenticalTo() argument
151 relation_->RaiseError(list, errPo in IsTypeIdenticalTo()
172 IsTypeAssignableTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, const lexer::SourcePosition &errPos) IsTypeAssignableTo() argument
197 IsTypeComparableTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, const lexer::SourcePosition &errPos) IsTypeComparableTo() argument
[all...]
/arkcompiler/ets_frontend/es2panda/test/parser/binder/
H A Dloop-scope-name-js.js25 const list = []
27 for(let x of list) {
31 for(let x in list) {
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_api_linked_list_test.cpp74 JSHandle<JSAPILinkedList> list(thread, CreateLinkedList()); in HWTEST_F_L0()
75 list->Add(thread, list, value); in HWTEST_F_L0()
76 EXPECT_EQ(list->Length(), 1); in HWTEST_F_L0()
77 EXPECT_EQ(list->Get(0).GetInt(), 1); in HWTEST_F_L0()
80 list->AddFirst(thread, list, value1); in HWTEST_F_L0()
81 EXPECT_EQ(list->Length(), 2); in HWTEST_F_L0()
82 EXPECT_EQ(list->GetFirst().GetInt(), 2); in HWTEST_F_L0()
164 JSHandle<JSAPILinkedList> list(threa in HWTEST_F_L0()
[all...]
H A Djs_api_list_test.cpp48 JSAPIList *list = CreateList(); in HWTEST_F_L0() local
49 EXPECT_TRUE(list != nullptr); in HWTEST_F_L0()
109 JSHandle<JSAPIList> list(thread, CreateList()); in HWTEST_F_L0()
110 JSAPIList::Add(thread, list, value); in HWTEST_F_L0()
113 JSAPIList::Insert(thread, list, value1, 0); in HWTEST_F_L0()
115 list->Clear(thread); in HWTEST_F_L0()
117 EXPECT_EQ(list->Length(), 0); in HWTEST_F_L0()
118 EXPECT_TRUE(list->GetFirst().IsUndefined()); in HWTEST_F_L0()
260 JSHandle<JSAPIList> list(thread, CreateList()); in HWTEST_F_L0()
263 JSAPIList::Add(thread, list, valu in HWTEST_F_L0()
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/typeChecker/
H A DTypeChecker.h41 void ThrowTypeError(std::initializer_list<TypeErrorMessageElement> list, const lexer::SourcePosition &pos) in ThrowTypeError() argument
43 checker_->ThrowTypeError(list, pos); in ThrowTypeError()
46 void LogTypeError(std::initializer_list<TypeErrorMessageElement> list, const lexer::SourcePosition &pos) in LogTypeError() argument
48 checker_->LogTypeError(list, pos); in LogTypeError()
/arkcompiler/ets_frontend/es2panda/typescript/core/
H A DtypeRelation.cpp49 bool Checker::IsTypeIdenticalTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, in IsTypeIdenticalTo() argument
53 relation_->RaiseError(list, errPos); in IsTypeIdenticalTo()
74 bool Checker::IsTypeAssignableTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, in IsTypeAssignableTo() argument
78 relation_->RaiseError(list, errPos); in IsTypeAssignableTo()
99 bool Checker::IsTypeComparableTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, in IsTypeComparableTo() argument
103 relation_->RaiseError(list, errPos); in IsTypeComparableTo()
/arkcompiler/ets_runtime/ecmascript/
H A Decma_global_storage.h512 NodeList<S> *list = NodeList<S>::NodeToNodeList(node); in DisposeGlobalHandleInner() local
513 list->FreeNode(thread_, node); in DisposeGlobalHandleInner()
516 if (!list->HasUsagedNode() && (*topNodes != *lastNodes)) { in DisposeGlobalHandleInner()
517 list->RemoveList(); in DisposeGlobalHandleInner()
518 if (*freeList == list) { in DisposeGlobalHandleInner()
519 *freeList = list->GetFreeNext(); in DisposeGlobalHandleInner()
521 if (*topNodes == list) { in DisposeGlobalHandleInner()
522 *topNodes = list->GetNext(); in DisposeGlobalHandleInner()
524 if (*lastNodes == list) { in DisposeGlobalHandleInner()
525 *lastNodes = list in DisposeGlobalHandleInner()
[all...]
H A Dtagged_list.cpp98 JSHandle<Derived> list = Create(thread, newCapacity < DEFAULT_ARRAY_LENGHT ? DEFAULT_ARRAY_LENGHT : newCapacity); in GrowCapacity() local
99 taggedList->CopyArray(thread, list); in GrowCapacity()
100 return list; in GrowCapacity()
122 JSTaggedValue TaggedList<Derived>::TaggedListToArray(const JSThread *thread, const JSHandle<Derived> &list) in TaggedListToArray() argument
124 uint32_t numberOfNodes = static_cast<uint32_t>(list->NumberOfNodes()); in TaggedListToArray()
132 JSHandle<TaggedArray> newElements = factory->ConvertListToArray(thread, list, numberOfNodes); in TaggedListToArray()
138 JSHandle<TaggedArray> TaggedList<Derived>::OwnKeys(JSThread *thread, const JSHandle<Derived> &list) in OwnKeys() argument
140 uint32_t length = static_cast<uint32_t>(list->NumberOfNodes()); in OwnKeys()
340 JSHandle<TaggedSingleList> list = GrowCapacity(thread, taggedList); in AddNode() local
341 int deleteNodeLength = list in AddNode()
575 JSHandle<TaggedSingleList> list = TaggedList<TaggedSingleList>::Create( SortByNodeOrder() local
633 JSHandle<TaggedDoubleList> list = GrowCapacity(thread, taggedList); AddNode() local
[all...]
/arkcompiler/runtime_core/static_core/scripts/clang-tidy/
H A Dclang_tidy_check.py47 # aliases for other checks(here full list: https://clang.llvm.org/extra/clang-tidy/checks/list.html):
151 # Consider to remove from global list
153 # Consider to remove from global list
159 # Consider to remove from global list
193 "-modernize-return-braced-init-list",
254 def check_file_list(file_list: list, panda_dir: str, build_dir: str, proc_count: int) -> bool:
303 def get_file_list(panda_dir: str, build_dir: str, filename_filter: str) -> list:
345 def filter_test_file_duplicates(file_list: list) -> list
[all...]
/arkcompiler/ets_runtime/test/fuzztest/containerslistclear_fuzzer/
H A Dcontainerslistclear_fuzzer.cpp77 JSHandle<JSAPIList> list(thread, result); in CreateJSAPIList()
78 return list; in CreateJSAPIList()
105 JSHandle<JSAPIList> list = CreateJSAPIList(thread); in ContainerslistClearFuzzTest() local
108 callInfo->SetThis(list.GetTaggedValue()); in ContainerslistClearFuzzTest()
113 callInfo1->SetThis(list.GetTaggedValue()); in ContainerslistClearFuzzTest()

Completed in 14 milliseconds

12345678910