Home
last modified time | relevance | path

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

12345678910>>...125

/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/tests/vm-benchmarks/src/vmb/plugins/langs/
Dets.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*$') # possible initialization
Dts.py30 r'^\s*(export)?\s*'
31 r'class\s+(?P<class>\w+)\s*'
32 r'({)?\s*$')
34 r'^\s*(public)?\s+(?P<func>\w+)\s*'
35 r'\(\s*\)\s*:\s*(?P<type>\w+)\s*(throws)?\s*({)?\s*$')
37 r'^\s*(public)?\s+(?P<func>\w+)\s*'
38 r'\(\s*\)\s*(throws)?\s*({)?\s*$')
40 r'(?P<param>\w+)\s*'
41 r':\s*(?P<type>\w+)\s*'
42 r'(\s*=\s*.+)?(;)?\s*$') # possible initialization
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.py28 r'^\s*(function|class)\s+'
29 r'(?P<class>\w+)\s*(\(\s*\))?\s*({)?\s*$')
32 r'^\s*(this\.)?(?P<func>\w+)\s*(=\s*)?'
33 r'(?P<type>)(function)?\s*\(\s*\)\s*({)?\s*([}\s;]*)?$') # `type` is a placeholder
35 r'^\s*(?P<type>this)\.' # `type` is a placeholder
36 r'(?P<param>\w+)\s*'
37 r'(\s*=\s*.+)?(;)?\s*$') # possible initialization
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dets_isinteger.ets23 //! 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_func_tests/std/containers/
DTrivialSetTest.ets17 const s = new Set<int>()
18 s.add(1)
19 s.add(2)
20 s.add(3)
21 s.add(1)
22 assertEQ( s.size, 3, "size")
23 assertTrue( s.has(1), "has 1")
24 assertTrue( s.has(2), "has 2")
25 assertTrue( s.has(3), "has 3")
26 const it = s.values()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/10.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"
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DArrowArity.ets16 type S = string
18 function xassert(a: S, b: S) { assertEQ(a, b) }
20 function p0call(f: () => S, a: S[]) {
23 function p1call(f: (p1: S) => S, a: S[]) {
26 function p2call(f: (p1: S, p2: S) => S, a: S[]) {
29 function p012call(f: () => S, a: S[]) {
32 function p_12call(f: (p1: S) => S, a: S[]) {
35 function p__2call(f: (p1: S, p2: S) => S, a: S[]) {
39 function r0__call(f: (p1?: S, p2?: S) => S, a: S[]) {
42 function r_1_call(f: (p1: S, p2?: S) => S, a: S[]) {
[all …]
DobjectLiteralInterfaceType.ets26 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 assertEQ(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 …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DExceptions.ets27 constructor(s: String) {
28 super(s);
31 constructor(s: String, cause: Object) {
32 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/static_core/plugins/ets/tests/ani/tests/object_ops/
Dobject_call_method_by_name_short_test.cpp49 args[0U].s = VAL1; in TEST_F()
50 args[1U].s = VAL2; in TEST_F()
53 …ASSERT_EQ(env_->Object_CallMethodByName_Short_A(object, "shortByNameMethod", "SS:S", &res, args), … in TEST_F()
63 …ASSERT_EQ(env_->Object_CallMethodByName_Short(object, "shortByNameMethod", "SS:S", &res, VAL1, VAL… in TEST_F()
73 …ASSERT_EQ(env_->c_api->Object_CallMethodByName_Short(env_, object, "shortByNameMethod", "SS:S", &r… in TEST_F()
86 …ASSERT_EQ(env_->Object_CallMethodByName_Short(object, "unknown_function", "SS:S", &res, VAL1, VAL2… in TEST_F()
95 …ASSERT_EQ(env_->Object_CallMethodByName_Short(object, nullptr, "SS:S", &res, VAL1, VAL2), ANI_INVA… in TEST_F()
103 …ASSERT_EQ(env_->Object_CallMethodByName_Short(object, "shortByNameMethod", "SS:S", nullptr, VAL1, … in TEST_F()
113 …ASSERT_EQ(env_->Object_CallMethodByName_Short(nullptr, "shortByNameMethod", "SS:S", &res, VAL1, VA… in TEST_F()
123 …ASSERT_EQ(env_->Object_CallMethodByName_Short(nullptr, "shortByNameMethod", "SS:S", &res, nullptr), in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/platform/ohos/
Dlogger.cpp31 OHOS::HiviewDFX::HiLog::Debug(LABEL, "%{public}s: %{public}s", component, msg); in DefaultLogger()
34 OHOS::HiviewDFX::HiLog::Info(LABEL, "%{public}s: %{public}s", component, msg); in DefaultLogger()
37 OHOS::HiviewDFX::HiLog::Error(LABEL, "%{public}s: %{public}s", component, msg); in DefaultLogger()
40 OHOS::HiviewDFX::HiLog::Fatal(LABEL, "%{public}s: %{public}s", component, msg); in DefaultLogger()
43 OHOS::HiviewDFX::HiLog::Warn(LABEL, "%{public}s: %{public}s", component, msg); in DefaultLogger()
51 OH_LOG_Print(LOG_APP, LOG_DEBUG, 0xFF00, "ArkEtsVm", "%s: %s", component, msg); in DefaultLogger()
54 OH_LOG_Print(LOG_APP, LOG_INFO, 0xFF00, "ArkEtsVm", "%s: %s", component, msg); in DefaultLogger()
57 OH_LOG_Print(LOG_APP, LOG_ERROR, 0xFF00, "ArkEtsVm", "%s: %s", component, msg); in DefaultLogger()
60 OH_LOG_Print(LOG_APP, LOG_FATAL, 0xFF00, "ArkEtsVm", "%s: %s", component, msg); in DefaultLogger()
63 OH_LOG_Print(LOG_APP, LOG_WARN, 0xFF00, "ArkEtsVm", "%s: %s", component, msg); in DefaultLogger()
/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.class_or_interface_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<Error>
56 class S<V> implements T<V> {
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/rules/
Drule38.ets.migrate.ets18 s: string;
20 let o1: GeneratedObjectLiteralInterface_1 = {n: 42, s: "foo"}
21 let o2: Object = {n: 42, s: "foo"}
22 let o3: object = {n: 42, s: "foo"}
24 let oo: Object[] = [{n: 1, s: "1"}, {n: 2, s: "2"}]
27 s: string
28 constructor(s: string) {
29 this.s = "s =" + s
32 let o4: C2 = {s: "foo"}
36 readonly s: string = ""
[all …]
Drule38.ets16 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/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/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/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.ets.migrate.ets18 s: string;
20 let obj: GeneratedObjectLiteralInterface_1 = {n: 42, s: 'foo'} // OK in TypeScript, CTE in ArkTS: u…
24 s: string = "";
27 let c1: C = {n: 42, s: 'foo'} // Declaration + initialization: type of the literla is inferred from…
30 c2 = {n: 42, s: 'foo'}; // Initialization after declaration: type of the literal is inferred from t…
32 let c3: Object = {n: 42, s: 'foo'} as C as Object; // Type of the literal is inferred from the 'as'…
39 foo({n: 42, s: 'foo'}); // Parsing as an argument: type of the literal is inferred from the type of…
42 …return {n: 42, s: 'foo'}; // Returning from function: type of the literal is inferred from the bar…
45 let cc: C[] = [{n: 1, s: '1'}, {n: 2, s: '2'}]; // Type of the literal is inferred from the type of…
49 c: C = {n: 0, s: ""};
[all …]
Dobject_literals_2.ets16 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_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 …]

12345678910>>...125