Home
last modified time | relevance | path

Searched refs:string_view (Results 1 – 25 of 101) sorted by relevance

12345

/ark/runtime_core/assembler/extensions/ecmascript/
Decmascript_meta.h51 bool IsAnnotationRecordAttribute([[maybe_unused]] std::string_view attribute) const override in IsAnnotationRecordAttribute()
56 bool IsAnnotationIdAttribute([[maybe_unused]] std::string_view attribute) const override in IsAnnotationIdAttribute()
61 … bool IsAnnotationElementNameAttribute([[maybe_unused]] std::string_view attribute) const override in IsAnnotationElementNameAttribute()
66 … bool IsAnnotationElementTypeAttribute([[maybe_unused]] std::string_view attribute) const override in IsAnnotationElementTypeAttribute()
71 …bool IsAnnotationElementArrayComponentTypeAttribute([[maybe_unused]] std::string_view attribute) c… in IsAnnotationElementArrayComponentTypeAttribute()
76 … bool IsAnnotationElementValueAttribute([[maybe_unused]] std::string_view attribute) const override in IsAnnotationElementValueAttribute()
81 std::optional<Error> Validate(std::string_view attribute) const override;
83 … std::optional<Error> Validate(std::string_view attribute, std::string_view value) const override;
85 void SetFlags(std::string_view attribute) override;
87 void SetFlags(std::string_view attribute, std::string_view value) override;
[all …]
/ark/runtime_core/assembler/
Dmeta.h72 std::optional<Error> SetAttribute(std::string_view attribute) in SetAttribute()
96 std::optional<Error> SetAttributeValue(std::string_view attribute, std::string_view value) in SetAttributeValue()
148 virtual std::optional<Error> Validate(std::string_view attribute) const = 0;
150 …virtual std::optional<Error> Validate(std::string_view attribute, std::string_view value) const = …
152 virtual std::optional<Error> StoreValue(std::string_view attribute, std::string_view value) in StoreValue()
165 virtual std::optional<Error> Store(std::string_view attribute) in Store()
172 virtual void SetFlags(std::string_view attribute) = 0;
174 virtual void SetFlags(std::string_view attribute, std::string_view value) = 0;
176 virtual void RemoveFlags(std::string_view attribute) = 0;
178 virtual void RemoveFlags(std::string_view attribute, std::string_view value) = 0;
[all …]
Dmeta.cpp27 std::optional<Metadata::Error> Metadata::ValidateSize(std::string_view value) const in ValidateSize()
48 static panda::pandasm::Value::Type GetType(std::string_view value) in GetType()
51 static std::unordered_map<std::string_view, VType> types { in GetType()
63 static T ConvertFromString(std::string_view value, char **end) in ConvertFromString()
88 int64_t ConvertFromString(std::string_view value, char **end) in ConvertFromString()
94 uint64_t ConvertFromString(std::string_view value, char **end) in ConvertFromString()
100 float ConvertFromString(std::string_view value, char **end) in ConvertFromString()
106 double ConvertFromString(std::string_view value, char **end) in ConvertFromString()
112 static Expected<T, Metadata::Error> ConvertFromString(std::string_view value) in ConvertFromString()
132 static Expected<ScalarValue, Metadata::Error> CreatePrimitiveValue(std::string_view value, in CreatePrimitiveValue()
[all …]
Dassembly-type.cpp22 static std::unordered_map<std::string_view, std::string_view> primitive_types = {
41 panda_file::Type::TypeId Type::GetId(std::string_view name, bool ignore_primitive) in GetId()
43 static std::unordered_map<std::string_view, panda_file::Type::TypeId> panda_types = { in GetId()
45 #define PANDATYPE(name, inst_code) {std::string_view(name), panda_file::Type::TypeId::inst_code}, in GetId()
61 std::string Type::GetName(std::string_view component_name, size_t rank) in GetName()
71 Type Type::FromDescriptor(std::string_view descriptor) in FromDescriptor()
73 static std::unordered_map<std::string_view, std::string_view> reverse_primitive_types = { in FromDescriptor()
98 Type Type::FromName(std::string_view name, bool ignore_primitive) in FromName()
Dcontext.cpp30 …token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in Make()
44 std::string_view p = token; in ValidateRegisterName()
75 std::string_view p = token; in ValidateParameterName()
85 std::string_view Context::GiveToken() in GiveToken()
132 …token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in operator ++()
147 …token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in operator ++()
166 …token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in operator --()
182 …token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in operator --()
Dlexer.cpp43 Token::Type FindOperation(std::string_view s) in FindOperation()
46 static const std::unordered_map<std::string_view, Token::Type> OPERATIONS = { in FindOperation()
49 {std::string_view(name), Token::Type::ID_OP_##inst_code}, in FindOperation()
62 Token::Type Findkeyword(std::string_view s) in Findkeyword()
65 static const std::unordered_map<std::string_view, Token::Type> KEYWORDS = { in Findkeyword()
67 #define KEYWORDS(name, inst_code) {std::string_view(name), Token::Type::ID_##inst_code}, in Findkeyword()
81 std::string_view TokenTypeWhat(Token::Type t) in TokenTypeWhat()
165 LOG(DEBUG, ASSEMBLER) << std::string_view(&*(curr_line_->buffer.begin() + curr_line_->pos), in TokenizeString()
175 << std::string_view(&*(f_i.whole_line.begin() + f_i.bound_left), in TokenizeString()
198 std::string_view p(&*(curr_line_->buffer.begin() + beg), end - beg); in LexGetType()
[all …]
Dassembly-type.h38 Type(std::string_view component_name, size_t rank, bool ignore_primitive = false)
150 static panda_file::Type::TypeId GetId(std::string_view name, bool ignore_primitive = false);
157 static Type FromDescriptor(std::string_view descriptor);
159 static Type FromName(std::string_view name, bool ignore_primitive = false);
164 static std::string GetName(std::string_view component_name, size_t rank);
Dannotation.h36 AnnotationData(std::string_view record_name, std::vector<AnnotationElement> elements) in AnnotationData()
41 explicit AnnotationData(std::string_view record_name) : record_name_(record_name) {} in AnnotationData()
429 std::conditional_t<value_type == Value::Type::STRING, std::string_view,
435 std::conditional_t<value_type == Value::Type::METHOD, std::string_view,
437 std::conditional_t<value_type == Value::Type::ENUM, std::string_view,
498 ScalarValue(Type type, std::string_view value) : Value(type), value_(std::string(value)) {} in ScalarValue()
536 …AnnotationElement(std::string_view name, std::unique_ptr<Value> value) : name_(name), value_(std::… in AnnotationElement()
Dassembly-context.h44 std::string_view token; /* current token */
65 std::string_view GiveToken();
/ark/runtime_core/assembler/utils/
Dnumber-utils.h31 inline bool ValidateHexInteger(std::string_view p) in ValidateHexInteger()
33 std::string_view token = p; in ValidateHexInteger()
45 inline bool ValidateBinInteger(std::string_view p) in ValidateBinInteger()
47 std::string_view token = p; in ValidateBinInteger()
61 inline bool ValidateOctalInteger(std::string_view p) in ValidateOctalInteger()
63 std::string_view token = p; in ValidateOctalInteger()
75 inline bool ValidateInteger(std::string_view p) in ValidateInteger()
77 std::string_view token = p; in ValidateInteger()
110 inline int64_t IntegerNumber(std::string_view p) in IntegerNumber()
140 inline bool ValidateFloat(std::string_view p) in ValidateFloat()
[all …]
/ark/runtime_core/libpandabase/utils/
Dtype_converter.h39 ValueUnit(uint64_t value, std::string_view literal);
41 ValueUnit(double value, std::string_view literal);
55 std::string_view GetLiteral() const;
66 std::string_view literal_;
86 constexpr std::array<std::string_view, 5> LITERALS_MEMORY = {"B", "KB", "MB", "GB", "TB"};
87 constexpr std::array<std::string_view, 7> LITERALS_TIME = {"ns", "us", "ms", "s", "m", "h", "day"};
Dlogger.cpp231 Logger::Level Logger::LevelFromString(std::string_view s) in LevelFromString()
245 Logger::ComponentMask Logger::ComponentMaskFromString(std::string_view s) in ComponentMaskFromString()
279 bool Logger::IsInLevelList(std::string_view s) in IsInLevelList()
292 bool Logger::IsInComponentList(std::string_view s) in IsInComponentList()
308 void Logger::ProcessLogLevelFromString(std::string_view s) in ProcessLogLevelFromString()
318 void Logger::ProcessLogComponentsFromString(std::string_view s) in ProcessLogComponentsFromString()
323 while (last_pos != std::string_view::npos) { in ProcessLogComponentsFromString()
324 std::string_view component_str = s.substr(last_pos, pos - last_pos); in ProcessLogComponentsFromString()
Dtype_converter.cpp26 ValueUnit::ValueUnit(uint64_t value, std::string_view literal) : value_(value), literal_(literal) {} in ValueUnit()
28 ValueUnit::ValueUnit(double value, std::string_view literal) : value_(value), literal_(literal) {} in ValueUnit()
50 std::string_view ValueUnit::GetLiteral() const in GetLiteral()
96 ValueUnit TypeConverter(const std::array<double, SIZE> &coeffs, const std::array<std::string_view, … in TypeConverter() argument
Dlogger.h238 static Level LevelFromString(std::string_view s);
240 static ComponentMask ComponentMaskFromString(std::string_view s);
286 static bool IsInLevelList(std::string_view s);
288 static bool IsInComponentList(std::string_view s);
290 static void ProcessLogLevelFromString(std::string_view s);
292 static void ProcessLogComponentsFromString(std::string_view s);
/ark/runtime_core/runtime/include/
Druntime.h144 Expected<int, Error> ExecutePandaFile(std::string_view filename, std::string_view entry_point,
147 int StartDProfiler(std::string_view app_name);
149 … Expected<int, Error> Execute(std::string_view entry_point, const std::vector<std::string> &args);
259 Expected<Method *, Error> ResolveEntryPoint(std::string_view entry_point);
331 …geContext, Error> ExtractLanguageContext(const panda_file::File *pf, std::string_view entry_point);
336 …optional<Error> CreateApplicationClassLinkerContext(std::string_view filename, std::string_view en…
340 bool CreatePandaVM(std::string_view runtime_type);
/ark/runtime_core/libpandabase/os/
Dlibrary_loader.h36 Expected<LibraryHandle, Error> Load(std::string_view filename);
38 Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name);
/ark/runtime_core/libpandafile/
Dfile.cpp96 std::unique_ptr<const File> OpenPandaFileOrZip(std::string_view location, panda_file::File::OpenMod… in OpenPandaFileOrZip()
98 std::string_view archive_filename = ARCHIVE_FILENAME; in OpenPandaFileOrZip()
118 …nst panda_file::File> OpenPandaFileFromZipFile(ZipArchiveHandle &handle, std::string_view location, in OpenPandaFileFromZipFile()
119 … EntryFileStat &entry, std::string_view archive_name) in OpenPandaFileFromZipFile()
162 …onst panda_file::File> HandleArchive(ZipArchiveHandle &handle, FILE *fp, std::string_view location, in HandleArchive()
163 … EntryFileStat &entry, std::string_view archive_filename, in HandleArchive()
179 std::unique_ptr<const panda_file::File> OpenPandaFile(std::string_view location, std::string_view a… in OpenPandaFile()
421 std::unique_ptr<const File> File::Open(std::string_view filename, OpenMode open_mode) in Open()
483 std::unique_ptr<const File> File::OpenUncompressedArchive(int fd, const std::string_view &filename,… in OpenUncompressedArchive()
513 bool CheckHeader(const os::mem::ConstBytePtr &ptr, const std::string_view &filename) in CheckHeader()
[all …]
Dfile.h302 …static std::unique_ptr<const File> Open(std::string_view filename, OpenMode open_mode = READ_ONLY);
306 …static std::unique_ptr<const File> OpenFromMemory(os::mem::ConstBytePtr &&ptr, std::string_view fi…
308 …static std::unique_ptr<const File> OpenUncompressedArchive(int fd, const std::string_view &filenam…
343 std::unique_ptr<const File> OpenPandaFileOrZip(std::string_view location,
354 std::unique_ptr<const File> OpenPandaFile(std::string_view location, std::string_view archive_filen…
360 bool CheckHeader(const os::mem::ConstBytePtr &ptr, const std::string_view &filename = "");
/ark/runtime_core/runtime/
Druntime.cpp531 bool Runtime::CreatePandaVM(std::string_view runtime_type) in CreatePandaVM()
646 static bool GetClassAndMethod(std::string_view entry_point, PandaString *class_name, PandaString *m… in GetClassAndMethod()
649 if (pos == std::string_view::npos) { in GetClassAndMethod()
667 Expected<Method *, Runtime::Error> Runtime::ResolveEntryPoint(std::string_view entry_point) in ResolveEntryPoint()
706 PandaVector<std::string_view> {string_array_descriptor}); in ResolveEntryPoint()
745 … std::string_view entry_point) in ExtractLanguageContext()
785 std::optional<Runtime::Error> Runtime::CreateApplicationClassLinkerContext(std::string_view filenam… in CreateApplicationClassLinkerContext()
786 … std::string_view entry_point) in CreateApplicationClassLinkerContext()
834 Expected<int, Runtime::Error> Runtime::ExecutePandaFile(std::string_view filename, std::string_view in ExecutePandaFile()
839 std::string_view app_name = [](std::string_view path) -> std::string_view { in ExecutePandaFile()
[all …]
/ark/runtime_core/runtime/mem/gc/
Dgc_types.h73 return std::string_view(a) == b; in StringsEqual()
82 inline GCType GCTypeFromString(std::string_view gc_type_str) in GCTypeFromString()
102 inline std::string_view GCStringFromType(GCType gc_type) in GCStringFromType()
/ark/runtime_core/libpandabase/os/unix/
Dlibrary_loader.cpp22 Expected<LibraryHandle, Error> Load(std::string_view filename) in Load()
32 Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name) in ResolveSymbol()
/ark/js_runtime/ecmascript/tests/
Decma_module_test.cpp286 std::string_view strViewNameEcmaModule1 = "NameEcmaModule1"; in HWTEST_F_L0()
287 std::string_view strViewNameEcmaModule2 = "NameEcmaModule2"; in HWTEST_F_L0()
307 std::string_view strViewNameEcmaModule1 = "NameEcmaModule1"; in HWTEST_F_L0()
308 std::string_view strViewNameEcmaModule2 = "NameEcmaModule2"; in HWTEST_F_L0()
309 std::string_view strViewNameEcmaModule3 = "NameEcmaModule3"; in HWTEST_F_L0()
331 std::string_view strViewNameEcmaModule1 = "NameEcmaModule1"; in HWTEST_F_L0()
332 std::string_view strViewNameEcmaModule2 = "NameEcmaModule2"; in HWTEST_F_L0()
333 std::string_view strViewNameEcmaModule3 = "NameEcmaModule3"; in HWTEST_F_L0()
426 std::string_view fileNameEcmaModuleCopyTo1 = "fileNameEcmaModuleCopyTo1"; in HWTEST_F_L0()
427 std::string_view fileNameEcmaModuleCopyTo2 = "fileNameEcmaModuleCopyTo2"; in HWTEST_F_L0()
/ark/js_runtime/ecmascript/tooling/interface/
Dnotification_manager.h31 virtual void LoadModule(std::string_view name) = 0;
57 void LoadModuleEvent(std::string_view name) const in LoadModuleEvent()
Djs_debugger_manager.h31 std::function<void(const InterpretedFrameHandler *, std::string_view, Local<JSValueRef>)>;
97 void NotifyLocalScopeUpdated(std::string_view varName, Local<JSValueRef> value) in NotifyLocalScopeUpdated()
/ark/js_runtime/ecmascript/
Decma_vm.h112 bool ExecuteFromPf(const std::string &filename, std::string_view entryPoint,
115 bool ExecuteFromBuffer(const void *buffer, size_t size, std::string_view entryPoint,
118 bool PUBLIC_API CollectInfoOfPandaFile(const std::string &filename, std::string_view entryPoint,
347 void ExecuteModule(const std::string &moduleFile, std::string_view entryPoint,
461 bool IsFrameworkPandaFile(std::string_view filename) const;
467 …bool Execute(const JSPandaFile *jsPandaFile, std::string_view entryPoint, const std::vector<std::s…

12345