Searched full:sum (Results 1 – 25 of 374) sorted by relevance
12345678910>>...15
| /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/ets_runtime/test/aottest/icnotfound/ |
| D | icnotfound.js | 26 let sum = 0; 29 sum += obj.x; 39 print("Test1 ans:", sum); 49 let sum = 0; 52 sum += obj.x; 65 print("Test2 ans:", sum); 75 let sum = 0; 78 sum += obj.x; 94 print("Test3 ans:", sum); 105 let sum = 0; [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/icnotfoundtest/ |
| D | icnotfoundtest.js | 26 let sum = 0; 29 sum += obj.x; 39 print("Test1 ans:", sum); 49 let sum = 0; 52 sum += obj.x; 65 print("Test2 ans:", sum); 75 let sum = 0; 78 sum += obj.x; 94 print("Test3 ans:", sum); 105 let sum = 0; [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/jittest/icnotfound/ |
| D | icnotfound.js | 26 let sum = 0; 29 sum += obj.x; 39 print("Test1 ans:", sum); 49 let sum = 0; 52 sum += obj.x; 65 print("Test2 ans:", sum); 75 let sum = 0; 78 sum += obj.x; 94 print("Test3 ans:", sum); 105 let sum = 0; [all …]
|
| /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/ets_runtime/test/jittest/for_of/ |
| D | for_of.ts | 20 let sum = 0; 23 sum += entry[1]; 26 return sum; 39 let sum = 0; 42 sum += key ; 45 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/ets_func_tests/spec/04.Names_Declarations_and_Scopes/4.8.Function_Declarations/4.8.5.Rest_Parameter/ |
| 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_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_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;
|
12345678910>>...15