| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/ |
| D | list.std_core_type_array_type.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 - { 17 array_sizes: {1, 2, 10, 100}, 19 - { 22 array_sizes: {1, 2, 10, 100}, 24 - { 27 array_sizes: {1, 2, 10, 100}, 29 - { 32 array_sizes: {1, 2, 10, 100}, [all …]
|
| /arkcompiler/ets_runtime/test/aottest/builtins_string/ |
| D | builtins_string.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 18 let num3 = -0.01; 20 let num5 = -10; 21 let num6 = 100; 22 let num7 = -100; 25 let str = "sd-93u498thikefnow8y3-0rh1nalksfnwo8y3t19-3r8hoiefnw"; 29 print(str.substring(-0.01)); 33 print(str.substring(100)); 35 print(str.substring(-100)); 39 print(str.substring(-10)); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | BigInt3.sts | 2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 18 assert new BigInt(10).operatorModule(new BigInt(-3)) == (1n); 19 assert new BigInt(-10).operatorModule(new BigInt(3)) == (-1n); 20 assert new BigInt(-10).operatorModule(new BigInt(-3)) == (-1n); 21 assert new BigInt(100).operatorModule(new BigInt(50)) == (0n); 22 assert new BigInt(100).operatorModule(new BigInt(-50)) == (0n); 23 assert new BigInt(-100).operatorModule(new BigInt(50)) == (0n); 24 assert new BigInt(-100).operatorModule(new BigInt(-50)) == (0n); 26 … assert new BigInt(-3124378143267041203423n).operatorModule(new BigInt(43621978)) == (-18802883n); [all …]
|
| D | BigInt4.sts | 2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 18 assert new BigInt(-10).operatorDivide(new BigInt(3)) == (-3n); 19 assert new BigInt(10).operatorDivide(new BigInt(-3)) == (-3n); 20 assert new BigInt(-10).operatorDivide(new BigInt(-3)) == (3n); 21 assert new BigInt(100).operatorDivide(new BigInt(50)) == (2n); 22 assert new BigInt(100).operatorDivide(new BigInt(-50)) == (-2n); 23 assert new BigInt(-100).operatorDivide(new BigInt(50)) == (-2n); 24 assert new BigInt(-100).operatorDivide(new BigInt(-50)) == (2n); 26 …assert new BigInt(-3124378143267041203423n).operatorDivide(new BigInt(43621978)) == (-716239447754… [all …]
|
| D | BigInt7.sts | 2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 18 assert new BigInt(2).operatorSubtract(new BigInt(10)) == (-8n); 19 assert new BigInt(-10).operatorSubtract(new BigInt(-2)) == (-8n); 20 assert new BigInt(-100).operatorSubtract(new BigInt(1)) == (-101n); 21 assert new BigInt(-100).operatorSubtract(new BigInt(-1)) == (-99n); 22 assert new BigInt(-1000).operatorSubtract(new BigInt(10)) == (-1010n); 23 ….operatorSubtract(new BigInt(234112342314526914672342143621463921469n)) == (-234112342314526913434… 24 …assert new BigInt(-1237840127434312471243n).operatorSubtract(new BigInt(23411234231452691467234214… 25 …assert new BigInt(1237840127434312471243n).operatorSubtract(new BigInt(-23411234231452691467234214… [all …]
|
| D | AccessorAlone.sts | 2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 39 obj._field = 100; 41 assert get_field == 100; 45 b_obj.field = 100; 47 assert get_b_field == 100;
|
| D | BigInt6.sts | 2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 19 assert new BigInt(-10).operatorAdd(new BigInt(9)) == -1n; 20 assert new BigInt(-10).operatorAdd(new BigInt(10)) == 0n; 21 assert new BigInt(-100).operatorAdd(new BigInt(10)) == -90n; 22 assert new BigInt(100).operatorAdd(new BigInt(10)) == 110n; 25 assert new BigInt(65500).operatorAdd(new BigInt(-1)) == (65499n); 26 assert new BigInt(-65500).operatorAdd(new BigInt(-1)) == (-65501n); 27 assert new BigInt(-65500).operatorAdd(new BigInt(1)) == (-65499n); 28 assert new BigInt(-65500).operatorAdd(new BigInt(100000)) == (34500n); [all …]
|
| D | getter_setter2.sts | 2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 35 objectos.field -= 200; 36 assert objectos.field == -160; 42 objectos.field /= 100; 75 objectos.field = 100; 79 objectos.field -= objectos.field; 82 objectos.field += 100; 94 let value = 100; 100 value -= objectos.field; [all …]
|
| /arkcompiler/ets_runtime/test/aottest/loops/ |
| D | loops.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 27 if (i > 100) { 33 for (var i:number = 0; i < 100; i++) { 49 while (j < 100) { 58 while (k < 100) { 72 } while (i < 100); 78 if (j > 100) { 87 if (k < 100) { 91 } while (k < 100); 97 if (i > 100) { [all …]
|
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 29 100 32 100 35 100
|
| /arkcompiler/ets_runtime/test/aottest/stobjbyindex/ |
| D | stobjbyindex.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 var array = [100, "hello"]; 28 let phrase: { 1: string, "100": string | number, fullPhrase: any } = { 29 1 : "100", 30 "100" : "hello", 33 return `${this[1]} ${this["100"]}`; 37 [this[1], this["100"]] = value.split(" "); 41 print(phrase["100"]); 43 phrase["100"] = 1; 45 print(phrase["100"]);
|
| /arkcompiler/ets_runtime/test/quickfix/multi_patch/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 17 print patch:200 - 200 22 print base:100 - 100 25 print patch1:300 - 300 30 print base:100 - 100 33 print patch2: 400 - 400 38 print base:100 - 100
|
| /arkcompiler/ets_runtime/tools/ap_file_viewer/src/base-ui/progress-bar/ |
| D | ProgressBar.js | 7 * http://www.apache.org/licenses/LICENSE-2.0 41 width: 100%; 48 width: 100%; 49 height: 100%; 55 height: 100%; 56 background-image: 57 … linear-gradient(to right, transparent, #535da6, #535da6, #535da6, #535da6, #535da6, transparent); 58 left: -30%; 64 height: 100%; 65 background-image: [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/typedarraytosorted/ |
| D | typedarraytosorted.js | 7 * http://www.apache.org/licenses/LICENSE-2.0 28 let arr = [10, 3, 8, 5, 30, 100, 6, 7, 100, 3]; 40 let arr = [10n, 3n, 8n, 5n, 30n, 100n, 6n, 7n, 100n, 3n]; 52 result.push(arr2.toString() == "3,3,5,6,7,8,10,30,100,100"); 54 result.push(arr2.toString() == "100,100,30,10,8,7,6,5,3,3");
|
| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/tests/ |
| D | test_gc_ark_reporter.py | 2 # -*- coding: utf-8 -*- 9 # http://www.apache.org/licenses/LICENSE-2.0 33 freed_object_mem=100, 58 self.assertEqual(events[1].timestamp - events[0].timestamp + events[1].gc_time, 95 freed_object_mem=100, 103 timestamp=100 126 gc_vm_time = adjust_time['fw_end_time'] - adjust_time['fw_start_time'] 131 self.assertEqual(events[i].timestamp - delta, p[0]) 141 freed_object_mem=100, 150 timestamp=100 [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
| D | use-hex-as-key.js | 7 * http://www.apache.org/licenses/LICENSE-2.0 20 1e2: 100, 29 print(a[100]) 35 100: 100, property 40 print(b[100])
|
| /arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/ |
| D | heap_tracker_second_test.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 52 static const int HEAP_PROFILER_CHUNK_SIZE = 100_KB; in GetSize() 102 instance->SetEnableForceGC(false); in SetUp() 121 int count = 100; in HWTEST_F_L0() 122 while (count-- > 0) { in HWTEST_F_L0() 123 instance->GetFactory()->NewJSAsyncFuncObject(); in HWTEST_F_L0() 126 count = 100; in HWTEST_F_L0() 127 while (count-- > 0) { in HWTEST_F_L0() 128 instance->GetFactory()->NewJSSymbol(); in HWTEST_F_L0() 131 count = 100; in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/tests/ |
| D | life_intervals_test.cpp | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 20 // NOLINTBEGIN(readability-magic-numbers) 27 auto inst = graph_->CreateInstConstant(42U); in Create() 28 auto li = GetAllocator()->New<LifeIntervals>(GetAllocator(), inst); in Create() 30 li->AppendRange(range->first, range->second); in Create() 32 li->Finalize(); in Create() 44 ASSERT_EQ((*it)->GetSibling(), nullptr); // NOLINT in CheckSiblings() 46 ASSERT_EQ((*it)->GetSibling(), *next); in CheckSiblings() 54 auto liRanges = interval->GetRanges(); in CheckRanges() [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/typedarrayfindlast/ |
| D | typedarrayfindlast.js | 7 * http://www.apache.org/licenses/LICENSE-2.0 60 array[3] = 100; 62 return (element == 100); 64 result.push(result1 == -1); 66 return (element == 100); 90 array[3] = 100n; 92 return (element == 100n); 94 result.push(result1 == -1); 96 return (element == 100n);
|
| /arkcompiler/ets_runtime/tools/ap_file_viewer/src/ap/component/search/ |
| D | Search.html.js | 7 * http://www.apache.org/licenses/LICENSE-2.0 20 background-color: var(--dark-background5,#fff); 21 border-radius: 40px; 24 justify-content: center; 25 align-items: center; 26 border: 1px solid var(--dark-border,#c5c5c5); 32 width: max-content; 34 background-color: transparent; 35 font-size: inherit; 36 color: var(--dark-color,#666666); [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/builtins/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 27 100 30 -1 31 -1 32 -1 34 -1 35 -1 51 -Infinity 55 -0.12 59 -1000 [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/arrayfindlast/ |
| D | arrayfindlast.js | 7 * http://www.apache.org/licenses/LICENSE-2.0 24 var result = -1; 37 array.push(100); 39 return (element == 100); 43 return (element == 100); 59 array[5] = 100; 60 return (element == 100); 102 return element === 100;
|
| /arkcompiler/ets_runtime/test/aottest/stobjbyvalue/ |
| D | stobjbyvalue.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 20 var hundred = "100"; 23 var array = [100, "hello"]; 37 let phrase: { 0: string, "100": string | number, fullPhrase: any } = { 38 0 : "100", 39 "100" : "hello",
|
| /arkcompiler/ets_runtime/test/moduletest/loadicbyname/ |
| D | loadicbyname.js | 7 * http://www.apache.org/licenses/LICENSE-2.0 26 for (let i = 0; i < 100; i++) { 34 function foo() { return -4096;} 80 for (let i = 0; i < 100; i++) { 91 for (let i = 0; i < 100; i++) { 94 for (let i = 0; i < 100; i++) { 101 for (let i = 0; i < 100; i++) { }; 102 let obj = new ctor(100); 145 for (let i = 0; i < 100; i++) { 193 for (let i = 0; i < 100; i++) {
|
| /arkcompiler/ets_runtime/tools/circuit_viewer/dist/ |
| D | index.html | 5 <meta charset="utf-8"> 10 height: 100%; 14 background-color: #ffffff; 15 width: 100%; 16 height: 100%; 24 margin-left: 8px; 25 margin-right: 8px; 28 border-style: none; 30 background-color: rgba(255, 255, 255, 0.1); 31 border-radius: 8px; [all …]
|