/arkcompiler/runtime_core/static_core/runtime/ |
H A D | runtime.cpp | 81 Runtime *Runtime::instance_ = nullptr; 82 RuntimeOptions Runtime::options_; // NOLINT(fuchsia-statically-constructed-objects) 83 std::string Runtime::runtimeType_; // NOLINT(fuchsia-statically-constructed-objects) 84 os::memory::Mutex Runtime::mutex_; // NOLINT(fuchsia-statically-constructed-objects) 85 taskmanager::TaskScheduler *Runtime::taskScheduler_ = nullptr; 167 Runtime::DebugSession::DebugSession(Runtime &runtime) in DebugSession() 175 Runtime::DebugSession::~DebugSession() in ~DebugSession() 183 tooling::DebugInterface &Runtime 524 Runtime::Runtime(const RuntimeOptions &options, mem::InternalAllocatorPtr internalAllocator) Runtime() function in ark::Runtime [all...] |
H A D | panda_vm.cpp | 31 PandaVM *PandaVM::Create(Runtime *runtime, const RuntimeOptions &options, std::string_view runtimeType) in Create() 56 Expected<int, Runtime::Error> PandaVM::InvokeEntrypoint(Method *entrypoint, const std::vector<std::string> &args) in InvokeEntrypoint() 60 return Unexpected(Runtime::Error::INVALID_ENTRY_POINT); in InvokeEntrypoint() 62 Expected<int, Runtime::Error> ret = InvokeEntrypointImpl(entrypoint, args); in InvokeEntrypoint() 80 coretypes::String *str = ark::Runtime::GetCurrent()->ResolveString(this, *frame->GetMethod(), stringId.AsFileId()); in HandleLdaStr() 105 return !Runtime::GetOptions().GetDebuggerLibraryPath().empty() || Runtime::GetOptions().IsDebuggerEnable(); in ShouldEnableDebug() 131 if (!Runtime::GetOptions().GetDebuggerLibraryPath().empty()) { in CreateDebuggerAgent() 142 auto classLinker = Runtime::GetCurrent()->GetClassLinker(); in GetClassesFootprint()
|
H A D | default_debugger_agent.cpp | 20 : LibraryAgent(mutex, PandaString(Runtime::GetOptions().GetDebuggerLibraryPath()), "StartDebugger", "StopDebugger") in DefaultDebuggerAgent() 26 debugSession_ = Runtime::GetCurrent()->StartDebugSession(); in Load() 53 uint32_t port = Runtime::GetOptions().GetDebuggerPort(); in CallLoadCallback() 54 bool breakOnStart = Runtime::GetOptions().IsDebuggerBreakOnStart(); in CallLoadCallback()
|
H A D | file_manager.cpp | 29 auto runtime = Runtime::GetCurrent(); in LoadAbcFile() 30 if (Runtime::GetOptions().IsEnableAn() && !Runtime::GetOptions().IsArkAot()) { in LoadAbcFile() 61 auto runtime = Runtime::GetCurrent(); in LoadAnFile() 62 auto gcType = Runtime::GetGCType(Runtime::GetOptions(), plugins::RuntimeTypeToLang(runtime->GetRuntimeType())); in LoadAnFile()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
H A D | ets_string.h | 33 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::ETS); in CreateFromMUtf8() 39 coretypes::String *s = coretypes::String::CreateFromMUtf8(data, ctx, Runtime::GetCurrent()->GetPandaVM()); in CreateFromMUtf8() 46 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::ETS); in CreateFromMUtf8() 49 coretypes::String::CreateEmptyString(ctx, Runtime::GetCurrent()->GetPandaVM())); in CreateFromMUtf8() 57 coretypes::String::CreateFromMUtf8(data, utf16Length, ctx, Runtime::GetCurrent()->GetPandaVM()); in CreateFromMUtf8() 64 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::ETS); in CreateFromUtf8() 67 coretypes::String::CreateEmptyString(ctx, Runtime::GetCurrent()->GetPandaVM())); in CreateFromUtf8() 75 coretypes::String::CreateFromUtf8(data, length, ctx, Runtime::GetCurrent()->GetPandaVM())); in CreateFromUtf8() 81 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::ETS); in CreateFromAscii() 84 coretypes::String::CreateFromMUtf8(data, length, length, true, ctx, Runtime in CreateFromAscii() [all...] |
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | mem_leak_test.cpp | 31 Runtime::Create(options); in CreateRuntime() 42 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); in TEST_F() 46 Runtime::Destroy(); in TEST_F() 56 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); in TEST_F() 60 Runtime::Destroy(); in TEST_F() 70 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); in TEST_F() 74 Runtime::Destroy(); in TEST_F()
|
H A D | test_utils.h | 32 auto *vm = Runtime::GetCurrent()->GetPandaVM(); in AllocateNullifiedPayloadString() 34 auto *stringClass = Runtime::GetCurrent() in AllocateNullifiedPayloadString() 47 Runtime *runtime = Runtime::GetCurrent(); in AllocNonMovableObject() 57 Runtime *runtime = Runtime::GetCurrent(); in AllocArray() 69 Runtime *runtime = Runtime::GetCurrent(); in AllocString() 79 Runtime *runtime = Runtime in AllocObjectInYoung() [all...] |
H A D | monitor_test.cpp | 39 Runtime::Create(options_); in MonitorTest() 47 Runtime::Destroy(); 65 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in TEST_F() 66 Class *cls = Runtime::GetCurrent()->GetClassLinker()->GetExtension(ctx)->GetClassRoot(ClassRoot::OBJECT); in TEST_F() 76 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in TEST_F() 77 Class *cls = Runtime::GetCurrent()->GetClassLinker()->GetExtension(ctx)->GetClassRoot(ClassRoot::OBJECT); in TEST_F() 91 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in TEST_F() 92 Class *cls = Runtime::GetCurrent()->GetClassLinker()->GetExtension(ctx)->GetClassRoot(ClassRoot::OBJECT); in TEST_F() 111 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in TEST_F() 112 Class *cls = Runtime in TEST_F() [all...] |
H A D | string_test.cpp | 45 Runtime::Create(options_); in StringTest() 50 Runtime::Destroy(); 58 return Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in GetLanguageContext() 88 String::CreateFromMUtf8(data.data(), utf16Length, GetLanguageContext(), Runtime::GetCurrent()->GetPandaVM()); in TEST_F() 103 String::CreateFromMUtf8(data.data(), utf16Length, GetLanguageContext(), Runtime::GetCurrent()->GetPandaVM()); in TEST_F() 113 String::CreateFromMUtf8(data1.data(), utf16Length, GetLanguageContext(), Runtime::GetCurrent()->GetPandaVM()); in TEST_F() 124 String::CreateFromMUtf8(data1.data(), utf16Length1, GetLanguageContext(), Runtime::GetCurrent()->GetPandaVM()); in TEST_F() 135 String::CreateFromMUtf8(data1.data(), utf16Length1, GetLanguageContext(), Runtime::GetCurrent()->GetPandaVM()); in TEST_F() 145 String::CreateFromMUtf8(data1.data(), utf16Length, GetLanguageContext(), Runtime::GetCurrent()->GetPandaVM()); in TEST_F() 153 String::CreateFromUtf16(data.data(), data.size(), GetLanguageContext(), Runtime in TEST_F() [all...] |
H A D | multithreaded_intern_string_table_test.cpp | 48 Runtime::Create(options); in MultithreadedInternStringTableTest() 53 Runtime::Destroy(); 61 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in AllocUtf8String() 63 Runtime::GetCurrent()->GetPandaVM()); in AllocUtf8String() 155 ark::MTManagedThread::Create(ark::Runtime::GetCurrent(), ark::Runtime::GetCurrent()->GetPandaVM()); in TestThreadEntry() 157 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in TestThreadEntry() 175 ark::MTManagedThread::Create(ark::Runtime::GetCurrent(), ark::Runtime::GetCurrent()->GetPandaVM()); in TestConcurrentInsertion() 177 LanguageContext ctx = Runtime in TestConcurrentInsertion() [all...] |
H A D | g1gc_test.cpp | 46 Runtime::Create(options); in G1GCTest() 51 Runtime::Destroy(); 90 Runtime *runtime = Runtime::GetCurrent(); in GetHumongousArrayLength() 106 Runtime *runtime = Runtime::GetCurrent(); in GetAllocator() 209 Runtime *runtime = Runtime::GetCurrent(); in TEST_F() 211 ClassLinker *classLinker = Runtime::GetCurrent()->GetClassLinker(); in TEST_F() 248 Runtime *runtim in TEST_F() [all...] |
H A D | gc_trigger_test.cpp | 36 Runtime::Create(options); in GCTriggerTest() 44 Runtime::Destroy(); 146 Runtime::Create(GetRuntimeOptions("debug-never")); in TEST() 149 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in TEST() 150 PandaVM *vm = Runtime::GetCurrent()->GetPandaVM(); in TEST() 166 Runtime::Destroy(); in TEST() 171 Runtime::Create(GetRuntimeOptions("pause-time-goal-trigger")); in TEST() 177 auto *runtime = Runtime::GetCurrent(); in TEST() 224 Runtime::Destroy(); in TEST()
|
H A D | intrinsics_blacklist_test.cpp | 38 Runtime::Destroy(); 48 Runtime::Create(options); in CreateRuntime() 80 Runtime::GetCurrent()->GetClassLinker()->AddPandaFile(std::move(pf)); in TEST_F() 83 ASSERT_DEATH(Runtime::GetCurrent()->Execute("_GLOBAL::main", {}), ""); in TEST_F()
|
H A D | static_analyzer_test.cpp | 52 Runtime::Create(options); in StaticAnalyzerTest() 57 Runtime::Destroy(); 65 Runtime *runtime = Runtime::GetCurrent(); in AllocString() 73 Runtime *runtime = Runtime::GetCurrent(); in AllocStringArray()
|
H A D | string_table_test.cpp | 58 Runtime::Create(options); in StringTableTest() 68 Runtime::Destroy(); 73 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in AllocUtf8String() 75 Runtime::GetCurrent()->GetPandaVM(), isMovable); in AllocUtf8String() 106 Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY)); in InternCompressedUtf8AndString() 108 string, Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY)); in InternCompressedUtf8AndString() 120 data.data(), 2, Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY)); in InternUncompressedUtf8AndString() 122 string, Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY)); in InternUncompressedUtf8AndString() 133 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in InternTheSameUtf16String() 135 coretypes::String::CreateFromUtf16(data.data(), data.size(), ctx, Runtime in InternTheSameUtf16String() [all...] |
H A D | explicit_gc_test.cpp | 47 [[maybe_unused]] bool success = Runtime::Destroy(); 73 [[maybe_unused]] bool success = Runtime::Create(options); in SetupRuntime() 82 uint32_t garbageRate = Runtime::GetOptions().GetG1RegionGarbageRateThreshold(); in TEST_F() 86 Runtime *runtime = Runtime::GetCurrent(); in TEST_F() 142 Runtime *runtime = Runtime::GetCurrent(); in TEST_F() 170 Runtime *runtime = Runtime::GetCurrent(); in TEST_F() 198 Runtime *runtim in TEST_F() [all...] |
H A D | gc_log_test.cpp | 47 [[maybe_unused]] bool success = Runtime::Destroy(); 77 [[maybe_unused]] bool success = Runtime::Create(options); in SetupRuntime() 91 Runtime *runtime = Runtime::GetCurrent(); in CounterLogTest() 119 Runtime *runtime = Runtime::GetCurrent(); in FullLogTest() 170 Runtime *runtime = Runtime::GetCurrent(); 178 uint32_t garbageRate = Runtime::GetOptions().GetG1RegionGarbageRateThreshold(); 203 uint32_t garbageRate = Runtime [all...] |
/arkcompiler/ets_runtime/ecmascript/ |
H A D | runtime.cpp | 27 int32_t Runtime::vmCount_ = 0; 28 int32_t Runtime::destroyCount_ = 0; 29 bool Runtime::firstVmCreated_ = false; 30 Mutex *Runtime::vmCreationLock_ = new Mutex(); 31 Runtime *Runtime::instance_ = nullptr; 33 Runtime *Runtime::GetInstance() in GetInstance() 39 Runtime::~Runtime() in ~Runtime() [all...] |
/arkcompiler/runtime_core/static_core/runtime/dprofiler/ |
H A D | dprofiler.h | 32 class Runtime; 39 DProfiler(std::string_view appName, Runtime *runtime); 41 DProfiler([[maybe_unused]] std::string_view app_name, [[maybe_unused]] Runtime *runtime) 59 Runtime *runtime_;
|
/arkcompiler/runtime_core/static_core/runtime/interpreter/ |
H A D | runtime_interface.h | 43 auto *classLinker = Runtime::GetCurrent()->GetClassLinker(); in ResolveMethod() 72 auto *classLinker = Runtime::GetCurrent()->GetClassLinker(); in GetMethodClass() 88 auto *classLinker = Runtime::GetCurrent()->GetClassLinker(); in ResolveField() 106 ClassLinker *classLinker = Runtime::GetCurrent()->GetClassLinker(); in ResolveClass() 114 auto *klassLinker = Runtime::GetCurrent()->GetClassLinker(); in ResolveClass() 125 return Runtime::GetCurrent()->ResolveLiteralArray(vm, caller, id.AsIndex()); in ResolveLiteralArray() 130 return Runtime::GetOptions().GetCompilerHotnessThreshold(); in GetCompilerHotnessThreshold() 135 return Runtime::GetOptions().IsCompilerEnableJit(); in IsCompilerEnableJit() 145 return Runtime::GetCurrent()->GetNotificationManager(); in GetNotificationManager() 274 LanguageContext ctx = Runtime in GetLanguageContext() [all...] |
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | relayout_profiler.h | 43 #define ADD_PROFILE_CLASS_ITEM(...) Runtime::GetCurrent()->GetRelayoutProfiler()->AddProfileClassItem(__VA_ARGS__) 46 Runtime::GetCurrent()->GetRelayoutProfiler()->AddProfileItem(__VA_ARGS__, \ 49 #define ADD_PROFILE_CODE_ITEM(...) Runtime::GetCurrent()->GetRelayoutProfiler()->AddProfileCodeItem(__VA_ARGS__) 51 #define WRITE_RELAYOUT_PROFILE_DATA() Runtime::GetCurrent()->GetRelayoutProfiler()->WriteProfileData()
|
/arkcompiler/runtime_core/static_core/runtime/scheduler/tests/ |
H A D | worker_thread_test.cpp | 38 Runtime::Create(options); in WorkerThreadTest() 46 Runtime::Destroy(); 60 auto tk1 = Task::Create(Runtime::GetCurrent()->GetPandaVM()); in TEST_F() 64 auto tk2 = Task::Create(Runtime::GetCurrent()->GetPandaVM()); in TEST_F()
|
/arkcompiler/runtime_core/static_core/runtime/coroutines/ |
H A D | coroutine_manager.cpp | 26 Coroutine *CoroutineManager::CreateMainCoroutine(Runtime *runtime, PandaVM *vm) in CreateMainCoroutine() 47 Runtime::GetCurrent()->GetInternalAllocator()->Delete(main); in DestroyMainCoroutine() 51 Coroutine *CoroutineManager::CreateEntrypointlessCoroutine(Runtime *runtime, PandaVM *vm, bool makeCurrent, in CreateEntrypointlessCoroutine() 81 Runtime::GetCurrent()->GetInternalAllocator()->Delete(co); in DestroyEntrypointlessCoroutine() 99 auto *coro = coFactory_(Runtime::GetCurrent(), Coroutine::GetCurrent()->GetVM(), std::move(name), ctx, in CreateCoroutineInstance() 107 Runtime::GetCurrent()->GetInternalAllocator()->Delete(co); in DestroyEntrypointfulCoroutine()
|
/arkcompiler/runtime_core/static_core/runtime/core/ |
H A D | core_vm.h | 31 class Runtime; 38 static Expected<PandaCoreVM *, PandaString> Create(Runtime *runtime, const RuntimeOptions &options); 98 return Runtime::GetOptions(); 124 return Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); 166 Expected<int, Runtime::Error> InvokeEntrypointImpl(Method *entrypoint, 171 explicit PandaCoreVM(Runtime *runtime, const RuntimeOptions &options, mem::MemoryManager *mm); 175 Runtime *runtime_ {nullptr};
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | event_loop_module.cpp | 41 async_ = Runtime::GetCurrent()->GetInternalAllocator()->New<uv_async_t>(); in EventLoopCallbackPoster() 61 async_->data = Runtime::GetCurrent()->GetInternalAllocator()->New<WrappedCallback>(std::move(callback)); in PostToEventLoop() 76 Runtime::GetCurrent()->GetInternalAllocator()->Delete(callback); in AsyncCallbackBody() 78 [](uv_handle_t *handle) { Runtime::GetCurrent()->GetInternalAllocator()->Delete(handle); }); in AsyncCallbackBody()
|