| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/coroutines/ |
| D | CMakeLists.txt | 27 # MODE "INT" "JIT" "AOT" "LLVMAOT" "JITOSR" 40 set(multiValues OPTIONS IMPL OPTION_SETS_THREADED OPTION_SETS_STACKFUL WORKERS MODE) 67 set(additional_options "--coroutine-js-mode=true") 71 set(additional_options "--coroutine-js-mode=true" "--use-coroutine-pool=true") 82 MODE ${ARG_MODE} 94 MODE "INT" "JIT" "AOT" 103 MODE "INT" "JIT" 111 MODE "INT" "JIT" "AOT" 120 MODE "INT" "JIT" 128 MODE "INT" "JIT" [all …]
|
| /arkcompiler/runtime_core/libpandafile/templates/ |
| D | bytecode_instruction-inl_gen.h.erb | 17 template<const BytecodeInstMode Mode> 18 constexpr bool BytecodeInst<Mode>::HasId(Format format, size_t idx) { 36 template<const BytecodeInstMode Mode> 37 constexpr bool BytecodeInst<Mode>::HasVReg(Format format, size_t idx) { 55 template<const BytecodeInstMode Mode> 56 constexpr bool BytecodeInst<Mode>::HasImm(Format format, size_t idx) { 74 template<const BytecodeInstMode Mode> 75 constexpr size_t BytecodeInst<Mode>::Size(Format format) { // NOLINTNEXTLINE(readability-function-… 88 template <const BytecodeInstMode Mode> 89 template <typename BytecodeInst<Mode>::Format format, size_t idx /* = 0 */> [all …]
|
| /arkcompiler/runtime_core/platforms/unix/libpandabase/ |
| D | file.cpp | 25 static int GetFlags(Mode mode) in GetFlags() argument 27 switch (mode) { in GetFlags() 28 case Mode::READONLY: in GetFlags() 31 case Mode::READWRITE: in GetFlags() 34 case Mode::WRITEONLY: in GetFlags() 37 case Mode::READWRITECREATE: in GetFlags() 47 File Open(std::string_view filename, Mode mode) in Open() argument 52 return File(open(filename.data(), GetFlags(mode), PERM)); in Open()
|
| /arkcompiler/runtime_core/static_core/libpandafile/templates/ |
| D | bytecode_instruction-inl_gen.h.erb | 19 template<const BytecodeInstMode MODE> 20 constexpr bool BytecodeInst<MODE>::HasId(Format format, size_t idx) { 38 template<const BytecodeInstMode MODE> 39 constexpr bool BytecodeInst<MODE>::HasVReg(Format format, size_t idx) { 57 template<const BytecodeInstMode MODE> 58 constexpr bool BytecodeInst<MODE>::HasImm(Format format, size_t idx) { 76 template<const BytecodeInstMode MODE> 77 constexpr size_t BytecodeInst<MODE>::Size(Format format) { // NOLINT(readability-function-size) 91 template<const BytecodeInstMode MODE> 92 constexpr bool BytecodeInst<MODE>::IsVregArgsShort(Format format) [all …]
|
| /arkcompiler/ets_frontend/test/scripts/sdk_test/ |
| D | run_ohos_sdk_test.sh | 22 echo "Usage: $0 [--mode <debug|release>]" 33 --mode) 60 local mode=$1 66 echo "\nconsole.log('$mode')" >> "$file" 70 printf "%-20s %-10s\n" "cases" "result ($mode)" 76 local mode=$1 77 if [ "$mode" == "debug" ]; then 79 elif [ "$mode" == "release" ]; then 86 for mode in "${modes[@]}"; do 87 compile_command=$(get_compile_command "$mode") [all …]
|
| /arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/ |
| D | file.cpp | 26 static int GetFlags(Mode mode) in GetFlags() argument 28 switch (mode) { in GetFlags() 29 case Mode::READONLY: in GetFlags() 32 case Mode::READWRITE: in GetFlags() 35 case Mode::WRITEONLY: in GetFlags() 38 case Mode::READWRITECREATE: in GetFlags() 48 File Open(std::string_view filename, Mode mode) in Open() argument 53 return File(open(filename.data(), GetFlags(mode), perm)); in Open()
|
| /arkcompiler/ets_frontend/ets2panda/linter/src/ |
| D | TestRunner.ts | 44 enum Mode { enum 50 RESULT_EXT[Mode.DEFAULT] = '.json'; 51 RESULT_EXT[Mode.AUTOFIX] = '.autofix.json'; 61 * Set the IDE mode manually to enable storing information 85 // Run each test in Default and Autofix mode: 105 if (runTest(testDir, tsName, Mode.DEFAULT)) { 111 if (runTest(testDir, tsName, Mode.AUTOFIX)) { 124 function parseArgs(testDir: string, testFile: string, mode: Mode): CommandLineOptions { 137 if (mode === Mode.AUTOFIX) { 144 function compareExpectedAndActual(testDir: string, testFile: string, mode: Mode, resultNodes: TestN… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/gc/ |
| D | CMakeLists.txt | 25 set(singleValues FILE MODE) 43 message(FATAL_ERROR "Mode ${ARG_MODE} is not defined. Available modes: INT/AOT/JIT") 97 add_ets_gc_test(FILE pin_object.sts OPTIONS "--gc-type=g1-gc" "--gc-trigger-type=debug-never" MODE … 98 add_ets_gc_test(FILE get_object_address_test.sts OPTIONS "--gc-trigger-type=debug-never" MODE "INT") 99 …test(FILE space_type_test.sts OPTIONS "--gc-type=g1-gc" "--gc-trigger-type=debug-never" MODE "INT") 100 …c_test(FILE weak_ref_test.sts OPTIONS "--gc-type=g1-gc" "--gc-trigger-type=debug-never" MODE "INT") 101 …(FILE concurrent_start_gc.sts OPTIONS "--gc-type=g1-gc" "--gc-trigger-type=debug-never" MODE "INT") 102 …_test.sts OPTIONS "--gc-type=g1-gc" "--run-gc-in-place" "--gc-trigger-type=debug-never" MODE "INT") 103 …_test.sts OPTIONS "--gc-type=g1-gc" "--run-gc-in-place" "--gc-trigger-type=debug-never" MODE "INT") 104 …ONS "--gc-type=g1-gc" "--gc-trigger-type=debug-never" "--gc-use-nth-alloc-trigger=true" MODE "INT") [all …]
|
| /arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
| D | file.cpp | 30 static int GetFlags(Mode mode) in GetFlags() argument 32 switch (mode) { in GetFlags() 33 case Mode::READONLY: in GetFlags() 36 case Mode::READWRITE: in GetFlags() 39 case Mode::WRITEONLY: in GetFlags() 42 case Mode::READWRITECREATE: in GetFlags() 52 File Open(std::string_view filename, Mode mode) in Open() argument 57 _sopen_s(&fh, filename.data(), GetFlags(mode), _SH_DENYNO, PERM); in Open()
|
| /arkcompiler/runtime_core/platforms/windows/libpandabase/ |
| D | file.cpp | 30 static int GetFlags(Mode mode) in GetFlags() argument 32 switch (mode) { in GetFlags() 33 case Mode::READONLY: in GetFlags() 36 case Mode::READWRITE: in GetFlags() 39 case Mode::WRITEONLY: in GetFlags() 42 case Mode::READWRITECREATE: in GetFlags() 52 File Open(std::string_view filename, Mode mode) in Open() argument 57 _sopen_s(&fh, filename.data(), GetFlags(mode), _SH_DENYNO, PERM); in Open()
|
| /arkcompiler/runtime_core/static_core/libpandabase/taskmanager/ |
| D | task_queue.h | 113 …* @brief Pops task from task queue with specified execution mode. Operation is thread-safe. The me… 114 …* a new task if queue with specified execution mode is empty and method WaitForQueueEmptyAndFinish… 117 * @param mode - execution mode of task that we want to pop. 119 [[nodiscard]] std::optional<Task> PopTask(TaskExecutionMode mode) override in PopTask() argument 121 if (UNLIKELY(!HasTaskWithExecutionMode(mode))) { in PopTask() 125 if (UNLIKELY(mode != TaskExecutionMode::FOREGROUND)) { in PopTask() 157 * @param mode - Execution mode of task you wast to pop 160 …oHelperThread(const AddTaskToHelperFunc &addTaskFunc, size_t size, TaskExecutionMode mode) override in PopTasksToHelperThread() argument 162 if (!HasTaskWithExecutionMode(mode)) { in PopTasksToHelperThread() 166 if (mode != TaskExecutionMode::FOREGROUND) { in PopTasksToHelperThread() [all …]
|
| D | schedulable_task_queue_interface.h | 62 …* @brief Pops task from task queue with specified execution mode. Operation is thread-safe. The me… 63 …* new task if queue with specified execution mode is empty and method WaitForQueueEmptyAndFinish h… 65 * @param mode - execution mode of task that we want to pop. 67 [[nodiscard]] virtual std::optional<Task> PopTask(TaskExecutionMode mode) = 0; 84 * @param mode - Execution mode of task you wast to pop 88 TaskExecutionMode mode) = 0;
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | on_heap.h | 30 static bool IsNone(OnHeapMode mode) in IsNone() argument 32 return !(mode == OnHeapMode::ON_HEAP || mode == OnHeapMode::NOT_ON_HEAP); in IsNone() 43 static bool ToBoolean(OnHeapMode mode) in ToBoolean() argument 45 ASSERT(!IsNone(mode)); in ToBoolean() 46 return mode == OnHeapMode::ON_HEAP; in ToBoolean()
|
| /arkcompiler/runtime_core/static_core/libpandafile/ |
| D | bytecode_instruction.h | 219 template <const BytecodeInstMode MODE = BytecodeInstMode::FAST> 222 class BytecodeInst : public BytecodeInstBase<MODE> { 223 using Base = BytecodeInstBase<MODE>; 232 …template <const BytecodeInstMode M = MODE, typename = std::enable_if_t<M == BytecodeInstMode::FAST… 237 …template <const BytecodeInstMode M = MODE, typename = std::enable_if_t<M == BytecodeInstMode::SAFE… 242 template <Format FORMAT, typename EnumT = BytecodeInst<MODE>::Opcode, size_t IDX = 0> 254 template <typename EnumT = BytecodeInst<MODE>::Opcode> 259 template <typename EnumT = BytecodeInst<MODE>::Opcode> 263 template <typename EnumT = BytecodeInst<MODE>::Opcode> 278 template <typename EnumT = BytecodeInst<MODE>::Opcode> [all …]
|
| D | bytecode_instruction-inl.h | 24 template <const BytecodeInstMode MODE> 26 inline auto BytecodeInst<MODE>::ReadHelper(size_t byteoffset, size_t bytecount, size_t offset, size… in ReadHelper() 48 template <const BytecodeInstMode MODE> 50 inline auto BytecodeInst<MODE>::Read() const in Read() 63 template <const BytecodeInstMode MODE> 65 inline auto BytecodeInst<MODE>::Read64(size_t offset, size_t width) const in Read64() 82 template <const BytecodeInstMode MODE> 84 inline size_t BytecodeInst<MODE>::GetSize() const in GetSize()
|
| /arkcompiler/ets_runtime/ecmascript/pgo_profiler/prof_dump/ |
| D | main.cpp | 31 enum class Mode : uint8_t { enum in panda::ecmascript::pgo::Option 53 Mode GetMode() const in GetMode() 79 mode_ = Mode::TO_TEXT; in ParseCommand() 82 mode_ = Mode::TO_BINARY; in ParseCommand() 91 mode_ = Mode::MERGE; in ParseCommand() 96 mode_ = Mode::VERSION_QUERY; in ParseCommand() 134 Mode mode_ { Mode::TO_TEXT }; 148 case Option::Mode::VERSION_QUERY: in Main() 151 case Option::Mode::TO_TEXT: { in Main() 160 case Option::Mode::TO_BINARY: { in Main() [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | bytecode_instruction-inl.h | 24 template <const BytecodeInstMode Mode> 26 inline auto BytecodeInst<Mode>::ReadHelper(size_t byteoffset, size_t bytecount, size_t offset, size… in ReadHelper() 50 template <const BytecodeInstMode Mode> 52 inline auto BytecodeInst<Mode>::Read() const in Read() 65 template <const BytecodeInstMode Mode> 67 inline auto BytecodeInst<Mode>::Read64(size_t offset, size_t width) const in Read64() 84 template <const BytecodeInstMode Mode> 85 inline size_t BytecodeInst<Mode>::GetSize() const in GetSize()
|
| /arkcompiler/ets_frontend/ets2panda/linter/scripts/ |
| D | update-test-results.mjs | 24 class Mode { class 30 RESULT_EXT[Mode.DEFAULT] = '.json'; 31 RESULT_EXT[Mode.AUTOFIX] = '.autofix.json'; 72 function updateTest(testDir, testFile, mode) { argument 73 let resultExt = RESULT_EXT[mode]; 78 if (mode === Mode.AUTOFIX && fs.existsSync(path.join(testDir, testFile + AUTOFIX_SKIP_EXT))) { 118 updateTest(testDir, testFile, Mode.DEFAULT); 119 updateTest(testDir, testFile, Mode.AUTOFIX);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/templates/stdlib/ |
| D | DataView.sts.j2 | 80 {%- for mode in ["Int", "Uint", "Float"] %} 81 {%- if mode != "Float" or bit >= 32 %} 82 // === {{mode}}{{bit}} === 87 {%- if mode == "Float" %} 90 {%- elif mode == "Int" %} 92 {%- elif mode == "Uint" %} 95 … {%- set methodName = ('Big' if bit == 64 and mode != 'Float' else '') + mode + '{}'.format(bit) %} 195 {%- set resType = type2nameBits[bit] if mode == "Float" else type2name[bit] %} 203 {%- if bit == 32 and mode == "Float" %} 205 {%- elif bit == 64 and mode == "Float" %} [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/ |
| D | class_initializer.cpp | 34 template <MTModeT MODE> 44 /// The "TASK" multithreading mode implies that M coroutines are running on N worker threads 86 template <MTModeT MODE> 200 template <MTModeT MODE> 201 bool ClassInitializer<MODE>::Initialize(ClassLinker *classLinker, ManagedThread *thread, Class *kla… in Initialize() 208 … [[maybe_unused]] typename ClassInitGuard<MODE>::Guard guard(thread->GetVM()->GetThreadManager()); in Initialize() 210 using ObjectLockT = typename ObjectLockConfig<MODE>::LockT; in Initialize() 231 if constexpr (MODE == MT_MODE_TASK) { in Initialize() 241 if constexpr ((MODE == MT_MODE_MULTI) || (MODE == MT_MODE_TASK)) { in Initialize() 248 if constexpr (MODE == MT_MODE_TASK) { in Initialize() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/docs/ |
| D | paoc.md | 4 There are four [modes](#--paoc-mode) of `paoc`: 5 1. `AOT-mode` (default) - compile the files using Ark AOT Compiler and produce an executable; 6 1. `LLVM-mode` - compile the files using LLVM AOT Compiler and produce an executable; 7 …1. `JIT-mode` - only run compiler (IR builder, optimizations) without generating an executable. Th… 8 …1. `OSR-mode` - similiar to `JIT-mode`. Takes into account differences of [OSR](../../docs/on-stac… 26 #### `--paoc-mode` 28 - A string that specifies paoc's mode.
|
| /arkcompiler/ets_runtime/script/ |
| D | gen_expect_output.sh | 15 MODE=$1 16 if [ $# -ne 3 ] || ([ $MODE != "pgo" ] && [ $MODE != "aot" ]); then 26 grep -Po "//($MODE)?: \K.*$" $INPUT >> $OUTPUT
|
| /arkcompiler/ets_runtime/ecmascript/platform/unix/ohos/ |
| D | directory.cpp | 31 mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; in SetDirModeAsDefault() local 32 return OHOS::ChangeModeDirectory(path, mode); in SetDirModeAsDefault() 37 mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; in SetFileModeAsDefault() local 38 return OHOS::ChangeModeFile(filename, mode); in SetFileModeAsDefault()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/containers/ |
| D | CMakeLists.txt | 27 # MODE "INT" "JIT" "AOT" "LLVMAOT" "JITOSR" 34 set(multiValues OPTIONS IMPL OPTION_SETS_THREADED OPTION_SETS_STACKFUL WORKERS MODE) 61 set(additional_options "--coroutine-js-mode=true") 65 set(additional_options "--coroutine-js-mode=true" "--use-coroutine-pool=true") 74 MODE ${ARG_MODE} 88 MODE "INT" "JIT" "AOT"
|
| /arkcompiler/runtime_core/static_core/compiler/cmake/ |
| D | benchmark_coverage.cmake | 34 …y-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} --target-arch=arm64 --paoc-mode=aot 2>/dev/null 39 …y-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} --target-arch=arm64 --paoc-mode=jit 2>/dev/null 44 …y-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} --target-arch=arm64 --paoc-mode=osr 2>/dev/null 49 …-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} --target-arch=x86_64 --paoc-mode=jit 2>/dev/null 54 …-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} --target-arch=x86_64 --paoc-mode=aot 2>/dev/null 60 …age.sh --binary-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} --target-arch=arm --paoc-mode=jit
|