Searched full:sum (Results 1 – 25 of 274) sorted by relevance
1234567891011
| /arkcompiler/ets_runtime/test/aottest/forloop/ |
| D | forloop.ts | 28 let sum = 0; 30 sum++; 32 return sum; 36 let sum = 0; 38 if (sum >= 5) { 39 sum++; 41 sum--; 45 return sum; 49 let sum = 0; 51 if (sum >= 5) { [all …]
|
| /arkcompiler/ets_runtime/test/aottest/global_value_numbering_ts/ |
| D | global_value_numbering_ts.ts | 29 let sum = 0; 32 sum += k; 36 sum += k; 38 return sum; 43 let sum = 0; 46 sum += k; 50 sum += k; 52 return sum; 57 let sum = 0; 60 sum += k; [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-assembly/ |
| D | arrays-06.pa | 37 # int sum = 0; 39 # return sum; 43 # sum += arr[i]; 45 # return sum + foo4(n - 1); 49 # int sum = 0; 53 # sum += arr[i]; 56 # sum += foo4(n); 57 # return sum; 61 # int sum = 0; 65 # sum += arr[i]; [all …]
|
| /arkcompiler/runtime_core/tests/cts-assembly/ |
| D | arrays-06.pa | 37 # int sum = 0; 39 # return sum; 43 # sum += arr[i]; 45 # return sum + foo4(n - 1); 49 # int sum = 0; 53 # sum += arr[i]; 56 # sum += foo4(n); 57 # return sum; 61 # int sum = 0; 65 # sum += arr[i]; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | ForOfBoxing.sts | 17 let sum = 0; 23 sum += b; 25 sum += 0; 29 assert(sum == 6); 61 let sum = 0; 66 sum += b4; 70 assert(sum == 1887); 74 let sum = 0; 78 sum += b5; 81 assert(sum == 33); [all …]
|
| D | conversion-binary.sts | 21 let sum: long = 0; 22 sum += x; 23 return sum; 27 let sum: long = 0; 28 sum = x; 29 return sum;
|
| D | funcRefWithRestArguments.sts | 17 let sum: int = 0 19 sum += n as Int 21 return sum 28 let sum: int = 0 30 sum += v as Int 32 return sum
|
| /arkcompiler/ets_runtime/test/aottest/proxy/ |
| D | proxy.ts | 19 function sum(a:number, b:number):number { 25 print(`Calculate sum: ${argumentsList}`); 26 // expected output: "Calculate sum: 1,2" 31 print(sum(1, 2)); 33 const proxy0 = new Proxy(sum, handler); 38 const proxy1 = new Proxy(sum, handler); 42 const proxy2 = new Proxy(sum, {}); 46 const proxy3 = new Proxy(sum, {}); 50 const proxy4 = new Proxy(sum.bind({}, 3), {}); 58 ArkTools.removeAOTFlag(sum); [all …]
|
| /arkcompiler/runtime_core/static_core/tests/checked/ |
| D | move_nullcheck_out_of_loop.pa | 21 # if (sum(a) != 15) { 27 # int sum(A a) { 28 # int sum = 0; 31 # sum += arr[i]; 33 # return sum; 37 #! RUN options: "--compiler-hotness-threshold=0 --no-async-jit=true --compiler-regex=.*sum… 38 #! METHOD "sum" 51 #! RUN_PAOC options: "--compiler-regex=.*sum.*" 52 #! METHOD "sum" 66 #! RUN_LLVM options: "--compiler-regex=.*sum.*" [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/napi/sampler_sig_stack/arm64/ |
| D | SamplerSigStackArm64.S | 17 // int sum = 0; 18 // sum += a1; 19 // sum += a2; 20 // sum += a3; 21 // sum += a4; 22 // sum += a5; 23 // sum += a6; 24 // sum += a7; 25 // sum += a8; 26 // return sum;
|
| /arkcompiler/ets_runtime/test/aottest/mono_builtin/ |
| D | mono_builtin.ts | 24 let sum = 0; 26 sum += arr[i] 29 sum = sum * arr[i] 32 sum = sum * arr[i]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/napi/sampler_sig_stack/amd64/ |
| D | SamplerSigStackAmd64.S | 21 // int sum = 0; 22 // sum += a1; 23 // sum += a2; 24 // sum += a3; 25 // sum += a4; 26 // sum += a5; 27 // sum += a6; 28 // sum += a7; 29 // sum += a8; 30 // return sum;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | ets_escape_array.sts | 23 //! EVENT /Inline,ETSGLOBAL::test1,ETSGLOBAL::sum,.*,STATIC,SUCCESS/ 45 function sum(...values: number[]): number { 49 let sum = values[0]; 51 sum += values[i]; 53 return sum; 56 // Temporary must be removed, after inlining sum 59 return sum(6, 5, 4, 3, 2, 1, 0); 68 let sum = values[0]; 70 sum += values[i]; 75 return sum;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/04.Names_Declarations_and_Scopes/4.8.5.Rest_Parameter/ |
| D | RestParamsTest_CallBaseMethod.sts | 39 let sum: int = 0; 41 if(call != null) sum += call.get(); 43 return sum; 51 let sum: int = 0; 53 if(call != null) sum += call.get(); 55 return sum;
|
| D | RestParamsTest_PassLambdas_1.sts | 33 let sum: int = 0; 35 if(call != null) sum += call(prefix); 37 return sum; 41 let sum: int = 0; 43 if(call != null) sum += call("Hello"); 45 return sum;
|
| D | RestParamsTest_PassLambdas_0.sts | 32 let sum: int = 0; 34 if(call != null) sum += call("Hello"); 36 return sum; 40 let sum: int = 0; 42 if(call != null) sum += call(prefix); 44 return sum;
|
| D | RestParamsTest_PassInterfaceArgs.sts | 37 let sum: int = 0; 39 if(call != null) sum += call.get(); 41 return sum; 48 let sum: int = 0; 50 if(call != null) sum += call.get(); 52 return sum;
|
| D | RestParamsTest_PassLambdasArrayAndSpread.sts | 35 let sum: int = 0; 37 if(call != null) sum += call("Hello"); 39 return sum; 43 let sum: int = 0; 45 if(call != null) sum += call(prefix); 47 return sum;
|
| D | RestParamsTest_PassInterfaceArgsAndSpread_1.sts | 44 let sum: int = 0; 46 if(call != null) sum += call.get(); 48 return sum; 56 let sum: int = 0; 58 if(call != null) sum += call.get(); 60 return sum;
|
| D | RestParamsTest_PassInterfaceArgsAndSpread_0.sts | 42 let sum: int = 0; 44 if(call != null) sum += call.get(); 46 return sum; 59 let sum: int = 0; 61 if(call != null) sum += call.get(); 63 return sum;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/04.array_literal/01.type_inference_from_context/ |
| D | arr_inf.params.yaml | 41 function sum(p: number[]): number { 50 assert a.length == 3 && sum(a) == 6.0 52 assert a.length == 4 && sum(a) == 11.0 54 assert a.length == 2 && sum(a) == 0.0 57 function sum(p: Long[]): long { 64 assert sum([1, 2, 3]) == 6 65 assert sum([]) == 0 66 assert sum([0x0f0f0f0f, 0b10110011001, 42, 8 as byte]) == 252646618
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/ets_to_js/ |
| D | scenarios.sts | 178 let sum = 0; 180 sum += n; 182 return sum; 186 let sum = 0; 188 sum += n; 190 return arg0 * sum; 194 let sum = 0; 196 sum += n; 198 return sum * (arg0 + arg1); 207 let sum = 0; [all …]
|
| /arkcompiler/ets_runtime/test/jittest/catch_with_osr/ |
| D | catch_with_osr.ts | 19 let sum = 0; 23 sum++; 27 sum = 0; 29 return sum;
|
| /arkcompiler/toolchain/tooling/test/testcases/js/ |
| D | throw_exception.js | 17 var sum = 0; 18 print(sum) 25 sum += 1; 27 return sum;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/08.function_declarations/05.rest_parameter/ |
| D | rest_parameter.params.yaml | 18 sum(...numbers: int[]): int 24 if (sum() == 0 && sum(1) == 1 && sum(1, 2, 3) == 6) return 0; 28 sum(...arrays: int[][]): int 39 if (sum(a1) == 6 && sum(a1, a2) == 24 && sum(a3, a2, a1) == 51) return 0; 52 sum(...p: (Int|null)[]): int 58 if (sum(1, null, 2) == 3 && sum(null, null, 99, null) == 99) return 0;
|
1234567891011