Home
last modified time | relevance | path

Searched full:int (Results 1 – 25 of 4284) sorted by relevance

12345678910>>...172

/arkcompiler/ets_frontend/es2panda/test/parser/ts/stack_overflow/
Dstack_overflow_as.ts18 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 …]
Dstack_overflow_as_normal.ts18 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/
Dlist.std_core_int_instance.yaml16 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 …]
Dlist.std_core_int_static.yaml16 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/
Dinteger_comparison.params.yaml18 …- {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/
Ddynamic_with_lambda.sts18 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/
DArrayBuffer.sts23 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 …]
DAtomics.sts20 …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/
DDefaultParam_4.sts24 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 …]
DDefaultParam_2.sts22 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 …]
DDefaultParam_5.sts24 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 …]
DDefaultParam_1.sts40 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/
Dim_over.params.yaml47 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/
Dsort_helper.h26 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 …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/07.function_and_method_overloading/01.function_overloading/
Dfn_overloading.sts25 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/
Dtyp.sts24 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/toolchain/tooling/client/domain/
Ddebugger_client.h28 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/interop_js/tests/constructor/ts_to_sts/
Dconstructor.sts58 return TSClass._value as int == tsInt as int;
62 return createNamedClassFromTs()._value as int == tsInt as int;
66 return namedClassInstance._value as int == tsInt as int;
72 return TSClass._value as int == tsInt as int;
76 return createAnonymousClassFromTs()._value as int == tsInt as int;
80 return anonymousClassInstance._value as int == tsInt as int;
86 return TSClass._value as int == tsInt as int;
92 return TSClass._value as int == tsInt as int;
96 return functionConstructorInstance._value as int == tsInt as int;
102 return TSClass._value as int == tsInt as int;
[all …]
/arkcompiler/ets_runtime/ecmascript/
Dtagged_list.h29 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 …]
Djs_date.h26 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 …]
Dlayout_info.h32 static constexpr int MIN_PROPERTIES_LENGTH = JSObject::MIN_PROPERTIES_LENGTH;
33 static constexpr int MAX_PROPERTIES_LENGTH = PropertyAttributes::MAX_FAST_PROPS_CAPACITY;
53 void Initialize(const JSThread *thread, int num = 0);
54 int GetPropertiesCapacity() const;
55 int NumberOfElements() const;
56 void SetNumberOfElements(const JSThread *thread, int properties);
57 uint32_t GetKeyIndex(int index) const;
58 uint32_t GetAttrIndex(int index) const;
60 …void SetPropertyInit(const JSThread *thread, int index, const JSTaggedValue &key, const PropertyAt…
61 void SetKey(const JSThread *thread, int index, const JSTaggedValue &key);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_as_parameter/ts_to_sts/
Dgeneric_as_parameter.sts89 type Tuple = [int, boolean];
95 const etsArr: int[] = [etsNumber];
101 return anyTypeParameter(etsNumber) as int == etsNumber as int;
115 return res as Array<int> instanceof Array
116 && res[0] as int == etsArr[0] as int;
124 return anyTypeParameter(etsUnion) as int == etsNumber as int;
131 && res[0] as int == etsTuple[0] as int
137 return anyTypeParameterExplicitCallFromTsInt() as int == tsNumber as int;
150 return res as Array<int> instanceof Array
151 && res[0] as int == tsArr[0] as int;
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/ets/
DpromiseCasting.sts16 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/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/16.coroutines/01.create_and_launch_coroutine/
Dc_func.params.yaml24 function foo(p: int): int {
29 let bar: (p: int) => int = foo
43 function foo(p: int): string {
52 function foo(p: int): String {
90 function foo(p: Int|null|undefined): Int|null|undefined {
95 let r: Promise<Int|undefined|null> = launch foo(42)
113 function foo(): int[] {
118 let r: Promise<int[]> = launch foo()
119 let q: int[] = await r
133 function foo(p: int): UT {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/07.variable_and_constant_declarations/04.type_inference_from_initializer/
Dinfer2.params.yaml28 function foo(p: (null|undefined)[]): int { return 1 }
35 function foo(p: int): int { return 1 }
36 function foo(p: number): int { return 2 }
38 let b = cond ? 1 : 2 // typeof b is int
44 function foo(p: int): int { return 1 }
45 function foo(p: number): int { return 2 }
53 function foo(p: string): int { return 1 }
54 function foo(p: "one"|"two"|number): int { return 2 }
62 function foo(p: Int): int { return 1 }
63 function foo(p: string): int { return 2 }
[all …]

12345678910>>...172