| /arkcompiler/ets_runtime/test/ |
| D | runtest.py | 56 help=f'aot compile with pgo, default threshold is {DEFAULT_PGO_THRESHOLD}') 58 help=f'pgo hotness threshold, default is {DEFAULT_PGO_THRESHOLD}') 60 help=f'specify seconds of test timeout, default is {DEFAULT_TIMEOUT}') 77 return (1, '', f'exec command timeout {timeout}s') 94 print(f'pls place this script at: {self.place_dir}') 97 self.ohdir = os.path.abspath(f'{self.self_dir}/../../../..') 101 … self.builtin = f'{self.ohdir}/arkcompiler/ets_runtime/ecmascript/ts_types/lib_ark_builtins.d' 129 product_dir = f'{self.ohdir}/out/{self.product}' 130 libs_dir_x64_release = (f'{self.ohdir}/prebuilts/clang/ohos/linux-x86_64/llvm/lib:' 131 f'{product_dir}/clang_x64/arkcompiler/ets_runtime:' [all …]
|
| /arkcompiler/runtime_core/verification/util/parser/ |
| D | parser.h | 61 template <typename F> 62 constexpr base_parser(const F &f) : verifier::callable<bool(Context &, Iter &, Iter)> {f} 134 template <typename F> 135 auto operator|=(F f) const -> 136 …typename if_type<decltype(f(action::START, ref_to<Context>(), ref_to<Iter>(), val_of<Iter>(), val_… 137 bool, next<type_prod<op_action, F>>>::type 139 static const auto l = [p = *this, f](Context &c, Iter &start, Iter end) { 141 if (!f(action::START, c, start, start, end)) { 148 f(action::CANCEL, c, new_saved, start, end); 152 if (!f(action::PARSED, c, new_saved, start, end)) { [all …]
|
| /arkcompiler/runtime_core/runtime/tests/templates/ |
| D | interpreter_test_resolve_field.pa.erb | 16 i32 f <static> 21 ststatic R1.f 26 ldstatic R1.f 31 .function void R1.f<%=i%>() { 32 call R1.f<%=i%> 38 i32 f <static> 43 ststatic R2.f 48 ldstatic R2.f 53 .function void R2.f<%=i%>() { 54 call R2.f<%=i%>
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/expressions/ |
| D | ts-test-expression-1.ts | 43 var f = { variable 49 f: c = 5, 53 print(f.a) 54 print(f.b) 55 print(f.c) 56 print(f.d()) 57 print(f.e.a) 58 print(f.f) 59 print(...f.g)
|
| /arkcompiler/runtime_core/runtime/tests/ |
| D | interpreter_test.cpp | 87 static void InitializeFrame(Frame *f) in InitializeFrame() argument 89 ManagedThread::GetCurrent()->SetCurrentFrame(f); in InitializeFrame() 90 auto frame_handler = StaticFrameHandler(f); in InitializeFrame() 91 for (size_t i = 0; i < f->GetSize(); i++) { in InitializeFrame() 150 Class *klass, Frame *f, const std::vector<uint8_t> &bytecode) in CreateMethod() argument 152 return CreateMethod(klass, 0, 0, f->GetSize(), nullptr, bytecode); in CreateMethod() 209 auto f = CreateFrame(std::numeric_limits<uint16_t>::max() + 1, nullptr, nullptr); in TEST_F() local 210 InitializeFrame(f.get()); in TEST_F() 211 auto frame_handler = StaticFrameHandler(f.get()); in TEST_F() 214 auto method_data = CreateMethod(cls, f.get(), bytecode); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/libpandabase/serializer/ |
| D | for_each_tuple.h | 23 template <typename Tuple, typename F, size_t... Index> 24 void ForEachTupleImpl(Tuple &&tuple, F &&f, std::index_sequence<Index...> /* unused */) in ForEachTupleImpl() argument 26 …[[maybe_unused]] auto unused = {true, (f(std::get<Index>(std::forward<Tuple>(tuple))), void(), tru… in ForEachTupleImpl() 29 template <typename Tuple, typename F> 30 void ForEachTuple(Tuple &&tuple, F &&f) in ForEachTuple() argument 35 ForEachTupleImpl(std::forward<Tuple>(tuple), std::forward<F>(f), sequence); in ForEachTuple()
|
| /arkcompiler/ets_frontend/test262/ |
| D | utils.py | 38 return datetime.datetime.now().strftime('%m-%d %H:%M:%S.%f') 48 f'{current_time()} D:>>> {TERM_BLUE}{str(info)}{TERM_NORMAL}') 53 print(f'{current_time()} I:>>> \n{str(info)} ') 55 print(f'{current_time()} I:>>> {str(info)} ') 103 LOGGING.debug(f"write file:{save_file}") 125 sys.stderr.write(f'{TERM_BLUE}{cmd_type}{TERM_NORMAL}\n') 127 sys.stderr.write(''.join(f'{TERM_BLUE}{var}={val} \\{TERM_NORMAL}\n' 129 cmd_str = (f'{TERM_NORMAL}\n\t{TERM_BLUE}').join(cmd) 130 sys.stderr.write(f'\t{TERM_BLUE}{cmd_str}{TERM_NORMAL}\n') 137 assert not ret, f"\n error: Cloning '{git_url}' failed." [all …]
|
| D | run_sunspider.py | 91 ICU_PATH = f"--icu-data-path={CODE_ROOT}/third_party/icu/ohos_icu4j/data" 140 msg = f"Command {cmd_string}: \n" 141 msg += f"error: {str(errs.decode(code_format,'ignore'))}" 151 msg = f"Timeout:'{cmd_string}' timed out after' {str(timeout)} seconds" 154 msg = f"{cmd_string}: unknown error: {str(err)}" 233 output_abc = f"{output_file}.abc" 281 self.abc_file = f'{file_name_pre}.abc' 287 self.abc_file = f'{file_name_pre}.abc' 295 out_file = f"{file_name_pre}.abc" 352 abc_file = os.path.abspath(f'{js_dir}/{abc_file}') [all …]
|
| D | run_test262.py | 186 raise ValueError(f'Not found: "{path}"') 199 raise SystemExit(f'{file} can not found in {src_dir}') 536 host_args = f"-B test262/run_sunspider.py " 537 host_args += f"--ark-tool={ark_tool} " 539 host_args += f"--ark-aot " 540 host_args += f"--ark-aot-tool={ark_aot_tool} " 541 host_args += f"--libs-dir={libs_dir} " 542 host_args += f"--ark-frontend={ark_frontend} " 543 host_args += f"--ark-frontend-binary={ark_frontend_binary} " 544 host_args += f"--opt-level={opt_level} " [all …]
|
| /arkcompiler/ets_runtime/test/aottest/optimization/ |
| D | optimization.ts | 16 let F : number[] = [0, 1, 2] 19 function tryLoopOpt(f: number[], v : number): void { 21 let ret = f[idx]; 22 for (let i = 0; i < f.length; ++i) { 23 f[i] += 1; 24 f[i] += v; 27 print(f[idx]); 28 print(f[idx + 1]); 31 tryLoopOpt(F, <number><Object>'a');
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/functions/ |
| D | test-ts-function-2.ts | 17 function f(this, a : string) function 18 function f(this, a : number) 19 function f(this, a : boolean) 20 function f(this, a: string | number | boolean) { 24 f("test-ts-function-2"); 25 f(1); 26 f(true);
|
| /arkcompiler/ets_frontend/ts2panda/scripts/ |
| D | run_tests.py | 88 run_command(['cp', '-f', os.path.join(src_dir, "package.json"), 90 run_command(['cp', '-f', os.path.join(src_dir, "package-lock.json"), 99 if os.path.exists(f'{self.dist_dir}/tests'): 100 run_command(['rm', '-rf', f'{self.dist_dir}/tests']) 101 run_command(['cp', '-rf', f'{self.src_dir}/tests', self.dist_dir]) 132 cmd = ['cp', f'{self.src_dir}/src/jshelpers.js', f'build/src/' ] 134 cmd = [mocha, f'build/{tests_args}'] 137 cmd = ['cp', f'{self.src_dir}/src/jshelpers.js', f'build-win/src/' ] 139 cmd = [mocha, f'build-win/{tests_args}'] 142 cmd = ['cp', f'{self.src_dir}/src/jshelpers.js', f'build-mac/src/' ] [all …]
|
| /arkcompiler/runtime_core/disassembler/tests/sources/ |
| D | overloading.pa | 14 .function void f() {} 16 .function void f(u1 a0) {} 18 .function void f(u1 a0, i8 a1) {} 21 call f:() 22 call f:(u1), v1 23 call f:(u1, i8), v1, v1
|
| /arkcompiler/runtime_core/verification/util/ |
| D | function_traits.h | 35 template <class F> 42 template <typename R, typename F, typename... Args> 43 struct function_signature_helper<R (F::*)(Args...) const> : public function_signature_helper<R(Args… 46 template <typename R, typename F, typename... Args> 47 struct function_signature_helper<R (F::*)(Args...)> : public function_signature_helper<R(Args...)> { 67 template <typename F> 68 class function_signature : public function_signature_helper<decltype(&F::operator())> { 69 using base = function_signature_helper<decltype(&F::operator())>; 73 static typename base::return_type call(L f, std::tuple<Args...> &&args) 75 return call_helper(f, std::forward(args), typename gen_indices<sizeof...(Args)>::type {}); [all …]
|
| D | flags.h | 72 ConstBit operator[](Enum f) const 74 ASSERT(f == Flag); 78 Bit operator[](Enum f) 80 ASSERT(f == Flag); 105 typename Base::ConstBit operator[](Enum f) const 107 if (f == Flag) { 110 return Base::operator[](f); 113 typename Base::Bit operator[](Enum f) 115 if (f == Flag) { 118 return Base::operator[](f);
|
| D | lazy.h | 36 static char F(FS<U, nullptr> *); 38 static int F(...); 48 static constexpr bool value = sizeof(F<Value>(0)) == 1 && sizeof(G<Value>(0)) == 1; 121 template <typename F, typename L, std::enable_if_t<IsLazyStream<F>::value, int> = 0> 122 auto Transform(F fetcher, L converter) in Transform() 132 template <typename F, typename L, std::enable_if_t<IsLazyStream<F>::value, int> = 0> 133 auto Filter(F fetcher, L filter) in Filter() 145 template <typename F, std::enable_if_t<IsLazyStream<F>::value, int> = 0> 146 auto Enumerate(F fetcher, size_t from = 0) 191 template <typename F, std::enable_if_t<IsLazyStream<F>::value, int> = 0> [all …]
|
| /arkcompiler/runtime_core/compiler/tests/ |
| D | dom_tree_test.cpp | 140 auto F = &BB(7); in TEST_F() local 176 CheckImmediateDominators(D, {E, F}); in TEST_F() 178 CheckImmediateDominators(F, {}); in TEST_F() 182 CheckListDominators<true>(entry, {entry, A, B, C, D, E, F, G, exit}); in TEST_F() 183 CheckListDominators<true>(A, {A, B, C, D, E, F, G, exit}); in TEST_F() 184 CheckListDominators<true>(C, {C, D, E, F, G}); in TEST_F() 185 CheckListDominators<true>(D, {D, E, F}); in TEST_F() 187 CheckListDominators<false>(B, {entry, A, C, D, E, F, G, exit}); in TEST_F() 188 CheckListDominators<false>(E, {entry, A, B, C, D, F, G, exit}); in TEST_F() 189 CheckListDominators<false>(F, {entry, A, B, C, D, E, G, exit}); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/runtime/bridge/arch/amd64/ |
| D | interpreter_to_compiled_code_bridge_amd64.S | 28 je 1f 33 je 1f 38 je 1f 43 je 1f 48 je 1f 58 je 1f 63 je 1f 68 je 1f 73 je 1f 78 je 1f [all …]
|
| /arkcompiler/ets_runtime/test/aottest/aot_type_test/typesub/ |
| D | typesub.ts | 36 var f:number = 0; variable 38 f = d + e; 40 f = d - f; 42 print(f);
|
| /arkcompiler/runtime_core/disassembler/tests/ |
| D | functions_test.cpp.in | 45 ASSERT_NE(ss.str().find(".function void f() <static> {\n}"), std::string::npos); 46 ASSERT_NE(ss.str().find(".function void f(u1 a0, i8 a1) <static> {\n}"), std::string::npos); 47 ASSERT_NE(ss.str().find(".function void f(u1 a0) <static> {\n}"), std::string::npos); 48 ASSERT_NE(ss.str().find("call.short f:()\n\t" 49 "call.short f:(u1), v1\n\t" 50 "call.short f:(u1,i8), v1, v1"),
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_promise_handler.cpp | 40 // 1. Assert: F has a [[Promise]] internal slot whose value is an Object. in Resolve() 44 // 2. Let promise be the value of F's [[Promise]] internal slot. in Resolve() 45 // 3. Let alreadyResolved be the value of F's [[AlreadyResolved]] internal slot. in Resolve() 112 // 1. Assert: F has a [[Promise]] internal slot whose value is an Object. in Reject() 116 // 2. Let promise be the value of F's [[Promise]] internal slot. in Reject() 117 // 3. Let alreadyResolved be the value of F's [[AlreadyResolved]] internal slot. in Reject() 141 // 1. Assert: F has a [[Capability]] internal slot whose value is a PromiseCapability Record. in Executor() 144 … "Executor: F has a [[Capability]] internal slot whose value is a PromiseCapability Record."); in Executor() 146 // 2. Let promiseCapability be the value of F's [[Capability]] internal slot. in Executor() 176 // 1. Let alreadyCalled be the value of F's [[AlreadyCalled]] internal slot. in ResolveElementFunction() [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/compiler/ |
| D | test-ts-namespace-9.ts | 19 export function f() { function 23 export function f() { function 28 ns.ns2.ns3.f(); 29 ns.ns2.f();
|
| /arkcompiler/runtime_core/tests/cts-coverage-tool/ |
| D | README.md | 15 -f path_to_output_yaml_file_with_coverage_data \ 16 -F path_to_output_markdown_file_with_coverage_data 25 --full (-f) - output the full spec in yaml format with additional fields showing the coverage data … 26 --full_md (-F) - same as --full, but in markdown format 41 -f full.yaml \
|
| /arkcompiler/runtime_core/libpandabase/events/ |
| D | events_gen.h.erb | 49 …virtual void <%= event.name.camelize %>(<%= event.fields.map {|f| f.arg_type}.join(', ') %>) {} /… 103 …void <%= event.name.camelize %>(<%= event.fields.map {|f| f.arg_type + ' ' + f.name }.join(', ') %… 133 template<typename EventT, typename F = bool> 134 std::vector<const EventT*> Select([[maybe_unused]] F pred = false) { 136 if constexpr (std::is_same_v<F, bool>) { 169 …void <%= event.name.camelize %>(<%= event.fields.map {|f| f.arg_type + ' ' + f.name }.join(', ') %… 191 …void <%= event.name.camelize %>(<%= event.fields.map {|f| f.arg_type + ' ' + f.name }.join(', ') %…
|
| /arkcompiler/ets_frontend/testTs/expect/types/typeParameters/typeArgumentLists/ |
| D | callGenericFunctionWithZeroTypeArguments.txt | 1 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'f'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1},… 3 …': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'f'}, {'t': 24, 'v': '_… 4 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'f'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1},… 7 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'f'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1… 8 …': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'f'}, {'t': 24, 'v': '_… 9 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'f'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1},… 12 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'f'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1…
|