| /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/interop_js/tests/dynamic_with_lambda/ |
| D | dynamic_with_lambda.ets | 18 function TestArgs0(): int { 20 let f: () => int = (): int => { return 25; } 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/ets_frontend/ets2panda/test/runtime/ets/ |
| D | DefaultParam_4.ets | 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_2.ets | 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_5.ets | 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.ets | 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 { 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/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 | tagged_dictionary.h | 27 inline static int GetKeyIndex(int entry) in GetKeyIndex() 31 inline static int GetValueIndex(int entry) in GetValueIndex() 35 inline static int GetEntryIndex(int entry) in GetEntryIndex() 39 inline static int GetEntrySize() in GetEntrySize() 43 static int Hash(const JSTaggedValue &key); 44 static int Hash(const uint8_t* str, int strSize); 47 static bool IsMatch(const uint8_t* str, int size, const JSTaggedValue &other); 50 int numberOfElements = OrderHashTableT::DEFAULT_ELEMENTS_NUMBER); 52 PropertyAttributes GetAttributes(int entry) const; 53 void SetAttributes(const JSThread *thread, int entry, const PropertyAttributes &metaData); [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 | 38 static constexpr int MIN_CAPACITY = 7; 39 static constexpr int NUMBER_OF_ELEMENTS_INDEX = 0; 40 static constexpr int NUMBER_OF_HOLE_ENTRIES_INDEX = 1; 41 static constexpr int CAPACITY_INDEX = 2; 42 static constexpr int ROOT_INDEX = 3; 43 static constexpr int COMPARE_FUNCTION_INDEX = 4; 44 static constexpr int ELEMENTS_START_INDEX = 5; 45 static constexpr int MIN_SHRINK_CAPACITY = 15; 47 static JSHandle<Derived> Create(const JSThread *thread, int numberOfElements); 54 inline static int ComputeCapacity(int oldCapacity) in ComputeCapacity() [all …]
|
| D | linked_hash_table.h | 28 static int Hash(const JSThread *thread, JSTaggedValue key); 41 static const int MIN_CAPACITY = 4; 42 static const int NUMBER_OF_ELEMENTS_INDEX = 0; 43 static const int NUMBER_OF_DELETED_ELEMENTS_INDEX = 1; 44 static const int CAPACITY_INDEX = 2; 45 static const int NEXT_TABLE_INDEX = 3; 46 static const int ELEMENTS_START_INDEX = 4; 48 static const int MIN_SHRINK_CAPACITY = 16; 50 static JSHandle<Derived> Create(const JSThread *thread, int numberOfElements); 59 int numberOfAddedElements = 1); [all …]
|
| D | layout_info.h | 31 static constexpr int MIN_PROPERTIES_LENGTH = JSObject::MIN_PROPERTIES_LENGTH; 32 static constexpr int MAX_PROPERTIES_LENGTH = PropertyAttributes::MAX_FAST_PROPS_CAPACITY; 47 void Initialize(const JSThread *thread, int num = 0); 48 int GetPropertiesCapacity() const; 49 int NumberOfElements() const; 50 void SetNumberOfElements(const JSThread *thread, int properties); 51 uint32_t GetKeyIndex(int index) const; 52 uint32_t GetAttrIndex(int index) const; 53 …void SetPropertyInit(const JSThread *thread, int index, const JSTaggedValue &key, const PropertyAt… 54 void SetKey(const JSThread *thread, int index, const JSTaggedValue &key); [all …]
|
| D | tagged_hash_table.h | 30 inline int EntriesCount() const in EntriesCount() 35 inline int HoleEntriesCount() const in HoleEntriesCount() 40 inline int Size() const in Size() 50 inline void IncreaseHoleEntriesCount(const JSThread *thread, int number = 1) 56 inline static int ComputeHashTableSize(uint32_t atLeastSize) in ComputeHashTableSize() 60 int newSize = static_cast<int>(helpers::math::GetPowerOfTwoValue32(rawSize)); in ComputeHashTableSize() 65 int numOfAddedElements = 1) 69 int freeSize = table->Size() - table->EntriesCount() - numOfAddedElements; 71 int copyLength = Derived::GetEntryIndex(table->Size()); 79 …int newSize = Derived::ComputeCompactSize(table, ComputeHashTableSize(table->Size() + numOfAddedEl… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | Atomics.ets | 20 …vate static validateAtomicAccess(startByteOffset: int, elementSize: int, length: int, index: int):… 27 private static interpretWaitResult(waitResult: int): string { 54 public isLockFree(byteSize: int): boolean { 60 public static add(typedArray: Int8Array, index: int, value: byte): byte { 61 …lidateAtomicAccess(typedArray.byteOffset as int, Int8Array.BYTES_PER_ELEMENT as int, typedArray.le… 74 public static and(typedArray: Int8Array, index: int, value: byte): byte { 75 …lidateAtomicAccess(typedArray.byteOffset as int, Int8Array.BYTES_PER_ELEMENT as int, typedArray.le… 88 …public static compareExchange(typedArray: Int8Array, index: int, expectedValue: byte, replacementV… 89 …lidateAtomicAccess(typedArray.byteOffset as int, Int8Array.BYTES_PER_ELEMENT as int, typedArray.le… 103 public static exchange(typedArray: Int8Array, index: int, value: byte): byte { [all …]
|
| D | TypedArrays.ets | 43 this(buf, byteOffset as int, length as int) 55 public constructor(buf: Buffer, byteOffset: int, length: int) { 56 if (buf.getByteLength() % Int8Array.BYTES_PER_ELEMENT as int != 0) { 59 if (byteOffset % Int8Array.BYTES_PER_ELEMENT as int != 0) { 63 if (this.length as int * Int8Array.BYTES_PER_ELEMENT as int > buf.getByteLength()) { 79 public constructor(buf: Buffer, byteOffset: int) { 80 this(buf, byteOffset, buf.getByteLength() / Int8Array.BYTES_PER_ELEMENT as int) 91 this(buf, byteOffset as int) 100 this(buf, 0, buf.getByteLength() / Int8Array.BYTES_PER_ELEMENT as int) 108 public constructor(length: int) { [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/02.evaluation_of_expressions/01.type_of_expression/ |
| D | typ.ets | 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/05.statements/05.function_overloading/ |
| D | fn_overloading.ets | 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 …]
|
| D | fn_overloading_n.params.yaml | 25 function foo(): int { 31 function foo(): int { 54 function foo<V, T>(a: V, b: T): int { 78 function foo(a: I): int { 81 function foo(a: J): int { 85 let i: int = foo(new A()); 91 function foo(a: A|null): int { 94 function foo(a: B|null): int { 98 let i: int = foo(null); 101 function foo(a: int, ...p: int[]): int { [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/tests/ets-templates/07.expressions/23.relational_expressions/01.numerical_comparison_operators/ |
| D | integer_comparison.params.yaml | 18 - {xtype: int, xvalue: 0, ytype: int, yvalue: 1, op: ">", result: "false"} 19 - {xtype: int, xvalue: 1, ytype: int, yvalue: 0, op: ">", result: "true"} 20 - {xtype: int, xvalue: -1, ytype: int, yvalue: 0, op: ">", result: "false"} 21 - {xtype: int, xvalue: 0, ytype: int, yvalue: -1, op: ">", result: "true"} 32 - {xtype: int, xvalue: 0, ytype: int, yvalue: 1, op: "<", result: "true"} 33 - {xtype: int, xvalue: 1, ytype: int, yvalue: 0, op: "<", result: "false"} 34 - {xtype: int, xvalue: -1, ytype: int, yvalue: 0, op: "<", result: "true"} 35 - {xtype: int, xvalue: 0, ytype: int, yvalue: -1, op: "<", result: "false"} 46 - {xtype: int, xvalue: 0, ytype: int, yvalue: 1, op: ">=", result: "false"} 47 - {xtype: int, xvalue: 1, ytype: int, yvalue: 0, op: ">=", result: "true"} [all …]
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| 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/napi/sampler/ |
| D | SamplerNapiTest.ets | 16 function main(): int { 19 let res: int = 0; 47 function release_main(): int { 50 let res: int = 0; 79 function CallNativeSlowFunction(iterations: int): int { 83 function CallNativeFastFunction(iterations: int): int { 84 let ret: int = 0; 85 for (let i: int = 0; i < iterations; i++) { 91 function CallNativeNAPISlowFunction(iterations: int): int { 95 function SlowETSFunction(iterations: int): int { [all …]
|