Home
last modified time | relevance | path

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

12345678910>>...57

/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/
Dlist.std_core_array_concat.yaml19 method_signature: { first: "boolean[]", second: "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: "byte[]", second: "byte[]" },
47 method_signature_desc: { first: "byte_array", second: "byte_array" },
[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);
88 v.push_back(l.TokenizeString(".function u8 main(){").first);
89 v.push_back(l.TokenizeString("jlt v10, lab123}").first);
105 v.push_back(l.TokenizeString(".function u8 main(){").first);
106 v.push_back(l.TokenizeString("11111111}").first);
122 v.push_back(l.TokenizeString(".function u8 main(){").first);
123 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/static_core/plugins/ets/tests/ets-templates/11.enumerations/01.enumeration_integer_values/
Denum_int_n.params.yaml20 enum Enum { first = a, second = b, third = c }
22 assert Enum.first.valueOf() == a
27 enum Enum { first = 1.0, second, third } // wrong init type
29 assert Enum.first.valueOf() == 1.0
32 enum Enum { first = 10e1, second, third } // wrong init type
34 assert 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 assert Enum2.first.valueOf() == 42
[all …]
Denum_int.params.yaml17 enum Enum { first, second, third }
19 assert Enum.first.valueOf() == 0
24 enum Enum { first, second = -2147483648, third}
26 assert Enum.first.valueOf() == 0
31 enum Enum { first = 0x7fffffff - 2, second, third }
33 assert Enum.first.valueOf() == 2147483645
40 enum Enum { first = a, second = b, third = b - 1 }
42 assert Enum.first.valueOf() == a
47 enum Enum { first, second = -1, third }
49 assert Enum.first.valueOf() == 0
[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 assert(Enum.first != Enum.second && Enum.second != Enum.third && Enum.first == Enum.third)
22 enum Enum { first = 11, second = 11, third = 11 }
24 assert(Enum.first == Enum.second && Enum.second == Enum.third && Enum.first == Enum.third)
27 enum Enum { first = "A", second = "B", third = "A" }
29 assert(Enum.first != Enum.second && Enum.second != Enum.third && Enum.first == Enum.third)
32 enum Enum { first = "ABC", second = "ABC", third = "ABC" }
34 assert(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 …]
Denum_equality_n.params.yaml17 enum Enum1 { first }
18 enum Enum2 { first }
20 assert Enum1.first == Enum2.first
23 enum Enum1 { first = "A" }
24 enum Enum2 { first = "A" }
26 assert Enum1.first == Enum2.first
/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/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/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/assembler/
Dassembly-ins.cpp20 std::string panda::pandasm::Ins::RegsToString(bool &first, bool print_args, size_t first_arg_idx) c… in RegsToString() argument
24 if (!first) { in RegsToString()
27 first = false; in RegsToString()
39 std::string panda::pandasm::Ins::ImmsToString(bool &first) const in ImmsToString()
43 if (!first) { in ImmsToString()
46 first = false; in ImmsToString()
60 std::string panda::pandasm::Ins::IdsToString(bool &first) const in IdsToString()
64 if (!first) { in IdsToString()
67 first = false; in IdsToString()
77 bool first = true; in OperandsToString() local
[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/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 assert 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 assert Enum.first.toString() == "11"
32 enum Enum { first = "11", second = undefined, third = "13" } // cannot use undefined
34 assert Enum.first.toString() == "11"
/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_frontend/ets2panda/test/compiler/ets/
Dgenerics_implicit_lambda1.sts16 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/builtins/
Dbuiltins_string_iterator.cpp61 // 9. Let first be the code unit value at index position in s. in NextInternal()
62 uint16_t first = EcmaStringAccessor(string.GetObject<EcmaString>()).Get<false>(position); in NextInternal() local
65 …// 10. If first < 0xD800 or first > 0xDBFF or position+1 = len, let resultString be the string con… in NextInternal()
66 // single code unit first. in NextInternal()
68 if (position + 1 == len || first < base::utf_helper::DECODE_LEAD_LOW || in NextInternal()
69 first > base::utf_helper::DECODE_LEAD_HIGH) { in NextInternal()
70 if (EcmaStringAccessor::CanBeCompressed(&first, 1)) { in NextInternal()
72 result.Update(singleCharTable->GetStringFromSingleCharTable(first)); in NextInternal()
74 std::vector<uint16_t> resultString {first, 0x0}; in NextInternal()
81 // 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:…
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/
Dsource_manager.cpp67 ASSERT_EQ(test_id0.first, ScriptId(0)); in TEST_F()
70 ASSERT_EQ(sm_.GetSourceFileName(test_id0.first), "test.pa"); in TEST_F()
74 ASSERT_EQ(test_id0.first, ScriptId(0)); in TEST_F()
78 ASSERT_EQ(test_id1.first, ScriptId(1)); in TEST_F()
83 ASSERT_EQ(sm_.GetSourceFileName(test_id2.first), "test2.pa"); in TEST_F()
84 ASSERT_EQ(sm_.GetSourceFileName(test_id3.first), "test3.pa"); in TEST_F()
89 ASSERT_EQ(sm_.GetSourceFileName(test_id2.first), "test2.pa"); in TEST_F()
92 ASSERT_EQ(test_id0.first, ScriptId(0)); in TEST_F()

12345678910>>...57