| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/TreeMap/ |
| D | TreeMapGetFirstKeyGetLastKeyTest.ets | 24 suite.addTest("TreeMap getFirstKey getLastKey first and last key", 26 suite.addTest("TreeMap getFirstKey getLastKey first and last key from the null treeMap", 28 suite.addTest("TreeMap getFirstKey getLastKey first and last key with a set of data", 30 suite.addTest("TreeMap getFirstKey getLastKey first and last key by descending", 32 suite.addTest("TreeMap getFirstKey getLastKey first and last object key", 34 suite.addTest("TreeMap getFirstKey getLastKey first and last object key with a set of data", 57 let last = treeMap.getLastKey(); 59 assertEQ(last, "cc", "The treeMap should return the correct last key"); 69 let last = treeMap.getLastKey(); 71 … assertEQ(last, undefined, "The treeMap should return undefined for the last key in an empty map"); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/ |
| D | ptr_list_ref.h | 232 explicit PtrListRef(pointer value) : first(value), last(value) {} in PtrListRef() 234 PtrListRef(pointer first, pointer last) : first(first), last(last == nullptr ? first : last) {} in PtrListRef() argument 255 return iterator(this->last == nullptr ? nullptr : this->last->GetNext()); in end() 260 return const_iterator(this->last == nullptr ? nullptr : this->last->GetNext()); in end() 265 return const_iterator(this->last == nullptr ? nullptr : this->last->GetNext()); in cend() 270 return reverse_iterator(iterator(this->last)); in rbegin() 275 return const_reverse_iterator(const_iterator(this->last)); in rbegin() 280 return const_reverse_iterator(const_iterator(this->last)); in crbegin() 305 return *(this->last); in back() 315 return *(this->last); in back() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/09.tuple_types_conversions/decl_var/ |
| D | decl-var.ets | 26 … %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = [{% for t in c['values'] %}{{t.exp… 27 …n c['values'] %}v[{{loop.index0}}] {{t.eq}} {{t.expr|safe}}{% if not loop.last %} && {% endif %}{%… 30 … let v2: [{% for t in c['values'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = v 31 … c['values'] %}v2[{{loop.index0}}] {{t.eq}} {{t.expr|safe}}{% if not loop.last %} && {% endif %}{%… 34 … %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = [{% for t in c['values'] %}{{t.exp… 35 …n c['values'] %}c[{{loop.index0}}] {{t.eq}} {{t.expr|safe}}{% if not loop.last %} && {% endif %}{%… 38 …const c2: [{% for t in c['values'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = c 39 … c['values'] %}c2[{{loop.index0}}] {{t.eq}} {{t.expr|safe}}{% if not loop.last %} && {% endif %}{%… 42 … let v3: [{% for t in c['values'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = c2 43 … c['values'] %}v3[{{loop.index0}}] {{t.eq}} {{t.expr|safe}}{% if not loop.last %} && {% endif %}{%… [all …]
|
| D | decl-var_n.ets | 25 …] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = [{% for t in c['from'] %}{{t.expr… 29 …] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = [{% for t in c['from'] %}{{t.expr… 32 let v2: [{% for t in c['to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = s 35 …] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = [{% for t in c['from'] %}{{t.expr… 38 const c2: [{% for t in c['to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = s
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/09.tuple_types_conversions/call_lmbd/ |
| D | call-lmbd_n.ets | 25 …] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = [{% for t in c['from'] %}{{t.expr… 28 let res1: [{% for t in c['to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = 29 …last %}, {% endif %}{% endfor %}]): [{% for t in c['to'] %}{{t.type}}{% if not loop.last %}, {% en… 30 let res2: [{% for t in c['to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = 31 …to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}]): [{% for t in c['to'] %}{{t.typ…
|
| D | call-lmbd.ets | 25 let res: [{% for t in c['values'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = 26 …last %}, {% endif %}{% endfor %}]): [{% for t in c['values'] %}{{t.type}}{% if not loop.last %}, {… 27 …c['values'] %}res[{{loop.index0}}] {{t.eq}} {{t.expr|safe}}{% if not loop.last %} && {% endif %}{%…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/09.tuple_types_conversions/assn_var/ |
| D | assn-var.ets | 24 let v: [{% for t in c['values'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}]; 25 let v2: [{% for t in c['values'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}]; 26 let v3: [{% for t in c['values'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}]; 27 … %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = [{% for t in c['values'] %}{{t.exp… 31 v = [{% for t in c['values'] %}{{t.expr|safe}}{% if not loop.last %}, {% endif %}{% endfor %}] 32 …n c['values'] %}v[{{loop.index0}}] {{t.eq}} {{t.expr|safe}}{% if not loop.last %} && {% endif %}{%… 36 … c['values'] %}v2[{{loop.index0}}] {{t.eq}} {{t.expr|safe}}{% if not loop.last %} && {% endif %}{%… 40 … c['values'] %}v3[{{loop.index0}}] {{t.eq}} {{t.expr|safe}}{% if not loop.last %} && {% endif %}{%…
|
| /arkcompiler/ets_runtime/ecmascript/js_api/ |
| D | js_api_deque.cpp | 33 uint32_t last = deque->GetLast(); in InsertFront() local 35 if ((first + capacity - 1) % capacity == last) { in InsertFront() 36 elements = GrowCapacity(thread, deque, capacity, first, last); in InsertFront() 54 uint32_t last = deque->GetLast(); in InsertEnd() local 56 if (first == (last + 1) % capacity) { in InsertEnd() 57 elements = GrowCapacity(thread, deque, capacity, first, last); in InsertEnd() 60 last = capacity - 1; in InsertEnd() 62 elements->Set(thread, last, value); in InsertEnd() 65 last = (last + 1) % capacity; in InsertEnd() 66 deque->SetLast(last); in InsertEnd() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/TreeSet/ |
| D | TreeSetGetFirstValueGetLastValueTest.ets | 24 suite.addTest("TreeSet getFirstValue getLastVallue first and last value", 26 suite.addTest("TreeSet getFirstValue getLastVallue first and last value from the null treeSet", 28 …suite.addTest("TreeSet getFirstValue getLastVallue first and last value from the TreeSet with a se… 30 suite.addTest("TreeSet getFirstValue getLastVallue first and last value by descending", 32 suite.addTest("TreeSet getFirstValue getLastVallue first and last object value", 34 …suite.addTest("TreeSet getFirstValue getLastVallue first and last object value from the TreeSet wi… 56 assertEQ(result2, "bb", "The treeSet should return the correct last value"); 66 …assertEQ(result2, undefined, "The treeSet should return undefined for the last value in an empty s… 77 assertEQ(result2, "aa", "The treeSet should return the correct last value"); 91 assertEQ(result2, "aa", "The treeSet should return the correct last value"); [all …]
|
| D | TreeSetPopFirstPopLastIteratorTest.ets | 24 suite.addTest("TreeSet popFirst popLast first and last value", 26 suite.addTest("TreeSet popFirst popLast first and last value from the null treeSet", 28 … suite.addTest("TreeSet popFirst popLast first and last value from the TreeSet with a set of data", 30 suite.addTest("TreeSet popFirst popLast first and last value by descending", 32 suite.addTest("TreeSet popFirst popLast first and last value after clear data", 55 assertEQ(result_popLast, "dd", "The treeSet should pop the last value"); 56 assertEQ(result_has_last, false, "The treeSet should not contain the popped last value"); 66 …assertEQ(result_popLast, undefined, "The treeSet should return undefined for popping last value in… 77 assertEQ(result_popLast, undefined, "The treeSet should pop the last value"); 91 assertEQ(result_popLast, "a", "The treeSet should pop the last value"); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/09.tuple_types_conversions/call_func/ |
| D | call-func_n.ets | 25 …] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = [{% for t in c['from'] %}{{t.expr… 27 …to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}]): [{% for t in c['to'] %}{{t.typ… 32 …%}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = zoo([{% for t in c['from'] %}{{t.ex… 33 …let res2: [{% for t in c['to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = zoo(…
|
| D | call-func2_n.ets | 25 …] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = [{% for t in c['from'] %}{{t.expr… 27 …to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}]): [{% for t in c['to'] %}{{t.typ… 32 …%}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = zoo([{% for t in c['from'] %}{{t.ex… 33 …let res2: [{% for t in c['to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = zoo(…
|
| D | call-func.ets | 24 …'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}]): [{% for t in c['values'] %}{{t.t… 29 …}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = zoo([{% for t in c['values'] %}{{t.e… 30 …c['values'] %}res[{{loop.index0}}] {{t.eq}} {{t.expr|safe}}{% if not loop.last %} && {% endif %}{%…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/09.tuple_types_conversions/call_meth/ |
| D | call-meth_n.ets | 25 …] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = [{% for t in c['from'] %}{{t.expr… 28 …to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}]): [{% for t in c['to'] %}{{t.typ… 34 ….type}}{% if not loop.last %}, {% endif %}{% endfor %}] = new Z().meth([{% for t in c['from'] %}{{… 35 …let res2: [{% for t in c['to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = new …
|
| D | call-meth2_n.ets | 25 …] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = [{% for t in c['from'] %}{{t.expr… 28 …to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}]): [{% for t in c['to'] %}{{t.typ… 34 ….type}}{% if not loop.last %}, {% endif %}{% endfor %}] = new Z().meth([{% for t in c['from'] %}{{… 35 …let res2: [{% for t in c['to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = new …
|
| D | call-meth.ets | 25 …'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}]): [{% for t in c['values'] %}{{t.t… 31 …type}}{% if not loop.last %}, {% endif %}{% endfor %}] = new Z().meth([{% for t in c['values'] %}{… 32 …c['values'] %}res[{{loop.index0}}] {{t.eq}} {{t.expr|safe}}{% if not loop.last %} && {% endif %}{%…
|
| /arkcompiler/ets_frontend/ets2panda/ast_verifier/invariants/ |
| D | sequenceExpressionHasLastType.cpp | 33 const auto *last = expr->Sequence().back(); in operator ()() local 38 if (last->TsType() == nullptr) { in operator ()() 39 AddCheckMessage("Sequence expression last type is null", *last); in operator ()() 42 if (expr->TsType() != last->TsType()) { in operator ()() 43 … AddCheckMessage("Sequence expression type and last expression type are not the same", *expr); in operator ()()
|
| /arkcompiler/ets_frontend/ets2panda/ir/ |
| D | astNodeHistory.cpp | 59 // Start searching with last accessed item in At() 60 // In most cases last accessed item is the one we are looking for in At() 64 // Search backwards starting at last accessed node for the node at previous phase in At() 67 // Search forward starting at last accessed node for the node at next phase in At() 72 // (e.g. find last node history record with `phaseId` less or equal to a given value) 107 // (e.g. find last node history record with `phaseId` less or equal to a given value) 110 // Start searching with last accessed item in FindLessOrEquals() 114 // In most cases last accessed item is the one we are looking for in FindLessOrEquals() 118 // Search backwards starting at last accessed node for the node at previous phase in FindLessOrEquals() 125 // Search forward starting at last accessed node for the node at next phase in FindLessOrEquals()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/01.assignment-like_contexts/ |
| D | null_call.ets | 28 p{{loop.index}}: {{t|safe}}{{ ", " if not loop.last }} 33 p{{loop.index}} == null {{ ("&&" if not loop.last) | safe}} 42 p{{loop.index}}: {{t|safe}}{{ ", " if not loop.last }} 47 p{{loop.index}} == null {{ ("&&" if not loop.last) | safe}} 58 let c: A = new A({% for t in c['types'] %}null{{ ", " if not loop.last }}{% endfor %}); 59 return c.foo({% for t in c['types'] %}null{{ ", " if not loop.last }}{% endfor %});
|
| D | widening_refs_unbox_call.ets | 29 …constructor({% for v in case['ptype'] %}p{{loop.index}}: T{{ ", " if not loop.last }}{% endfor %})… 35 …public foo({% for v in case['ptype'] %}p{{loop.index}}: T{{ ", " if not loop.last }}{% endfor %}):… 41 this.fld1_{{v}} != this.fld2_{{v}}{{ " ||" if not loop.last }} 52 …e.type}}> ({% for v in case['ptype'] %}{{case.val | safe}}{{ ", " if not loop.last }}{% endfor %}); 53 …return b.foo({% for v in case['ptype'] %}{{case.val | safe}}{{ ", " if not loop.last }}{% endfor %…
|
| D | unboxing_call.ets | 27 …public constructor({% for v in c['values'] %}p{{loop.index}}: {{c.type}}{{ ", " if not loop.last }… 33 …public foo({% for v in c['values'] %}p{{loop.index}}: {{c.type}}{{ ", " if not loop.last }}{% endf… 36 this.fld_{{loop.index}} != p{{loop.index}}{{ " ||" if not loop.last }} 51 …let c: A = new A({% for v in c['values'] %}v{{loop.index}}{{ ", " if not loop.last }}{% endfor %}); 52 return c.foo({% for v in c['values'] %}v{{loop.index}}{{ ", " if not loop.last }}{% endfor %});
|
| /arkcompiler/runtime_core/compiler/optimizer/templates/intrinsics/ |
| D | get_intrinsics.inl.erb | 25 extern "C" void <%= intrinsic.impl.rpartition('::').last %>Bridge(); 26 extern "C" void <%= intrinsic.impl.rpartition('::').last %>RuntimeCallChecker(); 30 extern "C" void <%= impl.rpartition('::').last %>(); 32 extern "C" void <%= impl.rpartition('::').last %>Bridge(); 34 extern "C" void <%= impl.rpartition('::').last %>RuntimeCallChecker(); 82 …sic.respond_to?(:fast_path) ? intrinsic.fast_path : "#{intrinsic.impl.rpartition('::').last}Bridge" 88 …untime_call ? reinterpret_cast<uintptr_t>(<%= "#{intrinsic.impl.rpartition('::').last}Bridge" %>) : 92 … reinterpret_cast<uintptr_t>(<%= intrinsic.impl.rpartition('::').last %>RuntimeCallChecker); 100 reinterpret_cast<uintptr_t>(<%= impl.rpartition('::').last %>RuntimeCallChecker);
|
| /arkcompiler/ets_runtime/test/moduletest/regexpflagd/ |
| D | regexpflagd.js | 22 var regexpNames = /姓氏:(?<first>.+),名字:(?<last>.+)/gmd; 31 print(result.indices.groups.last); 33 print(result.groups.last); 40 print(result.indices.groups.last); 42 print(result.groups.last);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/09.tuple_types_conversions/decl_field/ |
| D | decl-field_n.ets | 25 …] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = [{% for t in c['from'] %}{{t.expr… 28 …] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = [{% for t in c['from'] %}{{t.expr… 29 fld2: [{% for t in c['to'] %}{{t.type}}{% if not loop.last %}, {% endif %}{% endfor %}] = s
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | StringFasta.ets | 42 static last : int = 42; 47 last = (last * A + C) % M; 48 return max * last / M; 53 let last : Char = null; 56 if (last != null) { 57 table.put(c, entry.getValue() + table.get(last)); 59 last = c;
|