| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/ |
| D | list.std_core_array_copyTo_exception.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 - { 35 dstStart: 1, 37 srcEnd: 1, 45 srcEnd: 1, 51 dstStart: -1, 52 srcStart: -2, 53 srcEnd: -2, 59 dstStart: 1, [all …]
|
| D | list.std_core_byte_instance.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 - { 18 init_object_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]", 25 expected_test_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]", 28 - { 32 init_object_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]", 39 expected_test_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]", 42 - { 46 init_object_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]", [all …]
|
| D | list.std_core_int_instance.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 - { 18 init_object_data: "[0 as int, 1 as int, Int.MIN_VALUE as int, Int.MAX_VALUE as int]", 25 expected_test_data: "[0 as int, 1 as int, Int.MIN_VALUE as int, Int.MAX_VALUE as int]", 28 - { 32 init_object_data: "[0 as int, 1 as int, Byte.MIN_VALUE as int, Byte.MAX_VALUE as int]", 39 expected_test_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]", 42 - { 46 init_object_data: "[0 as int, 1 as int, Short.MIN_VALUE as int, Short.MAX_VALUE as int]", [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/03.numeric_operator_contexts/binary_numeric_promotion/ |
| D | result_type_cond.params.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 --- 16 - { type: byte, val: 1 as byte, rt: byte, rv: 1 as byte, res: 1 } 17 - { type: byte, val: 1 as byte, rt: short, rv: 1 as short, res: 2 } 18 - { type: byte, val: 1 as byte, rt: char, rv: "c'0'", res: 40 } 19 - { type: byte, val: 1 as byte, rt: int, rv: 1, res: 3 } 20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, res: 4 } 21 - { type: byte, val: 1 as byte, rt: float, rv: 1.0 as float, res: 7 } 22 - { type: byte, val: 1 as byte, rt: double, rv: 1.0, res: 8 } [all …]
|
| D | result_type_bool.params.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 --- 16 - { type: byte, val: 1 as byte, rt: byte, rv: 1 as byte, op: '==' } 17 - { type: byte, val: 1 as byte, rt: short, rv: 1 as short, op: '!=' } 18 - { type: byte, val: 1 as byte, rt: char, rv: "c'0'", op: '>' } 19 - { type: byte, val: 1 as byte, rt: int, rv: 1, op: '>=' } 20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, op: '<' } 21 - { type: byte, val: 1 as byte, rt: float, rv: 1.0 as float, op: '<=' } 22 - { type: byte, val: 1 as byte, rt: double, rv: 1.0, op: '==' } [all …]
|
| D | result_type_arith.params.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 --- 16 - { type: byte, val: 1 as byte, rt: byte, rv: 1 as byte, op: '+', res: 3 } 17 - { type: byte, val: 1 as byte, rt: short, rv: 1 as short, op: '-', res: 3 } 18 - { type: byte, val: 1 as byte, rt: char, rv: "c'0'", op: '*', res: 3 } 19 - { type: byte, val: 1 as byte, rt: int, rv: 1, op: '/', res: 3 } 20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, op: '%', res: 4 } 21 - { type: byte, val: 1 as byte, rt: float, rv: 1.0 as float, op: '+', res: 7 } 22 - { type: byte, val: 1 as byte, rt: double, rv: 1.0, op: '-', res: 8 } [all …]
|
| D | result_type_bitwise.params.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 --- 16 - { type: byte, val: 1 as byte, rt: byte, rv: 1 as byte, op: '&', res: 3 } 17 - { type: byte, val: 1 as byte, rt: short, rv: 1 as short, op: '^', res: 3 } 18 - { type: byte, val: 1 as byte, rt: char, rv: "c'0'", op: '|', res: 3 } 19 - { type: byte, val: 1 as byte, rt: int, rv: 1, op: '&', res: 3 } 20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, op: '^', res: 4 } 21 - { type: byte, val: 1 as byte, rt: float, rv: 1.0 as float, op: '&', res: 3 } 22 - { type: byte, val: 1 as byte, rt: double, rv: 4, op: '^', res: 4 } [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/number/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 16 1.12356e-4 17 -1.00000000000000000000000000000000000000000000000 29 1 33 -1.1111111111111111e+21 34 -0.1 35 -0.10 36 -0.100 37 -0.01 38 -0.010 [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | StringBase64.sts | 2 * Copyright (c) 2022-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 19 …-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1… 24 for (i = 0; i < (length - 2); i += 3) { 26 …d(StringBase64.TO_BASE64_TABLE.charAt(((data.charAt(i) & 0x03) << 4) + (data.charAt(i + 1) >> 4))); 27 …result.append(StringBase64.TO_BASE64_TABLE.charAt(((data.charAt(i + 1) & 0x0f) << 2) + (data.charA… 31 i = length - (length % 3); 34 …d(StringBase64.TO_BASE64_TABLE.charAt(((data.charAt(i) & 0x03) << 4) + (data.charAt(i + 1) >> 4))); 35 … result.append(StringBase64.TO_BASE64_TABLE.charAt((data.charAt(i + 1) & 0x0f) << 2)); 53 if (c == -1) { [all …]
|
| D | shift.sts | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 21 [0x7FFFFFFF, -32, 0x7FFFFFFF], 22 [0x7FFFFFFF, 1, 0x3FFFFFFF], 24 [0x7FFFFFFF, 30, 1], 25 [0x7FFFFFFF, 62, 1], 28 [0x7FFFFFFF, -1, 0], 29 [-1, 0, -1], 30 [-1, 1, -1], 31 [-1, 31, -1], [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | StringBase64.sts | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 …-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1… 24 for (i = 0; i < (length - 2); i += 3) { 26 …d(StringBase64.TO_BASE64_TABLE.charAt(((data.charAt(i) & 0x03) << 4) + (data.charAt(i + 1) >> 4))); 27 …result.append(StringBase64.TO_BASE64_TABLE.charAt(((data.charAt(i + 1) & 0x0f) << 2) + (data.charA… 31 i = length - (length % 3); 34 …d(StringBase64.TO_BASE64_TABLE.charAt(((data.charAt(i) & 0x03) << 4) + (data.charAt(i + 1) >> 4))); 35 … result.append(StringBase64.TO_BASE64_TABLE.charAt((data.charAt(i + 1) & 0x0f) << 2)); 53 if (c == -1) { 59 leftbits -= 8; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/06.type_inference/01.smart_types/ |
| D | cond_expr.params.yaml | 6 # http://www.apache.org/licenses/LICENSE-2.0 16 - decl: |- 19 v.meth_i(1) != 'I1' ? 1 : 20 v.meth_a(1) != 'A1' ? 1 : 21 v instanceof C && v.meth_c(1) != 'C1' ? 1 : 22 v instanceof D && v.meth_d(1) != 'D1' ? 1 : 0 24 code: |- 27 - decl: |- 30 v.meth_i(1) != 'I1' ? 1 : 31 v.meth_a(1) != 'A1' ? 1 : [all …]
|
| D | if_stmt.params.yaml | 6 # http://www.apache.org/licenses/LICENSE-2.0 16 - decl: |- 19 if (v.meth_i(1) != 'I1') { 20 return 1 22 if (v.meth_a(1) != 'A1') { 23 return 1 26 if (v.meth_c(1) != 'C1') { 27 return 1 31 if (v.meth_d(1) != 'D1') { 32 return 1 [all …]
|
| D | while_stmt.params.yaml | 6 # http://www.apache.org/licenses/LICENSE-2.0 16 - decl: |- 19 while (v.meth_i(1) != 'I1') { 20 return 1 22 while (v.meth_a(1) != 'A1') { 23 return 1 25 while (v instanceof C && v.meth_c(1) != 'C1') { 26 return 1 28 while (v instanceof D && v.meth_d(1) != 'D1') { 29 return 1 [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/03.operator_precedence/ |
| D | unary.sts | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 16 /*--- 18 ---*/ 25 i = + t2 * t4; if (i != 8) return 1; 26 i = + + t2 * t4; if (i != 8) return 1; 27 i = - t2 * t4; if (i != -8) return 1; 28 i = - - t2 * t4; if (i != 8) return 1; 29 i = ~ t2 * t4; if (i != -12) return 1; 30 i = ~ ~ t2 * t4; if (i != 8) return 1; [all …]
|
| D | typeof.sts | 7 * http://www.apache.org/licenses/LICENSE-2.0 16 /*--- 18 ---*/ 29 if (str != "number" || num != 2.0) return 1; 32 str = typeof num-- 33 if (str != "number" || num != 1.0) return 1; 37 if (str != "string" || num != 2.0) return 1; 40 str = typeof typeof num-- 41 if (str != "string" || num != 1.0) return 1; 46 if (str != "number" || num != 2.0) return 1; [all …]
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | base64.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 28 // 2: the index do not exceed the range of encodedRes and form a complete four-character block in Base64Encode() 29 …for (size_t i = 0, j = 0; i < encodedRes.length() - 2; i += TRANSFORMED_CHAR_NUM, j += TO_TRANSFOR… in Base64Encode() 34 encodedRes[i + 1] = base64CharSet[(static_cast<unsigned int>(inputString[j]) & 0x03) << 4 | in Base64Encode() 35 (static_cast<unsigned int>(inputString[j + 1]) & 0xf0) >> 4]; in Base64Encode() 37 … encodedRes[i + 2] = base64CharSet[(static_cast<unsigned int>(inputString[j + 1]) & 0x0f) << 2 | in Base64Encode() 44 case 1: in Base64Encode() 45 // 1,2: the original character is one, and two characters are missing after conversion in Base64Encode() 46 encodedRes[encodedRes.length() - 2] = '='; in Base64Encode() 47 encodedRes[encodedRes.length() - 1] = '='; in Base64Encode() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/strings/ |
| D | string_compare_to.sts | 7 * http://www.apache.org/licenses/LICENSE-2.0 20 * {1, 4-1, 4, 4+1, 8-1, 8, 8+1, long} x Latin 21 * {1, 2, 4-1, 4, 4+1, long} x utf-16 24 ["", "", 0], // both empty -> EQ 25 // 1 char string comparison 26 ["", "A", -1], // first empty -> LT 27 ["A", "", 1], // second empty -> GT 28 ["А", "Ф", -1], // latin vs utf-16 -> LT 29 ["Ф", "A", 1 ], // utf-16 vs latin -> GT 30 [ "A", "A", 0 ], // same str latin -> EQ [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/array/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 15 1,1,0,0,1,1 19 1,2,3,4,5 21 1,2,3,4 23 1,2,3,3 26 5,4,3,2,1 37 1 42 1 45 1 64 1 [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/stringlocalecompare/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 15 -1 16 1 17 -1 18 1 19 1 20 -1 21 1 22 1 24 -1 [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/02.floating_point_literals/ |
| D | float_literals.params.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 --- # List of valid float literals 17 - '3.14' 18 - '3.141_592' 19 - '.5' 20 - '1e10' 21 - '1E10' 23 - '0.0' 24 - '0.' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/02.array_creation_expressions/ |
| D | array_creation_expressions.params.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 --- # List of valid array creation expressions 16 - "A[1]" 17 - "int[1]" 18 - "byte[1]" 19 - "short[1]" 20 - "long[1]" 21 - "float[1]" 22 - "double[1]" [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/01.integer_types_and_operations/right_shift/ |
| D | right_shift_int.params.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 --- # list of values 16 - { left: 0, right: 1, result: 0 } 17 - { left: 0, right: 31, result: 0 } 18 - { left: 1, right: 1, result: 0 } 19 - { left: 1, right: 31, result: 0 } 20 - { left: -1, right: 1, result: -1 } 21 - { left: -1, right: 31, result: -1 } 22 - { left: Int.MIN_VALUE, right: 1, result: -1073741824 } [all …]
|
| D | right_shift_byte.params.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 --- # list of values 16 - { left: 0, right: 1, result: 0 } 17 - { left: 0, right: 31, result: 0 } 18 - { left: 1, right: 1, result: 0 } 19 - { left: 1, right: 31, result: 0 } 20 - { left: -1, right: 1, result: -1 } 21 - { left: -1, right: 31, result: -1 } 22 - { left: "Byte.MIN_VALUE as byte", right: 1, result: -64 } [all …]
|
| D | right_shift_short.params.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 --- # list of values 16 - { left: 0, right: 1, result: 0 } 17 - { left: 0, right: 31, result: 0 } 18 - { left: 1, right: 1, result: 0 } 19 - { left: 1, right: 31, result: 0 } 20 - { left: -1, right: 1, result: -1 } 21 - { left: -1, right: 31, result: -1 } 22 - { left: "Short.MIN_VALUE as short", right: 1, result: -16384 } [all …]
|