/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | test_utils.h | 20 #include "runtime/include/runtime.h" 21 #include "runtime/include/coretypes/array.h" 22 #include "runtime/include/coretypes/string.h" 23 #include "runtime/include/panda_vm.h" 24 #include "runtime/include/class_linker.h" 25 #include "runtime/include/class_root.h" 47 Runtime *runtime = Runtime::GetCurrent(); in AllocNonMovableObject() local 48 LanguageContext ctx = runtime->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in AllocNonMovableObject() 49 return coretypes::String::CreateFromUtf16(&data, 0, ctx, runtime in AllocNonMovableObject() 57 Runtime *runtime = Runtime::GetCurrent(); AllocArray() local 69 Runtime *runtime = Runtime::GetCurrent(); AllocString() local 79 Runtime *runtime = Runtime::GetCurrent(); AllocObjectInYoung() local [all...] |
H A D | pygote_space_allocator_test_base.h | 23 #include "runtime/mem/runslots_allocator-inl.h" 24 #include "runtime/mem/pygote_space_allocator-inl.h" 25 #include "runtime/include/object_header.h" 26 #include "runtime/mem/refstorage/global_object_storage.h" 48 auto runtime = ark::Runtime::GetCurrent(); in GetObjectClass() local 49 LanguageContext ctx = runtime->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in GetObjectClass() 50 return runtime->GetClassLinker()->GetExtension(ctx)->GetClassRoot(ClassRoot::OBJECT); in GetObjectClass() 56 auto runtime = ark::Runtime::GetCurrent(); in PygoteFork() local 57 runtime->PreZygoteFork(); in PygoteFork() 58 runtime in PygoteFork() [all...] |
H A 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/me 65 Runtime *runtime = Runtime::GetCurrent(); AllocString() local 73 Runtime *runtime = Runtime::GetCurrent(); AllocStringArray() local [all...] |
H A D | g1gc_test.cpp | 19 #include "runtime/include/object_header.h" 20 #include "runtime/mem/tlab.h" 21 #include "runtime/include/runtime.h" 22 #include "runtime/include/panda_vm.h" 23 #include "runtime/include/class_linker.h" 24 #include "runtime/include/thread_scopes.h" 25 #include "runtime/mem/vm_handle.h" 26 #include "runtime/handle_scope-inl.h" 27 #include "runtime/includ 90 Runtime *runtime = Runtime::GetCurrent(); GetHumongousArrayLength() local 106 Runtime *runtime = Runtime::GetCurrent(); GetAllocator() local 209 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 248 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 280 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 462 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 532 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 565 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 620 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 704 auto runtime = Runtime::GetCurrent(); TEST_F() local 804 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 926 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 1013 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 1061 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 1111 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 1186 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 1288 Runtime *runtime = Runtime::GetCurrent(); RefArrayLengthFitIntoRegion() local 1314 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 1345 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 1375 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 1421 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 1453 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 1485 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 1511 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local [all...] |
H A D | explicit_gc_test.cpp | 19 #include "runtime/include/runtime.h" 20 #include "runtime/include/runtime_options.h" 21 #include "runtime/include/panda_vm.h" 22 #include "runtime/include/class_linker.h" 23 #include "runtime/include/thread_scopes.h" 24 #include "runtime/mem/vm_handle.h" 25 #include "runtime/handle_scope-inl.h" 26 #include "runtime/include/coretypes/array.h" 27 #include "runtime/includ 86 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 142 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 170 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local 198 Runtime *runtime = Runtime::GetCurrent(); TEST_F() local [all...] |
H A 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/me 105 Runtime *runtime = Runtime::GetCurrent(); AllocString() local 113 Runtime *runtime = Runtime::GetCurrent(); AllocObject() local 120 Runtime *runtime = Runtime::GetCurrent(); AllocStringArray() local [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
H A D | string_builder_utils.cpp | 31 auto runtime = inst->GetBasicBlock()->GetGraph()->GetRuntime(); in IsStringBuilderInstance() local 32 return runtime->IsClassStringBuilder(klass); in IsStringBuilderInstance() 46 auto runtime = inst->GetBasicBlock()->GetGraph()->GetRuntime(); in IsMethodStringConcat() local 47 return runtime->IsMethodStringConcat(call->GetCallMethod()); in IsMethodStringConcat() 61 auto runtime = inst->GetBasicBlock()->GetGraph()->GetRuntime(); in IsMethodStringBuilderConstructorWithStringArg() local 62 return runtime->IsMethodStringBuilderConstructorWithStringArg(call->GetCallMethod()); in IsMethodStringBuilderConstructorWithStringArg() 76 auto runtime = inst->GetBasicBlock()->GetGraph()->GetRuntime(); in IsMethodStringBuilderConstructorWithCharArrayArg() local 77 return runtime->IsMethodStringBuilderConstructorWithCharArrayArg(call->GetCallMethod()); in IsMethodStringBuilderConstructorWithCharArrayArg() 82 auto runtime = inst->GetBasicBlock()->GetGraph()->GetRuntime(); in IsStringBuilderToString() local 85 return !callInst->IsInlined() && runtime in IsStringBuilderToString() 105 auto runtime = inst->GetBasicBlock()->GetGraph()->GetRuntime(); IsMethodStringBuilderDefaultConstructor() local 272 auto runtime = inst->GetBasicBlock()->GetGraph()->GetRuntime(); IsIntrinsicStringBuilderAppendString() local [all...] |
H A D | reserve_string_builder_buffer.cpp | 129 auto runtime = storeObject->GetBasicBlock()->GetGraph()->GetRuntime(); in IsFieldStringBuilderBuffer() local 131 return runtime->IsFieldStringBuilderBuffer(field); in IsFieldStringBuilderBuffer() 137 auto runtime = storeObject->GetBasicBlock()->GetGraph()->GetRuntime(); in IsFieldStringBuilderIndex() local 139 return runtime->IsFieldStringBuilderIndex(field); in IsFieldStringBuilderIndex() 222 auto runtime = graph->GetRuntime(); in CreateInstructionNewObjectsArray() local 226 auto objectsArrayClassId = runtime->GetClassOffsetObjectsArray(method); in CreateInstructionNewObjectsArray() 229 TypeIdMixin {objectsArrayClassId, method}, runtime->ResolveType(method, objectsArrayClassId)); in CreateInstructionNewObjectsArray() 279 auto runtime = graph->GetRuntime(); in StoreStringBuilderBufferField() local 280 auto field = runtime->GetFieldStringBuilderBuffer(klass); in StoreStringBuilderBufferField() 282 TypeIdMixin {runtime in StoreStringBuilderBufferField() 292 auto runtime = graph->GetRuntime(); StoreStringBuilderIndexField() local 303 auto runtime = graph->GetRuntime(); StoreStringBuilderLengthField() local 314 auto runtime = graph->GetRuntime(); StoreStringBuilderIsCompressedField() local [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
H A D | object_type_propagation.cpp | 89 auto runtime = self->GetGraph()->GetRuntime(); in VisitLoadObject() local 91 auto typeId = runtime->GetFieldValueTypeId(method, fieldId); in VisitLoadObject() 92 auto klass = runtime->GetClass(method, typeId); in VisitLoadObject() 94 auto isExact = runtime->GetClassType(method, typeId) == ClassType::FINAL_CLASS; in VisitLoadObject() 129 auto runtime = graph->GetRuntime(); in VisitParameter() local 134 if (inst->GetArgNumber() != 0 || runtime->IsMethodStatic(method)) { in VisitParameter() 137 klass = runtime->GetClass(method); in VisitParameter() 139 auto typeId = runtime->GetMethodArgReferenceTypeId(method, refNum); in VisitParameter() 140 klass = runtime->GetClass(method, typeId); in VisitParameter() 143 auto isExact = runtime in VisitParameter() 154 auto runtime = self->GetGraph()->GetRuntime(); ProcessManagedCall() local [all...] |
/arkcompiler/runtime_core/static_core/tools/ark_js_napi_cli/ |
H A D | main.cpp | 25 auto runtime = panda::JsRuntime::Create(); in Main() local 28 if (!runtime->ProcessOptions(argc, argv, &filenames)) { in Main() 32 if (!runtime->Init()) { in Main() 33 std::cerr << "Cannot initialize js runtime" << std::endl; in Main() 39 auto res = runtime->Execute(filename); in Main() 47 runtime->Loop(); in Main()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/tests/ |
H A D | test_object_preview.py | 45 cdp.runtime.PropertyPreview( 50 return cdp.runtime.ObjectPreview( 61 property_preview = cdp.runtime.PropertyPreview( 65 return cdp.runtime.ObjectPreview( 79 cdp.runtime.PropertyPreview( 88 return cdp.runtime.ObjectPreview( 112 expected_preview: cdp.runtime.ObjectPreview
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/overwrites/ |
H A D | cdp_debugger_callframe_from_json.py | 21 import cdp.runtime as runtime namespace 38 this=runtime.RemoteObject.from_json(json["this"]) if "this" in json else None, # type: ignore 42 return_value=runtime.RemoteObject.from_json(json["returnValue"]) if "returnValue" in json else None,
|
/arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/ |
H A D | bytecodeopt_peepholes_test.cpp | 92 RuntimeInterfaceMock runtime(0U); in TEST_F() 94 graph->SetRuntime(&runtime); in TEST_F() 136 RuntimeInterfaceMock runtime(1U); in TEST_F() 138 graph->SetRuntime(&runtime); in TEST_F() 162 RuntimeInterfaceMock runtime(1U); in TEST_F() 164 graph->SetRuntime(&runtime); in TEST_F() 191 RuntimeInterfaceMock runtime(0U); in TEST_F() 193 graph->SetRuntime(&runtime); in TEST_F() 215 RuntimeInterfaceMock runtime(1U, false); in TEST_F() 217 graph->SetRuntime(&runtime); in TEST_F() [all...] |
/arkcompiler/runtime_core/static_core/runtime/core/ |
H A 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_standard-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() 58 auto runtime = Runtime::GetCurrent(); in ThrowException() local 59 LanguageContext ctx = runtime->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in ThrowException() 60 auto *classLinker = runtime in ThrowException() 113 CreateVM(Runtime *runtime, const RuntimeOptions &options) const CreateVM() argument 131 auto runtime = Runtime::GetCurrent(); ThrowStackOverflowException() local [all...] |
H A D | core_vm.cpp | 17 #include "runtime/compiler.h" 18 #include "runtime/core/core_vm.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/lock_config_helper.h" 25 #include "runtime/mem/refstorage/global_object_storage.h" 26 #include "runtime/single_thread_manage 54 Create(Runtime *runtime, const RuntimeOptions &options) Create() argument 82 PandaCoreVM(Runtime *runtime, const RuntimeOptions &options, mem::MemoryManager *mm) PandaCoreVM() argument 120 auto runtime = Runtime::GetCurrent(); Initialize() local 131 auto runtime = Runtime::GetCurrent(); PreAllocOOMErrorObject() local 146 auto runtime = Runtime::GetCurrent(); InitializeFinish() local 262 Runtime *runtime = Runtime::GetCurrent(); InvokeEntrypointImpl() local [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/ |
H A D | ark_config.py | 23 from arkdb import compiler, disassembler, runtime namespace 109 ) -> runtime.Options: 111 Return a :class:`runtime.Options` instance for `ark_runtime_options` fixture. 113 return runtime.Options( 124 ark_runtime_default_options: runtime.Options, 125 ) -> runtime.Options: 127 Return a :class:`runtime.Options` instance for `ark_runtime` fixture.
|
H A D | debug_client.py | 25 from cdp import debugger, runtime namespace 43 debugger_id: runtime.UniqueDebuggerId, 46 context: runtime.ExecutionContextDescription, 63 runtime.run_if_waiting_for_debugger(), 103 script_id: runtime.ScriptId, 118 script_id: runtime.ScriptId, 124 script_id: runtime.ScriptId, 130 object_id: runtime.RemoteObjectId, 135 List[runtime.PropertyDescriptor], 136 Optional[List[runtime [all...] |
H A D | debug_connection.py | 26 from cdp import debugger, runtime namespace 53 self.context_id: runtime.ExecutionContextId 133 self._scripts: Dict[runtime.ScriptId, debugger.ScriptParsed] = {} 135 async def __getitem__(self, script_id: runtime.ScriptId) -> debugger.ScriptParsed: 141 async def get(self, script_id: runtime.ScriptId) -> Optional[debugger.ScriptParsed]: 164 self._scripts: Dict[runtime.ScriptId, str] = {} 168 script_id: runtime.ScriptId, 169 get_source: Optional[Callable[[runtime.ScriptId], Coroutine[Any, Any, str]]] = None,
|
/arkcompiler/toolchain/test/autotest/aw/api/ |
H A D | runtime_api.py | 23 from aw.cdp import runtime
namespace 41 runtime.enable(), message_id)
50 runtime.run_if_waiting_for_debugger(), message_id)
59 runtime.get_properties(params), message_id)
68 runtime.get_heap_usage(), message_id)
|
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | profiling_runner_test.cpp | 18 #include "runtime/jit/profiling_data.h" 65 auto runtime = runner.CreateRuntime(); in TEST_F() local 66 runner.Run(runtime, SOURCE, std::vector<std::string> {}); in TEST_F() 80 auto runtime = runner.CreateRuntime(); in TEST_F() local 81 runner.Run(runtime, SOURCE, std::vector<std::string> {}); in TEST_F()
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A 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 32 auto aotFile = runtime->GetClassLinker()->GetAotManager()->FindPandaFile(std::string(location)); in LoadAbcFile() 37 runtime->GetClassLinker()->AddPandaFile(std::move(pf)); in LoadAbcFile() 61 auto runtime = Runtime::GetCurrent(); in LoadAnFile() local 62 auto gcType = Runtime::GetGCType(Runtime::GetOptions(), plugins::RuntimeTypeToLang(runtime->GetRuntimeType())); in LoadAnFile() 65 return runtime->GetClassLinker()->GetAotManager()->AddFile(realAnFilePath, &runtimeIface, in LoadAnFile() 73 // 1. search ark native file file base on ARCH info from runtime in ResolveAnFilePath() [all...] |
/arkcompiler/runtime_core/static_core/verification/verifier/ |
H A D | verifier.cpp | 19 #include "runtime/include/runtime.h" 20 #include "runtime/include/thread_scopes.h" 149 static void VerifyAllNames(std::atomic<bool> &result, bool verifyLibraries, Runtime &runtime, in VerifyAllNames() argument 152 auto &classLinker = *runtime.GetClassLinker(); in VerifyAllNames() 169 } else if (runtime.GetPandaFiles().empty()) { in VerifyAllNames() 186 Runtime &runtime, const std::string &className) in GetClassByName() 194 auto &classLinker = *runtime.GetClassLinker(); in GetClassByName() 195 auto *ctx = classLinker.GetExtension(runtime.GetLanguageContext(runtime in GetClassByName() 185 GetClassByName(std::atomic<bool> &result, PandaUnorderedMap<std::string, Class *> &classesByName, Runtime &runtime, const std::string &className) GetClassByName() argument 223 RunVerifierImpl(std::atomic<bool> &result, Runtime &runtime, const std::vector<std::string> &classNames, const std::vector<std::string> &methodNames, PandaDeque<Method *> &queue) RunVerifierImpl() argument 279 auto &runtime = *Runtime::GetCurrent(); RunVerifier() local [all...] |
/arkcompiler/runtime_core/static_core/panda/ |
H A D | panda.cpp | 16 #include "include/runtime.h" 19 #include "runtime/include/locks.h" 20 #include "runtime/include/method-inl.h" 21 #include "runtime/include/class.h" 143 static int ExecutePandaFile(Runtime &runtime, const std::string &fileName, const std::string &entry, in ExecutePandaFile() argument 146 auto res = runtime.ExecutePandaFile(fileName, entry, arguments); in ExecutePandaFile() 155 static void PrintStatistics(RuntimeOptions &runtimeOptions, Runtime &runtime) in PrintStatistics() argument 158 std::cout << runtime.GetMemoryStatistics(); in PrintStatistics() 161 std::cout << runtime.GetFinalStatistics(); in PrintStatistics() 172 ark::PandArg<bool> options("options", false, "Print compiler and runtime option in Main() 224 auto &runtime = *Runtime::GetCurrent(); Main() local [all...] |
/arkcompiler/runtime_core/static_core/compiler/ |
H A D | compile_method.cpp | 210 RuntimeInterface *runtime; member 221 auto [runtime, codeAllocator, gdbDebugInfoAllocator, jitStats, isDynamic, arch] = args; in CheckCompilation() 251 if (!runtime->TrySetOsrCode(method, entryPoint)) { in CheckCompilation() 257 runtime->SetCompiledEntryPoint(method, entryPoint); in CheckCompilation() 263 void JITCompileMethod(RuntimeInterface *runtime, CodeAllocator *codeAllocator, ArenaAllocator *gdbDebugInfoAllocator, in JITCompileMethod() argument 268 taskCtx.SetMethodName(runtime->GetMethodFullName(taskMethod, false)); in JITCompileMethod() 277 if ((regex || regexWithSign) && !g_options.MatchesRegex(runtime->GetMethodFullName(taskMethod, regexWithSign))) { in JITCompileMethod() 279 << runtime->GetMethodFullName(taskMethod, true); in JITCompileMethod() 303 taskRunner.AddCallbackOnSuccess([runtime, codeAllocator, gdbDebugInfoAllocator, jitStats, isDynamic, in JITCompileMethod() 306 CheckCompilationArgs {runtime, codeAllocato in JITCompileMethod() 317 CompileInGraph(RuntimeInterface *runtime, bool isDynamic, Arch arch, CompilerTaskRunner<RUNNER_MODE> taskRunner, JITStats *jitStats) CompileInGraph() argument [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ |
H A D | ets_intrinsics_peephole.cpp | 60 auto runtime = graph->GetRuntime(); in ReplaceTypeofWithIsInstance() local 63 auto stringValue = runtime->GetStringValue(method, typeId); in ReplaceTypeofWithIsInstance() 67 klass = runtime->GetStringClass(method, &ktypeId); in ReplaceTypeofWithIsInstance() 76 klass = runtime->GetNumberClass(method, found->second, &ktypeId); in ReplaceTypeofWithIsInstance() 161 auto runtime = graph->GetRuntime(); in TryInsertFieldInst() local 162 auto field = runtime->ResolveLookUpField(rawField, klassPtr); in TryInsertFieldInst() 174 if (runtime->IsFieldVolatile(field)) { in TryInsertFieldInst() 188 if (runtime->IsFieldVolatile(field)) { in TryInsertFieldInst() 206 auto runtime = graph->GetRuntime(); in TryInsertCallInst() local 207 auto method = runtime in TryInsertCallInst() 236 auto runtime = graph->GetRuntime(); PeepholeLdObjByName() local 258 auto runtime = graph->GetRuntime(); PeepholeStObjByName() local 464 auto runtime = graph->GetRuntime(); BuildLoadPropertyChain() local [all...] |