| /arkcompiler/ets_frontend/es2panda/test/parser/ts/stack_overflow/ |
| D | stack_overflow_as.ts | 18 a as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 19 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 20 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 21 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 22 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 23 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 24 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 25 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 26 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 27 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int [all …]
|
| D | stack_overflow_as_normal.ts | 18 a as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 19 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 20 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 21 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 22 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 23 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 24 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 25 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 26 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int 27 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/ |
| D | list.std_core_int_instance.yaml | 16 object_type: Int, 17 init_object_data_type: "int[]", 18 init_object_data: "[0 as int, 1 as int, Int.MIN_VALUE as int, Int.MAX_VALUE as int]", 21 method_return_type: int, 22 expected_data_item_type: int, 23 expected_data_type: "int[]", 25 expected_test_data: "[0 as int, 1 as int, Int.MIN_VALUE as int, Int.MAX_VALUE as int]", 30 object_type: Int, 31 init_object_data_type: "int[]", 32 init_object_data: "[0 as int, 1 as int, Byte.MIN_VALUE as int, Byte.MAX_VALUE as int]", [all …]
|
| D | list.std_core_int_static.yaml | 16 object_type: Int, 17 param_init_data_types: {"param1":"int[]"} , 18 param_types: {"param1":int}, 20 method_return_type: Int, 21 expected_data_item_type: int, 22 expected_data_type: "int[]", 23 …param_list: {"param1": "[(-1) as int, 0 as int, 1 as int, Int.MAX_VALUE as int, Int.MIN_VALUE as i… 24 …expected_test_data: "[(-1) as int, 0 as int, 1 as int, Int.MAX_VALUE as int, Int.MIN_VALUE as int]…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/24.relational_expressions/01.numerical_comparison_operators/ |
| D | integer_comparison.params.yaml | 18 …- {xtype: int, xboxed: Int, xvalue: 0, ytype: int, yboxed: Int, yvalue: 1, op: ">", result: "fal… 19 …- {xtype: int, xboxed: Int, xvalue: 1, ytype: int, yboxed: Int, yvalue: 0, op: ">", result: "tru… 20 …- {xtype: int, xboxed: Int, xvalue: -1, ytype: int, yboxed: Int, yvalue: 0, op: ">", result: "fal… 21 …- {xtype: int, xboxed: Int, xvalue: 0, ytype: int, yboxed: Int, yvalue: -1, op: ">", result: "tru… 32 …- {xtype: int, xboxed: Int, xvalue: 0, ytype: int, yboxed: Int, yvalue: 1, op: "<", result: "tru… 33 …- {xtype: int, xboxed: Int, xvalue: 1, ytype: int, yboxed: Int, yvalue: 0, op: "<", result: "fal… 34 …- {xtype: int, xboxed: Int, xvalue: -1, ytype: int, yboxed: Int, yvalue: 0, op: "<", result: "tru… 35 …- {xtype: int, xboxed: Int, xvalue: 0, ytype: int, yboxed: Int, yvalue: -1, op: "<", result: "fal… 46 …- {xtype: int, xboxed: Int, xvalue: 0, ytype: int, yboxed: Int, yvalue: 1, op: ">=", result: "fa… 47 …- {xtype: int, xboxed: Int, xvalue: 1, ytype: int, yboxed: Int, yvalue: 0, op: ">=", result: "tr… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/dynamic_with_lambda/ |
| D | dynamic_with_lambda.sts | 18 function TestArgs0(): int { 20 let f: () => int = (): int => { return 25 as int; } 21 let res = a.bar(f) as int; 25 function TestArgs1(): int { 27 let f: (x: int) => int = (x: int): int => { return x * x; } 28 let res = a.bar(f, 5) as int; 32 function TestArgs2(): 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; 39 function TestLambdaJSValue(): int { [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | ArrayBuffer.sts | 23 abstract getByteLength(): int 24 abstract at(i: int): byte 25 abstract set(i: int, b: byte) 26 …// NOTE (egor-porsev): should be slice(int, int) without an extra 'sliceInternal' method. This is … 27 abstract sliceInternal(begin: int, end: int): Buffer 57 public constructor(length: int) 70 this(length as int) 96 internal override sliceInternal(begin: int, end: int): Buffer { 127 if (end == undefined) return this.slice(begin as int) 128 else return this.slice(begin as int, end as int) [all …]
|
| D | Atomics.sts | 20 …vate static validateAtomicAccess(startByteOffset: int, elementSize: int, length: int, index: int):… 27 private static interpretWaitResult(waitResult: int): string { 55 public static isLockFree(byteSize: int): boolean { 59 …t64Array | Uint8Array | Uint16Array | Uint32Array | BigUint64Array, index: int, value: number): nu… 61 …lidateAtomicAccess(typedArray.byteOffset as int, Int8Array.BYTES_PER_ELEMENT as int, typedArray.le… 73 …idateAtomicAccess(typedArray.byteOffset as int, Int16Array.BYTES_PER_ELEMENT as int, typedArray.le… 85 …idateAtomicAccess(typedArray.byteOffset as int, Int32Array.BYTES_PER_ELEMENT as int, typedArray.le… 89 let newValue = (oldValue + value) as int 94 return mem.atomicAddI32(indexedPosition, value as int) 97 …dateAtomicAccess(typedArray.byteOffset as int, BigInt64Array.BYTES_PER_ELEMENT as int, typedArray.… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | DefaultParam_2.sts | 22 assert foo4(new Int(5)) == 25; 24 assert foo5(new Int(5)) == 55; 25 assert foo5(new Int(5),new Int(10)) == 45; 33 assert foo9(new Int(5)) == -1; 35 assert foo10(new Int(5)) == 0; 36 assert foo10(new Int(5),new Int(10)) == -1; 41 assert foo13(new Int(10)) == 15; 42 assert foo14(new Int(10)) == 25; 44 assert foo15(new Int(10),new Int(5)) == 20; 45 assert foo16(new Int(10),new Int(5)) == 30; [all …]
|
| D | DefaultParam_4.sts | 24 assert boo.foo4(new Int(5)) == 25; 26 assert boo.foo5(new Int(5)) == 55; 27 assert boo.foo5(new Int(5),new Int(10)) == 45; 35 assert boo.foo9(new Int(5)) == -1; 37 assert boo.foo10(new Int(5)) == 0; 38 assert boo.foo10(new Int(5),new Int(10)) == -1; 43 assert boo.foo13(new Int(10)) == 15; 44 assert boo.foo14(new Int(10)) == 25; 46 assert boo.foo15(new Int(10),new Int(5)) == 20; 47 assert boo.foo16(new Int(10),new Int(5)) == 30; [all …]
|
| D | DefaultParam_5.sts | 24 assert goo2((a0:int):int=>{return 25;}) == 25; 36 function foo1(): int { 40 function foo2(a : int = foo1() ): int { 45 bar1(): int { 49 bar2(a : int = this.bar1() ): int { 54 function goo1(a : () => int = (): int => {return 15;}): int { 58 function goo2(a:(a0:int) => int = (a0:int):int=>{return 15;} ): int { 62 function boo1(a0:int = boo1(1,2,3),a1:int = boo1(1,2,3),a2:int = boo1(1,2,3)):int{ 66 function boo2(a0:int,a1:int,a2:int = boo2(1,2,3)):int{ 70 function doo1(a0:int = 5+3):int{ [all …]
|
| D | DefaultParam_1.sts | 40 function foo1(a: int = 10): int { 52 function foo4(a: int = 10, b: int = 20): int { 56 function foo5(a: int = 10, b: int = 20, c: int = 30): int { 62 function foo6(a?: int): int | undefined { 74 function foo13(a: int, b: int = 5): int { 78 function foo14(a: int, b: int = 5, c: int = 10): int { 82 function foo15(a: int, b: int, c: int = 5): int { 86 function foo16(a: int, b: int, c: int = 10, d: int = 5): int {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/05.overloading_and_overriding_in_interfaces/ |
| D | im_over.params.yaml | 47 meth(p: Byte): int 48 meth(p: Int): int 49 meth(p: long): int 50 meth(p: Long): int 51 meth(p: char): int 52 meth(p: Char): int 53 meth(p: boolean): int 54 meth(p: short): int 55 meth(p: double): int 56 meth(p: Object): int [all …]
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | sort_helper.h | 26 int base; 27 int len; 28 run(int b, int l) : base(b), len(l) { in run() 42 static const int MIN_MERGE = 32; 43 static const int MIN_GALLOP = 7; 44 static const int tempSize = 32; 45 int minGallop_; // default to MIN_GALLOP 50 int lo, int hi, int start, JSHandle<JSTaggedValue> fn); 51 … static int CountRunAndMakeAscending(JSThread *thread, JSHandle<TaggedArray> &array, int lo, int h, 53 static void ReverseRange(JSThread *thread, JSHandle<TaggedArray> &array, int from, int to); [all …]
|
| D | number_helper.h | 51 static constexpr int MAX_INT_VALUE = std::numeric_limits<int>::max(); 54 static constexpr int DOUBLE_MAX_PRECISION = 17; 55 static constexpr int DOUBLE_EXPONENT_BIAS = 0x3FF; 76 static constexpr int EXPONENTBIAS = DOUBLE_EXPONENT_BIAS + DOUBLE_SIGNIFICAND_SIZE; 77 static constexpr int kDENORMAL = -EXPONENTBIAS + 1; 81 static constexpr int RIGHT12 = 12; 82 static constexpr int SECONDS_TO_SUBTLE = 1000000; 83 static constexpr int RIGHT27 = 27; 84 static constexpr int LEFT25 = 25; 96 static constexpr int MAX_DIGITS = 21; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/07.function_and_method_overloading/01.function_overloading/ |
| D | fn_overloading.sts | 25 function foo(a: byte): int { 28 function foo(a: short): int { 31 function foo(a: char): int { 34 function foo(a: int): int { 37 function foo(a: long): int { 40 function foo(a: float): int { 43 function foo(a: double): int { 46 function foo(a: boolean): int { 49 function foo(a: Byte): int { 52 function foo(a: Short): int { [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/ |
| D | typ.sts | 24 function foo(a: byte): int { 27 function foo(a: short): int { 30 function foo(a: char): int { 33 function foo(a: int): int { 36 function foo(a: long): int { 39 function foo(a: float): int { 42 function foo(a: double): int { 45 function foo(a: boolean): int { 48 function foo(a: Byte): int { 51 function foo(a: Short): int { [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/16.coroutines/01.create_and_launch_coroutine/ |
| D | c.params.yaml | 24 function foo(p: int): int { 29 let r: Promise<int> = launch foo(42) 42 function foo(p: int): string { 51 function foo(p: int): String { 89 function foo(p: Int|null|undefined): Int|null|undefined { 94 let r: Promise<Int|undefined|null> = launch foo(42) 112 function foo(): int[] { 117 let r: Promise<int[]> = launch foo() 118 let q: int[] = await r 132 function foo(p: int): UT { [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | tagged_list.h | 29 static const int NUMBER_OF_NODE_INDEX = 0; 30 static const int NUMBER_OF_DELETED_NODES_INDEX = 1; 31 static const int HEAD_TABLE_INDEX = 2; 32 static const int TAIL_TABLE_INDEX = 3; 33 static const int ELEMENTS_START_INDEX = 4; 34 static const int DEFAULT_ARRAY_LENGHT = 10; 35 static const int NEXT_PTR_OFFSET = 1; 36 static const int PREV_PTR_OFFSET = 2; 38 … static JSHandle<Derived> Create(const JSThread *thread, int numberOfNodes = DEFAULT_ARRAY_LENGHT); 44 JSTaggedValue FindElementByIndex(int index) const; [all …]
|
| D | js_date.h | 26 static constexpr std::array<int, 2> APPROXIMATION_NUMBER = {100000, 3652425}; 29 static constexpr int CHINA_BEFORE_1901_ADDMS = 343000; 30 static constexpr int MS_PER_SECOND = 1000; 31 static constexpr int SEC_PER_MINUTE = 60; 32 static constexpr int SEC_PER_HOUR = 3600; 33 static constexpr int MIN_PER_HOUR = 60; 34 static constexpr int MS_PER_HOUR = 3600 * 1000; 35 static constexpr int MS_PER_DAY = 86400000; 36 static constexpr int DAY_PER_WEEK = 7; 37 static constexpr int DATE_LENGTH = 9; [all …]
|
| D | tagged_tree.h | 37 static constexpr int MIN_CAPACITY = 7; 38 static constexpr int NUMBER_OF_ELEMENTS_INDEX = 0; 39 static constexpr int NUMBER_OF_HOLE_ENTRIES_INDEX = 1; 40 static constexpr int CAPACITY_INDEX = 2; 41 static constexpr int ROOT_INDEX = 3; 42 static constexpr int COMPARE_FUNCTION_INDEX = 4; 43 static constexpr int ELEMENTS_START_INDEX = 5; 44 static constexpr int MIN_SHRINK_CAPACITY = 15; 46 static JSHandle<Derived> Create(const JSThread *thread, int numberOfElements); 53 inline static int ComputeCapacity(int oldCapacity) in ComputeCapacity() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | promiseCasting.sts | 16 let fs: ((p: int) => int)[] 18 function foo(i: int): ((p: int) => int) { 24 (p: int): int => p + 1, 25 (p: int): int => p + 2, 26 (p: int): int => p + 3, 27 (p: int): int => p + 4, 28 (p: int): int => p + 5, 29 (p: int): int => p + 6, 30 (p: int): int => p + 7, 31 (p: int): int => p + 8, [all …]
|
| /arkcompiler/toolchain/tooling/client/domain/ |
| D | debugger_client.h | 28 int lineNumber; 29 int columnNumber; 38 int BreakCommand(); 39 int BacktrackCommand(); 40 int DeleteCommand(); 41 int DisableCommand(); 42 int DisplayCommand(); 43 int EnableCommand(); 44 int FinishCommand(); 45 int FrameCommand(); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | Int.sts | 19 * Represents boxed int value and related operations 21 export final class Int extends Integral implements Comparable<Int>, JSONable<Int> { 22 private value: int; 25 * Constructs a new Int instance with initial value zero 32 * Constructs a new Int instance with provided initial value 36 public constructor(value: int) { 41 * Constructs a new Int instance with provided initial value 45 public constructor(value: Int) { 54 public unboxed(): int { 65 public static valueOf(value: int): Int { [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/spec/expressions/ |
| D | list.compound_assignment_01.yaml | 19 casting: "as int", 38 casting: "as int", 42 type1: "int", value1: "10", 45 casting: "as int", 52 casting: "as int", 59 casting: "as int", 67 casting: "as int", 74 casting: "as int", 81 casting: "as int", 88 casting: "as int", [all …]
|