Home
last modified time | relevance | path

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

12345678910>>...12

/ark/runtime_core/assembler/tests/
Dparser_test.cpp30 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
31 v.push_back(l.TokenizeString("mov v1, v2}").first); in TEST()
44 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
45 v.push_back(l.TokenizeString("label:}").first); in TEST()
58 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
59 v.push_back(l.TokenizeString("jlt v10, lab123}").first); in TEST()
69 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
70 v.push_back(l.TokenizeString("11111111}").first); in TEST()
80 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
81 v.push_back(l.TokenizeString("addi 1}").first); in TEST()
[all …]
Dlexer_test.cpp32 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
33 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST()
34 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected"; in TEST()
35 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in TEST()
44 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
45 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST()
54 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
55 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "OPERATION") << "OPERATION expected"; in TEST()
56 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "ID") << "ID expected"; in TEST()
57 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in TEST()
[all …]
/ark/runtime_core/assembler/
Dassembly-ins.cpp21 std::string panda::pandasm::Ins::RegsToString(bool &first, bool print_args, size_t first_arg_idx) c… in RegsToString() argument
25 if (!first) { in RegsToString()
28 first = false; in RegsToString()
40 std::string panda::pandasm::Ins::ImmsToString(bool &first) const in ImmsToString()
44 if (!first) { in ImmsToString()
47 first = false; in ImmsToString()
61 std::string panda::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 …]
/ark/js_runtime/ecmascript/builtins/
Dbuiltins_string_iterator.cpp60 // 9. Let first be the code unit value at index position in s. in Next()
61 uint16_t first = string.GetObject<EcmaString>()->At<false>(position); in Next() local
64 …// 10. If first < 0xD800 or first > 0xDBFF or position+1 = len, let resultString be the string con… in Next()
65 // single code unit first. in Next()
67 if (position + 1 == len || first < base::utf_helper::DECODE_LEAD_LOW || in Next()
68 first > base::utf_helper::DECODE_LEAD_HIGH) { in Next()
69 std::vector<uint16_t> resultString {first, 0x0}; in Next()
75 // first. in Next()
76 …// c. Else, let resultString be the string consisting of the code unit first followed by the code … in Next()
79 std::vector<uint16_t> resultString {first, 0x0}; in Next()
[all …]
/ark/runtime_core/libpandabase/tests/
Dexpected_test.cpp22 enum class ErrorCode { First, Second }; enumerator
28 return Unexpected {ErrorCode::First}; in helper()
63 auto e2 = Expected<int, ErrorCode>(Unexpected(ErrorCode::First)); in TEST()
67 EXPECT_EQ(e2.Error(), ErrorCode::First); in TEST()
73 const auto e1 = Expected<int, ErrorCode>(Unexpected(ErrorCode::First)); in TEST()
74 EXPECT_EQ(e1.Error(), ErrorCode::First); in TEST()
90 t = Unexpected(ErrorCode::First); in TEST()
92 EXPECT_EQ(t.Error(), ErrorCode::First); in TEST()
103 EXPECT_EQ(res1.Error(), ErrorCode::First); in TEST()
/ark/runtime_core/assembler/templates/
Dins_create_api.h.erb24 % insn = group.first
30 <%=group.first.emitter_name%>_.opcode = Opcode::<%= insn.asm_token %>;
40 <%=group.first.emitter_name%>_.regs.reserve(<%= count_reg %>);
45 <%=group.first.emitter_name%>_.ids.push_back(label);
47 <%=group.first.emitter_name%>_.imms.emplace_back(<%= o.name %>);
50 <%=group.first.emitter_name%>_.ids.push_back(<%= o.name %>);
52 <%=group.first.emitter_name%>_.regs.push_back(<%= o.name %>);
/ark/runtime_core/verification/models/typesystem/
Dark_subtyping_closure.als83 // return pairs of types when second type depends on first
181 TypeSystem.subtyping.first.is_correct
185 not first.related[t1,t2]
186 first.allowed_to_be_related[t1, t2]
187 TypeSystem.to_be_subtyped.first = complement_to_full[TypeSystem.subtyping.first, t1 -> t2]
191 all t: Time - first | t.step
207 TypeSystem.subtyping.first.is_correct
209 not first.related[t1,t2]
210 first.allowed_to_be_related[t1, t2]
211 TypeSystem.to_be_subtyped.first = complement_to_full[TypeSystem.subtyping.first, t1 -> t2]
[all …]
/ark/runtime_core/libpandabase/utils/
Dlist.h248 Iterator InsertAfter(ConstIterator position, InputIterator first, InputIterator last) in InsertAfter() argument
250 while (first != last) { in InsertAfter()
251 position = InsertAfter(position, *first++); in InsertAfter()
315 * Transfer single element first+1 into place after position.
317 void Splice(ConstIterator position, List &other, ConstIterator first) in Splice() argument
320 Splice(position, other, first, first + SHIFT); in Splice()
324 * Transfer the elements in the range (first,last) into place after position.
326 void Splice(ConstIterator position, List &src_list, ConstIterator first, ConstIterator last) in Splice() argument
329 ASSERT(first != last); in Splice()
331 if (++ConstIterator(first) == last) { in Splice()
[all …]
Dbit_vector.h35 inline void fill(panda::BitVectorIterator<IsConst> first, panda::BitVectorIterator<IsConst> last, b…
257 …friend void std::fill(panda::BitVectorIterator<_IsConst> first, panda::BitVectorIterator<_IsConst>…
661 inline void FillBitVector(panda::BitVectorIterator<IsConst> first, panda::BitVectorIterator<IsConst… in FillBitVector() argument
663 for (; first != last; ++first) { in FillBitVector()
664 *first = value; in FillBitVector()
680 inline void fill(panda::BitVectorIterator<IsConst> first, panda::BitVectorIterator<IsConst> last, b… in fill() argument
682 if (first.data_ != last.data_) { in fill()
684 std::fill(first.data_ + 1, last.data_, value ? ~0LLU : 0); in fill()
686 …panda::internal::FillBitVector(first, panda::BitVectorIterator<IsConst>(first.data_ + 1, 0), value… in fill()
689 panda::internal::FillBitVector(first, last, value); in fill()
/ark/js_runtime/ecmascript/
Dinternal_call_params.h60 fixed_data_[0] = arg.GetTaggedType(); // 0: first index in MakeArgv()
67 fixed_data_[0] = arg0.GetTaggedType(); // 0: first index in MakeArgv()
75 fixed_data_[0] = arg0.GetTaggedType(); // 0: first index in MakeArgv()
85 fixed_data_[0] = arg0.GetTaggedType(); // 0: first index in MakeArgv()
99 fixed_data_[0] = arg.GetRawData(); // 0: first index in MakeArgv()
105 fixed_data_[0] = arg0.GetRawData(); // 0: first index in MakeArgv()
112 fixed_data_[0] = arg0.GetRawData(); // 0: first index in MakeArgv()
121 fixed_data_[0] = arg0.GetRawData(); // 0: first index in MakeArgv()
Dtagged_array-inl.h78 …Handle<TaggedArray> TaggedArray::Append(const JSThread *thread, const JSHandle<TaggedArray> &first, in Append() argument
81 uint32_t firstLength = first->GetLength(); in Append()
88 argument->Set(thread, index, first->Get(index)); in Append()
96 …aggedArray> TaggedArray::AppendSkipHole(const JSThread *thread, const JSHandle<TaggedArray> &first, in AppendSkipHole() argument
99 uint32_t firstLength = first->GetLength(); in AppendSkipHole()
107 JSTaggedValue val = first->Get(index); in AppendSkipHole()
Decma_string_table.cpp33 auto item = range.first; in GetString()
47 auto item = range.first; in GetString()
61 auto item = range.first; in GetString()
74 auto item = range.first; in GetString()
/ark/runtime_core/runtime/mem/gc/
Dcrossing_map.h57 // This element (or map) can be used to get the first object address, which starts inside this page…
64 * @param start_addr - first bit of the memory which must be covered by the Crossing Map.
84 * Crossing map doesn't know about existed objects (it knows only about first).
97 * \brief Find and return the first object, which starts in an interval inclusively
100 * we find the first object, which crosses the border of this interval.
101 * @param start_addr - pointer to the first byte of the interval.
103 * @return Returns the first object which starts inside an interval,
111 * @param start_addr - pointer to the first byte of the interval.
118 * @param start_addr - pointer to the first byte of the interval.
143 …// - if Status == Initialized, the Offset value is an offset in words of the first element on this…
[all …]
/ark/js_runtime/ecmascript/regexp/
Dregexp_opcode.cpp472 buf->EmitU16(range.first); in InsertOpCode()
499 buf->EmitU32(range.first); in InsertOpCode()
581 if (IsIntersect(start, end, iter->first, iter->second) || in Insert()
582 IsAdjacent(start, end, iter->first, iter->second)) { in Insert()
583 iter->first = std::min(iter->first, start); in Insert()
587 if (iter->first > end) { in Insert()
605 Insert(range.first, range.second); in Insert()
621 if (iter->first == 0 && iter->second == maxValue) { in Invert()
627 uint32_t first = iter->first; in Invert() local
634 iter->first = iter->second + 1; in Invert()
[all …]
/ark/js_runtime/ecmascript/class_linker/
Dpanda_file_translator.cpp145 panda_file::File::EntityId id(it.first); in GenerateProgram()
151 ASSERT(mainMethodIndex != it.first); in GenerateProgram()
152 panda_file::File::EntityId id(it.first); in GenerateProgram()
153 auto method = const_cast<JSMethod *>(jsPandaFile_->FindMethods(it.first)); in GenerateProgram()
161 ASSERT(mainMethodIndex != it.first); in GenerateProgram()
162 panda_file::File::EntityId id(it.first); in GenerateProgram()
163 auto method = const_cast<JSMethod *>(jsPandaFile_->FindMethods(it.first)); in GenerateProgram()
171 ASSERT(mainMethodIndex != it.first); in GenerateProgram()
172 panda_file::File::EntityId id(it.first); in GenerateProgram()
173 auto method = const_cast<JSMethod *>(jsPandaFile_->FindMethods(it.first)); in GenerateProgram()
[all …]
/ark/runtime_core/runtime/mem/
Dalloc_config.h88 * \brief Find and return the first object, which starts in an interval inclusively
91 * we find the first object, which crosses the border of this interval.
92 * @param start_addr - pointer to the first byte of the interval.
94 * @return Returns the first object which starts inside an interval,
105 * @param start_addr - pointer to the first byte of the interval.
115 * @param start_addr - pointer to the first byte of the interval.
279 * \brief Find and return the first object, which starts in an interval inclusively
282 * we find the first object, which crosses the border of this interval.
283 * @param start_addr - pointer to the first byte of the interval.
285 * @return Returns the first object which starts inside an interval,
[all …]
/ark/js_runtime/docs/
Denvironment-setup-and-compilation.md14 1. First compilation:
20 2. Compile an ARK runtime after the first compilation:
26 3. Compile the ARK frontend after the first compilation:
/ark/runtime_core/runtime/include/
Dhistogram-inl.h74 bool first = true; in GetTopDump() local
79 if (!first) { in GetTopDump()
82 statistic << it.first << ":" << it.second; in GetTopDump()
83 first = false; in GetTopDump()
/ark/runtime_core/runtime/templates/
Dshorty_values.h.erb26 % first_nonvoid = PandaFile::types.select {|type| type.name != "void"}.first.code
27 % first_32 = PandaFile::types.select {|type| type.width && type.width == 32}.first.code
29 % first_64 = PandaFile::types.select {|type| (type.width && type.width == 64)}.first.code
30 % first_float = PandaFile::types.select {|type| type.properties.include?("float") }.first.code
/ark/js_runtime/ecmascript/compiler/llvm/
Dllvm_stackmap_parser.cpp70 if (info.first == FrameConstants::SP_DWARF_REG_NUM) { in PrintCallSiteInfo()
75 } else if (info.first == FrameConstants::FP_DWARF_REG_NUM) { in PrintCallSiteInfo()
81 LOG_ECMA(DEBUG) << "REG_NUM : info.first:" << info.first; in PrintCallSiteInfo()
120 if (info.first == FrameConstants::SP_DWARF_REG_NUM) { in CollectStackMapSlots()
123 } else if (info.first == FrameConstants::FP_DWARF_REG_NUM) { in CollectStackMapSlots()
161 if (info.first == FrameConstants::SP_DWARF_REG_NUM) { in PrintCallSiteInfo()
163 } else if (info.first == FrameConstants::FP_DWARF_REG_NUM) { in PrintCallSiteInfo()
209 if (info.first == FrameConstants::SP_DWARF_REG_NUM) { in CollectStackMapSlots()
211 } else if (info.first == FrameConstants::FP_DWARF_REG_NUM) { in CollectStackMapSlots()
/ark/js_runtime/ecmascript/tests/
Djs_forin_iterator_test.cpp78 EXPECT_EQ(n1.first, key1.GetTaggedValue()); in HWTEST_F_L0()
82 EXPECT_EQ(n2.first, key2.GetTaggedValue()); in HWTEST_F_L0()
86 EXPECT_EQ(n3.first, key3.GetTaggedValue()); in HWTEST_F_L0()
90 EXPECT_EQ(n4.first, JSTaggedValue::Undefined()); in HWTEST_F_L0()
/ark/js_runtime/ecmascript/base/tests/
Djson_stringifier_test.cpp93 …* the first parameter of the ECMAObject,the second parameter is JSFunction,the third par…
128 …* the first parameter of the ECMAObject,the second parameter is Undefined,the third para…
152 …* the first parameter of the ECMAObject,the second parameter is Undefined,the third para…
180 …* the first parameter of the ECMAObject,the second parameter is JSArray,the third parame…
219 …* the first parameter of the ECMAObject,the second parameter is Undefined,the third para…
220 …* is Undefined.This situation will stringize the first parameter through "SerializeJSONO…
242 …* the first parameter of the JSArray,the second parameter is Undefined,the third paramet…
284 …* the first parameter of the JSObject,the second parameter is Undefined,the third parame…
285 …* is Undefined.This situation will stringize the first parameter through "SerializeJSArr…
323 …* the first parameter of the JSObject,the second parameter is Undefined,the third parame…
[all …]
/ark/runtime_core/runtime/tests/
Drem_set_test.cpp102 auto first = test_list.front(); in TEST_F() local
103 ASSERT_EQ(first, obj2); in TEST_F()
143 auto first = test_list.front(); in TEST_F() local
144 ASSERT_EQ(first, obj1); in TEST_F()
189 auto first = test_list.front(); in TEST_F() local
190 ASSERT_EQ(first, obj1); in TEST_F()
Dbitmap_clear_range_test.cpp46 bm.ClearRange(ToVoidPtr(heap_begin + range.first), ToVoidPtr(heap_begin + range.second)); in TEST_F()
50 …bm.IterateOverChunkInRange(ToVoidPtr(heap_begin), ToVoidPtr(heap_begin + range.first), test_true_f… in TEST_F()
51 …bm.IterateOverChunkInRange(ToVoidPtr(heap_begin + range.first), ToVoidPtr(heap_begin + range.secon… in TEST_F()
Dframe_allocator_test.cpp166 ASSERT_TRUE(CompareBytesWithByteArray(last_pair.first, FRAME_SIZE, last_pair.second)) in TEST_F()
167 … << "iteration: " << i << ", size: " << FRAME_SIZE << ", address: " << std::hex << last_pair.first in TEST_F()
169 alloc.Free(last_pair.first); in TEST_F()
175 ASSERT_TRUE(CompareBytesWithByteArray(last_pair.first, FRAME_SIZE, last_pair.second)) in TEST_F()
176 …r size: " << vec.size() << ", size: " << FRAME_SIZE << ", address: " << std::hex << last_pair.first in TEST_F()
178 alloc.Free(last_pair.first); in TEST_F()

12345678910>>...12