/arkcompiler/runtime_core/static_core/assembler/ |
H A D | pandasm.h | 21 namespace ark::pandasm { 23 void PrintError(const ark::pandasm::Error &e, const std::string &msg); 25 void PrintErrors(const ark::pandasm::ErrorList &warnings, const std::string &msg); 28 bool PrepareArgs(ark::PandArgParser &paParser, const ark::PandArg<std::string> &inputFile, 29 const ark::PandArg<std::string> &outputFile, const ark::PandArg<std::string> &logFile, 30 const ark::PandArg<bool> &help, const ark::PandArg<bool> &verbose, std::ifstream &inputfile, int argc, 33 bool Tokenize(ark [all...] |
H A D | pandasm.cpp | 39 namespace ark::pandasm { 41 void PrintError(const ark::pandasm::Error &e, const std::string &msg) in PrintError() 50 void PrintErrors(const ark::pandasm::ErrorList &warnings, const std::string &msg) in PrintErrors() 57 void PrintHelp(const ark::PandArgParser &paParser) in PrintHelp() 66 bool PrepareArgs(ark::PandArgParser &paParser, const ark::PandArg<std::string> &inputFile, in PrepareArgs() 67 const ark::PandArg<std::string> &outputFile, const ark::PandArg<std::string> &logFile, in PrepareArgs() 68 const ark::PandArg<bool> &help, const ark in PrepareArgs() [all...] |
/arkcompiler/runtime_core/static_core/disassembler/ |
H A D | disasm.cpp | 25 ark::PandArg<bool> help {"help", false, "Print this message and exit"}; 26 ark::PandArg<bool> verbose {"verbose", false, "enable informative code output"}; 27 ark::PandArg<bool> quiet {"quiet", false, "enables all of the --skip-* flags"}; 28 ark::PandArg<bool> skipStrings { 31 ark::PandArg<bool> withSeparators {"with_separators", false, 33 ark::PandArg<bool> debug { 35 ark::PandArg<std::string> debugFile {"debug-file", "", 37 ark::PandArg<std::string> inputFile {"input_file", "", "Path to the source binary code"}; 38 ark::PandArg<std::string> outputFile {"output_file", "", "Path to the generated assembly code"}; 39 ark [all...] |
/arkcompiler/runtime_core/static_core/tests/fuzztest/openuncompressedarchive_fuzzer/ |
H A D | openuncompressedarchive_fuzzer.cpp | 21 void CloseAndRemoveZipFile(ark::ZipArchiveHandle &handle, FILE *fp, const char *filename) in CloseAndRemoveZipFile() 23 ark::CloseArchiveFile(handle); in CloseAndRemoveZipFile() 32 const char *filename = ark::panda_file::ARCHIVE_FILENAME; in OpenUncompressedArchiveFuzzTest() 34 int ret = ark::CreateOrAddFileIntoZip(zip_filename, filename, &buf, APPEND_STATUS_CREATE, Z_NO_COMPRESSION); in OpenUncompressedArchiveFuzzTest() 51 ark::ZipArchiveHandle zipfile = nullptr; in OpenUncompressedArchiveFuzzTest() 52 if (ark::OpenArchiveFile(zipfile, fp) != ark::ZIPARCHIVE_OK) { in OpenUncompressedArchiveFuzzTest() 57 if (ark::LocateFile(zipfile, filename) != ark::ZIPARCHIVE_OK) { in OpenUncompressedArchiveFuzzTest() 61 ark in OpenUncompressedArchiveFuzzTest() [all...] |
/arkcompiler/runtime_core/static_core/libpandafile/external/ |
H A D | file_ext.cpp | 28 namespace ark::panda_file::ext { 31 ark::panda_file::File::EntityId id; 36 } // namespace ark::panda_file::ext 44 explicit PandaFileExt(std::unique_ptr<const ark::panda_file::File> &&pandaFile) : pandaFile_(std::move(pandaFile)) in PandaFileExt() 48 size_t GetExtFileLineNumber(ark::panda_file::MethodDataAccessor mda, uint32_t bcOffset) in GetExtFileLineNumber() 50 return ark::panda_file::debug_helpers::GetLineNumber(mda, bcOffset, pandaFile_.get()); in GetExtFileLineNumber() 53 ark::panda_file::ext::MethodSymEntry *QueryMethodSymByOffset(uint64_t offset) in QueryMethodSymByOffset() 61 ark::panda_file::ext::MethodSymEntry *found = nullptr; in QueryMethodSymByOffset() 63 auto callBack = [this, offset, &found](ark::panda_file::MethodDataAccessor &mda) -> void { in QueryMethodSymByOffset() 65 ark in QueryMethodSymByOffset() [all...] |
/arkcompiler/ets_frontend/ets2panda/util/ |
H A D | generateBin.cpp | 22 namespace ark::es2panda::util { 26 ark::Logger::ComponentMask componentMask; in InitializeLogging() 27 componentMask.set(ark::Logger::Component::ASSEMBLER); in InitializeLogging() 28 componentMask.set(ark::Logger::Component::COMPILER); in InitializeLogging() 29 componentMask.set(ark::Logger::Component::BYTECODE_OPTIMIZER); in InitializeLogging() 31 if (!ark::Logger::IsInitialized()) { in InitializeLogging() 32 ark::Logger::InitializeStdLogging(Logger::LevelFromString(options->LogLevel()), componentMask); in InitializeLogging() 34 ark::Logger::EnableComponent(componentMask); in InitializeLogging() 39 static int OptimizeBytecode(ark::pandasm::Program *prog, const util::Options *options, const ReporterFun &reporter, in OptimizeBytecode() 41 ark in OptimizeBytecode() [all...] |
H A D | options.cpp | 30 namespace ark::es2panda::util { 40 Options::Options() : argparser_(new ark::PandArgParser()) {} in Options() 111 ark::PandArgParser parser; in ParseComponentArgs() 131 if (!ParseComponentArgs(compilerArgs, ark::compiler::g_options)) { in ParseBCOCompilerOptions() 134 if (!ParseComponentArgs(bytecodeoptArgs, ark::bytecodeopt::g_options)) { in ParseBCOCompilerOptions() 142 static inline bool ETSWarningsGroupSetter(const ark::PandArg<bool> &option) in ETSWarningsGroupSetter() 151 auto lastDelimPos = fileBaseName.find_last_of(ark::os::file::File::GetPathDelim()); in SplitPath() 196 ark::PandArg<bool> opHelp {"help", false, "Print this message and exit"}; 197 ark::PandArg<bool> opVersion {"version", false, "Print message with version and exit"}; 200 ark [all...] |
/arkcompiler/runtime_core/static_core/quickener/ |
H A D | quick.cpp | 24 static void PrintHelp(ark::PandArgParser &pa_parser) in PrintHelp() 32 static bool ParseArgs(ark::PandArgParser &pa_parser, int argc, const char **argv) in ParseArgs() 42 static bool ProcessArgs(ark::PandArgParser &pa_parser, const ark::PandArg<std::string> &input, in ProcessArgs() 43 const ark::PandArg<std::string> &output, const ark::PandArg<bool> &help) in ProcessArgs() 50 ark::Logger::InitializeStdLogging( in ProcessArgs() 51 ark::Logger::Level::ERROR, in ProcessArgs() 52 ark::Logger::ComponentMask().set(ark in ProcessArgs() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/tests/common/bouncing_peas/ |
H A D | bouncing_peas_unit.cpp | 22 namespace ark::ets::test { 25 [[maybe_unused]] static long SkoalaCreateRedrawerPeer([[maybe_unused]] ark::Method *m, in SkoalaCreateRedrawerPeer() 30 [[maybe_unused]] static long SkoalaGetFrame([[maybe_unused]] ark::Method *m, in SkoalaGetFrame() 36 [[maybe_unused]] static long SkoalaInitRedrawer([[maybe_unused]] ark::Method *m, [[maybe_unused]] int width, in SkoalaInitRedrawer() 43 [[maybe_unused]] static long SkoalaPaint1nMake([[maybe_unused]] ark::Method *m) in SkoalaPaint1nMake() 48 [[maybe_unused]] ark::Method *m, [[maybe_unused]] long ptr /*KNativePointer*/, [[maybe_unused]] float left, in SkoalaPictureRecorder1nBeginRecording() 54 [[maybe_unused]] ark::Method *m, [[maybe_unused]] long ptr /*KNativePointer*/) in SkoalaPictureRecorder1nFinishRecordingAsDrawable() 59 [[maybe_unused]] ark::Method *m, [[maybe_unused]] long ptr /*KNativePointer*/, [[maybe_unused]] float left, in SkoalaPictureRecorder1nFinishRecordingAsPictureWithCull() 64 [[maybe_unused]] static long SkoalaPictureRecorder1nMake([[maybe_unused]] ark::Method *m) in SkoalaPictureRecorder1nMake() 69 [[maybe_unused]] ark in SkoalaParagraphParagraphBuilder1nMake() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | ts2ets_copy.cpp | 30 namespace ark::ets::interop::js { 108 void VisitString([[maybe_unused]] ark::Class *klass) override 122 auto str = ark::coretypes::String::CreateFromMUtf8(reinterpret_cast<uint8_t const *>(value.data()), 124 loc_.StoreReference(ToObjRoot(ark::VMHandle<ark::ObjectHeader>(coro, str).GetAddress())); 127 void VisitArray(ark::Class *klass) override 141 ark::VMHandle<ark::ObjectHeader> etsArr(coro, ark::coretypes::Array::Create(klass, len)); 143 ark [all...] |
H A D | ets_type_visitor-inl.h | 24 namespace ark::ets::interop::js { 75 virtual void VisitPrimitive(const ark::panda_file::Type type) in VisitPrimitive() 80 case ark::panda_file::Type::TypeId::name: { \ in VisitPrimitive() 91 virtual void VisitString(ark::Class *klass) = 0; 92 virtual void VisitArray(ark::Class *klass) = 0; 94 virtual void VisitFieldPrimitive(ark::Field const *field, ark::panda_file::Type type) = 0; 95 virtual void VisitFieldReference(ark::Field const *field, ark::Class *klass) = 0; 97 virtual void VisitField(ark [all...] |
/arkcompiler/ets_frontend/ets2panda/test/unit/public/ |
H A D | ast_builder_test.cpp | 61 using ark::es2panda::compiler::ast_verifier::InvariantNameSet; 62 using ark::es2panda::ir::AwaitExpressionBuilder; 63 using ark::es2panda::ir::BigIntLiteralBuilder; 64 using ark::es2panda::ir::BinaryExpressionBuilder; 65 using ark::es2panda::ir::BlockExpressionBuilder; 66 using ark::es2panda::ir::BlockStatementBuilder; 67 using ark::es2panda::ir::BooleanLiteralBuilder; 68 using ark::es2panda::ir::BreakStatementBuilder; 69 using ark::es2panda::ir::CallExpressionBuilder; 70 using ark [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/arkts_header/ |
H A D | arkts_header.cpp | 27 static void PrintHelp(ark::PandArgParser &paParser) in PrintHelp() 35 static bool ProcessArgs(ark::PandArgParser &paParser, const ark::PandArg<std::string> &input, in ProcessArgs() 36 ark::PandArg<std::string> &output, const ark::PandArg<bool> &help) in ProcessArgs() 48 ark::Logger::InitializeStdLogging(ark::Logger::Level::ERROR, in ProcessArgs() 49 ark::Logger::ComponentMask().set(ark::Logger::Component::ETS_NAPI)); in ProcessArgs() 56 ark in main() [all...] |
/arkcompiler/runtime_core/static_core/abc2program/ |
H A D | abc2program_options.cpp | 19 namespace ark::abc2program { 23 ark::PandArg<bool> help("help", false, "Print this message and exit"); in Parse() 24 ark::PandArg<bool> debug( in Parse() 26 ark::PandArg<std::string> debugFile("debug-file", "", in Parse() 28 ark::PandArg<std::string> inputFile("inputFile", "", "Path to the source binary code"); in Parse() 29 ark::PandArg<std::string> outputFile("outputFile", "", "Path to the generated assembly code"); in Parse() 58 ark::Logger::InitializeStdLogging(ark::Logger::Level::DEBUG, in ProcessArgs() 59 ark::Logger::ComponentMask().set(ark in ProcessArgs() [all...] |
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/ |
H A D | wrapped_module.h | 29 namespace ark::llvmbackend { 35 std::unique_ptr<ark::llvmbackend::LLVMArkInterface> arkInterface, 36 std::unique_ptr<ark::llvmbackend::DebugDataBuilder> debugData); 49 void AddMethod(ark::compiler::RuntimeInterface::MethodPtr method); 51 void SetCompiled(std::unique_ptr<ark::llvmbackend::CreatedObjectFile> objectFile); 55 bool HasFunctionDefinition(ark::compiler::RuntimeInterface::MethodPtr method); 57 llvm::Function *GetFunctionByMethodPtr(ark::compiler::RuntimeInterface::MethodPtr method); 65 const std::unique_ptr<ark::llvmbackend::LLVMArkInterface> &GetLLVMArkInterface(); 67 const std::unique_ptr<ark::llvmbackend::DebugDataBuilder> &GetDebugData(); 69 const std::unique_ptr<ark [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
H A D | ets_vm_api.cpp | 32 case ark::Logger::PandaLog2MobileLog::DEBUG: in LogPrint() 35 case ark::Logger::PandaLog2MobileLog::INFO: in LogPrint() 38 case ark::Logger::PandaLog2MobileLog::ERROR: in LogPrint() 41 case ark::Logger::PandaLog2MobileLog::FATAL: in LogPrint() 44 case ark::Logger::PandaLog2MobileLog::WARN: in LogPrint() 52 case ark::Logger::PandaLog2MobileLog::DEBUG: in LogPrint() 55 case ark::Logger::PandaLog2MobileLog::INFO: in LogPrint() 58 case ark::Logger::PandaLog2MobileLog::ERROR: in LogPrint() 61 case ark::Logger::PandaLog2MobileLog::FATAL: in LogPrint() 64 case ark in LogPrint() [all...] |
/arkcompiler/runtime_core/static_core/verification/config/ |
H A D | config_load.cpp | 36 bool ProcessConfigFile(ark::verifier::Config *cfg, const char *text) in ProcessConfigFile() 38 ark::verifier::debug::RegisterConfigHandlerBreakpoints(cfg); in ProcessConfigFile() 39 ark::verifier::debug::RegisterConfigHandlerWhitelist(cfg); in ProcessConfigFile() 40 ark::verifier::debug::RegisterConfigHandlerOptions(cfg); in ProcessConfigFile() 41 ark::verifier::debug::RegisterConfigHandlerMethodOptions(cfg); in ProcessConfigFile() 42 ark::verifier::debug::RegisterConfigHandlerMethodGroups(cfg); in ProcessConfigFile() 44 ark::verifier::config::Section section; in ProcessConfigFile() 47 ark::verifier::config::ParseConfig(text, section) && ark::verifier::config::ProcessConfig(cfg, section); in ProcessConfigFile() 50 ark in ProcessConfigFile() [all...] |
/arkcompiler/runtime_core/static_core/panda/ |
H A D | panda.cpp | 44 namespace ark { namespace 58 static void PrintHelp(const ark::PandArgParser &paParser) in PrintHelp() 69 static bool PrepareArguments(ark::PandArgParser *paParser, const RuntimeOptions &runtimeOptions, in PrepareArguments() 70 const ark::PandArg<std::string> &file, const ark::PandArg<std::string> &entrypoint, in PrepareArguments() 71 const ark::PandArg<bool> &help) in PrepareArguments() 98 static void SetPandaFiles(RuntimeOptions &runtimeOptions, ark::PandArg<std::string> &file) in SetPandaFiles() 128 static ark::PandArgParser GetPandArgParser(ark::PandArg<bool> &help, ark [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
H A D | compiler_intrinsics.cpp | 25 namespace ark::ets::intrinsics { 30 void LookUpException(ark::Class *klass, Field *rawField) in LookUpException() 34 auto errorMsg = "Class " + ark::ConvertToString(klass->GetName()) + " does not have field and " + in LookUpException() 35 ark::ConvertToString(type) + " with name " + utf::Mutf8AsCString(rawField->GetName().data); in LookUpException() 46 Field *TryGetField(ark::Method *method, Field *rawField, uint32_t pc, ark::Class *klass) in TryGetField() 49 bool useIc = pc != ark::compiler::INVALID_PC; in TryGetField() 67 ark::Method *TryGetCallee(ark::Method *method, Field *rawField, uint32_t pc, ark [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/ |
H A D | g1_analytics.h | 24 namespace ark::mem { 69 uint64_t PredictTime(size_t volume, ark::Sequence rateSeq) const in PredictTime() 94 ark::Sequence allocationRateSeq_; 95 ark::Sequence copiedBytesSeq_; 96 ark::Sequence copyingBytesRateSeq_; 97 ark::Sequence remsetRefsSeq_; 98 ark::Sequence remsetRefsPerChunkSeq_; 99 ark::Sequence liveObjecstSeq_; 100 ark::Sequence markingRateSeq_; 101 ark [all...] |
/arkcompiler/runtime_core/static_core/libllvmbackend/ |
H A D | llvm_compiler_creator.h | 23 namespace ark::compiler { 28 } // namespace ark::compiler 30 namespace ark::llvmbackend { 32 std::unique_ptr<CompilerInterface> CreateLLVMAotCompiler(ark::compiler::RuntimeInterface *runtime, 33 ark::ArenaAllocator *allocator, 34 ark::compiler::LLVMAotBuilder *aotBuilder, 37 std::unique_ptr<IrtocCompilerInterface> CreateLLVMIrtocCompiler(ark::compiler::RuntimeInterface *runtime, 38 ark::ArenaAllocator *allocator, ark::Arch arch); 39 } // namespace ark [all...] |
/arkcompiler/ets_frontend/ets2panda/test/unit/ |
H A D | ast_dumper_test.cpp | 112 ark::mem::MemConfig::Initialize(0, 0, COMPILER_SIZE, 0, 0, 0); in ASTDumperTest() 113 ark::PoolManager::Initialize(ark::PoolType::MMAP); in ASTDumperTest() 118 ark::PoolManager::Finalize(); 119 ark::mem::MemConfig::Finalize(); 122 static ark::pandasm::Program *GetProgram(std::string_view src, const char **argsList, int argsCount, in GetProgram() 125 auto options = std::make_unique<ark::es2panda::util::Options>(); in GetProgram() 131 ark::Logger::ComponentMask mask {}; in GetProgram() 132 mask.set(ark::Logger::Component::ES2PANDA); in GetProgram() 133 ark in GetProgram() [all...] |
/arkcompiler/runtime_core/static_core/irtoc/backend/ |
H A D | irtoc.cpp | 20 namespace ark::irtoc { 24 ark::PandArgParser paParser; in Run() 26 ark::irtoc::g_options.AddOptions(&paParser); in Run() 29 ark::compiler::g_options.AddOptions(&paParser); in Run() 31 ark::llvmbackend::g_options.AddOptions(&paParser); in Run() 40 ark::compiler::CompilerLogger::SetComponents(ark::compiler::g_options.GetCompilerLog()); in Run() 56 } // namespace ark::irtoc 60 return ark::irtoc::Run(argc, argv); in main()
|
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | mem_range_test.cpp | 25 namespace ark::test::mem_range { 47 static ark::mem::MemRange RandomMemRange(uintptr_t minStart, uintptr_t maxEnd) in RandomMemRange() 54 return ark::mem::MemRange(rand1, rand2); in RandomMemRange() 58 return ark::mem::MemRange(rand2, rand1); in RandomMemRange() 62 return ark::mem::MemRange(rand1 - 1L, rand1); in RandomMemRange() 65 return ark::mem::MemRange(rand1, rand1 + 1U); in RandomMemRange() 76 auto memRange = ark::mem::MemRange(START, END); in TEST() 94 auto memRangeWithOneElement = ark::mem::MemRange(START, START); in TEST() 103 ASSERT_DEBUG_DEATH(ark::mem::MemRange(MAX, MIN), ""); in TEST() 120 auto memRange1 = ark in TEST() [all...] |
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/ |
H A D | mem_hooks.cpp | 23 namespace ark::os::unix::mem_hooks { 142 } // namespace ark::os::unix::mem_hooks 149 if (ark::os::mem_hooks::PandaHooks::realMalloc_ == nullptr) { 150 ark::os::unix::mem_hooks::PandaHooks::SaveRealFunctions(); 152 if (ark::os::mem_hooks::PandaHooks::IsActive()) { 154 return ark::os::mem_hooks::PandaHooks::MallocHook(size, caller); 156 return ark::os::mem_hooks::PandaHooks::realMalloc_(size); 162 if (ark::os::mem_hooks::PandaHooks::realMemalign_ == nullptr) { 163 ark::os::unix::mem_hooks::PandaHooks::SaveRealFunctions(); 165 if (ark [all...] |