| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/ |
| D | list.std_core_long_instance.yaml | 16 object_type: Long, 17 init_object_data_type: "long[]", 18 init_object_type: long, 23 method_return_type: long, 24 …init_object_data: "[0 as long, 1 as int, -1 as int, Long.MIN_VALUE as long, Long.MAX_VALUE as long… 25 expected_data_type: "long[]", 26 …expected_test_data: "[0 as long, 1 as long, -1 as long, Long.MIN_VALUE as long, Long.MAX_VALUE as … 33 object_type: Long, 34 init_object_data_type: "long[]", 35 init_object_type: long, [all …]
|
| D | list.std_core_long_static.yaml | 16 object_type: Long, 17 param_init_data_types: {"param1":"long[]"} , 18 param_types: {"param1":long}, 20 method_return_type: Long, 21 expected_data_item_type: long, 22 expected_data_type: "long[]", 23 …param_list: {"param1": "[(-1) as long, 0 as long, 1 as long, Long.MAX_VALUE as long, Long.MIN_VALU… 24 …expected_test_data: "[(-1) as long, 0 as long, 1 as long, Long.MAX_VALUE as long, Long.MIN_VALUE a…
|
| D | list.std_core_value.yaml | 45 name: long, 46 …init_values: {"0 as long", "1 as long", "-1 as long", "Long.MIN_VALUE as long", "Long.MAX_VALUE as… 47 value_name: Long, 93 name: Long, 94 …Long.valueOf(0 as long)", "Long.valueOf(1 as long)", "Long.valueOf(-1 as long)", "Long.valueOf(Lon… 95 value_name: Long, 147 name: "long[]", 148 …init_values: {"[0 as long]", "[0 as long, 1 as long, -1 as long, Long.MIN_VALUE as long, Long.MAX_… 195 name: "Long[]", 196 …Long.valueOf(0 as long)]", "[Long.valueOf(0 as long), Long.valueOf(1 as long), Long.valueOf(-1 as …
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | Long.sts | 19 * Represents boxed long value and related operations 21 export final class Long extends Integral implements Comparable<Long>, JSONable<Int> { 22 private value: long; 25 * Constructs a new Long instance with initial value zero 32 * Constructs a new Long instance with provided initial value 36 public constructor(value: long) { 41 * Constructs a new Long instance with provided initial value 45 public constructor(value: Long) { 54 public unboxed(): long { 65 public static valueOf(value: long): Long { [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | PunctuatorAnyEqual.sts | 19 let a_long : long = 1234; 25 a_long = 1234 as long; 30 a_long = 1234 as long; 35 a_long = 1234 as long; 40 a_long = 1234 as long; 45 a_long = 1 as long; 50 a_long = 1 as long; 55 a_long = 1 as long; 60 a_long = 1 as long; 65 a_long = 1 as long; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/common/bouncing_peas/ |
| D | bouncing_peas_unit_native.sts | 16 native function _skoala_createRedrawerPeer(redrawer: Object/*any*/): long/*KNativePointer*/; 17 native function _skoala_drawPicture(picture: long/*KNativePointer*/, data: long/*KNativePointer*/, … 18 native function _skoala_getFrame(peer: long/*KNativePointer*/, a: int, b: int): long/*KNativePointe… 19 native function _skoala_getFrameWidth(peer: long/*KNativePointer*/, frame: long/*KNativePointer*/):… 20 native function _skoala_getFrameHeight(peer: long/*KNativePointer*/, frame: long/*KNativePointer*/)… 21 …(width: int, height: int, scale: float, peer: long/*KNativePointer*/, frame: long/*KNativePointer*… 22 native function _skoala_providePeerFactory(func: long/*KNativePointer*/, arg: long/*KNativePointer*… 24 …n _skoala_Canvas__1nDrawDrawable(ptr: long/*KNativePointer*/, drawablePtr: long/*KNativePointer*/,… 25 native function _skoala_Canvas__1nRestore(ptr: long/*KNativePointer*/): void; 26 native function _skoala_Canvas__1nSave(ptr: long/*KNativePointer*/): int; [all …]
|
| D | bouncing_peas.sts | 16 function _skoala_createRedrawerPeer(redrawer: Object/*any*/): long/*KNativePointer*/ { return 1; } 17 function _skoala_drawPicture(picture: long/*KNativePointer*/, data: long/*KNativePointer*/, cb: Obj… 18 function _skoala_getFrame(peer: long/*KNativePointer*/, a: int, b: int): long/*KNativePointer*/ { r… 19 function _skoala_getFrameWidth(peer: long/*KNativePointer*/, frame: long/*KNativePointer*/): int { … 20 function _skoala_getFrameHeight(peer: long/*KNativePointer*/, frame: long/*KNativePointer*/): int {… 21 …(width: int, height: int, scale: float, peer: long/*KNativePointer*/, frame: long/*KNativePointer*… 22 function _skoala_providePeerFactory(func: long/*KNativePointer*/, arg: long/*KNativePointer*/): voi… 25 …n _skoala_Canvas__1nDrawDrawable(ptr: long/*KNativePointer*/, drawablePtr: long/*KNativePointer*/,… 26 function _skoala_Canvas__1nRestore(ptr: long/*KNativePointer*/): void { } 27 function _skoala_Canvas__1nSave(ptr: long/*KNativePointer*/): int { return 1; } [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_bitwise.params.yaml | 20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, op: '^', res: 4 } 28 - { type: byte, val: 1 as byte, rt: Long, rv: new Long(1 as long), op: '&', res: 4 } 36 - { type: short, val: 1 as short, rt: long, rv: 1 as long, op: '|', res: 4 } 44 - { type: short, val: 1 as short, rt: Long, rv: new Long(1 as long), op: '^', res: 4 } 52 - { type: char, val: "c'2'", rt: long, rv: 1 as long, op: '&', res: 4 } 60 - { type: char, val: "c'2'", rt: Long, rv: new Long(1 as long), op: '|', res: 4 } 68 - { type: int, val: 1, rt: long, rv: 1 as long, op: '^', res: 4 } 76 - { type: int, val: 1, rt: Long, rv: new Long(1 as long), op: '&', res: 4 } 80 - { type: long, val: 1 as long, rt: byte, rv: 1 as byte, op: '^', res: 4 } 81 - { type: long, val: 1 as long, rt: short, rv: 1 as short, op: '|', res: 4 } [all …]
|
| D | result_type_bool.params.yaml | 20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, op: '<' } 28 - { type: byte, val: 1 as byte, rt: Long, rv: new Long(1 as long), op: '<=' } 36 - { type: short, val: 1 as short, rt: long, rv: 1 as long, op: '==' } 44 - { type: short, val: 1 as short, rt: Long, rv: new Long(1 as long), op: '!=' } 52 - { type: char, val: "c'2'", rt: long, rv: 1 as long, op: '>' } 60 - { type: char, val: "c'2'", rt: Long, rv: new Long(1 as long), op: '>=' } 68 - { type: int, val: 1, rt: long, rv: 1 as long, op: '<' } 76 - { type: int, val: 1, rt: Long, rv: new Long(1 as long), op: '<=' } 80 - { type: long, val: 1 as long, rt: byte, rv: 1 as byte, op: '>' } 81 - { type: long, val: 1 as long, rt: short, rv: 1 as short, op: '>=' } [all …]
|
| D | result_type_cond.params.yaml | 20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, res: 4 } 28 - { type: byte, val: 1 as byte, rt: Long, rv: new Long(1 as long), res: 40 } 36 - { type: short, val: 1 as short, rt: long, rv: 1 as long, res: 4 } 44 - { type: short, val: 1 as short, rt: Long, rv: new Long(1 as long), res: 40 } 52 - { type: char, val: "c'2'", rt: long, rv: 1 as long, res: 40 } 60 - { type: char, val: "c'2'", rt: Long, rv: new Long(1 as long), res: 40 } 68 - { type: int, val: 1, rt: long, rv: 1 as long, res: 4 } 76 - { type: int, val: 1, rt: Long, rv: new Long(1 as long), res: 40 } 80 - { type: long, val: 1 as long, rt: byte, rv: 1 as byte, res: 4 } 81 - { type: long, val: 1 as long, rt: short, rv: 1 as short, res: 4 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/01.assignment-like_contexts/ |
| D | prim_narrowing.params.yaml | 34 - { stype: long, src: Long.MIN_VALUE as long, dtype: byte, dst: 0 as byte } 35 - { stype: long, src: Long.MAX_VALUE as long, dtype: byte, dst: (-1) as byte } 36 - { stype: long, src: Long.MIN_VALUE as long, dtype: short, dst: 0 as short } 37 - { stype: long, src: Long.MAX_VALUE as long, dtype: short, dst: (-1) as short } 38 - { stype: long, src: Long.MIN_VALUE as long, dtype: char, dst: "c'\\u0000'" } 39 - { stype: long, src: Long.MAX_VALUE as long, dtype: char, dst: "c'\\uffff'" } 40 - { stype: long, src: Long.MIN_VALUE as long, dtype: int, dst: 0 as int } 41 - { stype: long, src: Long.MAX_VALUE as long, dtype: int, dst: (-1) as int } 51 - { stype: float, src: Float.MIN_VALUE as float, dtype: long, dst: 0 as long } 52 - { stype: float, src: Float.MAX_VALUE as float, dtype: long, dst: 9223372036854775807 as long } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/04.casting_contexts_and_conversions/ |
| D | sequenced.params.yaml | 19 - { stype: byte, sval: '0 as byte', dtype: Long } 26 - { stype: char, sval: "c'X'", dtype: Long } 33 - { stype: short, sval: '0 as short', dtype: Long } 40 - { stype: int, sval: '0', dtype: Long } 44 - { stype: long, sval: '0 as long', dtype: Byte } 45 - { stype: long, sval: '0 as long', dtype: Short } 46 - { stype: long, sval: '0 as long', dtype: Char } 47 - { stype: long, sval: '0 as long', dtype: Int } 48 - { stype: long, sval: '0 as long', dtype: Float } 49 - { stype: long, sval: '0 as long', dtype: Double } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/comp_obj/ |
| D | comp-intf.params.yaml | 38 to_type: long 77 to_type: long 115 to_type: long 147 - from_type: Long 148 to_type: long 150 - { expr: new Long(), val: 0 } 151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 } 152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 } 153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 } 154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 } [all …]
|
| D | comp-clss.params.yaml | 38 to_type: long 77 to_type: long 115 to_type: long 147 - from_type: Long 148 to_type: long 150 - { expr: new Long(), val: 0 } 151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 } 152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 } 153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 } 154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/call_func/ |
| D | call-func.params.yaml | 38 to_type: long 77 to_type: long 115 to_type: long 147 - from_type: Long 148 to_type: long 150 - { expr: new Long(), val: 0 } 151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 } 152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 } 153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 } 154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/decl_const/ |
| D | decl-const.params.yaml | 38 to_type: long 77 to_type: long 115 to_type: long 147 - from_type: Long 148 to_type: long 150 - { expr: new Long(), val: 0 } 151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 } 152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 } 153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 } 154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/assn_var/ |
| D | assn-var.params.yaml | 38 to_type: long 77 to_type: long 115 to_type: long 147 - from_type: Long 148 to_type: long 150 - { expr: new Long(), val: 0 } 151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 } 152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 } 153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 } 154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/call_meth/ |
| D | call-meth.params.yaml | 38 to_type: long 77 to_type: long 115 to_type: long 147 - from_type: Long 148 to_type: long 150 - { expr: new Long(), val: 0 } 151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 } 152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 } 153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 } 154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/call_lmbd/ |
| D | call-lmbd.params.yaml | 38 to_type: long 77 to_type: long 115 to_type: long 147 - from_type: Long 148 to_type: long 150 - { expr: new Long(), val: 0 } 151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 } 152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 } 153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 } 154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/comp_arr/ |
| D | comp-arr.params.yaml | 38 to_type: long 77 to_type: long 115 to_type: long 147 - from_type: Long 148 to_type: long 150 - { expr: new Long(), val: 0 } 151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 } 152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 } 153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 } 154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/call_cons/ |
| D | call-cons.params.yaml | 38 to_type: long 77 to_type: long 115 to_type: long 147 - from_type: Long 148 to_type: long 150 - { expr: new Long(), val: 0 } 151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 } 152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 } 153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 } 154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/decl_field/ |
| D | decl-field.params.yaml | 38 to_type: long 77 to_type: long 115 to_type: long 147 - from_type: Long 148 to_type: long 150 - { expr: new Long(), val: 0 } 151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 } 152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 } 153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 } 154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/decl_var/ |
| D | decl-var.params.yaml | 38 to_type: long 77 to_type: long 115 to_type: long 147 - from_type: Long 148 to_type: long 150 - { expr: new Long(), val: 0 } 151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 } 152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 } 153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 } 154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/01.integer_types_and_operations/subtraction/ |
| D | subtraction_long.params.yaml | 19 - { left: Long.MAX_VALUE, right: 0, result: Long.MAX_VALUE } 20 - { left: Long.MAX_VALUE, right: 1, result: 9223372036854775806 } 21 - { left: Long.MIN_VALUE, right: 0, result: Long.MIN_VALUE } 22 - { left: Long.MIN_VALUE, right: 1, result: Long.MAX_VALUE } 25 - { left: Long.MIN_VALUE, right: -1, result: -9223372036854775807 } 26 - { left: Long.MAX_VALUE, right: -1, result: Long.MIN_VALUE } 27 - { left: Long.MIN_VALUE, right: Long.MAX_VALUE, result: 1 } 28 - { left: Long.MAX_VALUE, right: Long.MIN_VALUE, result: -1 }
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/algorithms/ |
| D | PrimesTest.sts | 17 function cmp(x: long[], y: long[]): boolean { 29 function prime_factors_trivial(n0: long): long[] { 30 let primes: long[] = [] 31 let factor: long = 2 36 n = (n / factor) as long; 44 function prime_factors_trivial_plus(n0: long): long[] { 45 let primes: long[] = []; 46 let factor: long = 3; 47 let n: long = n0; 49 primes = concat(primes, [2 as long]); [all …]
|