| /arkcompiler/runtime_core/runtime/tests/ |
| D | test_utils.h | 19 #include "runtime/include/runtime.h" 20 #include "runtime/include/coretypes/array.h" 21 #include "runtime/include/coretypes/string.h" 22 #include "runtime/include/panda_vm.h" 23 #include "runtime/include/class_linker.h" 24 #include "runtime/include/class_root.h" 29 auto *vm = Runtime::GetCurrent()->GetPandaVM(); in AllocateNullifiedPayloadString() 31 auto *string_class = Runtime::GetCurrent() in AllocateNullifiedPayloadString() 48 Runtime *runtime = Runtime::GetCurrent(); in AllocArray() local 49 LanguageContext ctx = runtime->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in AllocArray() [all …]
|
| D | static_analyzer_test.cpp | 19 #include "runtime/include/runtime.h" 20 #include "runtime/include/panda_vm.h" 21 #include "runtime/include/class_linker.h" 22 #include "runtime/include/thread_scopes.h" 23 #include "runtime/mem/vm_handle.h" 24 #include "runtime/handle_scope-inl.h" 25 #include "runtime/include/coretypes/array.h" 26 #include "runtime/include/coretypes/string.h" 27 #include "runtime/mem/object_helpers-inl.h" 53 Runtime::Create(options); in StaticAnalyzerTest() [all …]
|
| D | interpreter_test_resolve_ctor_class.cpp | 36 #include "runtime/bridge/bridge.h" 37 #include "runtime/include/class_linker.h" 38 #include "runtime/include/compiler_interface.h" 39 #include "runtime/include/mem/allocator.h" 40 #include "runtime/include/method.h" 41 #include "runtime/include/runtime.h" 42 #include "runtime/include/runtime_options.h" 43 #include "runtime/interpreter/frame.h" 44 #include "runtime/mem/gc/gc.h" 45 #include "runtime/mem/internal_allocator.h" [all …]
|
| D | interpreter_test_resolve_field.cpp | 36 #include "runtime/bridge/bridge.h" 37 #include "runtime/include/class_linker.h" 38 #include "runtime/include/compiler_interface.h" 39 #include "runtime/include/mem/allocator.h" 40 #include "runtime/include/method.h" 41 #include "runtime/include/runtime.h" 42 #include "runtime/include/runtime_options.h" 43 #include "runtime/interpreter/frame.h" 44 #include "runtime/mem/gc/gc.h" 45 #include "runtime/mem/internal_allocator.h" [all …]
|
| D | gc_log_test.cpp | 19 #include "runtime/include/runtime.h" 20 #include "runtime/include/panda_vm.h" 21 #include "runtime/include/class_linker.h" 22 #include "runtime/include/thread_scopes.h" 23 #include "runtime/mem/vm_handle.h" 24 #include "runtime/handle_scope-inl.h" 25 #include "runtime/include/coretypes/array.h" 26 #include "runtime/include/coretypes/string.h" 27 #include "runtime/mem/gc/card_table.h" 28 #include "runtime/mem/gc/g1/g1-allocator.h" [all …]
|
| D | object_helpers_test.cpp | 19 #include "runtime/include/runtime.h" 20 #include "runtime/include/panda_vm.h" 21 #include "runtime/include/class_linker.h" 22 #include "runtime/include/thread_scopes.h" 23 #include "runtime/mem/vm_handle.h" 24 #include "runtime/handle_scope-inl.h" 25 #include "runtime/include/coretypes/array.h" 26 #include "runtime/include/coretypes/string.h" 27 #include "runtime/mem/object_helpers-inl.h" 54 Runtime::Create(options); in StaticObjectHelpersTest() [all …]
|
| D | g1gc_test.cpp | 18 #include "runtime/include/runtime.h" 19 #include "runtime/include/panda_vm.h" 20 #include "runtime/include/class_linker.h" 21 #include "runtime/include/thread_scopes.h" 22 #include "runtime/mem/vm_handle.h" 23 #include "runtime/handle_scope-inl.h" 24 #include "runtime/include/coretypes/array.h" 25 #include "runtime/include/coretypes/string.h" 26 #include "runtime/mem/gc/card_table.h" 27 #include "runtime/mem/gc/g1/g1-allocator.h" [all …]
|
| D | mem_leak_test.cpp | 17 #include "runtime/include/runtime.h" 18 #include "runtime/include/runtime_options.h" 30 Runtime::Create(options); in CreateRuntime() 41 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); in TEST_F() 45 Runtime::Destroy(); in TEST_F() 55 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); in TEST_F() 59 Runtime::Destroy(); in TEST_F() 69 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); in TEST_F() 73 Runtime::Destroy(); in TEST_F()
|
| D | string_table_base_test.h | 20 #include "runtime/include/coretypes/string.h" 21 #include "runtime/include/runtime.h" 22 #include "runtime/include/thread.h" 23 #include "runtime/include/gc_task.h" 24 #include "runtime/include/panda_vm.h" 25 #include "runtime/handle_base-inl.h" 26 #include "runtime/mem/refstorage/global_object_storage.h" 27 #include "runtime/include/thread_scopes.h" 42 Runtime::Destroy(); in ~StringTableBaseTest() 47 …LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSE… [all …]
|
| /arkcompiler/runtime_core/docs/ |
| D | runtime-debug-api.md | 1 # Runtime debug API 5 1. Runtime should support debugging on the platforms from low-end IoT devices to hi-end mobile phon… 9 1. Runtime doesn't patch apps' bytecode on the fly. Instead of it notification about changing bytec… 11 …Runtime and debugger work in the same process. Debugger functionality is provided via shared libra… 15 1. As some low-end targets can store bytecode in ROM, runtime cannot patch app's bytecode on the fl… 17 1. To simplify communication beetween debugger and runtime (especially on microcontrollers) they ar… 21 To start runtime in the debug mode a debugger [`LoadableAgent`](../runtime/include/loadable_agent.h… 23 …Runtime::StartDebugSession()`). When starting the session, the JIT is disabled, and the [`tooling:… 25 Runtime provides [`RuntimeNotificationManager`](../runtime/include/runtime_notification.h) class th… 26 * `LoadModule` - occurs when panda file is loaded by the runtime [all …]
|
| /arkcompiler/runtime_core/runtime/ |
| D | runtime.cpp | 16 #include "runtime/include/runtime.h" 42 #include "runtime/cha.h" 43 #include "runtime/compiler.h" 44 #include "runtime/dprofiler/dprofiler.h" 45 #include "runtime/entrypoints/entrypoints.h" 46 #include "runtime/include/class_linker_extension.h" 47 #include "runtime/include/coretypes/array-inl.h" 48 #include "runtime/include/coretypes/string.h" 49 #include "runtime/include/language_context.h" 50 #include "runtime/include/locks.h" [all …]
|
| D | panda_vm.cpp | 18 #include "runtime/include/runtime.h" 19 #include "runtime/include/runtime_options.h" 20 #include "runtime/include/runtime_notification.h" 21 #include "runtime/include/panda_vm.h" 22 #include "runtime/include/thread_scopes.h" 23 #include "runtime/mem/gc/reference-processor/reference_processor.h" 32 …: LibraryAgent(mutex, PandaString(Runtime::GetOptions().GetDebuggerLibraryPath()), "StartDebugger", in DefaultDebuggerAgent() 39 debug_session_ = Runtime::GetCurrent()->StartDebugSession(); in Load() 41 LOG(ERROR, RUNTIME) << "Could not start debug session"; in Load() 67 uint32_t port = Runtime::GetOptions().GetDebuggerPort(); in CallLoadCallback() [all …]
|
| D | language_context.cpp | 15 #include "runtime/include/language_context.h" 18 #include "runtime/core/core_itable_builder.h" 19 #include "runtime/core/core_vm.h" 20 #include "runtime/core/core_vtable_builder.h" 21 #include "runtime/handle_scope-inl.h" 22 #include "runtime/include/class_linker.h" 23 #include "runtime/include/language_config.h" 24 #include "runtime/include/method.h" 25 #include "runtime/include/runtime.h" 26 #include "runtime/include/stack_walker.h" [all …]
|
| D | file_manager.cpp | 16 #include "runtime/include/file_manager.h" 17 #include "runtime/include/runtime.h" 29 auto runtime = Runtime::GetCurrent(); in LoadAbcFile() local 30 if (Runtime::GetOptions().IsEnableAn()) { in LoadAbcFile() 32 … auto aot_file = runtime->GetClassLinker()->GetAotManager()->FindPandaFile(std::string(location)); in LoadAbcFile() 37 runtime->GetClassLinker()->AddPandaFile(std::move(pf)); in LoadAbcFile() 62 auto runtime = Runtime::GetCurrent(); in LoadAnFile() local 63 …auto gc_type = Runtime::GetGCType(Runtime::GetOptions(), plugins::RuntimeTypeToLang(runtime->GetRu… in LoadAnFile() 66 return runtime->GetClassLinker()->GetAotManager()->AddFile(real_an_file_path, &runtime_iface, in LoadAnFile() 74 // 1. search ark native file file base on ARCH info from runtime. in ResolveAnFilePath()
|
| D | runtime_helpers.cpp | 16 #include "runtime/runtime_helpers.h" 17 #include "runtime/include/object_header-inl.h" 18 #include "runtime/include/runtime.h" 19 #include "runtime/include/stack_walker.h" 20 #include "runtime/include/thread.h" 21 #include "runtime/interpreter/runtime_interface.h" 22 #include "runtime/mem/object_helpers.h" 30 LOG(ERROR, RUNTIME) << "====================== Stack trace begin ======================"; in PrintStackTrace() 40 …LOG(ERROR, RUNTIME) << method->GetClass()->GetName() << "." << method->GetName().data << " at " <<… in PrintStackTrace() 43 LOG(ERROR, RUNTIME) << "====================== Stack trace end ======================"; in PrintStackTrace()
|
| D | thread.cpp | 16 #include "runtime/include/thread-inl.h" 18 #include "runtime/handle_base-inl.h" 19 #include "runtime/include/locks.h" 20 #include "runtime/include/object_header-inl.h" 21 #include "runtime/include/runtime.h" 22 #include "runtime/include/runtime_notification.h" 23 #include "runtime/include/stack_walker.h" 24 #include "runtime/include/thread_scopes.h" 25 #include "runtime/interpreter/runtime_interface.h" 26 #include "runtime/handle_scope-inl.h" [all …]
|
| /arkcompiler/ets_runtime/docs/ |
| D | overview.md | 3 …runtime platform of OpenHarmony. It contains core components such as the compiler, toolchain, and … 5 …Runtime consists of two parts: JS compiler toolchain and JS runtime. The JS compiler toolchain com… 10 The source code compiler of ArkCompiler JS Runtime receives JS source code, based on which ts2abc g… 12 Figure 2 Architecture of ArkCompiler JS Runtime 16 ArkCompiler JS Runtime runs ArkCompiler bytecode files to implement JS semantic logic. 18 **ArkCompiler JS Runtime consists of four subsystems:** 22 …Core Subsystem consists of basic language-irrelevant runtime libraries, including ArkCompiler File… 26 …s, inline caching that stores hidden classes, and Profiler that analyzes and records runtime types. 32 - **JS Runtime Subsystem** 34 JS Runtime Subsystem contains various modules related to JS runtime: [all …]
|
| /arkcompiler/runtime_core/runtime/core/ |
| D | core_vm.cpp | 18 #include "runtime/compiler.h" 19 #include "runtime/handle_scope-inl.h" 20 #include "runtime/include/thread.h" 21 #include "runtime/include/class_linker.h" 22 #include "runtime/include/thread_scopes.h" 23 #include "runtime/mem/gc/reference-processor/empty_reference_processor.h" 24 #include "runtime/mem/refstorage/global_object_storage.h" 46 mem::GCType gc_type = Runtime::GetGCType(options, panda_file::SourceLang::PANDA_ASSEMBLY); in CreateMM() 52 Expected<PandaCoreVM *, PandaString> PandaCoreVM::Create(Runtime *runtime, const RuntimeOptions &op… in Create() argument 54 …LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSE… in Create() [all …]
|
| D | core_vm.h | 21 #include "runtime/include/compiler_interface.h" 22 #include "runtime/include/mem/panda_smart_pointers.h" 23 #include "runtime/include/mem/panda_string.h" 24 #include "runtime/include/panda_vm.h" 25 #include "runtime/mem/gc/gc_phase.h" 26 #include "runtime/mem/refstorage/reference.h" 31 class Runtime; variable 38 …static Expected<PandaCoreVM *, PandaString> Create(Runtime *runtime, const RuntimeOptions &options… 98 return Runtime::GetOptions(); in GetOptions() 124 return Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in GetLanguageContext() [all …]
|
| D | core_language_context.cpp | 16 #include "runtime/core/core_language_context.h" 18 #include "runtime/core/core_itable_builder.h" 19 #include "runtime/core/core_vtable_builder.h" 20 #include "runtime/include/vtable_builder-inl.h" 21 #include "runtime/handle_scope-inl.h" 27 auto runtime = Runtime::GetCurrent(); in GetExceptionClass() local 28 LanguageContext ctx = runtime->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in GetExceptionClass() 59 auto runtime = Runtime::GetCurrent(); in ThrowException() local 60 LanguageContext ctx = runtime->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in ThrowException() 61 auto *class_linker = runtime->GetClassLinker(); in ThrowException() [all …]
|
| /arkcompiler/runtime_core/runtime/include/ |
| D | runtime.h | 30 #include "runtime/include/class_linker.h" 31 #include "runtime/include/mem/panda_containers.h" 32 #include "runtime/include/mem/panda_smart_pointers.h" 33 #include "runtime/include/mem/panda_string.h" 34 #include "runtime/include/method.h" 35 #include "runtime/include/relayout_profiler.h" 36 #include "runtime/include/runtime_options.h" 37 #include "runtime/include/gc_task.h" 38 #include "runtime/include/tooling/debug_interface.h" 39 #include "runtime/mem/allocator_adapter.h" [all …]
|
| /arkcompiler/runtime_core/runtime/asm_defines/ |
| D | defines.cpp | 18 #include "runtime/include/class.h" 19 #include "runtime/include/coretypes/array.h" 20 #include "runtime/include/coretypes/native_pointer.h" 21 #include "runtime/include/coretypes/string.h" 22 #include "runtime/include/field.h" 23 #include "runtime/include/hclass.h" 24 #include "runtime/include/method.h" 25 #include "runtime/include/mtmanaged_thread.h" 26 #include "runtime/mem/tlab.h"
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | modifiers.h | 50 // Runtime internal modifiers 51 static constexpr uint32_t ACC_HAS_DEFAULT_METHODS = 0x00010000; // class (runtime) 52 static constexpr uint32_t ACC_CONSTRUCTOR = 0x00010000; // method (runtime) 53 static constexpr uint32_t ACC_DEFAULT_INTERFACE_METHOD = 0x00020000; // method (runtime) 54 static constexpr uint32_t ACC_SINGLE_IMPL = 0x00040000; // method (runtime) 55 static constexpr uint32_t ACC_INTRINSIC = 0x00200000; // method (runtime) 61 // Runtime internal language specific modifiers 62 static constexpr uint32_t ACC_PROXY = 0x00020000; // class (java runtime) 63 static constexpr uint32_t ACC_FAST_NATIVE = 0x00080000; // method (java runtime) 64 static constexpr uint32_t ACC_CRITICAL_NATIVE = 0x00100000; // method (java runtime) [all …]
|
| /arkcompiler/runtime_core/runtime/scheduler/tests/ |
| D | worker_thread_test.cpp | 19 #include "runtime/include/class_linker.h" 20 #include "runtime/include/runtime.h" 21 #include "runtime/scheduler/worker_thread.h" 22 #include "runtime/scheduler/task.h" 23 #include "runtime/tests/class_linker_test_extension.h" 35 Runtime::Create(options); in WorkerThreadTest() 43 Runtime::Destroy(); in ~WorkerThreadTest() 54 auto tk1 = Task::Create(Runtime::GetCurrent()->GetPandaVM()); in TEST_F() 58 auto tk2 = Task::Create(Runtime::GetCurrent()->GetPandaVM()); in TEST_F()
|
| /arkcompiler/runtime_core/runtime/dprofiler/ |
| D | dprofiler.h | 24 #include "runtime/include/mem/panda_containers.h" 25 #include "runtime/include/mem/panda_smart_pointers.h" 26 #include "runtime/include/mem/panda_string.h" 32 class Runtime; variable 41 DProfiler(std::string_view app_name, Runtime *runtime); 43 DProfiler([[maybe_unused]] std::string_view app_name, [[maybe_unused]] Runtime *runtime) 63 Runtime *runtime_;
|