| /ark/runtime_core/assembler/tests/ |
| D | lexer_test.cpp | 36 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/ |
| D | ecma_string_table.cpp | 34 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()
|
| D | tagged_array-inl.h | 79 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()
|
| D | internal_call_params.h | 68 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()
|
| D | js_relative_time_format.cpp | 169 // 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/ |
| D | llvm_stackmap_parser.cpp | 49 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/ |
| D | builtins_string_iterator.cpp | 73 // 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/ |
| D | expected_test.cpp | 22 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/ |
| D | regexp_test.cpp | 626 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/ |
| D | bitmap_clear_range_test.cpp | 46 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/ |
| D | assembly-parser.cpp | 340 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 …]
|
| D | assembly-parser.h | 219 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/ |
| D | string_table.cpp | 84 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 …]
|
| D | monitor_pool.h | 42 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/ |
| D | regexp_opcode.cpp | 473 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/ |
| D | string_hashmap.cpp | 24 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/ |
| D | js_forin_iterator_test.cpp | 79 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/ |
| D | index_table_cache.h | 48 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()
|
| D | job.h | 125 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/ |
| D | ins_emit.h.erb | 73 % 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/ |
| D | json_stringifier_test.cpp | 93 …* 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/ |
| D | panda_types.cpp | 51 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/ |
| D | debugger_impl.h | 74 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/ |
| D | mem_controller.cpp | 163 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/ |
| D | alloc_tracker.cpp | 111 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()
|