Home
last modified time | relevance | path

Searched full:s (Results 1 – 25 of 2902) sorted by relevance

12345678910>>...117

/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DExceptions.sts26 constructor(s: String) {
27 super(s);
30 constructor(s: String, cause: Object) {
31 super(s, cause);
44 constructor(s: String) {
45 super(s);
48 constructor(s: String, cause: Object) {
49 super(s, cause);
61 constructor(s: String) {
62 super(s);
[all …]
/arkcompiler/runtime_core/libabckit/tests/ut/ir_core/graph/
Dgraph.cpp41 "\\s+0.any Parameter\\s+arg 0\\s+\n"
43 "\\s+1.any Parameter\\s+arg 1\\s+\n"
45 "\\s+2.any Parameter\\s+arg 2\\s+\n"
47 "\\s+12.i32 Constant\\s+0x0 -> \\(v13\\)\\s+\n"
48 "\\s+18.i32 Constant\\s+0x1 -> \\(v19\\)\\s+\n"
49 "\\s+22.i32 Constant\\s+0x4 -> \\(v26\\)\\s+\n"
50 "\\s+23.i32 Constant\\s+0x5 -> \\(v26\\)\\s+\n"
51 "\\s+24.i32 Constant\\s+0x6 -> \\(v26\\)\\s+\n"
52 "\\s+25.i32 Constant\\s+0x7 -> \\(v26\\)\\s+\n"
57 … "\\s+3.any Intrinsic.definefunc\\s+0x[a-f0-9]+, 0x[a-f0-9]+, 0x1 \\(v21\\)\\s+bc: 0x[a-f0-9]+\n"
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/
DTrivialSetTest.sts17 const s = new Set<int>()
18 s.add(1)
19 s.add(2)
20 s.add(3)
21 s.add(1)
22 assert s.size == 3 : "size"
23 assert s.has(1) : "has 1"
24 assert s.has(2) : "has 2"
25 assert s.has(3) : "has 3"
26 const it = s.values()
[all …]
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/plugins/langs/
Dsts.py28 r'^\s*(export)?\s*'
29 r'class\s+(?P<class>\w+)\s*'
30 r'({)?\s*$')
32 r'^\s*(public\s+)?(override\s+)?'
33 r'(?P<func>\w+)\s*'
34 r'\(\s*\)\s*:?\s*(?P<type>[<>\w]+)?\s*(throws)?\s*({)?\s*$')
36 r'^\s*(public\s+)?(static\s+)?'
37 r'(?P<param>\w+)\s*'
38 r':\s*(?P<type>\w+)\s*'
39 r'(\s*=\s*.+)?(;)?\s*$')
Dts.py29 r'^\s*(export)?\s*'
30 r'class\s+(?P<class>\w+)\s*'
31 r'({)?\s*$')
33 r'^\s*(public)?\s+(?P<func>\w+)\s*'
34 r'\(\s*\)\s*:\s*(?P<type>\w+)\s*(throws)?\s*({)?\s*$')
36 r'^\s*(public)?\s+(?P<func>\w+)\s*'
37 r'\(\s*\)\s*(throws)?\s*({)?\s*$')
39 r'^\s*(?P<param>\w+)\s*'
40 r':\s*(?P<type>\w+)\s*(;)?\s*$')
Dswift.py27 r'^\s*(export)?\s*'
28 r'class\s+(?P<class>\w+)\s*'
29 r'({)?\s*$')
31 r'^\s*func\s+(?P<func>[<>\w]+)'
32 r'\(\s*\)'
33 r'\s*(async)?\s*(throws)?\s*(?P<type>->\s*[<>\w]+)?\s*({)?\s*$')
35 r'^\s*var\s*(?P<param>\w+)\s*'
36 r'(:|\=)?\s*(?P<type>[<>\w]+)(\?)?\s*$')
Djs.py27 r'^\s*function\s+'
28 r'(?P<class>\w+)\s*\(\s*\)\s*({)?\s*$')
31 r'^\s*this\.(?P<func>\w+)\s*=\s*'
32 r'(?P<type>)function\s*\(\s*\)\s*({)?\s*([}\s;]*)?$')
35 r'^\s*(?P<type>this)\.(?P<param>\w+)\s*;\s*$')
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dets_isinteger.sts23 //! ASM_NEXT x64: /subss.*/, arm64: /ldr.*/, arm32: /mov\s+r[0-9]+,\s+…
25 //! ASM_NEXT x64: /mov\s+\$0x7FFFFFFF,.*/, arm64: /b\.vs.*/, arm32: /vcmp\.f32.*/
26 //! ASM_NEXT x64: /movd.*/, arm64: /cset\s+w[0-9]+,\s+le/, arm32: /vmrs APSR_nzcv, F…
27 //! ASM_NEXT x64: /andps.*/, arm64: /b\s+.*/, arm32: /bvs.*/
28 //! ASM_NEXT x64: /mov\s+\$0x34000000,.*/, arm64: /mov\s+w[0-9]+, #0x0/, arm32: /movle\s+r[0-9]+,\
29 …SM_NEXT x64: /movd.*/, arm32: /movgt\s+r[0-9]+,\s+#0/
31 //! ASM_NEXT x64: /jp.*/, arm32: /mov\s+r[0-9]+,\s+…
37 //! ASM_NEXT x64: /subss.*/, arm64: /ldr.*/, arm32: /mov\s+r[0-9]+,\s+…
39 //! ASM_NEXT x64: /mov\s+\$0x7FFFFFFF,.*/, arm64: /b\.vs.*/, arm32: /vcmp\.f32.*/
42 //! ASM_NEXT x64: /mov\s+\$0x34000000,.*/, arm64: /ldr.*/, arm32: /bgt.*/
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/09.final_classes_and_methods/02.final_methods/
Dfm.params.yaml19 meth(s: string, n: number): string {
20 return s + n + "A"
24 final meth(s: string, n: number): string {
25 return s + n + "F"
36 final public final meth(s: string, n: number): string { // CTE
37 return s + n + "A"
47 final meth(s: string, n: number): string {
48 return s + n + "A"
52 meth(s: string, n: number): string { // CTE
53 return s + n + "F"
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe38.md23 let o1 = {n: 42, s: "foo"}
24 let o2: Object = {n: 42, s: "foo"}
25 let o3: object = {n: 42, s: "foo"}
27 let oo: Object[] = [{n: 1, s: "1"}, {n: 2, s: "2"}]
30 s: string
31 constructor(s: string) {
32 this.s = "s =" + s
35 let o4: C2 = {s: "foo"}
39 readonly s: string = ""
41 let o5: C3 = {n: 42, s: "foo"}
[all …]
Drecipe16.md17 static s: string
20 C.s = "aa"
23 C.s = C.s + "bb"
36 static s: string
39 C.s = "aa"
40 C.s = C.s + "bb"
Drecipe145.md20 s: string // Compile-time error only with strictPropertyInitialization
24 function foo(s: string): string {
25 if (s != "") {
26 console.log(s)
27 return s
29 console.log(s)
44 s: string = ""
47 function foo(s: string): string {
48 console.log(s)
49 return s
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/09.constant_string_to_char_conversion/
Dstr2char_n1.params.yaml17 const s: string = "Z"
21 let v: char = r + s + ""
25 let s: string = "Z"
29 const v: char = r + s + ""
33 const s: string = "Z"
37 c: char = r + s + ""
44 let s: string = "Z"
49 v = r + s + ""
53 const s: string = "Z"
61 a.c = r + s + ""
[all …]
Dstr2char.params.yaml17 const s: string = "Z"
27 let v3: char = s
30 let v4: char = r + s + ""
40 const c3: char = s
43 const c4: char = r + s + ""
47 const s: string = "Z"
53 c3: char = s
54 c4: char = r + s + ""
64 const s: string = "Z"
78 v3 = s
[all …]
Dstr2char_n2.params.yaml17 const s: string = ""
21 const c4: char = r + s + ""
25 const s: string = ""
29 c: char = r + s + ""
36 const s: string = ""
40 v1 = s + ""
44 const s: string = ""
52 a.c1 = r + s
61 const s: string = ""
64 assert foo(r + s + "") == c' '
[all …]
Dstr2char_n3.params.yaml17 const s: string = "A"
21 let c4: char = r + s + ""
25 const s: string = "A"
29 c: char = "" + r + s
35 const s: string = "XYZ"
39 v1 = s
43 const s: string = "Z"
51 a.c1 = r + s
60 const s: string = "Test"
63 assert foo(r + s + "") == c' '
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/08.function_declarations/07.return_type/
Dret_type.params.yaml38 let s = "foo"
40 return s;
47 let s: int = 42
49 return s;
56 let s: number = 1.0
58 return s;
65 let s = new Error()
67 return s;
74 let s: number[] = [1.0, 2.0, 3.0]
76 return s;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/04.casting_contexts_and_conversions/02.narrowing_reference_casting_conversions/
Duserdef_ref2.params.yaml17 class S<V> {}
18 class T<V> extends S<V> {
21 stype: S<Int>
27 interface S<V> {
30 interface T<V> extends S<V> {}
34 stype: S<Long>
43 class S<V> {}
44 class Z<V> extends S<V> implements T<V> {
47 stype: S<Exception>
56 class S<V> implements T<V> {
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
Daarch64_fp_simd_regs.def26 FP_SIMD_REG(0 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false)
27 FP_SIMD_REG(1 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false)
28 FP_SIMD_REG(2 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false)
29 FP_SIMD_REG(3 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false)
30 FP_SIMD_REG(4 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false)
31 FP_SIMD_REG(5 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false)
32 FP_SIMD_REG(6 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false)
33 FP_SIMD_REG(7 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false)
34 FP_SIMD_REG(8 , "V", "B", "H", "S", "D", "Q", true, true, false, false, false)
35 FP_SIMD_REG(9 , "V", "B", "H", "S", "D", "Q", true, true, false, false, false)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/15.cast_expressions/
Dcast.params.yaml16 let s = 42
18 let t = s as number // primitive widening
22 let s = 42
24 let t = s as Number // primitive widening and boxing
28 let s = Float.MAX_VALUE
30 let t = s as Float // boxing
34 let s = new Float(3.5 as float)
36 let t = s as float // unboxing
40 let s = "string"
42 let t = s as Object // reference widening
[all …]
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/gclog/ark/
Dark_pause_parser.py30 rf'{ArkGcPatterns.THREAD_ID}\s+'
31 r'I\/gc:\s+'
32 rf'{ArkGcPatterns.GC_COUNTER}\s+'
33 rf'{ArkGcPatterns.GC_CAUSE}\s+'
34 rf'{ArkGcPatterns.TIMESTAMP}\s+'
35 rf'{ArkGcPatterns.GC_NAME}\s+'
36 r'freed\s+'
37 rf'{ArkGcPatterns.OBJS_FREED}\s+'
38 rf'{ArkGcPatterns.LOBJS_FREED}\s+'
39 rf'{ArkGcPatterns.HEAP_FREE}\s+'
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dobject_literals_2.sts16 let obj = {n: 42, s: 'foo'} // OK in TypeScript, CTE in ArkTS: unknown type of obj.
20 s: string = "";
23 let c1: C = {n: 42, s: 'foo'} // Declaration + initialization: type of the literla is inferred from…
26 c2 = {n: 42, s: 'foo'}; // Initialization after declaration: type of the literal is inferred from t…
28 let c3: Object = {n: 42, s: 'foo'} as C as Object; // Type of the literal is inferred from the 'as'…
35 foo({n: 42, s: 'foo'}); // Parsing as an argument: type of the literal is inferred from the type of…
38 …return {n: 42, s: 'foo'}; // Returning from function: type of the literal is inferred from the bar…
41 let cc: C[] = [{n: 1, s: '1'}, {n: 2, s: '2'}]; // Type of the literal is inferred from the type of…
45 c: C = {n: 0, s: ""};
52 s: 'foo'
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/rules/
Drule38.sts16 let o1 = {n: 42, s: "foo"}
17 let o2: Object = {n: 42, s: "foo"}
18 let o3: object = {n: 42, s: "foo"}
20 let oo: Object[] = [{n: 1, s: "1"}, {n: 2, s: "2"}]
23 s: string
24 constructor(s: string) {
25 this.s = "s =" + s
28 let o4: C2 = {s: "foo"}
32 readonly s: string = ""
34 let o5: C3 = {n: 42, s: "foo"}
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/
Dx64_fp_simd_regs.def26 FP_SIMD_REG(0 , "B", "H", "S", "D", "Q", true, false, true, false, false)
27 FP_SIMD_REG(1 , "B", "H", "S", "D", "Q", true, false, true, false, false)
28 FP_SIMD_REG(2 , "B", "H", "S", "D", "Q", true, false, true, false, false)
29 FP_SIMD_REG(3 , "B", "H", "S", "D", "Q", true, false, true, false, false)
30 FP_SIMD_REG(4 , "B", "H", "S", "D", "Q", true, false, true, false, false)
31 FP_SIMD_REG(5 , "B", "H", "S", "D", "Q", true, false, true, false, false)
32 FP_SIMD_REG(6 , "B", "H", "S", "D", "Q", true, false, true, false, false)
33 FP_SIMD_REG(7 , "B", "H", "S", "D", "Q", true, false, true, false, false)
34 FP_SIMD_REG(8 , "B", "H", "S", "D", "Q", true, false, false, true, false)
35 FP_SIMD_REG(9 , "B", "H", "S", "D", "Q", true, false, false, true, false)
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DobjectLiteralInterfaceType.sts26 s: String
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}},
39 s: String = "default",
43 assert i.s == s : "\"s\" is not equal \"" + i.s + "\" != \"" + s + "\""
51 s: "s1",
59 s: "s2",
64 i = {f: 7, x: 8, s: "s3", iv : { v: 9}} // assignment
70 s: "s3",
[all …]

12345678910>>...117