Home
last modified time | relevance | path

Searched full:first (Results 1 – 25 of 1722) sorted by relevance

12345678910>>...69

/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/
Dlist.std_core_array_concat.yaml19 method_signature: { first: "FixedArray<boolean>", second: "FixedArray<boolean>" },
20 method_signature_desc: { first: "boolean_array", second: "boolean_array" },
24 test10: { first: "[true]", second: "[true]" },
25 test20: { first: "[true, true]", second: "[false, false]" },
26 test30: { first: "[]", second: "[]" },
27 test40: { first: "[true, false]", second: "[]" },
28 test50: { first: "[]", second: "[false, true, false]" },
29 test51: { first: "[true, false, true]", second: "[]" },
46 method_signature: { first: "FixedArray<byte>", second: "FixedArray<byte>" },
47 method_signature_desc: { first: "byte_array", second: "byte_array" },
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/05.enumeration_equality_operators/
Denum_equality.params.yaml17 enum Enum { first, second, third = 0 }
19 … assertTrue(Enum.first != Enum.second && Enum.second != Enum.third && Enum.first == Enum.third)
22 enum Enum { first = 11, second = 11, third = 11 }
24 … assertTrue(Enum.first == Enum.second && Enum.second == Enum.third && Enum.first == Enum.third)
27 enum Enum { first = "A", second = "B", third = "A" }
29 … assertTrue(Enum.first != Enum.second && Enum.second != Enum.third && Enum.first == Enum.third)
32 enum Enum { first = "ABC", second = "ABC", third = "ABC" }
34 … assertTrue(Enum.first == Enum.second && Enum.second == Enum.third && Enum.first == Enum.third)
37 enum Enum { first, second, third = 0 }
38 let arr: Enum[] = [Enum.first, Enum.second, Enum.third]
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/11.enumerations/01.enumeration_integer_values/
Denum_int.params.yaml17 enum Enum { first, second, third }
19 assertEQ( Enum.first.valueOf(), 0 )
24 enum Enum { first, second = -2147483648, third}
26 assertEQ( Enum.first.valueOf(), 0 )
31 enum Enum { first = 0x7fffffff - 2, second, third }
33 assertEQ( Enum.first.valueOf(), 2147483645 )
40 enum Enum { first = a, second = b, third = b - 1 }
42 assertEQ( Enum.first.valueOf(), a )
47 enum Enum { first, second = -1, third }
49 assertTrue( Enum.first.valueOf() == 0 )
[all …]
Denum_int_n.params.yaml20 enum Enum { first = a, second = b, third = c }
22 assertEQ( Enum.first.valueOf(), a )
27 enum Enum { first = 1.0, second, third } // wrong init type
29 assertEQ( Enum.first.valueOf(), 1.0 )
32 enum Enum { first = 10e1, second, third } // wrong init type
34 assertEQ( Enum.first.valueOf(), 100 )
37 enum Enum { first = true, second = false } // wrong init type
42 enum Enum1 { first = 42, second }
43 enum Enum2 { first = Enum1.first.valueOf(), second } // not a constant expression
45 assertEQ( Enum2.first.valueOf(), 42 )
[all …]
/arkcompiler/runtime_core/assembler/tests/
Dlexer_test.cpp30 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
31 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST()
32 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected"; in TEST()
33 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in TEST()
42 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
43 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST()
52 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
53 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "OPERATION") << "OPERATION expected"; in TEST()
54 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "ID") << "ID expected"; in TEST()
55 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in TEST()
[all …]
Dassembler_lexer_test.cpp41 EXPECT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected";
42 EXPECT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected";
43 EXPECT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected";
44 EXPECT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected";
59 EXPECT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected";
60 EXPECT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected";
75 EXPECT_EQ(TokenTypeWhat(tok.first[0].type), "ID") << "ID expected";
76 EXPECT_EQ(TokenTypeWhat(tok.first[1].type), "OPERATION") << "OPERATION expected";
77 EXPECT_EQ(TokenTypeWhat(tok.first[2].type), "ID") << "ID expected";
78 EXPECT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected";
[all …]
Dparser_test.cpp29 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
30 v.push_back(l.TokenizeString("mov v1, v2}").first); in TEST()
46 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
47 v.push_back(l.TokenizeString("label:}").first); in TEST()
63 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
64 v.push_back(l.TokenizeString("jlt v10, lab123}").first); in TEST()
74 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
75 v.push_back(l.TokenizeString("11111111}").first); in TEST()
85 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
86 v.push_back(l.TokenizeString("addi 1}").first); in TEST()
[all …]
Dassembler_parser_test.cpp43 v.push_back(l.TokenizeString(".function u8 main(){").first);
44 v.push_back(l.TokenizeString("mov v1, v2}").first);
65 v.push_back(l.TokenizeString(".function u8 main(){").first);
66 v.push_back(l.TokenizeString("label:}").first);
89 v.push_back(l.TokenizeString(".function u8 main(){").first);
90 v.push_back(l.TokenizeString("jlt v10, lab123}").first);
106 v.push_back(l.TokenizeString(".function u8 main(){").first);
107 v.push_back(l.TokenizeString("11111111}").first);
123 v.push_back(l.TokenizeString(".function u8 main(){").first);
124 v.push_back(l.TokenizeString("addi 1}").first);
[all …]
/arkcompiler/runtime_core/static_core/assembler/tests/
Dlexer_test.cpp33 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
34 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST()
35 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected"; in TEST()
36 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in TEST()
45 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
46 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST()
55 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
56 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "OPERATION") << "OPERATION expected"; in TEST()
57 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "ID") << "ID expected"; in TEST()
58 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in TEST()
[all …]
Dparser_test.cpp32 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
33 v.push_back(l.TokenizeString("mov v1, v2}").first); in TEST()
49 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
50 v.push_back(l.TokenizeString("label:}").first); in TEST()
66 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
67 v.push_back(l.TokenizeString("jlt v10, lab123}").first); in TEST()
77 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
78 v.push_back(l.TokenizeString("11111111}").first); in TEST()
88 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
89 v.push_back(l.TokenizeString("addi 1}").first); in TEST()
[all …]
/arkcompiler/runtime_core/taihe/test/ani_enum/user/
Dmain.ets51 const first = EnumTest.NumTypeI8.ONE;
52 const next = EnumTest.nextEnumI8(first);
57 const first = EnumTest.NumTypeI16.ONE;
58 const next = EnumTest.nextEnumI16(first);
63 const first = EnumTest.NumTypeI32.ONE;
64 const next = EnumTest.nextEnumI32(first);
69 const first = EnumTest.NumTypeI64.ONE;
70 const next = EnumTest.nextEnumI64(first);
75 const first = EnumTest.EnumString.ONE;
76 const next = EnumTest.nextEnumString(first);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/TreeMap/
DTreeMapGetFirstKeyGetLastKeyTest.ets24 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",
56 let first = treeMap.getFirstKey();
58 assertEQ(first, "aa", "The treeMap should return the correct first key");
68 let first = treeMap.getFirstKey();
70 …assertEQ(first, undefined, "The treeMap should return undefined for the first key in an empty map"…
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/
Dswitch_lowerer.cpp55 return left.first < right.first; in CasePairKeyLessThan()
65 …t tmp2 = static_cast<float>(stmt->GetCasePair(static_cast<size_t>(static_cast<uint32>(j))).first) - in FindClusters()
66 … static_cast<float>(stmt->GetCasePair(static_cast<size_t>(static_cast<uint32>(i))).first); in FindClusters()
90 if (i == front.first) { in InitSwitchItems()
110 node->SetTagOffset(static_cast<int32>(stmt->GetCasePair(static_cast<size_t>(startIdx)).first)); in BuildRangeGotoNode()
113 int64 lastCaseTag = stmt->GetSwitchTable().at(startIdx).first; in BuildRangeGotoNode()
119 …while ((stmt->GetCasePair(i).first != (lastCaseTag + 1)) && (stmt->GetCasePair(i).first != lastCas… in BuildRangeGotoNode()
126 …curTag = static_cast<uint32>(stmt->GetCasePair(static_cast<size_t>(i)).first - node->GetTagOffset(… in BuildRangeGotoNode()
128 lastCaseTag = stmt->GetCasePair(i).first; in BuildRangeGotoNode()
142 …onstVal = GlobalTables::GetIntConstTable().GetOrCreateIntConst(stmt->GetCasePair(idx).first, type); in BuildCmpNode()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
Dptr_list_ref.h232 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
240 return iterator(this->first); in begin()
245 return const_iterator(this->first); in begin()
250 return const_iterator(this->first); in cbegin()
285 … return reverse_iterator(iterator(this->first == nullptr ? nullptr : this->first->GetPrev())); in rend()
290 …return const_reverse_iterator(const_iterator(this->first == nullptr ? nullptr : this->first->GetPr… in rend()
295 …return const_reverse_iterator(const_iterator(this->first == nullptr ? nullptr : this->first->GetPr… in crend()
300 return *(this->first); in front()
310 return *(this->first); in front()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Dmemory_coalescing.cpp85 …<< "v" << entry.first->GetId() << " = {" << entry.second.initial << ", " << entry.second.step << "… in VariableAnalysis()
90 …<< "v" << entry.first->GetId() << " = v" << entry.second.base->GetId() << " + " << entry.second.di… in VariableAnalysis()
358 // We have already checked the second inst. We now want to check the first one in FindUpperInsertAfter()
361 … checkInst = pair.first->IsPrecedingInSameBlock(pair.second) ? pair.first : pair.second; in FindUpperInsertAfter()
412 // We have already checked the first inst. We now want to check the second one in FindLowerInsertAfter()
415 … checkInst = pair.first->IsPrecedingInSameBlock(pair.second) ? pair.second : pair.first; in FindLowerInsertAfter()
431 …/// Add a pair if a difference between indices equals to one. The first in pair is with lower inde…
434 Inst *first = nullptr; in TryAddCoalescedPair() local
438 first = inst; in TryAddCoalescedPair()
441 first = cand; in TryAddCoalescedPair()
[all …]
Dmemory_coalescing.h29 Inst *first; member
74 void ReplacePair(Inst *first, Inst *second, Inst *insertAfter);
76 Inst *ReplaceLoadArray(Inst *first, Inst *second, Inst *insertAfter);
77 Inst *ReplaceLoadArrayI(Inst *first, Inst *second, Inst *insertAfter);
78 Inst *ReplaceLoadObject(Inst *first, Inst *second, Inst *insertAfter);
79 Inst *ReplaceStoreArray(Inst *first, Inst *second, Inst *insertAfter);
80 Inst *ReplaceStoreArrayI(Inst *first, Inst *second, Inst *insertAfter);
81 Inst *ReplaceStoreObject(Inst *first, Inst *second, Inst *insertAfter);
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/napi_impl/detail/
Denumerate_napi.h22 #define EVERY_SECOND2(first, second) , second argument
23 #define EVERY_SECOND3(first, second, ...) , second EVERY_SECOND2(__VA_ARGS__) argument
24 #define EVERY_SECOND4(first, second, ...) , second EVERY_SECOND3(__VA_ARGS__) argument
25 #define EVERY_SECOND5(first, second, ...) , second EVERY_SECOND4(__VA_ARGS__) argument
26 #define EVERY_SECOND6(first, second, ...) , second EVERY_SECOND5(__VA_ARGS__) argument
27 #define EVERY_SECOND7(first, second, ...) , second EVERY_SECOND6(__VA_ARGS__) argument
28 #define EVERY_SECOND8(first, second, ...) , second EVERY_SECOND7(__VA_ARGS__) argument
29 #define EVERY_SECOND9(first, second, ...) , second EVERY_SECOND8(__VA_ARGS__) argument
31 #define PARAMS_PAIR2(first, second) , first second argument
32 #define PARAMS_PAIR3(first, second, ...) , first second PARAMS_PAIR2(__VA_ARGS__) argument
[all …]
/arkcompiler/runtime_core/static_core/assembler/
Dassembly-ins.cpp21 std::string ark::pandasm::Ins::RegsToString(bool &first, bool printArgs, size_t firstArgIdx) const in RegsToString() argument
25 if (!first) { in RegsToString()
28 first = false; in RegsToString()
40 std::string ark::pandasm::Ins::ImmsToString(bool &first) const in ImmsToString()
44 if (!first) { in ImmsToString()
47 first = false; in ImmsToString()
61 std::string ark::pandasm::Ins::IdsToString(bool &first) const in IdsToString()
65 if (!first) { in IdsToString()
68 first = false; in IdsToString()
78 bool first = true; in OperandsToString() local
[all …]
/arkcompiler/runtime_core/assembler/
Dassembly-ins.cpp22 std::string panda::pandasm::Ins::RegsToString(bool &first, bool print_args, size_t first_arg_idx) c… in RegsToString() argument
26 if (!first) { in RegsToString()
29 first = false; in RegsToString()
41 std::string panda::pandasm::Ins::ImmsToString(bool &first) const in ImmsToString()
45 if (!first) { in ImmsToString()
48 first = false; in ImmsToString()
62 std::string panda::pandasm::Ins::IdsToString(bool &first) const in IdsToString()
66 if (!first) { in IdsToString()
69 first = false; in IdsToString()
79 bool first = true; in OperandsToString() local
[all …]
/arkcompiler/ets_runtime/test/aottest/stobjbyvalue/
Dstobjbyvalue.ts18 var first = 0;
24 print(array[first]);
26 array[first] = "helloworld";
28 print(array[first]);
42 return `${this[first]} ${this[hundred]}`;
46 [this[first], this[hundred]] = value.split(" ");
49 print(phrase[first]);
51 phrase[first] = "helloworld";
53 print(phrase[first]);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/11.enumerations/02.enumeration_string_values/
Denum_str_n.params.yaml17 enum Enum { first = "a", second, third } // strings must be set explicitly
19 assertEQ(Enum.first.toString(), "a")
22 … enum Enum { first = 11, second = "12", third = 13 } // cannot combine string and int values
27 enum Enum { first = "11", second = null, third = "13" } // cannot use null
29 assertEQ(Enum.first.toString(), "11")
32 enum Enum { first = "11", second = undefined, third = "13" } // cannot use undefined
34 assertEQ(Enum.first.toString(), "11")
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
Dgenerics_implicit_lambda1.ets16 function foo<T>(first: () => T): T {
17 const instance = first()
22 static foo<T>(first: () => T, second: () => void): T {
23 const instance = first()
28 static $_invoke<T>(first: () => T, second: () => void): T {
29 const instance = first()
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_deque.cpp32 uint32_t first = deque->GetFirst(); in InsertFront() local
35 if ((first + capacity - 1) % capacity == last) { in InsertFront()
36 elements = GrowCapacity(thread, deque, capacity, first, last); in InsertFront()
39 first = 0; in InsertFront()
43 first = (first + capacity - 1) % capacity; in InsertFront()
44 elements->Set(thread, first, value); in InsertFront()
45 deque->SetFirst(first); in InsertFront()
53 uint32_t first = deque->GetFirst(); in InsertEnd() local
56 if (first == (last + 1) % capacity) { in InsertEnd()
57 elements = GrowCapacity(thread, deque, capacity, first, last); in InsertEnd()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_string_iterator.cpp63 // 9. Let first be the code unit value at index position in s. in NextInternal()
64 … uint16_t first = EcmaStringAccessor(string.GetObject<EcmaString>()).Get<false>(thread, position); in NextInternal() local
67 …// 10. If first < 0xD800 or first > 0xDBFF or position+1 = len, let resultString be the string con… in NextInternal()
68 // single code unit first. in NextInternal()
70 if (position + 1 == len || first < common::utf_helper::DECODE_LEAD_LOW || in NextInternal()
71 first > common::utf_helper::DECODE_LEAD_HIGH) { in NextInternal()
72 if (EcmaStringAccessor::CanBeCompressed(&first, 1)) { in NextInternal()
74 result.Update(singleCharTable->GetStringFromSingleCharTable(thread, first)); in NextInternal()
76 std::vector<uint16_t> resultString {first, 0x0}; in NextInternal()
83 // first. in NextInternal()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/30.conditional_expressions/
Dnumeric_condition_expression_type.params.yaml16 - {first: "true", second: "10", third: "20", type: ": int", check: "x == 10" }
17 - {first: "false", second: "10", third: "20", type: ": int", check: "x == 20" }
18 …- {first: "true", second: "new Int(10)", third: "new Int(20)", type: "", check: "x instanceof Int"…
19 - {first: "true", second: "new Int(10)", third: "20", type: "", check: "x instanceof Int" }
20 …- {first: "true", second: "10 as short", third: "5 as byte", type: "", check: "(x + (5 as short)) …
21 …- {first: "true", second: "new Short(10 as short)", third: "new Byte(5 as byte)", type: "", check:…

12345678910>>...69