Home
last modified time | relevance | path

Searched refs:lambda (Results 1 – 25 of 179) sorted by relevance

12345678

/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
Dlambda_utils.cpp21 void LambdaUtils::InvokeVoid(EtsCoroutine *coro, EtsObject *lambda) in InvokeVoid() argument
23 EtsMethod *invoke = lambda->GetClass()->GetMethod("invoke"); in InvokeVoid()
28 Value arg(lambda->GetCoreType()); in InvokeVoid()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/indexable/
Didx-s01-0080.ets25 public lambda: fooLambda = (s: String) => {
35 let lambda = x[0];
36 assert (lambda("hello") == "hellohello");
43 lambda = x[0];
44 assert(lambda("hello") == "hellohellohello")
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DRegExpReplaceFunctionTest.ets20 … let lambda : (str: String, args: Object[]) => String = (str: String, args: Object[]) : String => {
28 failure += checkTestResult(shor.replace("x", lambda), "0axbxcx")
37 … let lambda : (str: String, args: Object[]) => String = (str: String, args: Object[]) : String => {
45 failure += checkTestResult(shor.replace(new RegExp("x"), lambda), "0axbxcx")
55 … let lambda : (str: String, args: Object[]) => String = (str: String, args: Object[]) : String => {
63 failure += checkTestResult(shor.replace(new RegExp("x", "g"), lambda), "0a1b2c3")
73 … let lambda : (str: String, args: Object[]) => String = (str: String, args: Object[]) : String => {
83 failure += checkTestResult(shor.replace(new RegExp("(x)(?=(.))", "g"), lambda), "0a1b2cx")
91 … let lambda : (str: String, args: Object[]) => String = (str: String, args: Object[]) : String => {
96 failure += checkTestResult(shor.replace(new RegExp("(.)", "g"), lambda), "ABCD")
DReflectGet.ets89 let lambda: (a: number) => number = (a: number): number => {
93 result += (Reflect.get(lambda, 0) == null) ? 0 : 1
94 result += (Reflect.get(lambda, "length") as Number == 1) ? 0 : 1
95 result += (Reflect.get(lambda, "name") == "") ? 0 : 1
97 result += (Reflect.get(lambda, "qwerty") == undefined) ? 0 : 1
DReflectHas.ets64 let lambda: (a: number) => number = (a: number): number => {
85 result += (Reflect.hasOwn(lambda, "length") == true) ? 0 : 1
86 result += (Reflect.hasOwn(lambda, "name") == true) ? 0 : 1
87 result += (Reflect.hasOwn(lambda, 0) == false) ? 0 : 1
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/koala-related-benchmarks/
Dbenchmark-lambda-no-lambda-original.ets50 console.log("Starting lambda benchmark")
55 console.log("lambda time: " + (Date.now() - start).toString())
59 console.log("Starting no-lambda benchmark")
64 console.log("no lambda time: " + (Date.now() - start).toString())
Dbenchmark-lambda-no-lambda-modified.ets50 console.log("Starting lambda benchmark")
55 console.log("lambda time: " + (Date.now() - start))
59 console.log("Starting no-lambda benchmark")
64 console.log("no lambda time: " + (Date.now() - start))
/arkcompiler/runtime_core/static_core/runtime/coroutines/
Dstackful_coroutine.h92 bool ExecuteOnThisContext(L *lambda, StackfulCoroutineContext *requester) in ExecuteOnThisContext() argument
95 return rpcCallContext_.Execute(lambda, &requester->context_, &context_); in ExecuteOnThisContext()
125 …bool Execute(L *lambda, fibers::FiberContext *requesterContextPtr, fibers::FiberContext *hostConte… in Execute() argument
132 lambda_ = lambda; in Execute()
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dtrailing-lambda.ets16 // test transformation of trailing lambda
35 …Test '{' at the same line as call expression, block statement can be transformed to trailing lambda
41 …est '{' not the same line as call expression, block statement can be transformed to trailing lambda
67 // test signature matches of trailing lambda
79 // This block will be transform to a trailing lambda
84 // test class methods using trailing lambda
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/09.this_expression/
Dthis_in_lambda_negative.ets17 desc: Keyword this in lambda.
18 assert: It may be used in a lambda expression only if it is allowed in the context in which the lam…
Dthis_in_lambda.ets17 desc: Keyword this in lambda.
18 assert: It may be used in a lambda expression only if it is allowed in the context in which the lam…
/arkcompiler/ets_frontend/ets2panda/test/parser/ets/trailing_lambda_tests/
Dtrailing_lambda_transform_trailing_block.ets22 // Case 1: transform trailing lambda for expression statement
32 // Case 2: transform trailing lambda for variable declaration
38 // Case 3: transform trailing lambda for assert statement
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/31.lambda_expression/02.lambda_body/
Dlambda_captured_not_assigned_var.ets17 desc: lambda captured local not assigned variable.
18 …ssert: Any local variable used but not declared in a lambda body must be assigned before the lambd…
Dlambda_captured_ref_type_3.ets17 desc: lambda captured local variable reference type. change object in lambda body.
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
DloopWithinLambda.ets17 type T1 = (lambda: (arg: int) => int, arg: int) => int
21 let funcWithLambda: T1 = (lambda: (arg: int) => int, arg: int) => { return lambda(arg) }
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/
DObject.ets115 let lambda: (a: number) => number = (a: number): number => {
135 result += strArraysAreEqual(Object.keys(lambda), emptyArr) ? 0 : 1
157 let lambda: (a: number) => number = (a: number): number => {
181 result += objArraysAreEqual(Object.values__(lambda), emptyArr) ? 0 : 1
203 let lambda: (a: number) => number = (a: number): number => {
245 result += tupleArraysAreEqual(Object.entries(lambda), emptyTuple) ? 0 : 1
267 let lambda: (a: number) => number = (a: number): number => {
287 result += strArraysAreEqual(Reflect.ownKeys(lambda), ["length", "name"]) ? 0 : 1
300 let lambda: (a: number) => number = (a: number): number => {
321 result += ((lambda as Object).hasOwnProperty("length") == true) ? 0 : 1
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/test-lists/ets-func-tests/
Dets-func-tests-ignored.txt186 koala-related-benchmarks/benchmark-lambda-no-lambda-original.ets
189 koala-related-benchmarks/benchmark-lambda-no-lambda-modified.ets
224 ### Trailing lambda issues
243 ### End of Trailing lambda
316 ### lambda issues begin
318 spec/lambda/callAsyncMethodFromAsyncLambda1.ets
319 spec/lambda/callMethodFromAsyncLambda1.ets
321 spec/lambda/callAsyncMethodFromAsyncLambda2.ets
322 spec/lambda/callMethodFromAsyncLambda2.ets
324 spec/lambda/callRegularLambdaWithAsyncOverload.ets
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/trailing_lambdas/
Dtrailing_lm_param_n.ets18 17.10 Trailing lambda
19 Trailing lambda with parameters not supported
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/conditional-expression/string/expr/
Dstring-expression-lambda-no-param.ets25 let lambda: LambdaNoParam = () => {
32 return lambda;
Dstring-expression-lambda-param-non-empty.ets24 let lambda: LambdaOneParam = (s: String) => {
31 return lambda;
Dstring-expression-lambda-param-empty.ets24 let lambda: LambdaOneParam = (s: String) => {
31 return lambda;
/arkcompiler/ets_frontend/ets2panda/test/test-lists/ets-runtime/
Dets-runtime-ignored.txt32 # Failed due to lambda captures
33 trailing-lambda-with-capture.ets
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/10.trailing_lambda/
Dtrlambda_func.ets19 The trailing lambda mechanism allows using a special form of function
21 of function type, and the argument is passed as a lambda using the {} notation.
Dtrlambda_static_met.ets19 The trailing lambda mechanism allows using a special form of function
21 of function type, and the argument is passed as a lambda using the {} notation.
Dtrlambda_met.ets19 The trailing lambda mechanism allows using a special form of function
21 of function type, and the argument is passed as a lambda using the {} notation.

12345678