Home
last modified time | relevance | path

Searched full:second (Results 1 – 25 of 196) sorted by relevance

12345678

/ark/runtime_core/assembler/tests/
Dlexer_test.cpp36 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
46 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
60 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
70 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
82 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
93 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
102 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
111 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
128 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
139 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
[all …]
/ark/js_runtime/ecmascript/
Decma_string_table.cpp34 for (; item != range.second; ++item) { in GetString()
35 auto foundString = item->second; in GetString()
48 for (; item != range.second; ++item) { in GetString()
49 auto foundString = item->second; in GetString()
62 for (; item != range.second; ++item) { in GetString()
63 auto foundString = item->second; in GetString()
75 for (; item != range.second; ++item) { in GetString()
76 auto foundString = item->second; in GetString()
153 auto *object = it->second; in SweepWeakReference()
160 it->second = static_cast<EcmaString *>(fwd); in SweepWeakReference()
Dtagged_array-inl.h79 const JSHandle<TaggedArray> &second) in Append() argument
82 uint32_t secondLength = second->GetLength(); in Append()
91 argument->Set(thread, index, second->Get(index - firstLength)); in Append()
97 … const JSHandle<TaggedArray> &second, uint32_t copyLength) in AppendSkipHole() argument
100 uint32_t secondLength = second->GetLength(); in AppendSkipHole()
115 JSTaggedValue val = second->Get(i); in AppendSkipHole()
Dinternal_call_params.h68 fixed_data_[1] = arg1.GetTaggedType(); // 1: second index in MakeArgv()
76 fixed_data_[1] = arg1.GetTaggedType(); // 1: second indexs in MakeArgv()
86 fixed_data_[1] = arg1.GetTaggedType(); // 1: second index in MakeArgv()
106 fixed_data_[1] = arg1.GetRawData(); // 1: second index in MakeArgv()
113 fixed_data_[1] = arg1.GetRawData(); // 1: second index in MakeArgv()
122 fixed_data_[1] = arg1.GetRawData(); // 1: second index in MakeArgv()
Djs_relative_time_format.cpp169 // 2. If unit is "seconds" or "second", return "second". in SingularUnitToIcuUnit()
178 JSHandle<EcmaString> second = JSHandle<EcmaString>::Cast(globalConst->GetHandledSecondString()); in SingularUnitToIcuUnit() local
196 … if (EcmaString::StringsAreEqual(*second, *unit) || EcmaString::StringsAreEqual(*seconds, *unit)) { in SingularUnitToIcuUnit()
255 …// 10. If unit is not one of "second", "minute", "hour", "day", "week", "month", "quarter", or "ye… in GetIcuFormatted()
284 JSHandle<EcmaString> second = JSHandle<EcmaString>::Cast(globalConst->GetHandledSecondString()); in SingularUnitString() local
301 // 2. If unit is "seconds" or "second", return "second". in SingularUnitString()
302 … if (EcmaString::StringsAreEqual(*second, *unit) || EcmaString::StringsAreEqual(*seconds, *unit)) { in SingularUnitString()
303 return second; in SingularUnitString()
423 resString = JSLocale::IcuToString(thread, formattedText, it->first, it->second); in FormatToArray()
431 start = it->second; in FormatToArray()
/ark/js_runtime/ecmascript/compiler/llvm/
Dllvm_stackmap_parser.cpp49 return &(it->second); in GetCallSiteInfoByPc()
58 return &(it->second); in GetCallSiteInfoByPatchID()
72 address = rsp + info.second; in PrintCallSiteInfo()
73 LOG_ECMA(DEBUG) << std::dec << "SP_DWARF_REG_NUM: info.second:" << info.second in PrintCallSiteInfo()
77 address = fp + info.second; in PrintCallSiteInfo()
78 LOG_ECMA(DEBUG) << std::dec << "FP_DWARF_REG_NUM: info.second:" << info.second in PrintCallSiteInfo()
122 address = rsp + info.second; in CollectStackMapSlots()
125 address = fp + info.second; in CollectStackMapSlots()
162 address = callsiteSp + info.second; in PrintCallSiteInfo()
164 address = callsiteFp + info.second; in PrintCallSiteInfo()
[all …]
/ark/js_runtime/ecmascript/builtins/
Dbuiltins_string_iterator.cpp73 // a. Let second be the code unit value at index position+1 in the String S. in Next()
74 …// b. If second < 0xDC00 or second > 0xDFFF, let resultString be the string consisting of the sing… in Next()
76 … let resultString be the string consisting of the code unit first followed by the code unit second. in Next()
77 uint16_t second = string.GetObject<EcmaString>()->At<false>(position + 1); in Next() local
78 … if (second < base::utf_helper::DECODE_TRAIL_LOW || second > base::utf_helper::DECODE_TRAIL_HIGH) { in Next()
82 std::vector<uint16_t> resultString {first, second, 0x0}; in Next()
/ark/runtime_core/libpandabase/tests/
Dexpected_test.cpp22 enum class ErrorCode { First, Second }; enumerator
32 return Unexpected {ErrorCode::Second}; in helper()
64 auto u = Unexpected(ErrorCode::Second); in TEST()
68 EXPECT_EQ(e3.Error(), ErrorCode::Second); in TEST()
75 EXPECT_EQ((Expected<int, ErrorCode>(Unexpected(ErrorCode::Second)).Error()), ErrorCode::Second); in TEST()
105 EXPECT_EQ(res3.Error(), ErrorCode::Second); in TEST()
/ark/js_runtime/ecmascript/regexp/tests/
Dregexp_test.cpp626 ASSERT_TRUE(result.captures_[0].second->Compare(*str) == 0); in HWTEST_F_L0()
648 ASSERT_TRUE(result.captures_[0].second->Compare(*str) == 0); in HWTEST_F_L0()
649 ASSERT_TRUE(result.captures_[1].second->Compare(*str) == 0); in HWTEST_F_L0()
650 ASSERT_TRUE(result.captures_[2].second->Compare(*str) == 0); in HWTEST_F_L0()
651 ASSERT_TRUE(result.captures_[3].second->Compare(*str) == 0); in HWTEST_F_L0()
680 ASSERT_TRUE(result.captures_[0].second->Compare(*str1) == 0); in HWTEST_F_L0()
681 ASSERT_TRUE(result.captures_[1].second->Compare(*str2) == 0); in HWTEST_F_L0()
703 ASSERT_TRUE(result.captures_[0].second->Compare(*str) == 0); in HWTEST_F_L0()
725 ASSERT_TRUE(result.captures_[0].second->Compare(*str) == 0); in HWTEST_F_L0()
751 ASSERT_TRUE(result.captures_[0].second->Compare(*str1) == 0); in HWTEST_F_L0()
[all …]
/ark/runtime_core/runtime/tests/
Dbitmap_clear_range_test.cpp46 bm.ClearRange(ToVoidPtr(heap_begin + range.first), ToVoidPtr(heap_begin + range.second)); in TEST_F()
51 ….IterateOverChunkInRange(ToVoidPtr(heap_begin + range.first), ToVoidPtr(heap_begin + range.second), in TEST_F()
53 // for SIXTH_RANGE, range.second is not in the heap, so we skip this test in TEST_F()
54 if (range.second < bm.MemSizeInBytes()) { in TEST_F()
55 bm.IterateOverChunkInRange(ToVoidPtr(heap_begin + range.second), in TEST_F()
/ark/runtime_core/assembler/
Dassembly-parser.cpp340 for (const auto &k : f.second.label_table) { in ParseResetFunctionLabelsAndParams()
341 if (!k.second.file_location->is_defined) { in ParseResetFunctionLabelsAndParams()
343 … k.second.file_location->bound_left, k.second.file_location->bound_right, in ParseResetFunctionLabelsAndParams()
344 k.second.file_location->whole_line); in ParseResetFunctionLabelsAndParams()
354 for (const auto &v : t.second) { in ParseResetFunctionLabelsAndParams()
357 curr_func_->ins[v.first - 1].regs[v.second] += in ParseResetFunctionLabelsAndParams()
360 if (curr_func_->ins[v.first - 1].regs[v.second] >= max_reg_number) { in ParseResetFunctionLabelsAndParams()
376 if (!k.second.file_location->is_defined) { in ParseResetFunctionTable()
377 … context_.err = Error("This function does not exist.", k.second.file_location->line_number, in ParseResetFunctionTable()
378 … Error::ErrorType::ERR_BAD_ID_FUNCTION, "", k.second.file_location->bound_left, in ParseResetFunctionTable()
[all …]
Dassembly-parser.h219 if (iter->second.file_location->is_defined && flag) { in AddObjectInTable()
223 if (!iter->second.file_location->is_defined && flag) { in AddObjectInTable()
224 iter->second.file_location->is_defined = true; in AddObjectInTable()
228 if (!iter->second.file_location->is_defined) { in AddObjectInTable()
229 … iter->second.file_location->bound_left = context_.tokens[context_.number - 1].bound_left; in AddObjectInTable()
230 … iter->second.file_location->bound_right = context_.tokens[context_.number - 1].bound_right; in AddObjectInTable()
231 … iter->second.file_location->whole_line = context_.tokens[context_.number - 1].whole_line; in AddObjectInTable()
232 iter->second.file_location->line_number = line_stric_; in AddObjectInTable()
/ark/runtime_core/runtime/
Dstring_table.cpp84 auto found_string = it->second; in GetString()
98 auto found_string = it->second; in GetString()
112 auto found_string = it->second; in GetString()
132 auto found_string = it->second; in InternString()
191 auto *object = it->second; in UpdateMoved()
194 it->second = static_cast<coretypes::String *>(fwd_string); in UpdateMoved()
210 auto *object = it->second; in Sweep()
214 it->second = static_cast<coretypes::String *>(fwd_string); in Sweep()
277 (it->second)[id] = result; in GetOrInternString()
291 auto id_it = it->second.find(id); in GetStringFast()
[all …]
Dmonitor_pool.h42 if (!cb(iter.second)) { in EnumerateMonitors()
53 auto monitor = monitor_iter->second; in DeflateMonitorsWithCallBack()
72 if (iter.second != nullptr) { in ~MonitorPool()
73 allocator_->Delete(iter.second); in ~MonitorPool()
/ark/js_runtime/ecmascript/regexp/
Dregexp_opcode.cpp473 buf->EmitU16(range.second); in InsertOpCode()
500 buf->EmitU32(range.second); in InsertOpCode()
581 if (IsIntersect(start, end, iter->first, iter->second) || in Insert()
582 IsAdjacent(start, end, iter->first, iter->second)) { in Insert()
584 iter->second = std::max(iter->second, end); in Insert()
605 Insert(range.first, range.second); in Insert()
621 if (iter->first == 0 && iter->second == maxValue) { in Invert()
630 if (iter->second == maxValue) { in Invert()
634 iter->first = iter->second + 1; in Invert()
636 iter->second = iter2->first - 1; in Invert()
[all …]
/ark/js_runtime/ecmascript/hprof/
Dstring_hashmap.cpp24 return it->second; in FindOrInsertString()
37 return it != indexMap_.end() ? it->second : 1; // "" in GetStringId()
44 return FormatString(it->second); in GetStringByKey()
95 if (it.second != nullptr) { in Clear()
96 const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->Delete(it.second); in Clear()
/ark/js_runtime/ecmascript/tests/
Djs_forin_iterator_test.cpp79 EXPECT_FALSE(n1.second); in HWTEST_F_L0()
83 EXPECT_FALSE(n2.second); in HWTEST_F_L0()
87 EXPECT_FALSE(n3.second); in HWTEST_F_L0()
91 EXPECT_TRUE(n4.second); in HWTEST_F_L0()
/ark/runtime_core/verification/job_queue/
Dindex_table_cache.h48 if (!std::holds_alternative<T>(it->second)) { in GetFromCache()
51 return std::get<T>(it->second); in GetFromCache()
62 …= cache.emplace(std::make_pair(pf, std::make_pair(type_idx, ptr)), std::move(table)).first->second; in AddToCache()
Djob.h125 handler(item.second.get()); in ForAllCachedClasses()
133 handler(item.second.get()); in ForAllCachedMethods()
141 handler(item.second.get()); in ForAllCachedFields()
/ark/runtime_core/assembler/templates/
Dins_emit.h.erb73 % ops << 'labels.find(ids[0])->second'
87 % ops << 'methods.find(ids[0])->second->GetIndex(method)'
89 % ops << 'fields.find(ids[0])->second->GetIndex(method)'
91 % ops << 'classes.find(ids[0])->second->GetIndex(method)'
93 % ops << 'strings.find(ids[0])->second->GetOffset()'
95 % ops << 'static_cast<uint32_t>(literalarrays.find(ids[0])->second->GetOffset())'
/ark/js_runtime/ecmascript/base/tests/
Djson_stringifier_test.cpp93 …* the first parameter of the ECMAObject,the second parameter is JSFunction,the third par…
94 …* is Undefined.if the second parameter is JSFunction,the return value is the parameter s…
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…
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…
323 …* the first parameter of the JSObject,the second parameter is Undefined,the third parame…
/ark/runtime_core/verification/absint/
Dpanda_types.cpp51 return t->second; in NormalizedTypeOf()
89 return it->second; in NormalizedMethodSignature()
102 return it->second; in MethodSignature()
147 return val.second; in TypeIdOf()
163 return k->second; in TypeOf()
230 return k->second; in TypeOf()
287 if (val.second == id) { in TypeOf()
/ark/js_runtime/ecmascript/tooling/agent/
Ddebugger_impl.h74 value = script.second->GetUrl(); in MatchScripts()
78 value = script.second->GetFileName(); in MatchScripts()
82 value = script.second->GetHash(); in MatchScripts()
90 return cb(script.second.get()); in MatchScripts()
/ark/js_runtime/ecmascript/mem/
Dmem_controller.cpp163 if (timeMs != 0 && a.second >= timeMs) { in CalculateAverageSpeed()
166 return std::make_pair(a.first + b.first, a.second + b.second); in CalculateAverageSpeed()
170 double durations = sum.second; in CalculateAverageSpeed()
/ark/runtime_core/libpandabase/mem/
Dalloc_tracker.cpp111 AllocInfo *alloc = it->second; in TrackFree()
202 out << "Allocation of " << entry.second->GetSize() << " is allocated at\n"; in DumpMemLeaks()
203 uint32_t stacktrace_id = entry.second->GetStacktraceId(); in DumpMemLeaks()
250 if (res.second) { in WriteStacks()
257 uint32_t id = res.first->second; in WriteStacks()

12345678