Home
last modified time | relevance | path

Searched full:f (Results 1 – 25 of 1981) sorted by relevance

12345678910>>...80

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DUnionAsAndInstanceof.sts17 function assert_ccexc(f: () => void) {
19 f();
26 function assert_nothrow(f: () => void) {
28 f();
42 // let f = ... until inference in form ((p)=>expr)(a) is broken
43 assert_ccexc(() => { let f = ((x: Object | null | undefined) => x as Object); f(null); });
44 assert_ccexc(() => { let f = ((x: Object | null | undefined) => x as Object); f(undefined); });
45 assert_ccexc(() => { let f = ((x: Object | null) => x as Object); f(null); });
46 assert_ccexc(() => { let f = ((x: Object | undefined) => x as Object); f(undefined); });
48 …assert_ccexc(() => { let f = ((x: Object | null | undefined) => x as Object | undefined); f(null);…
[all …]
DSuperCall.sts40 class F {
41 public readonly f: int;
44 this.f = 42;
48 final class G extends F {
52 final class H extends F {
58 final class I extends F {
76 const f: F = new F();
77 assert f.f == 42;
80 assert g.f == 42;
83 assert h.f == 42;
[all …]
DOptionalChains.sts19 function assert_npe(f: () => void) {
21 f();
30 f: Link = this;
35 of: Link | null = this.f;
50 assert_o(l?.f);
53 assert_o(l?.of!.f);
56 assert_u(nl?.f);
59 assert_u(nl?.of!.f);
60 assert_u(nl?.nf!.f);
63 nl?.f.noeval();
[all …]
DobjectLiteralInterfaceType.sts17 f: int
31 return {x: 99, f: 44, s: "sR", iv: {v: 77}} // return statement
34 function test(i: int, f: int, x: int, s: String, ivv: int) {} // should not prevent calling the nex…
36 function test(i: I = {f: -1, x: -2, s: "default", iv: {v: -3}},
37 f: int = -1,
41 assert i.f == f : "\"f\" is not equal \"" + i.f + "\" != \"" + f + "\""
49 f : 1,
57 f: 4,
64 i = {f: 7, x: 8, s: "s3", iv : { v: 9}} // assignment
68 f: 10,
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/03.class_members/
Dmember_declared_in_body.params.yaml16 - { decl: "f: int = 2;", call: "", check: "assert y.f == 2;" }
17 …- { decl: "f: int = 3; set F(f: int): void { this.f = f; }; get F(): int { return this.f; }", call…
18 - { decl: "f: int; constructor() { this.f = 1; }; ", call: "", check: "y.f == 1;" }
19 …- { decl: "f: int = 0; constructor() { this.f += 1; }; constructor(f: int) { this.f += f; }", call…
20 - { decl: "static f: int = 5; ", call: "", check: "C.f == 5;" }
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/06.statements/02.multiple_catch_clauses_in_try_statements/
Dcatch2.sts34 class F extends Exception {
54 throw new F("1", e);
55 } catch (f: F) {
57 throw new Ex("2", f);
60 throw new F("3", e);
61 } catch (f: F) {
63 throw new Ex("4", f);
66 throw new F("5", e);
67 } catch (f: F) {
69 throw new Ex("6", f);
[all …]
/arkcompiler/ets_runtime/test/
Druntest.py45 parser.add_argument('-f', '--frontend', metavar='opt',
62 help=f'aot compile with pgo, default threshold is {DEFAULT_PGO_THRESHOLD}')
64 help=f'pgo hotness threshold, default is {DEFAULT_PGO_THRESHOLD}')
68 help=f'specify seconds of test timeout, default is {DEFAULT_TIMEOUT}')
89 return (1, '', f'exec command timeout {timeout}s')
100 with open(f'{hap_dir}/module.json') as f:
101 data = json.load(f)
108 with open(f'{hap_dir}/module.json') as f:
109 data = json.load(f)
122 print(f'pls place this script at: {self.place_dir}')
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/09.final_classes_and_methods/01.final_classes/
Dfc.params.yaml22 final class F extends A implements I {}
24 let f: F = new F()
25 assert f instanceof F && f instanceof A && f instanceof I && f.fld == ''
26 f = { fld: 'ABC' }
27 assert f.fld == 'ABC'
33 final final class F extends A {} // CTE
41 final abstract class F extends A {} // CTE
50 class F extends B {} // CTE
58 abstract class F extends A {} // CTE
66 final class F extends A {} // CTE
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/04.casting_contexts_and_conversions/01.numeric_casting_conversions/
Dnum_cc.params.yaml237 - { sval: '-65537.0', dval: '-65537.0f' }
238 - { sval: '-65536.0', dval: '-65536.0f' }
239 - { sval: '-65535.0', dval: '-65535.0f' }
240 - { sval: '-32769.0', dval: '-32769.0f' }
241 - { sval: '-32768.0', dval: '-32768.0f' }
242 - { sval: '-32767.0', dval: '-32767.0f' }
243 - { sval: '-129.0', dval: '-129.0f' }
244 - { sval: '-128.0', dval: '-128.0f' }
245 - { sval: '-127.0', dval: '-127.0f' }
246 - { sval: '-3.1415926', dval: '-3.1415925f' }
[all …]
/arkcompiler/ets_frontend/arkguard/test/grammar/in_operator/
DprivateNameInInExpressionTransform.ts16 class F { class
17 #f = 1;
22 #f in a; // expect F's 'f' WeakMap
23 #fun in a; // expect F's 'instances' WeakSet
24 #staticF in a; // expect F's constructor
25 #staticMethod in a; // expect F's constructor
32 a == #f in a || a; // Good precedence: (a == (#f in a)) || a
34 #f in a && #f in a; // Good precedence: (#f in a) && (#f in a)
39 #f = 1;
41 #f in a; // expect Bar's 'f' WeakMap
DprivateNameInInExpression.ts16 class F { class
17 #f = 1;
23 const a = #f in v;
25 const b = #f in v.p1.p2;
27 const c = #f in (v as {});
29 const d = #f in (v as F);
31 const e = #f in (v as never);
33 for (let f in #f in v as any) { /**/ } // unlikely but valid
36 const a = v && /*0*/#f/*1*/
42 class FooSub extends F { subTypeOfFoo = true }
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/08.function_declarations/
Dfunction_decl_neg.params.yaml17 - { decl: 'function f(): {}', call: 'f();' }
20 - { decl: 'let f = function (): void {}', call: 'f();' }
28 - { decl: 'function f: void {}', call: 'f();' }
29 - { decl: 'function f(: void {}', call: 'f();' }
30 - { decl: 'function f): void {}', call: 'f();' }
33 - { decl: 'function f() void {}', call: 'f();' }
36 - { decl: 'function f(): void', call: 'f();' }
37 - { decl: 'function f(): void {', call: 'f();' }
38 - { decl: 'function f(): void }', call: 'f();' }
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/04.casting_contexts_and_conversions/03.casting_conversions_from_union/
Dimpl.params.yaml63 - from_type: B|F|C
67 class F implements J {}
71 let f = new F()
75 - { type: J, v: 'f' }
78 - { type: I, v: 'f' }
81 - from_type: A|B|F
87 class F implements J {}
93 - from_type: A|B|F
99 class F implements J {}
131 - { type: Integral, v: '42f' }
[all …]
Dcce.params.yaml82 type F = (p: int) => Int
84 let f: F = (p: int): Int => { return new Int(p) }
86 let fa: F[] = [f, f]
88 from_type: F[]|F|G[]|G|never
90 - { type: 'G', v: f }
91 - { type: 'G[]', v: f }
92 - { type: 'F[]', v: f }
93 - { type: 'F', v: g }
94 - { type: 'F[]', v: g }
96 - { type: 'F', v: fa }
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
Daarch64_cg.h89 LiveAnalysis *CreateLiveAnalysis(MemPool &mp, CGFunc &f) const override in CreateLiveAnalysis() argument
91 return mp.New<AArch64LiveAnalysis>(f, mp); in CreateLiveAnalysis()
93 ReachingDefinition *CreateReachingDefinition(MemPool &mp, CGFunc &f) const override in CreateReachingDefinition() argument
95 return mp.New<AArch64ReachingDefinition>(f, mp); in CreateReachingDefinition()
97 …GenProEpilog *CreateGenProEpilog(CGFunc &f, MemPool &mp, MemPool *tempMemPool = nullptr) const ove…
99 return mp.New<AArch64GenProEpilog>(f, *tempMemPool);
101 CGPeepHole *CreateCGPeepHole(MemPool &mp, CGFunc &f) const override in CreateCGPeepHole() argument
103 return mp.New<AArch64CGPeepHole>(f, &mp); in CreateCGPeepHole()
105 MoveRegArgs *CreateMoveRegArgs(MemPool &mp, CGFunc &f) const override in CreateMoveRegArgs() argument
107 return mp.New<AArch64MoveRegArgs>(f); in CreateMoveRegArgs()
[all …]
/arkcompiler/ets_runtime/test/aottest/pgo_fast_call_bridge/
Dpgo_fast_call_bridge.ts16 function f(prn, a1, a2, a3, a4, a5, a6, a7, a8) { function
23 let isAot = ArkTools.isAOTCompiled(f);
28 f(prn, 1); // NaN
29 f(prn, 1, 2); // 3
30 f(prn, 1, 2, 3); // 3
31 f(prn, 1, 2, 3, 4); // 3
32 f(prn, 1, 2, 3, 4, 5); // 3
33 f(prn, 1, 2, 3, 4, 5, 6); // 3
34 f(prn, 1, 2, 3, 4, 5, 6, 7); // 3
35 f(prn, 1, 2, 3, 4, 5, 6, 7, 8); // 3
[all …]
/arkcompiler/runtime_core/static_core/verification/util/parser/
Dparser.h61 template <typename F>
63 constexpr BaseParser(const F &f) : verifier::callable<bool(Context &, Iter &, Iter)> {f}
160 template <typename F>
161 auto operator|=(F f) const ->
162 …typename IfType<decltype(f(Action::START, RefTo<Context>(), RefTo<Iter>(), ValOf<Iter>(), ValOf<It…
163 Next<type_prod<op_action, F>>>::Type
165 static const auto L = [p = *this, f](Context &c, Iter &start, Iter end) {
167 if (!f(Action::START, c, start, start, end)) {
174 f(Action::CANCEL, c, newSaved, start, end);
178 if (!f(Action::PARSED, c, newSaved, start, end)) {
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/
Dx64_cg.h46 /* AlignAnalysis *CreateAlignAnalysis(MemPool &mp, CGFunc &f) const override */
48 LiveAnalysis *CreateLiveAnalysis(MemPool &mp, CGFunc &f) const override in CreateLiveAnalysis() argument
50 return mp.New<X64LiveAnalysis>(f, mp); in CreateLiveAnalysis()
52 ReachingDefinition *CreateReachingDefinition(MemPool &mp, CGFunc &f) const override in CreateReachingDefinition() argument
54 return mp.New<X64ReachingDefinition>(f, mp); in CreateReachingDefinition()
56 CGPeepHole *CreateCGPeepHole(MemPool &mp, CGFunc &f) const override in CreateCGPeepHole() argument
58 return mp.New<X64CGPeepHole>(f, &mp); in CreateCGPeepHole()
60 …virtual GenProEpilog *CreateGenProEpilog(CGFunc &f, MemPool &mp, MemPool *tempMemPool = nullptr) c…
62 return mp.New<X64GenProEpilog>(f);
64 LocalOpt *CreateLocalOpt(MemPool &mp, CGFunc &f, ReachingDefinition &rd) const override in CreateLocalOpt() argument
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/12.trailing_lambda/
Dtrlambda_func.params.yaml19 function foo(n: number, f: () => void) {
20 f()
33 function foo(n: number, f?: FF) { // optional
34 f?.()
51 function foo(n: number, f: FF) {
52 f()
64 function foo(n: number, f?: () => void) { // optional
65 f?.()
81 function foo(n: number, f: () => void) {
82 f()
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/reports/
Dstandard_view.py50 Log.default(_LOGGER, f"New failures at #{kind} - {len(fail_list)} tests:\n{content}")
57 Log.all(_LOGGER, f"Ignored but passed tests - {len(ignored_but_passed)} tests:\n{content}")
60 Log.default(_LOGGER, f"Summary({self.__summary.name}):")
61 Log.default(_LOGGER, f"Total: \t{self.__summary.total:<5}")
62 Log.default(_LOGGER, f"Passed: \t{self.__summary.passed:<5}")
63 Log.default(_LOGGER, f"Failed (new failures): \t{self.__summary.failed:<5}")
67 … Log.default(_LOGGER, f" {kind}:" + ' ' * (29 - len(str(kind))) + f"{len(fail_list):<5}")
68 … Log.default(_LOGGER, f"Ignored, but passed: \t{self.__summary.ignored_but_passed:<5}")
69 Log.default(_LOGGER, f"Ignored (known failures): \t{self.__summary.ignored:<5}")
71 Log.default(_LOGGER, f"Excluded through lists: \t{self.__summary.excluded:<5}")
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/dynamic_with_lambda/
Ddynamic_with_lambda.sts20 let f: () => int = (): int => { return 25 as int; }
21 let res = a.bar(f) as int;
27 let f: (x: int) => int = (x: int): int => { return x * x; }
28 let res = a.bar(f, 5) as int;
34 let f: (x: int, y: int) => int = (x: int, y: int): int => { return x * x + y * y; }
35 let res = a.bar(f, 3, 4) as int;
41 let f: JSValue = (x: int, y: int): int => { return x * x + y * y; }
42 let res = a.bar(f, 3, 4) as int;
47 let f: JSValue = (x: int): int => { return x * x; }
48 let f1: (x: int) => int = f as (x: int) => int;
[all …]
/arkcompiler/runtime_core/static_core/runtime/tests/templates/
Dinterpreter_test_resolve_field.pa.erb16 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/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/11.function_call_expression/
Dfcall.params.yaml17 type F = (p: string) => number
22 let f: F = (p: string): number => { return p.length }
23 assert f("abcdef") == foo("ABCDEF")
37 type F<T extends A> = (p: T) => number
39 let f: F<B> = (v: B): number => { return v.getFld() }
40 assert f(new B()) == foo<B>(new B())
45 function foo(n: number, f: VoidFunc): number {
46 f()
47 f()
58 function foo(n: number, f: VoidFunc): number {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/03.variance/01.invariance/
Dinvariance_function.sts16 {% for f in cases %}
22 {{f.customobj}}
24 function foo( i: {{f.argtype}}): {{f.argtype}} {
25 return {{f.return}};
28 function bar( i: {{f.argtype}}): {{f.argtype}} {
33 let i:{{f.argtype}} = {{f.input}};
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
Dreg_alloc.cpp30 #define RA_DUMP (CG_DEBUG_FUNC(f))
49 bool CgRegAlloc::PhaseRun(maplebe::CGFunc &f) in PhaseRun() argument
60 regAllocator = phaseMp->New<DefaultO0RegAllocator>(f, *phaseMp); in PhaseRun()
61 } else if (f.GetCG()->GetCGOptions().DoLinearScanRegisterAllocation()) { in PhaseRun()
62 Bfs *bfs = GET_ANALYSIS(CgBBSort, f); in PhaseRun()
64 live = GET_ANALYSIS(CgLiveAnalysis, f); in PhaseRun()
66 LoopAnalysis *loop = GET_ANALYSIS(CgLoopAnalysis, f); in PhaseRun()
68 regAllocator = phaseMp->New<LSRALinearScanRegAllocator>(f, *phaseMp, bfs, *loop); in PhaseRun()
70 } else if (f.GetCG()->GetCGOptions().DoColoringBasedRegisterAllocation()) { in PhaseRun()
73 &CgLiveAnalysis::id, f); in PhaseRun()
[all …]

12345678910>>...80