Home
last modified time | relevance | path

Searched refs:bytecode (Results 1 – 25 of 68) sorted by relevance

123

/arkcompiler/runtime_core/libpandafile/tests/
Dbytecode_instruction_tests.cpp31 const uint8_t bytecode[] = {0x00, 0xa1, 0xff}; in TEST() local
32 BytecodeInstruction inst(bytecode); in TEST()
39 const uint8_t bytecode[] = {0x00, 0x2f, 0xff}; in TEST() local
40 BytecodeInstruction inst(bytecode); in TEST()
48 const uint8_t bytecode[] = {0x00, 0xf2, 0xff}; in TEST() local
49 BytecodeInstruction inst(bytecode); in TEST()
55 const uint8_t bytecode[] = {0x00, 0x21, 0xff}; in TEST() local
56 BytecodeInstruction inst(bytecode); in TEST()
63 const uint8_t bytecode[] = {0x00, 0x12, 0xf2, 0xff}; in TEST() local
64 BytecodeInstruction inst(bytecode); in TEST()
[all …]
/arkcompiler/runtime_core/compiler/docs/
Dir_builder.md5 The IR builder pass constructs the Intermediate Representation (IR) from the Panda bytecode.
16 Due to specifics of the Panda bytecode, IR builder has responsibility to handle various situation t…
43 1. Iterate over all bytecode instructions and make basic block for all target instructions, i.e. in…
53 4. Get next bytecode instruction from the current basic block.
54 5. Build the Panda IR instruction from the bytecode instruction:
78 def Run(graph, bytecode):
79 BuildBasicBlocks(graph, bytecode)
83 for bc_inst in bytecode.instructions[bb.first_pc..bb.last_pc]:
90 def BuildBasicBlocks(graph, bytecode):
93 blocks.resize(bytecode.instructions.size())
[all …]
Dtry_catch_blocks_ir.md125 …ed to the `Catch-begin` basic block. Each `CatchPhi` corresponds to the bytecode's virtual registe…
148 - vector of try-begin blocks in order they are declared in the bytecode;
151 ## Try-catch blocks processing in the RegAlloc for bytecode-optimizer
/arkcompiler/runtime_core/
DREADME.md26 …ler # Assembler that converts an ARK bytecode file in text format (*.pa) into a byte…
27 …izer # Bytecode optimizer, further optimize the ARK bytecode to generate optimized bytecode f…
29 … # Compiler including IR(intermediate representation) and passes for bytecode optimization. See…
31 … # Disassembler that converts an ARK bytecode file in binary format (*.abc) into an ARK
38 ├── libark_defect_scan_aux # Vulnerability defect scanning tool for ARK bytecode file in binary fo…
40 ├── libpandafile # Source code repository of ARK bytecode files (*.abc) in binary format.
42 ├── panda # CLI tool used to execute ARK bytecode files in binary format(*.abc).
75 The ark\_asm assembler converts the text ARK bytecode file into a bytecode file in binary format.
91 | --size-stat | Collect statistics and print ARK bytecode information after conversion. …
/arkcompiler/ets_runtime/ecmascript/tests/
Dframe_test.cpp56 uint8_t bytecode[] = { in HWTEST_F_L0() local
72 frame[6] = reinterpret_cast<JSTaggedType>(&bytecode[2]); // 6: pc in HWTEST_F_L0()
75 uintptr_t x20 = reinterpret_cast<uintptr_t>(&bytecode[5]); // 5: HandleThrow offset in HWTEST_F_L0()
/arkcompiler/runtime_core/docs/
Druntime-debug-api.md9 1. Runtime doesn't patch apps' bytecode on the fly. Instead of it notification about changing bytec…
15 1. As some low-end targets can store bytecode in ROM, runtime cannot patch app's bytecode on the fl…
27 * `BytecodePcChanged` - occurs when bytecode pc is changed during interpretation (only if runtime w…
Drationale-for-bytecode.md5 This document sets up some context about bytecode design principles and provides rationales for
6 bytecode design in Panda Runtime.
10 Before discussing bytecode per se, let's take a look at an over-simplified picture of a real
26 Here comes the bytecode. Simply said, it is an attempt to build an abstract CPU on top of real
29 commands (or bytecode) and execute them. Of course, this implies additional performance overhead
35 Although bytecode represents some abstraction, it mirrors all the mentioned concepts from the
41 building bytecode. Following sections explain advantages and disadvantages of various approaches.
78 each bytecode instruction, execute it and move to the next one, running more instruction results in
79 more _dispatch overhead_. Which means that the stack-based bytecode is slower by nature.
81 According to our experiment, uncompressed register-based bytecode can be reduced by ~26%
[all …]
D2022-08-18-isa-changelog.md11 The bytecode size and runtime performance have been suffering for a long time as the all the
12 ecmascript specific bytecode are prefixed and their opcode were encoded with two bytes.
14 2. We remove the prefix of ecmascript specific opcodes, such that most of the bytecode opcode can b…
18 …t of some opcodes (about immediate number and accumulator), so that the bytecode can be more compa…
45 3. In bytecode, we still use 16-bit literalarrayId rather than offset.
Ddesign-of-interpreter.md6 bytecode instruction set, executable file format, etc. Each subsection below consists of following
26 1. Program execution via bytecode interpretation should be enabled on all targets.
49 For the rationale on the bytecode type, please see [here](rationale-for-bytecode.md).
51 Rationale on the machine-readable instruction set architecture is following. Since bytecode
57 * In Panda Assembler's back-end, we automatically generate emission of bytecode in the binary form.
58 * Converter from bytecode to the compiler's intermediate representation is partially implemented
133 1. The inevitable extra cost that interpreters pay for decoding and dispatching bytecode
146 1. According to our experiments, a stackless interpreter for a stack-based bytecode (which is by
148 bytecode (which is by nature faster).
Dglossary.md12 compilation" are used to indicate that the source code or bytecode is compiled before actual
14 native machine code to reduce runtime overhead from reading and compiling bytecode.
17 * **Compiler** is a tool that performs source code or bytecode translation, optimization and
25 compilation" are used to indicate that the source code or bytecode is compiled during program
27 native machine code to reduce overhead from interpreting bytecode.
Daot.md47 therefore compiled Ark bytecode file must be bit by bit equal to the file loaded in runtime.
172 …_dump` folder if option `--compiler-dump-folder` is not set. Also option `--compiler-dump-bytecode`
184 `ark_disasm <input panda-bytecode file> <output file>`
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/
Djs_stackinfo.cpp402 size_t bytecode = fullBytecode & 0xff; // 0xff: last byte in CopyBytecodeInfoToBuffer() local
403 const char *bytecodeName = MessageString::GetMessageString(start + bytecode).c_str(); in CopyBytecodeInfoToBuffer()
407 if (start + bytecode == static_cast<size_t>(GET_MESSAGE_STRING_ID(HandleDeprecated)) || in CopyBytecodeInfoToBuffer()
408 start + bytecode == static_cast<size_t>(GET_MESSAGE_STRING_ID(HandleWide)) || in CopyBytecodeInfoToBuffer()
409 start + bytecode == static_cast<size_t>(GET_MESSAGE_STRING_ID(HandleThrow)) || in CopyBytecodeInfoToBuffer()
410 start + bytecode == static_cast<size_t>(GET_MESSAGE_STRING_ID(HandleCallRuntime))) { in CopyBytecodeInfoToBuffer()
412 if (start + bytecode == static_cast<size_t>(GET_MESSAGE_STRING_ID(HandleDeprecated))) { in CopyBytecodeInfoToBuffer()
414 } else if (start + bytecode == static_cast<size_t>(GET_MESSAGE_STRING_ID(HandleWide))) { in CopyBytecodeInfoToBuffer()
417 } else if (start + bytecode == static_cast<size_t>(GET_MESSAGE_STRING_ID(HandleThrow))) { in CopyBytecodeInfoToBuffer()
419 … } else if (start + bytecode == static_cast<size_t>(GET_MESSAGE_STRING_ID(HandleCallRuntime))) { in CopyBytecodeInfoToBuffer()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dgate.cpp715 void Gate::Print(std::string bytecode, bool inListPreview, size_t highlightIdx) const in Print() argument
720 log += ((bytecode.compare("") == 0) ? "" : "\"bytecode\":\"") + bytecode; in Print()
721 log += ((bytecode.compare("") == 0) ? "" : "\", "); in Print()
774 void Gate::ShortPrint(std::string bytecode, bool inListPreview, size_t highlightIdx) const in ShortPrint() argument
779 log += ((bytecode.compare("") == 0) ? "" : "bytecode=") + bytecode; in ShortPrint()
780 log += ((bytecode.compare("") == 0) ? "" : ", "); in ShortPrint()
849 void Gate::PrintByteCode(std::string bytecode) const in PrintByteCode()
851 Print(bytecode); in PrintByteCode()
Dgate.h180 … void Print(std::string bytecode = "", bool inListPreview = false, size_t highlightIdx = -1) const;
181 …void ShortPrint(std::string bytecode = "", bool inListPreview = false, size_t highlightIdx = -1) c…
184 void PrintByteCode(std::string bytecode) const;
/arkcompiler/runtime_core/assembler/
Dassembly-function.h183 …BuildLineNumberProgram(panda_file::DebugInfoItem *debug_item, const std::vector<uint8_t> &bytecode,
187 Function::TryCatchInfo MakeOrderAndOffsets(const std::vector<uint8_t> &bytecode) const;
191 const std::vector<uint8_t> &bytecode) const;
/arkcompiler/ets_frontend/ts2panda/
DREADME.md2 ts2panda aims to translate JavaScript source files into ARK bytecode which could be executed by the…
/arkcompiler/runtime_core/libpandafile/templates/
Dfile_format_version.h.erb36 ss << "Minimum supported bytecode version " << GetVersion(minVersion) << '\n';
/arkcompiler/runtime_core/tests/
DCMakeLists.txt772 …RRENT_SOURCE_DIR}/cts-assembly/far-jump-01.pa" COMPILER_OPTIONS --compiler-max-bytecode-size=40000)
773 …RRENT_SOURCE_DIR}/cts-assembly/far-jump-02.pa" COMPILER_OPTIONS --compiler-max-bytecode-size=40000)
774 …RRENT_SOURCE_DIR}/cts-assembly/far-jump-03.pa" COMPILER_OPTIONS --compiler-max-bytecode-size=40000)
775 …RRENT_SOURCE_DIR}/cts-assembly/far-jump-04.pa" COMPILER_OPTIONS --compiler-max-bytecode-size=40000)
776 …RRENT_SOURCE_DIR}/cts-assembly/far-jump-05.pa" COMPILER_OPTIONS --compiler-max-bytecode-size=40000)
777 …RRENT_SOURCE_DIR}/cts-assembly/far-jump-06.pa" COMPILER_OPTIONS --compiler-max-bytecode-size=40000)
778 …RRENT_SOURCE_DIR}/cts-assembly/far-jump-07.pa" COMPILER_OPTIONS --compiler-max-bytecode-size=40000)
779 …RRENT_SOURCE_DIR}/cts-assembly/far-jump-08.pa" COMPILER_OPTIONS --compiler-max-bytecode-size=40000)
780 …RRENT_SOURCE_DIR}/cts-assembly/far-jump-09.pa" COMPILER_OPTIONS --compiler-max-bytecode-size=40000)
781 …RRENT_SOURCE_DIR}/cts-assembly/far-jump-10.pa" COMPILER_OPTIONS --compiler-max-bytecode-size=40000)
[all …]
/arkcompiler/runtime_core/libpandafile/templates/tests/
Dbytecode_emitter_tests_gen.h.erb179 std::vector<uint8_t> bytecode;
189 EmitMock<<%= format %>>(std::back_inserter(bytecode), <%= jmp_args.join(', ') %>);
193 EmitMock<<%= format %>>(std::back_inserter(bytecode), <%= jmp_args.join(', ') %>);
198 …EmitMock<<%= format %>>(std::back_inserter(bytecode), <%= opcode %>, <%= method_args.join(', ') %>…
/arkcompiler/ets_runtime/tools/circuit_viewer/examples/
Dlog_loop.txt275 [compiler] {"id":16, "op":"JS_BYTECODE", "bytecode":"LESS_IMM8_V8", "MType":"I64, bitfield=0, type=…
276 [compiler] {"id":17, "op":"JS_BYTECODE", "bytecode":"ISFALSE", "MType":"I64, bitfield=0, type=ANY_T…
277 [compiler] {"id":18, "op":"JS_BYTECODE", "bytecode":"JNEZ_IMM8", "MType":"NOVALUE, bitfield=0, type…
286 [compiler] {"id":27, "op":"JS_BYTECODE", "bytecode":"TRYLDGLOBALBYNAME_IMM8_ID16", "MType":"I64, bi…
287 [compiler] {"id":28, "op":"JS_BYTECODE", "bytecode":"CALLARG1_IMM8_V8", "MType":"I64, bitfield=0, t…
288 [compiler] {"id":29, "op":"JS_BYTECODE", "bytecode":"INC_IMM8", "MType":"I64, bitfield=0, type=ANY_…
289 [compiler] {"id":30, "op":"JS_BYTECODE", "bytecode":"TONUMERIC_IMM8", "MType":"I64, bitfield=0, typ…
333 [compiler] {"id":16, "op":"JS_BYTECODE", "bytecode":"LESS_IMM8_V8", "MType":"I64, bitfield=0, type=…
334 [compiler] {"id":17, "op":"JS_BYTECODE", "bytecode":"ISFALSE", "MType":"I64, bitfield=0, type=ANY_T…
335 [compiler] {"id":18, "op":"JS_BYTECODE", "bytecode":"JNEZ_IMM8", "MType":"NOVALUE, bitfield=0, type…
[all …]
/arkcompiler/ets_runtime/docs/
Doverview.md16 ArkCompiler JS Runtime runs ArkCompiler bytecode files to implement JS semantic logic.
45 …iler JS Runtime statically pre-compiles JS/TS programs into ArkCompiler bytecode (with static type…
47 …he type information to statically generate inline caching to accelerate bytecode execution. The TS…
Dusing-the-toolchain.md7 Front-end tools, converting JS source code into ARK bytecode, can be built by specifying the `--bui…
62 …16"><a name="p1024452794916"></a><a name="p1024452794916"></a>Outputs a text ARK bytecode file.</p>
128 … name="p14354832134715"></a><a name="p14354832134715"></a>Outputs the current bytecode version.</p>
138 …="p17469123534711"></a><a name="p17469123534711"></a>Outputs the lowest bytecode version supported…
150 The ark\_asm assembler converts the text ARK bytecode file into a bytecode file in binary format.
187 …></a><a name="p1715312588115"></a>Collects statistics on and prints ARK bytecode information after…
/arkcompiler/runtime_core/bytecode_optimizer/tests/benchmark/
DREADME.md4 of the bytecode.
12 usage: Run bytecode benchmarks [-h] [--testdir TESTDIR] [--bindir BINDIR]
/arkcompiler/runtime_core/bytecode_optimizer/cmake/
Dcoverage.cmake21 option(ENABLE_BYTECODE_OPTIMIZER_COVERAGE "Enable coverage calculation for the bytecode optimizer" …
/arkcompiler/runtime_core/tests/verifier-tests/
Dbug_2088.pa34 …n error when the field resolves to a field with size or type that is not corresponding to bytecode

123