Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 112) sorted by relevance

12345

/ark/runtime_core/assembler/tests/
Dlexer_test.cpp30 std::string s = "mov v1, v2"; in TEST() local
31 Tokens tok = l.TokenizeString(s); in TEST()
42 std::string s = "ldai 1"; in TEST() local
43 Tokens tok = l.TokenizeString(s); in TEST()
52 std::string s = "movi\nlda v2 v10 mov v2"; in TEST() local
53 Tokens tok = l.TokenizeString(s); in TEST()
66 …std::string s = "jmp Iasdfsadkfjhasifhsaiuhdacoisjdaociewhasdasdfkjasdfhjksadhfkhsakdfjhksajhdkfjh… in TEST() local
67 Tokens tok = l.TokenizeString(s); in TEST()
76 std::string s = "call.short 1111, 1"; in TEST() local
77 Tokens tok = l.TokenizeString(s); in TEST()
[all …]
/ark/runtime_core/verification/debug/handlers/
Dconfig_handler_method_options.cpp56 static bool ProcessSectionMsg(const Section &s, MethodOptions *options, const F &joiner) in ProcessSectionMsg() argument
58 auto lines = joiner(s.items); in ProcessSectionMsg()
68 bool error = s.name == "error"; in ProcessSectionMsg()
69 bool warning = s.name == "warning"; in ProcessSectionMsg()
82 static bool ProcessSectionShow(const Section &s, MethodOptions *options, const F &joiner) in ProcessSectionShow() argument
84 auto lines = joiner(s.items); in ProcessSectionShow()
111 static bool ProcessSectionUplevel(const Section &s, MethodOptions *options, const F &joiner) in ProcessSectionUplevel() argument
116 auto lines = joiner(s.items); in ProcessSectionUplevel()
136 static bool ProcessSectionCheck(const Section &s, MethodOptions *options, const F &joiner) in ProcessSectionCheck() argument
138 auto lines = joiner(s.items); in ProcessSectionCheck()
[all …]
Dconfig_handler_allowlist.cpp66 for (const auto &s : section.sections) { in RegisterConfigHandlerAllowlist() local
68 if (s.name == "class") { in RegisterConfigHandlerAllowlist()
70 } else if (s.name == "method") { in RegisterConfigHandlerAllowlist()
72 } else if (s.name == "method_call") { in RegisterConfigHandlerAllowlist()
75 … LOG(DEBUG, VERIFIER) << "Wrong debug verifier allowlist section: '" << s.name << "'"; in RegisterConfigHandlerAllowlist()
78 for (const auto &i : s.items) { in RegisterConfigHandlerAllowlist()
90 … LOG(DEBUG, VERIFIER) << "Added to allowlist config '" << s.name << "' methods from class '" << c in RegisterConfigHandlerAllowlist()
94 … LOG(DEBUG, VERIFIER) << "Added to allowlist config '" << s.name << "' method '" << c in RegisterConfigHandlerAllowlist()
Dconfig_handler_options.cpp71 for (const auto &s : section.sections) { in Verify() local
72 if (flags.count(s.name) == 0) { in Verify()
73 LOG_VERIFIER_DEBUG_CONFIG_WRONG_OPTIONS_SECTION(s.name, GetKeys(flags)); in Verify()
76 const auto &section_flags = flags.at(s.name); in Verify()
77 for (const auto &i : s.items) { in Verify()
88 … LOG_VERIFIER_DEBUG_CONFIG_WRONG_OPTION_FOR_SECTION(l, s.name, GetKeys(section_flags)); in Verify()
92 LOG_VERIFIER_DEBUG_CONFIG_OPTION_IS_ACTIVE_INFO(s.name, l); in Verify()
Dconfig_handler_breakpoints.cpp97 for (const auto &s : section.sections) { in RegisterConfigHandlerBreakpoints() local
98 if (s.name == "verifier") { in RegisterConfigHandlerBreakpoints()
99 for (const auto &i : s.items) { in RegisterConfigHandlerBreakpoints()
120 LOG_VERIFIER_DEBUG_BREAKPOINT_WRONG_SECTION(s.name); in RegisterConfigHandlerBreakpoints()
/ark/runtime_core/libpandabase/tests/
Dspan_test.cpp27 std::string ToString(Span<T> s) in ToString() argument
30 for (const auto &e : s) { in ToString()
37 Span<T> Double(Span<T> s) in Double() argument
39 for (auto &e : s) { in Double()
42 return s; in Double()
56 std::string s = " !\""; in TEST() local
64 EXPECT_EQ(ToString(Double(Span(s))), "@ B D "); in TEST()
70 auto s = Span(c).SubSpan(1, 3); in TEST() local
71 auto f = s.First(2); in TEST()
72 auto l = s.Last(2); in TEST()
[all …]
Dpandargs_test.cpp204 std::string s = "--" + pab.GetName(); in TEST() local
205 argv_bool_only[1] = s.c_str(); in TEST()
224 std::string s = "--" + pab.GetName() + "="; in TEST() local
225 argv_bool_only[1] = s.c_str(); in TEST()
234 std::string s = "--" + pab.GetName(); in TEST() local
235 argv_bool_only[1] = s.c_str(); in TEST()
247 std::string s = "--" + pai.GetName(); in TEST() local
248 argv_int_only[1] = s.c_str(); in TEST()
264 std::string s = "--" + pad.GetName(); in TEST() local
265 argv_double_only[1] = s.c_str(); in TEST()
[all …]
/ark/runtime_core/verification/util/tests/
Denvironment.cpp40 …static const auto NAME_HANDLER = [](auto a, Context &c, auto s, auto e, [[maybe_unused]] auto end)… in EnvOptions() argument
42 c.name = std::string {s, e}; in EnvOptions()
53 static const auto BOOL_HANDLER = [](auto a, Context &c, auto s, [[maybe_unused]] auto to, in EnvOptions()
56 if (*s == 'f') { in EnvOptions()
67 …static const auto NUM_HANDLER = [](auto a, Context &c, auto s, auto e, [[maybe_unused]] auto end) { in EnvOptions() argument
69 c.value = std::stoi(std::string {s, e}, nullptr, 0); in EnvOptions()
77 …static const auto STRING_HANDLER = [](auto a, Context &c, auto s, auto e, [[maybe_unused]] auto en… in EnvOptions() argument
79 c.value = std::string {s, e}; in EnvOptions()
98 const char *s = std::getenv(env_var_name); in EnvOptions() local
99 if (s == nullptr) { in EnvOptions()
[all …]
Dobj_pool_test.cpp43 auto &&h = [&](S &s, size_t idx) { in TEST() argument
44 s.a = idx; in TEST()
47 Pool pool {h, [&](S &s) { result -= s.a; }}; in TEST()
/ark/runtime_core/libpandabase/utils/
Dlogger.cpp38 for (const auto &s : options.GetLogComponents()) { in Initialize() local
39 component_mask |= Logger::ComponentMaskFromString(s); in Initialize()
231 Logger::Level Logger::LevelFromString(std::string_view s) in LevelFromString() argument
235 if (s == str) { \ in LevelFromString()
245 Logger::ComponentMask Logger::ComponentMaskFromString(std::string_view s) in ComponentMaskFromString() argument
249 if (s == str) { \ in ComponentMaskFromString()
255 if (s == "all") { in ComponentMaskFromString()
279 bool Logger::IsInLevelList(std::string_view s) in IsInLevelList() argument
283 if (s == str) { \ in IsInLevelList()
292 bool Logger::IsInComponentList(std::string_view s) in IsInComponentList() argument
[all …]
Ddfx.cpp66 void DfxController::ResetOptionValueFromString(const std::string &s) in ResetOptionValueFromString() argument
68 size_t last_pos = s.find_first_not_of(';', 0); in ResetOptionValueFromString()
69 size_t pos = s.find(';', last_pos); in ResetOptionValueFromString()
71 std::string arg = s.substr(last_pos, pos - last_pos); in ResetOptionValueFromString()
72 last_pos = s.find_first_not_of(';', pos); in ResetOptionValueFromString()
73 pos = s.find(';', last_pos); in ResetOptionValueFromString()
Dspan.h262 Span<const std::byte> AsBytes(Span<T> s) noexcept in AsBytes() argument
264 return {reinterpret_cast<const std::byte *>(s.Data()), s.SizeBytes()}; in AsBytes()
268 Span<std::byte> AsWritableBytes(Span<T> s) noexcept in AsWritableBytes() argument
270 return {reinterpret_cast<std::byte *>(s.Data()), s.SizeBytes()}; in AsWritableBytes()
/ark/runtime_core/runtime/mem/
Dpanda_string.cpp92 PandaString ConvertToString(coretypes::String *s) in ConvertToString() argument
94 ASSERT(s != nullptr); in ConvertToString()
95 if (s->IsUtf16()) { in ConvertToString()
97 size_t len = utf::Utf16ToMUtf8Size(s->GetDataUtf16(), s->GetUtf16Length()) - 1; in ConvertToString()
99 … len = utf::ConvertRegionUtf16ToMUtf8(s->GetDataUtf16(), buf.data(), s->GetUtf16Length(), len, 0); in ConvertToString()
104 Span<const uint8_t> sp(s->GetDataMUtf8(), s->GetLength()); in ConvertToString()
/ark/js_runtime/ecmascript/mem/
Dc_string.cpp93 CString ConvertToString(const EcmaString *s, StringConvertedUsage usage) in ConvertToString() argument
95 if (s == nullptr) { in ConvertToString()
98 if (s->IsUtf16()) { in ConvertToString()
101 … size_t len = base::utf_helper::Utf16ToUtf8Size(s->GetDataUtf16(), s->GetLength(), modify) - 1; in ConvertToString()
103 …len = base::utf_helper::ConvertRegionUtf16ToUtf8(s->GetDataUtf16(), buf.data(), s->GetLength(), le… in ConvertToString()
108 Span<const uint8_t> sp(s->GetDataUtf8(), s->GetLength()); in ConvertToString()
/ark/runtime_core/verification/debug/config/
Dconfig.h37 for (const auto &s : sections) { member
38 result += s.Image(align + 2);
48 for (const auto &s : sections) { member
49 if (s.name == title) {
50 return s;
Dconfig_process.cpp35 for (const auto &s : section.sections) { in ProcessConfigSection() local
36 if (!ProcessConfigSection(s, path + "." + s.name)) { in ProcessConfigSection()
/ark/runtime_core/runtime/
Dintrinsics.cpp241 void AssertPrint(uint8_t cond, coretypes::String *s) in AssertPrint() argument
244 PrintStringInternal<true>(s); in AssertPrint()
249 int32_t ConvertStringToI32(coretypes::String *s) in ConvertStringToI32() argument
251 return static_cast<int32_t>(PandaStringToLL(ConvertToString(s))); in ConvertStringToI32()
254 uint32_t ConvertStringToU32(coretypes::String *s) in ConvertStringToU32() argument
256 return static_cast<uint32_t>(PandaStringToULL(ConvertToString(s))); in ConvertStringToU32()
259 int64_t ConvertStringToI64(coretypes::String *s) in ConvertStringToI64() argument
261 return static_cast<int64_t>(PandaStringToLL(ConvertToString(s))); in ConvertStringToI64()
264 uint64_t ConvertStringToU64(coretypes::String *s) in ConvertStringToU64() argument
266 return static_cast<uint64_t>(PandaStringToULL(ConvertToString(s))); in ConvertStringToU64()
[all …]
/ark/runtime_core/templates/
Dcommon.rb51 def expand_string(s) argument
57 if s.include?(k)
58 splitted = s.split(k);
65 Common::to_raw(s)
138 def to_raw(s) argument
139 'R"(' + s + ')"'
/ark/runtime_core/assembler/
Dassembly-label.h28 Label(std::string s, size_t b_l, size_t b_r, std::string f_c, bool d, size_t l_n) in Label()
29 : name(std::move(s)), file_location({f_c, b_l, b_r, l_n, d}) in Label()
33 explicit Label(std::string s) : name(std::move(s)) {} in Label()
Dassembly-record.h42 …Record(std::string s, extensions::Language lang, size_t b_l, size_t b_r, std::string f_c, bool d, … in Record()
43 : name(std::move(s)), in Record()
50 Record(std::string s, extensions::Language lang) in Record()
51 …: name(std::move(s)), language(lang), metadata(extensions::MetadataExtension::CreateRecordMetadata… in Record()
/ark/runtime_core/libpandabase/os/
Ddfx_option.cpp21 bool DfxOptionHandler::IsInOptionList(const std::string &s) in IsInOptionList() argument
25 if (s == str) { \ in IsInOptionList()
34 DfxOptionHandler::DfxOption DfxOptionHandler::DfxOptionFromString(const std::string &s) in DfxOptionFromString() argument
38 if (s == str) { \ in DfxOptionFromString()
/ark/runtime_core/verification/debug/parser/
Dcharset.h41 constexpr charset(Char *s) in charset() argument
43 ASSERT(s != nullptr); in charset()
44 while (*s) { in charset()
45 uint8_t c = static_cast<uint8_t>(*s); in charset()
48 ++s; in charset()
Dparser.h79 Iter s = start;
80 while (s != end && c(*s)) {
81 s++;
83 bool result = (s != start);
85 start = s;
95 Iter s = start;
97 while (s != end && *c != 0 && *c == *s) {
99 ++s;
103 start = s;
/ark/js_runtime/test/moduletest/fortest/
Dfortest.js17 let s = '' variable
21 s += a
22 print(s)
/ark/runtime_core/verification/type/
Dtype_sort.h45 auto s = NameToSort_.find(name);
46 if (s != NameToSort_.end()) {
47 return s->second;

12345