Home
last modified time | relevance | path

Searched refs:mode (Results 1 - 25 of 176) sorted by relevance

12345678

/arkcompiler/ets_frontend/test/scripts/sdk_test/
H A Drun_ohos_sdk_test.sh22 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/ets_runtime/ecmascript/
H A Don_heap.h30 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/libpandabase/taskmanager/
H A Dtask_queue.h113 * @brief Pops task from task queue with specified execution mode. Operation is thread-safe. The method will wait
114 * a new task if queue with specified execution mode is empty and method WaitForQueueEmptyAndFinish has not been
117 * @param mode - execution mode of task that we want to pop.
119 [[nodiscard]] std::optional<Task> PopTask(TaskExecutionMode mode) override
121 if (UNLIKELY(!HasTaskWithExecutionMode(mode))) {
125 if (UNLIKELY(mode != TaskExecutionMode::FOREGROUND)) {
157 * @param mode - Execution mode of task you wast to pop
160 size_t PopTasksToHelperThread(const AddTaskToHelperFunc &addTaskFunc, size_t size, TaskExecutionMode mode) overrid
[all...]
/arkcompiler/ets_runtime/ecmascript/platform/unix/ohos/
H A Ddirectory.cpp31 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/platforms/unix/libpandabase/
H A Dfile.cpp25 static int GetFlags(Mode mode) in GetFlags() argument
27 switch (mode) { 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/platforms/unix/libpandabase/
H A Dfile.cpp26 static int GetFlags(Mode mode) in GetFlags() argument
28 switch (mode) { 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/runtime_core/static_core/verification/
H A Dverification_options.h33 VerificationMode mode = VerificationMode::DISABLED; member
79 return mode != VerificationMode::DISABLED; in IsEnabled()
84 return mode == VerificationMode::AHEAD_OF_TIME || mode == VerificationMode::DEBUG; in IsOnlyVerify()
H A Dpublic.cpp133 static std::optional<Status> CheckBeforeVerification(Service *service, ark::Method *method, VerificationMode mode) in CheckBeforeVerification() argument
152 if (!IsEnabled(mode)) { in CheckBeforeVerification()
160 service->debugCtx.AddMethod(*method, mode == VerificationMode::DEBUG); in CheckBeforeVerification()
181 Status Verify(Service *service, ark::Method *method, VerificationMode mode) in Verify() argument
186 auto status = CheckBeforeVerification(service, method, mode); in Verify()
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/
H A Dtarget.cpp140 [[maybe_unused]] auto mode = CallConvMode::Panda(isPandaAbi) | CallConvMode::Osr(isOsr) | in Create() local
149 reinterpret_cast<aarch32::Aarch32Assembly *>(enc), descr, mode); in Create()
151 return arenaAllocator->New<aarch32::Aarch32CallingConvention>(arenaAllocator, enc, descr, mode); in Create()
160 reinterpret_cast<aarch64::Aarch64Assembly *>(enc), descr, mode); in Create()
162 return arenaAllocator->New<aarch64::Aarch64CallingConvention>(arenaAllocator, enc, descr, mode); in Create()
170 descr, mode); in Create()
172 return arenaAllocator->New<amd64::Amd64CallingConvention>(arenaAllocator, enc, descr, mode); in Create()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dassembler_module.h93 static bool IsCallNew(JSCallMode mode);
94 static int GetArgcFromJSCallMode(JSCallMode mode);
95 static bool JSModeHaveThisArg(JSCallMode mode);
96 static bool JSModeHaveNewTargetArg(JSCallMode mode);
97 static bool IsJumpToCallCommonEntry(JSCallMode mode);
H A Dassembler_module.cpp87 int AssemblerModule::GetArgcFromJSCallMode(JSCallMode mode) in GetArgcFromJSCallMode() argument
89 switch (mode) { in GetArgcFromJSCallMode()
130 bool AssemblerModule::IsCallNew(JSCallMode mode) in IsCallNew() argument
132 switch (mode) { in IsCallNew()
169 bool AssemblerModule::JSModeHaveThisArg(JSCallMode mode) in JSModeHaveThisArg() argument
171 switch (mode) { in JSModeHaveThisArg()
207 bool AssemblerModule::JSModeHaveNewTargetArg(JSCallMode mode) in JSModeHaveNewTargetArg() argument
209 switch (mode) { in JSModeHaveNewTargetArg()
245 bool AssemblerModule::IsJumpToCallCommonEntry(JSCallMode mode) in IsJumpToCallCommonEntry() argument
247 switch (mode) { in IsJumpToCallCommonEntry()
[all...]
/arkcompiler/runtime_core/static_core/runtime/include/
H A Druntime_options.h23 /// @brief Verification mode
31 static inline bool IsEnabled(VerificationMode mode) in IsEnabled() argument
33 return mode != VerificationMode::DISABLED; in IsEnabled()
36 static inline VerificationMode VerificationModeFromString(const std::string &mode) in VerificationModeFromString() argument
38 if (mode == "on-the-fly") { in VerificationModeFromString()
41 if (mode == "ahead-of-time") { in VerificationModeFromString()
44 if (mode == "debug") { in VerificationModeFromString()
/arkcompiler/runtime_core/platforms/windows/libpandabase/
H A Dfile.cpp30 static int GetFlags(Mode mode) in GetFlags() argument
32 switch (mode) { 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/platforms/windows/libpandabase/
H A Dfile.cpp30 static int GetFlags(Mode mode) in GetFlags() argument
32 switch (mode) { 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/ets_frontend/test/scripts/utils/flash_image/
H A Dburn_image.py67 mode = dlg.window(control_type="Tab").window_text()
68 if mode == 'Found One MASKROM Device':
88 mode = dlg.window(control_type="Tab").window_text()
89 if mode == 'Found One LOADER Device':
/arkcompiler/runtime_core/libpandafile/
H A Dfile_writer.cpp24 constexpr char const *mode = "wb"; in FileWriter() local
26 constexpr char const *mode = "wbe"; in FileWriter()
29 file_ = fopen(file_name.c_str(), mode); in FileWriter()
/arkcompiler/ets_runtime/ecmascript/compiler/type_inference/
H A Dpgo_type_infer.cpp193 OnHeapMode mode = modes[0]; in TrySetOnHeapMode() local
195 mode = OnHeap::Merge(mode, modes[i]); in TrySetOnHeapMode()
196 if (OnHeap::IsNone(mode)) { in TrySetOnHeapMode()
200 acc_.TrySetOnHeapMode(gate, mode); in TrySetOnHeapMode()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/
H A Dpgo_encoder_mock.h27 PGOProfilerEncoderMock(const std::string &outDir, uint32_t hotnessThreshold, ApGenMode mode) in PGOProfilerEncoderMock() argument
28 : PGOProfilerEncoder(outDir, hotnessThreshold, mode) in PGOProfilerEncoderMock()
/arkcompiler/ets_runtime/ecmascript/mem/
H A Dgc_bitset.h94 template <AccessType mode = AccessType::NON_ATOMIC>
104 template <AccessType mode = AccessType::NON_ATOMIC>
115 ClearWord<mode>(startIndex, ~(startIndexMask - 1)); in ClearBitRange()
116 ClearWord<mode>(endIndex, endIndexMask | (endIndexMask - 1)); in ClearBitRange()
121 ClearWord<mode>(endIndex, endIndexMask | (endIndexMask - startIndexMask)); in ClearBitRange()
130 template <typename Visitor, AccessType mode = AccessType::NON_ATOMIC>
142 ClearWord<mode>(i, Mask(index)); in IterateMarkedBits()
204 template <AccessType mode = AccessType::NON_ATOMIC>
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
H A Dpgo_profiler_manager.h169 void SetApGenMode(ApGenMode mode) in SetApGenMode() argument
172 encoder_->SetApGenMode(mode); in SetApGenMode()
220 ApGenMode mode) in TextToBinary()
222 PGOProfilerEncoder encoder(outPath, hotnessThreshold, mode); in TextToBinary()
223 PGOProfilerEncoder decoder(outPath, hotnessThreshold, mode); in TextToBinary()
254 uint32_t hotnessThreshold, ApGenMode mode);
219 TextToBinary(const std::string &inPath, const std::string &outPath, uint32_t hotnessThreshold, ApGenMode mode) TextToBinary() argument
H A Dpgo_profiler_encoder.h32 PGOProfilerEncoder(const std::string &outDir, uint32_t hotnessThreshold, ApGenMode mode) in PGOProfilerEncoder() argument
33 : outDir_(outDir), hotnessThreshold_(hotnessThreshold), mode_(mode) in PGOProfilerEncoder()
82 void SetApGenMode(ApGenMode mode) in SetApGenMode() argument
84 mode_ = mode; in SetApGenMode()
/arkcompiler/runtime_core/static_core/tests/fuzztest/openuncompressedarchive_fuzzer/
H A Dopenuncompressedarchive_fuzzer.cpp42 constexpr char const *mode = "rb"; in OpenUncompressedArchiveFuzzTest() local
44 constexpr char const *mode = "rbe"; in OpenUncompressedArchiveFuzzTest() local
46 FILE *fp = fopen(zip_filename, mode); in OpenUncompressedArchiveFuzzTest()
/arkcompiler/runtime_core/tests/fuzztest/openuncompressedarchive_fuzzer/
H A Dopenuncompressedarchive_fuzzer.cpp41 constexpr char const *mode = "rb"; in OpenUncompressedArchiveFuzzTest() local
43 constexpr char const *mode = "rbe"; in OpenUncompressedArchiveFuzzTest() local
45 FILE *fp = fopen(zip_filename, mode); in OpenUncompressedArchiveFuzzTest()
/arkcompiler/ets_frontend/ets2panda/public/headers_parser/
H A Dlog_tools.py56 with os.fdopen(os.open(path, os.O_WRONLY | os.O_CREAT | os.O_APPEND, mode=511), "a", encoding="utf-8") as f:
63 with os.fdopen(os.open(path, os.O_WRONLY | os.O_CREAT | os.O_APPEND, mode=511), "a", encoding="utf-8") as f:
78 with os.fdopen(os.open(path, os.O_WRONLY | os.O_CREAT, mode=511), "w", encoding="utf-8") as f:
/arkcompiler/ets_runtime/test/fuzztest/mergewithexistprofile_fuzzer/
H A Dmergewithexistprofile_fuzzer.cpp36 PGOProfilerEncoder::ApGenMode mode = static_cast<PGOProfilerEncoder::ApGenMode>( in MergeWithExistProfileFuzzTest() local
40 PGOProfilerEncoder encoder(outDir, hotnessThreshold, mode); in MergeWithExistProfileFuzzTest()

Completed in 10 milliseconds

12345678