/ark/js_runtime/ecmascript/napi/test/ |
D | jsi_test.cpp | 32 std::string GetLogContent(const shared_ptr<JsRuntime> &runtime, const std::vector<shared_ptr<JsValu… in GetLogContent() argument 36 context += value->ToString(runtime); in GetLogContent() 41 shared_ptr<JsValue> AppDebugLogPrint(const shared_ptr<JsRuntime> &runtime, const shared_ptr<JsValue… in AppDebugLogPrint() argument 44 std::string context = GetLogContent(runtime, argument); in AppDebugLogPrint() 46 return runtime->NewObject(); in AppDebugLogPrint() 49 shared_ptr<JsValue> Setter(const shared_ptr<JsRuntime> &runtime, const shared_ptr<JsValue> &, in Setter() argument 52 std::string context = GetLogContent(runtime, argument); in Setter() 54 return runtime->NewObject(); in Setter() 57 shared_ptr<JsValue> Getter(const shared_ptr<JsRuntime> &runtime, const shared_ptr<JsValue> &, in Getter() argument 60 std::string context = GetLogContent(runtime, argument); in Getter() [all …]
|
/ark/js_runtime/ecmascript/tests/ |
D | BUILD.gn | 33 "$ark_root/runtime:arkruntime_public_config", 43 deps += [ "$ark_root/runtime:libarkruntime" ] 60 "$ark_root/runtime:arkruntime_public_config", 70 deps += [ "$ark_root/runtime:libarkruntime" ] 87 "$ark_root/runtime:arkruntime_public_config", 97 deps += [ "$ark_root/runtime:libarkruntime" ] 114 "$ark_root/runtime:arkruntime_public_config", 124 deps += [ "$ark_root/runtime:libarkruntime" ] 141 "$ark_root/runtime:arkruntime_public_config", 151 deps += [ "$ark_root/runtime:libarkruntime" ] [all …]
|
/ark/js_runtime/ecmascript/builtins/tests/ |
D | BUILD.gn | 33 "$ark_root/runtime:arkruntime_public_config", 43 deps += [ "$ark_root/runtime:libarkruntime" ] 60 "$ark_root/runtime:arkruntime_public_config", 70 deps += [ "$ark_root/runtime:libarkruntime" ] 87 "$ark_root/runtime:arkruntime_public_config", 97 deps += [ "$ark_root/runtime:libarkruntime" ] 114 "$ark_root/runtime:arkruntime_public_config", 124 deps += [ "$ark_root/runtime:libarkruntime" ] 141 "$ark_root/runtime:arkruntime_public_config", 151 deps += [ "$ark_root/runtime:libarkruntime" ] [all …]
|
/ark/runtime_core/docs/ |
D | runtime-debug-api.md | 11 …same process. Debugger functionality is provided via shared library, the runtime loads when workin… 15 1. As some low-end targets can store bytecode in ROM, runtime cannot patch apps' bytecode on the fl… 17 1. To simplify communication between debugger and runtime (especially on microcontrollers) they are… 21 …runtime in debug mode, thef `Runtime::StartDebugger()` method is used. This method loads the debug… 24 Runtime provides [`RuntimeNotificationManager`](../runtime/include/runtime_notification.h) class th… 25 * `LoadModule` - occurs when the Panda file is loaded by the runtime 27 …occurs when the PC of bytecode is changed during interpretation (only if runtime works in debug mo… 29 [`debug::Debugger`](../runtime/tooling/debugger.h) subscribes to these events and notifies debugger…
|
D | runtime-compiled_code-interaction.md | 1 # Interaction of compiled code and the runtime 5 Compiled code and Panda runtime interact with each other during execution. This document describes … 10 * Calling the runtime 14 ## Panda runtime (the runtime) 15 Panda runtime is a set of functions used to execute managed code. The runtime consists of several m… 18 The interpreter, as a part of runtime, executes bytecodes of managed functions and manages hotness 26 Panda runtime and managed code must call functions according to the target calling convention. 47 | runtime_entrypoints_ | void*[] | A table of runtime entrypoints (See [Runtime entry… 55 Runtime serves compiled code via runtime entrypoints. A runtime entrypoint is a function which conf… 59 `panda::Method` describes a managed function in the runtime. [all …]
|
D | interpreter-language-extensions.md | 42 …runtime/interpreter/instruction_handler_state.h) objects to encapsulate internal state that contai… 44 …pcodes and common builtins. It extends the [`InstructionHandlerBase`](../runtime/interpreter/instr… 101 …Handler` should be located in `runtime/ecmascript/interpreter` directory and included to [`interpr…
|
/ark/js_runtime/ecmascript/ic/tests/ |
D | BUILD.gn | 33 "$ark_root/runtime:arkruntime_public_config", 43 deps += [ "$ark_root/runtime:libarkruntime" ] 60 "$ark_root/runtime:arkruntime_public_config", 70 deps += [ "$ark_root/runtime:libarkruntime" ] 87 "$ark_root/runtime:arkruntime_public_config", 97 deps += [ "$ark_root/runtime:libarkruntime" ] 114 "$ark_root/runtime:arkruntime_public_config", 124 deps += [ "$ark_root/runtime:libarkruntime" ]
|
/ark/js_runtime/ecmascript/base/tests/ |
D | BUILD.gn | 33 "$ark_root/runtime:arkruntime_public_config", 43 deps += [ "$ark_root/runtime:libarkruntime" ] 60 "$ark_root/runtime:arkruntime_public_config", 70 deps += [ "$ark_root/runtime:libarkruntime" ] 87 "$ark_root/runtime:arkruntime_public_config", 97 deps += [ "$ark_root/runtime:libarkruntime" ] 114 "$ark_root/runtime:arkruntime_public_config", 124 deps += [ "$ark_root/runtime:libarkruntime" ]
|
/ark/runtime_core/runtime/asm_defines/ |
D | BUILD.gn | 25 "$ark_root/runtime:arkruntime_public_config", 39 "$ark_root/runtime:arkruntime_gen_intrinsics_intrinsics_gen_h", 40 "$ark_root/runtime:arkruntime_gen_intrinsics_intrinsics_h", 41 "$ark_root/runtime:arkruntime_gen_intrinsics_unimplemented_intrinsics-inl_cpp", 47 script = "$ark_root/runtime/asm_defines/defines_generator.rb"
|
/ark/js_runtime/docs/ |
D | overview.md | 3 …veloped by Huawei. Its key components include a compiler, toolchain, and runtime. ARK supports com… 5 … JS compiler toolchain and JS runtime. The JS compiler toolchain compiles JS source code into ARK … 13 The following figure shows the JS runtime architecture. 23 …Core Runtime consists of basic language-irrelevant runtime libraries, including ARK File, Tooling,… 27 …des, Inline Caches that store hidden classes, and Profiler that analyzes and records runtime types. 35 The AFFI provides a C++ function interface for ARK-JS runtime. 42 …mon way to process TS in the industry is to convert TS into JS and execute JS code with JS runtime. 44 …S type information and sends the TS type information to ARK-JS runtime. The ARK-JS runtime directl…
|
/ark/runtime_core/panda/ |
D | panda.cpp | 65 auto &runtime = *Runtime::GetCurrent(); in VerifierProcessFile() local 66 auto &class_linker = *runtime.GetClassLinker(); in VerifierProcessFile() 87 auto resolved = runtime.ResolveEntryPoint(entrypoint); in VerifierProcessFile() 100 auto file = GetPandaFile(*runtime.GetClassLinker(), file_name); in VerifierProcessFile() 103 auto &klass_linker = *runtime.GetClassLinker(); in VerifierProcessFile() 253 auto &runtime = *Runtime::GetCurrent(); in Main() local 254 auto &verif_opts = runtime.GetVerificationOptions(); in Main() 259 runtime.GetClassLinker()->EnumerateBootPandaFiles([](const panda_file::File &pf) { in Main() 270 auto res = runtime.ExecutePandaFile(file_name, entry, arguments); in Main()
|
/ark/js_runtime/ecmascript/compiler/ |
D | BUILD.gn | 64 "$ark_root/runtime:arkruntime_public_config", 137 "$ark_root/runtime:arkruntime_header_deps", 168 deps += [ "$ark_root/runtime:libarkruntime_static" ] 170 deps += [ "$ark_root/runtime:libarkruntime" ] 196 "$ark_root/runtime:arkruntime_public_config", 207 deps += [ "$ark_root/runtime:libarkruntime" ] 228 "$ark_root/runtime:arkruntime_public_config", 238 deps += [ "$ark_root/runtime:libarkruntime" ]
|
/ark/runtime_core/runtime/core/ |
D | core_vm.cpp | 60 Expected<PandaCoreVM *, PandaString> PandaCoreVM::Create(Runtime *runtime, const RuntimeOptions &op… in Create() argument 63 mem::MemoryManager *mm = CreateMM(ctx, runtime->GetInternalAllocator(), options); in Create() 69 PandaCoreVM *core_vm = allocator->New<PandaCoreVM>(runtime, options, mm); in Create() 73 core_vm->main_thread_ = MTManagedThread::Create(runtime, core_vm); in Create() 81 PandaCoreVM::PandaCoreVM(Runtime *runtime, [[maybe_unused]] const RuntimeOptions &options, mem::Mem… in PandaCoreVM() argument 82 : runtime_(runtime), mm_(mm) in PandaCoreVM() 221 Runtime *runtime = Runtime::GetCurrent(); in InvokeEntrypointImpl() local 223 LanguageContext ctx = runtime->GetLanguageContext(*entrypoint); in InvokeEntrypointImpl() 227 ClassLinker *class_linker = runtime->GetClassLinker(); in InvokeEntrypointImpl()
|
D | core_language_context.cpp | 30 PandaVM *CoreLanguageContext::CreateVM(Runtime *runtime, const RuntimeOptions &options) const in CreateVM() argument 32 auto core_vm = core::PandaCoreVM::Create(runtime, options); in CreateVM() 55 auto runtime = Runtime::GetCurrent(); in ThrowException() local 56 auto *class_linker = runtime->GetClassLinker(); in ThrowException() 57 LanguageContext ctx = runtime->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in ThrowException()
|
/ark/runtime_core/runtime/ |
D | panda_vm.cpp | 28 PandaVM *PandaVM::Create(Runtime *runtime, const RuntimeOptions &options, std::string_view runtime_… in Create() argument 30 …PandaVM *panda_vm = runtime->GetLanguageContext(std::string(runtime_type)).CreateVM(runtime, optio… in Create()
|
D | file_manager.cpp | 29 auto runtime = Runtime::GetCurrent(); in LoadAbcFile() local 30 runtime->GetClassLinker()->AddPandaFile(std::move(pf)); in LoadAbcFile()
|
/ark/js_runtime/ecmascript/hprof/tests/ |
D | BUILD.gn | 33 "$ark_root/runtime:arkruntime_public_config", 43 deps += [ "$ark_root/runtime:libarkruntime" ] 60 "$ark_root/runtime:arkruntime_public_config", 70 deps += [ "$ark_root/runtime:libarkruntime" ]
|
/ark/js_runtime/ecmascript/regexp/tests/ |
D | BUILD.gn | 33 "$ark_root/runtime:arkruntime_public_config", 43 deps += [ "$ark_root/runtime:libarkruntime" ] 60 "$ark_root/runtime:arkruntime_public_config", 70 deps += [ "$ark_root/runtime:libarkruntime" ]
|
/ark/js_runtime/ecmascript/containers/tests/ |
D | BUILD.gn | 33 "$ark_root/runtime:arkruntime_public_config", 43 deps += [ "$ark_root/runtime:libarkruntime" ] 60 "$ark_root/runtime:arkruntime_public_config", 70 deps += [ "$ark_root/runtime:libarkruntime" ]
|
/ark/runtime_core/verification/debug/handlers/ |
D | config_handler_method_options.cpp | 113 auto &runtime = *Runtime::GetCurrent(); in ProcessSectionUplevel() local 114 auto &verif_options = runtime.GetVerificationOptions(); in ProcessSectionUplevel() 170 auto &runtime = *Runtime::GetCurrent(); in MethodOptionsProcessor() local 171 auto &verif_options = runtime.GetVerificationOptions(); in MethodOptionsProcessor() 254 auto &runtime = *Runtime::GetCurrent(); in SetDefaultMethodOptions() local 255 auto &verif_options = runtime.GetVerificationOptions(); in SetDefaultMethodOptions()
|
/ark/runtime_core/verification/verifier/ |
D | verifier.cpp | 61 auto &runtime = *Runtime::GetCurrent(); in VerifierProcessFile() local 62 auto &class_linker = *runtime.GetClassLinker(); in VerifierProcessFile() 69 LanguageContext ctx = runtime.GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in VerifierProcessFile() 77 ctx = runtime.GetLanguageContext(&cda); in VerifierProcessFile()
|
D | BUILD.gn | 14 import("//ark/runtime/ark_config.gni") 22 "$ark_root/runtime:arkruntime_public_config", 32 "$ark_root/runtime:libarkruntime",
|
/ark/js_runtime/ecmascript/ |
D | ecma_language_context.cpp | 33 PandaVM *EcmaLanguageContext::CreateVM(Runtime *runtime, [[maybe_unused]] const RuntimeOptions &opt… in CreateVM() argument 35 auto ret = EcmaVM::Create(runtime); in CreateVM()
|
/ark/runtime_core/runtime/tests/ |
D | pygote_space_allocator_test_base.h | 47 auto runtime = panda::Runtime::GetCurrent(); in GetObjectClass() local 48 LanguageContext ctx = runtime->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in GetObjectClass() 49 return runtime->GetClassLinker()->GetExtension(ctx)->GetClassRoot(ClassRoot::OBJECT); in GetObjectClass() 55 auto runtime = panda::Runtime::GetCurrent(); in PygoteFork() local 56 runtime->PreZygoteFork(); in PygoteFork() 57 runtime->PostZygoteFork(); in PygoteFork()
|
D | c2i_bridge_test.cpp | 85 Runtime *runtime = Runtime::GetCurrent(); in SetUpHelperFunctions() local 86 ClassLinker *class_linker = runtime->GetClassLinker(); in SetUpHelperFunctions() 123 Runtime *runtime = Runtime::GetCurrent(); in MakeNoArgsMethod() local 124 ClassLinker *class_linker = runtime->GetClassLinker(); in MakeNoArgsMethod() 125 LanguageContext ctx = runtime->GetLanguageContext(lang_); in MakeNoArgsMethod() 170 Runtime *runtime = Runtime::GetCurrent(); in MakeCheckArgsMethod() local 171 ClassLinker *class_linker = runtime->GetClassLinker(); in MakeCheckArgsMethod() 172 LanguageContext ctx = runtime->GetLanguageContext(lang_); in MakeCheckArgsMethod()
|