Home
last modified time | relevance | path

Searched full:runtime (Results 1 – 25 of 216) sorted by relevance

123456789

/arkcompiler/runtime_core/docs/
Druntime-debug-api.md1 # 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…
11Runtime 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…
23Runtime::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 …]
Druntime-compiled_code-interaction.md1 # Interaction of compiled code and the runtime
5 During execution compiled code and Panda runtime should interact with each other. This document des…
6 * Runtime structures
10 * Calling the runtime
16 ## Panda runtime (the runtime)
17 Panda runtime as a set of functions aimed to execute managed code. The runtime consists of several …
20 The interpreter is a part of the runtime aimed to execute bytecode of managed functions. The interp…
28 Panda runtime and managed code must call functions according to the target calling convention.
49 | runtime_entrypoints_ | void*[] | A table of runtime entrypoints (See [Runtime entry…
56 ## Runtime entrypoints
[all …]
Daot.md25 - `.aot_got` - Contains table of the runtime's entrypoint handlers. Must be placed right before `.t…
47 therefore compiled Ark bytecode file must be bit by bit equal to the file loaded in runtime.
52 filled with appropriate data during AOT file loading at runtime. This data allows compiler's codege…
53 runtime calls and work with [PLT](../compiler/docs/plt.md) resolvers.
73 ## Runtime calls
104 to cache pointers which are recieved from runtime calls - PLT resolvers. They are described in a se…
108 AOT-compiled code may use special PLT-slots to load resolved string without runtime calls.
116 Panda runtime.
125 Paoc uses Panda runtime inside, thus, runtime's options are also may be specified. If paoc is ran n…
D2022-08-18-isa-changelog.md11 The bytecode size and runtime performance have been suffering for a long time as the all the
24 such that runtime can distinguish the "define-function" operations of different kinds.
25 We also add header index in function such that runtime can access IndexHeader more efficiently.
33 To adapt runtime design, we put string and literal array into the index header of methods,
35 This will help runtime to build constant pool more efficiently.
Dglossary.md5 During the development of Panda Runtime, we faced the fact that terminology related to the
13 execution. In case of Panda Runtime, AOT compilation is used to compile Panda Bytecode into
14 native machine code to reduce runtime overhead from reading and compiling bytecode.
26 execution. In case of Panda Runtime, JIT compilation is used to compile Panda Bytecode into
37 compactness and efficient execution by Panda Runtime. See https://en.wikipedia.org/wiki/Bytecode.
38 * **Runtime** is a runtime system, also called runtime environment.
Dpanda-runtime.md1 # Panda Runtime
3 Panda Runtime is a multi-language runtime designed to run on microcontrollers and mobile devices.
Dmemory-management-SW-requirements.md9 1. Allocations for the internal usage by Runtime(Allocations for compiler purposes, for GC internal…
31 - Internal memory space for non-compiler part of runtime (including GC internals)
58 - allocator API for runtime
/arkcompiler/ets_runtime/docs/
Doverview.md3runtime platform of OpenHarmony. It contains core components such as the compiler, toolchain, and
5Runtime 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/libpandafile/
Dmodifiers.h50 // 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/ets_runtime/
DREADME.md1 # ArkCompiler JS Runtime
5 ArkCompiler JS Runtime is the default JS runtime on OpenHarmony. It supports ECMAScript libraries a…
7 …more information, see [ArkCompiler JS Runtime](https://gitee.com/openharmony/docs/blob/master/en/r…
9 **ArkCompiler JS Runtime architecture**
17 ├─ ecmascript # Implementation of ArkCompiler JS Runtime, including the ECMAScript libr…
34 │ ├─ stubs # Runtime stub functions
68 For more information, see [ARK Runtime Usage Guide](https://gitee.com/openharmony/arkcompiler_ets_r…
69 docs/ARK-Runtime-Usage-Guide.md).
/arkcompiler/runtime_core/compiler/docs/
Daot_resolve_string.md3 To get string literal by its identifier application has to perform special runtime call. To improve…
4 mode such runtime calls could be replaced with load from a special PLT-slot in AOT file. In that ca…
6 application have to perform `ResolveStringAot` runtime call that will return a pointer. That runtim…
7 … string pointer into the slot and subsequent executions of the same code will bypass runtime calls.
11 …tion `LoadString` instruction could be either encoded as regular `ResolveString` runtime call or as
12 a PLT-slot check with `ResolveStringAot` runtime call as a fallback.
16 …resolution attempt requires runtime call, so usage of regular `ResolveString` call reduces the ove…
22 The slow path performs `ResolveStringAot` runtime call that returns resolved string.
24 ## Runtime support
32 `RuntimeStringAot` runtime call resolves the string as a regular `RuntimeString` call, but also doe…
Daot_cha.md12 …represented by a string which is written into AOT file and compared with runtime's one during AOT …
21 AOT file compiled with class hierarchy requires the complete conformity of class path with runtime.…
22 have to pass a class path to AOT compiler identical to class path used by runtime.
49 Runtime class context: '$LIBDIR/lib1.abc*2239629066:$LIBDIR/lib2.abc*2767220441:application.abc*252…
61 is performed during Runtime initialization when only boot panda files are loaded. The verification …
85 For AOT compilation the method and its index in virtual table is unknown because at runtime the cha…
93 class hierarchy of runtime matches the class hierarchy during AOT compilation.
/arkcompiler/runtime_core/
DREADME.md1 # Runtime Core<a name="EN-US_TOPIC_0000001138850082"></a>
3 - [Runtime Core<a name="EN-US_TOPIC_0000001138850082"></a>](#runtime-core)
15runtime in OpenHarmony, ArkCompiler Runtime Core consists of language-independent basic runtime li…
17 **Figure 1** ArkCompiler Runtime Core architecture diagram:
19 ![ArkCompiler Runtime Core Arch](docs/images/runtime_core_arch.png)
21 For more information, see: [ARK Runtime Subsystem](https://gitee.com/openharmony/docs/blob/master/e…
32 ├── docs # Language frontend, ARK file format, and runtime design documents.
33 ├── dprof # Data used to collect the profiling data for ARK runtime.
39 ├── libpandabase # Basic ArkCompiler runtime library, including logs, synchronization pr…
47 ├── runtime # ARK runtime command module.
[all …]
/arkcompiler/runtime_core/panda/
Dpanda.cpp16 #include "include/runtime.h"
19 #include "runtime/include/locks.h"
20 #include "runtime/include/method-inl.h"
21 #include "runtime/include/class.h"
66 LOG(ERROR, RUNTIME) << "sigemptyset failed"; in BlockSignals()
77 LOG(ERROR, RUNTIME) << "sigaddset failed"; in BlockSignals()
82 LOG(ERROR, RUNTIME) << "g_PandaThreadSigmask failed"; in BlockSignals()
150 panda::PandArg<bool> options("options", false, "Print compiler and runtime options"); in Main()
200 if (!Runtime::Create(runtime_options)) { in Main()
201 std::cerr << "Error: cannot create runtime" << std::endl; in Main()
[all …]
/arkcompiler/runtime_core/cmake/
DPostPlugins.cmake26 include(runtime/RuntimeEnableRelayoutPostPlugins.cmake)
27 include(runtime/RuntimeLanguageContextPostPlugins.cmake)
28 include(runtime/RuntimeIntrinsicsPostPlugins.cmake)
29 include(runtime/RuntimeEntrypointsPostPlugins.cmake)
30 include(runtime/RuntimeIrtocPostPlugins.cmake)
31 include(runtime/RuntimeOptionsPostPlugins.cmake)
/arkcompiler/runtime_core/disassembler/templates/
Dintrinsics_gen.h.erb19 % Runtime::intrinsics.each do |intrinsic|
39 Runtime *runtime = Runtime::GetCurrent();
40 ClassLinker *class_linker = runtime->GetClassLinker();
42 auto spaces = runtime->GetOptions().GetLoadRuntimes();
46 % Runtime::intrinsics.each do |intrinsic|
52 LOG(ERROR, RUNTIME) << "Cannot find class '" << mutf8_name << "'";
70 …LOG(ERROR, RUNTIME) << "Cannot find method '<%= intrinsic.class_name %>.<%= intrinsic.method_name …
83 % Runtime::intrinsics.uniq { |i| i.impl }.each do |intrinsic|
/arkcompiler/runtime_core/compiler/tests/
Dpanda_runner.h22 #include "include/runtime.h"
80 Runtime::Destroy(); in Run()
89 void Run(Runtime *runtime, std::string_view source, const std::vector<std::string> &args) in Run() argument
96 runtime->GetClassLinker()->AddPandaFile(std::move(pf)); in Run()
104 auto eres = runtime->Execute("_GLOBAL::main", args); in Run()
111 Runtime *CreateRuntime() in CreateRuntime()
113 Runtime::Create(options_); in CreateRuntime()
114 return Runtime::GetCurrent(); in CreateRuntime()
132 auto cls = Runtime::GetCurrent() in GetMethod()
Dprofiling_runner_test.cpp18 #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()
72 Runtime::Destroy(); in TEST_F()
Daot_test.cpp27 #include "runtime/include/file_manager.h"
198 auto runtime = Runtime::GetCurrent(); in TEST_F() local
199 …auto etx = runtime->GetClassLinker()->GetExtension(runtime->GetLanguageContext(runtime->GetRuntime… in TEST_F()
483 auto runtime = Runtime::GetCurrent(); in TEST_F() local
485Runtime::GetGCType(runtime->GetOptions(), plugins::RuntimeTypeToLang(runtime->GetRuntimeType()))); in TEST_F()
503 auto aot_manager = Runtime::GetCurrent()->GetClassLinker()->GetAotManager(); in TEST_F()
534 auto runtime = Runtime::GetCurrent(); in TEST_F() local
535 …auto gc_type = Runtime::GetGCType(runtime->GetOptions(), plugins::RuntimeTypeToLang(runtime->GetRu… in TEST_F()
544 …auto etx = runtime->GetClassLinker()->GetExtension(runtime->GetLanguageContext(runtime->GetRuntime… in TEST_F()
588 auto aot_manager = Runtime::GetCurrent()->GetClassLinker()->GetAotManager(); in TEST_F()
/arkcompiler/runtime_core/compiler/optimizer/templates/intrinsics/
Dcan_encode_builtin.inl.erb59 inline bool CheckRestrictions([[maybe_unused]] RuntimeInterface *runtime, IntrinsicId id, [[maybe_u…
64 return <%= intrinsic.can_encode_func %>(runtime, arch);
73 inline bool EncodesBuiltin(RuntimeInterface *runtime, IntrinsicId id, Arch arch)
78 if (!builtins::CheckRestrictions(runtime, id, arch)) {
93 inline bool EncodesBuiltin(RuntimeInterface *runtime, RuntimeInterface::IntrinsicId id, Arch arch)
95 return EncodesBuiltin(runtime, static_cast<IntrinsicId>(id), arch);
/arkcompiler/runtime_core/scripts/
Drun-check-concurrency-format.sh33 if [[ "$FILE" == *"runtime/tests"* ]]; then
38 if [[ "$FILE" == *"runtime/profilesaver"* ]]; then
43 if [[ "$FILE" == *"runtime/methodtrace/trace"* ]]; then
48 if [[ "$FILE" == *"java/runtime/java_signal_catcher.cpp"* ]]; then
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dglobal_ts_type_ref.h63 * Indicates the position of the iterator object in the runtime table.
64 * Position 0 in the runtime table stores the number of existing types, so start from 1.
76 RUNTIME, enumerator
136 V(Runtime, ModuleTableIdx::RUNTIME) \
/arkcompiler/runtime_core/compiler/tests/amd64/
Dasmjit_test.cpp52 // Runtime designed for JIT code execution. in TEST_F()
67 // Add the generated code to the runtime. in TEST_F()
77 // Runtime designed for JIT code execution. in TEST_F()
110 // Add the generated code to the runtime. in TEST_F()
135 // Add the generated code to the runtime. in TEST_F()
159 // Add the generated code to the runtime. in TEST_F()
/arkcompiler/ets_runtime/ecmascript/mem/
Dmem_common.h51 // NOLINTNEXTLINE(google-runtime-int)
62 // NOLINTNEXTLINE(google-runtime-int)
73 // NOLINTNEXTLINE(google-runtime-int)
/arkcompiler/runtime_core/compiler/tests/x86/
Dasmjit_test.cpp28 // Runtime designed for JIT code execution. in TEST_F()
43 // Add the generated code to the runtime. in TEST_F()
53 // Runtime designed for JIT code execution. in TEST_F()
86 // Add the generated code to the runtime. in TEST_F()

123456789