| /arkcompiler/ets_frontend/ets2panda/compiler/scripts/ |
| D | signatures.yaml | 699 - callee: BUILTIN_OBJECT 705 - callee: BUILTIN_STRING 711 - callee: BUILTIN_STRING 717 - callee: BUILTIN_OBJECT 723 - callee: BUILTIN_OBJECT 729 - callee: BUILTIN_STRING 735 - callee: BUILTIN_STRING 741 - callee: BUILTIN_STRING 747 - callee: BUILTIN_ARRAY 753 - callee: BUILTIN_ARRAY [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/dynamic_object/ |
| D | dynamic_call.ets | 21 let callee = RegularFunc; 22 assertTrue(x == callee() as Int) 36 let callee = x.foo; 37 assertTrue(x.foo() == callee() as Int) 49 let callee = Foo; 50 assertTrue(x == callee.foo().foo() as Int) 56 let callee = MultipleCall; 57 assertTrue(x == callee()() as Int) 62 let callee = Lambda; 64 …assertTrue(x == callee() as Int) // through variable is different, because we don't need to load m… [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | i2c_bridge_test.cpp | 145 …Method callee(nullptr, nullptr, panda_file::File::EntityId(), panda_file::File::EntityId(), ACC_ST… in TEST_F() local 146 callee.SetCompiledEntryPoint(reinterpret_cast<const void *>(VoidNoArg)); in TEST_F() 151 InterpreterToCompiledCodeBridge(insn, frame, &callee, thread_); in TEST_F() 152 ASSERT_EQ(g_gCallResult, PrintFunc("void", "VoidNoArg", &callee)); in TEST_F() 156 InterpreterToCompiledCodeBridge(insn2, frame, &callee, thread_); in TEST_F() 157 ASSERT_EQ(g_gCallResult, PrintFunc("void", "VoidNoArg", &callee)); in TEST_F() 160 InvokeCompiledCodeWithArgArray(nullptr, frame, &callee, thread_); in TEST_F() 161 ASSERT_EQ(g_gCallResult, PrintFunc("void", "VoidNoArg", &callee)); in TEST_F() 174 …Method callee(nullptr, nullptr, panda_file::File::EntityId(), panda_file::File::EntityId(), 0, 1, … in TEST_F() local 175 callee.SetCompiledEntryPoint(reinterpret_cast<const void *>(InstanceVoidNoArg)); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/perf/benchmarks/ |
| D | CMakeLists.txt | 47 macro(add_ets_interop_js_benchmark BENCHMARK CALLER CALLEE) 48 # NOTE: must be refactored, because not all targets has dependency from caller.js and callee.js 49 panda_ets_interop_js_test(ets_interop_js_perf_benchmarks_${CALLER}_${CALLEE}_${BENCHMARK} 50 ETS_SOURCES ${CMAKE_CURRENT_LIST_DIR}/caller.ets ${CMAKE_CURRENT_LIST_DIR}/callee.ets 52 JS_SOURCES ${CMAKE_CURRENT_LIST_DIR}/callee.js ${CMAKE_CURRENT_LIST_DIR}/caller.js 53 LAUNCHER_ARGS ${BENCHMARK} ${CALLER} ${CALLEE} ${WARMUP} ${ITERS} 57 …cies(ets_interop_js_perf_benchmarks_${CALLER}_${CALLEE} ets_interop_js_perf_benchmarks_${CALLER}_$… 61 foreach(CALLEE ${SITES}) 62 add_custom_target(ets_interop_js_perf_benchmarks_${CALLER}_${CALLEE}) 64 add_ets_interop_js_benchmark(${BENCHMARK} ${CALLER} ${CALLEE}) [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/ets/dynamic/ |
| D | dynamicCall.cpp | 27 …esult DynamicCall::ResolveCall(const varbinder::ETSBinder *varbinder, const ir::Expression *callee) in ResolveCall() argument 31 if (callee->IsETSTypeReference()) { in ResolveCall() 33 callee = callee->AsETSTypeReference()->Part()->Name(); in ResolveCall() 34 while (callee->IsTSQualifiedName()) { in ResolveCall() 35 auto *qname = callee->AsTSQualifiedName(); in ResolveCall() 36 callee = qname->Left(); in ResolveCall() 39 ES2PANDA_ASSERT(callee->IsIdentifier()); in ResolveCall() 40 } else if (callee->IsMemberExpression()) { in ResolveCall() 41 const auto memberExpr = callee->AsMemberExpression(); in ResolveCall() 42 callee = SqueezeExpr(memberExpr, calleeName); in ResolveCall() [all …]
|
| D | dynamicCall.h | 36 * Resolve callee 38 * @param callee expression used to call method 39 * @return callee and name from which should be used to produce call 41 static Result ResolveCall(const varbinder::ETSBinder *varbinder, const ir::Expression *callee); 42 static bool IsByValue(const varbinder::ETSBinder *varbinder, const ir::Expression *callee) in IsByValue() argument 44 return ResolveCall(varbinder, callee).name.empty(); in IsByValue()
|
| /arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/ |
| D | panda_runtime_lowering.cpp | 62 auto callee = call->getCalledFunction(); in run() local 63 ASSERT(callee != nullptr && in run() 64 … (!callee->isIntrinsic() || callee->getIntrinsicID() == llvm::Intrinsic::experimental_deoptimize)); in run() 67 if (callee == &function && !hasDeopt) { in run() 71 if (callee->getIntrinsicID() == llvm::Intrinsic::experimental_deoptimize) { in run() 73 …} else if (callee->getSectionPrefix() && callee->getSectionPrefix()->equals(builtins::BUILTIN_SECT… in run() 75 } else if (arkInterface_->IsRememberedCall(&function, callee)) { in run() 97 // Cast entry point address to a pointer to callee function pointer in LowerCallStatic() 155 auto callee = call->getCalledFunction(); in NeedsToBeLowered() local 156 if (callee == nullptr || in NeedsToBeLowered() [all …]
|
| D | check_external.cpp | 46 auto callee = call->getCalledFunction(); in run() local 47 if (callee == nullptr || callee->isIntrinsic()) { in run() 54 if (callee == ark::llvmbackend::builtins::KeepThis(function.getParent())) { in run() 58 if (call->hasFnAttr(llvm::Attribute::NoInline) && !callee->isDeclaration() && in run() 59 … !call->hasFnAttr("keep-noinline") && !ark::llvmbackend::utils::HasCallsWithDeopt(*callee)) { in run()
|
| D | intrinsics_lowering.cpp | 104 llvm::CallInst *call, llvm::FunctionCallee callee, in HandleMemCall() argument 117 if (op0->getType() != callee.getFunctionType()->getParamType(DEST)) { in HandleMemCall() 118 op0 = builder.CreateAddrSpaceCast(op0, callee.getFunctionType()->getParamType(DEST)); in HandleMemCall() 120 if (op1->getType() != callee.getFunctionType()->getParamType(SRC_OR_CHAR)) { in HandleMemCall() 122 op1 = builder.CreateAddrSpaceCast(op1, callee.getFunctionType()->getParamType(SRC_OR_CHAR)); in HandleMemCall() 125 ASSERT(callee.getFunctionType()->getParamType(COUNT)->isIntegerTy()); in HandleMemCall() 126 … auto realCountType = llvm::cast<llvm::IntegerType>(callee.getFunctionType()->getParamType(COUNT)); in HandleMemCall() 131 auto newCall = llvm::CallInst::Create(callee, {op0, op1, op2}); in HandleMemCall() 145 …auto callee = GetPandaRuntimeFunctionCallee(intrinsicId, intrinsicFunctionTy, &builder, intrinsicN… in HandleCall() local 157 auto newCall = builder.CreateCall(callee, llvm::makeArrayRef(args)); in HandleCall() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/11.function_call_expression/ |
| D | fcall_n.params.yaml | 59 function bar(callee: () => void): void {} 64 function bar(callee: () => void): void { 65 callee() 71 function bar(callee: () => void): void { 72 callee() 78 function bar(callee: (a: int) => void): void { 79 callee(1)
|
| D | function_call_expression.ets | 20 function callee(a: int, b: boolean): int { 29 assertTrue(callee(1, true) == 1); 30 assertTrue(callee(1, false) == -1);
|
| /arkcompiler/ets_frontend/es2panda/test/parser/js/ |
| D | test-new-expression-expected.txt | 8 "callee": { 49 "callee": { 119 "callee": { 121 "callee": { 123 "callee": { 217 "callee": { 219 "callee": { 302 "callee": { 304 "callee": { 306 "callee": { [all …]
|
| D | test-call-expression-expected.txt | 25 "callee": { 27 "callee": { 29 "callee": { 181 "callee": { 238 "callee": { 280 "callee": { 364 "callee": { 421 "callee": { 506 "callee": {
|
| /arkcompiler/ets_frontend/ets2panda/linter/arkanalyzer/src/callgraph/model/builder/ |
| D | CallGraphBuilder.ts | 76 let callee: Method | undefined = this.getDCCallee(invokeExpr); 78 if (callee && invokeExpr instanceof ArkStaticInvokeExpr) { 79 this.cg.addDirectOrSpecialCallEdge(method.getSignature(), callee, stmt); 81 callee && invokeExpr instanceof ArkInstanceInvokeExpr && 82 (this.isConstructor(callee) || this.scene.getMethod(callee)?.isGenerated()) 84 this.cg.addDirectOrSpecialCallEdge(method.getSignature(), callee, stmt, false); 86 this.cg.addDynamicCallInfo(stmt, method.getSignature(), callee); 119 /// Get direct call callee
|
| /arkcompiler/ets_frontend/ets2panda/ast_verifier/invariants/ |
| D | modifierAccessValid.cpp | 55 const auto *callee = callExpr->Callee(); in HandleCallExpression() local 56 if (callee != nullptr && callee->IsMemberExpression()) { in HandleCallExpression() 57 const auto *calleeMember = callee->AsMemberExpression(); in HandleCallExpression() 61 AddCheckMessage("PROPERTY_NOT_VISIBLE_HERE", *callee); in HandleCallExpression()
|
| D | importExportAccessValid.cpp | 49 const auto *callee = callExpr->Callee(); in operator ()() local 50 if (callee != nullptr && callee->IsIdentifier() && in operator ()() 51 !HandleImportExportIdentifier(importedVariables, callee->AsIdentifier(), callExpr)) { in operator ()() 52 AddCheckMessage("PROPERTY_NOT_VISIBLE_HERE(NOT_EXPORTED)", *callee); in operator ()() 84 …callExpr->AsCallExpression()->Callee()->TsType()->HasTypeFlag(checker::TypeFlag::ETS_DYNAMIC_FLAG)… in InvariantImportExportMethod() 91 …callExpr->AsCallExpression()->Callee()->TsType()->HasTypeFlag(checker::TypeFlag::ETS_DYNAMIC_FLAG)… in InvariantImportExportMethod()
|
| /arkcompiler/ets_frontend/es2panda/ir/expressions/ |
| D | callExpression.cpp | 48 {"callee", callee_}, in Dump() 162 compiler::VReg callee = pg->AllocReg(); in Compile() local 175 … // Guaranteed by implementation in callThis, thisVReg is always the next register of callee. in Compile() 176 thisVReg_ = callee + 1; in Compile() 184 pg->StoreAccumulator(realCallee->AsMemberExpression()->Property(), callee); in Compile() 186 pg->StoreAccumulator(this, callee); in Compile() 188 pg->GetOptionalChain()->CheckNullish(optional_, callee); in Compile() 198 pg->CallSpread(this, callee, thisReg, argsObj); in Compile() 211 * bind CallThis to the property node instead of the entire callee. in Compile() 215 pg->CallThis(realCallee->AsMemberExpression()->Property(), callee, in Compile() [all …]
|
| D | callExpression.h | 37 explicit CallExpression(Expression *callee, ArenaVector<Expression *> &&arguments, in CallExpression() argument 40 callee_(callee), in CallExpression() 47 const Expression *Callee() const in Callee() function 52 Expression *Callee() in Callee() function
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/05.compatibility_call_args/ |
| D | single_params.ets | 31 bar(callee: {{ c.arg }}): {{ c.arg }} { 32 return callee; 36 function foo(callee: {{ c.arg }}): {{ c.arg }} { 37 return callee;
|
| D | tuple_rest_params.ets | 30 bar(...callee: {{ c.to_type }}): {{ c.to_type }} { 31 return callee; 35 function foo(...callee: {{ c.to_type }}): {{ c.to_type }} { 36 return callee;
|
| D | rest_params.ets | 31 bar(...callee: {{ c.to_type }}): {{ c.to_type }} { 32 return callee; 36 function foo(...callee: {{ c.to_type }}): {{ c.to_type }} { 37 return callee;
|
| D | rest_params_spread.ets | 32 bar(...callee: {{ c.to_type }}): {{ c.to_type }} { 33 return callee; 37 function foo(...callee: {{ c.to_type }}): {{ c.to_type }} { 38 return callee;
|
| /arkcompiler/runtime_core/static_core/runtime/ |
| D | cha.cpp | 132 void ClassHierarchyAnalysis::AddDependency(Method *callee, Method *caller) in AddDependency() argument 135 …LOG(DEBUG, CLASS_LINKER) << "[CHA] Add dependency: caller " << caller->GetFullName() << ", callee " in AddDependency() 136 << callee->GetFullName(); in AddDependency() 137 …// Other thread can remove single implementation of the callee method while we compile caller meth… in AddDependency() 138 if (!callee->HasSingleImplementation()) { in AddDependency() 142 ASSERT(!callee->IsAbstract()); in AddDependency() 143 dependencyMap_[callee].insert(caller); in AddDependency()
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/js/ |
| D | test-new-expression-expected.txt | 8 "callee": { 56 "callee": { 139 "callee": { 141 "callee": { 143 "callee": { 253 "callee": { 255 "callee": { 351 "callee": { 353 "callee": { 355 "callee": { [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
| D | ets_stubs-inl.h | 180 ark::Method *callee = nullptr; in GetAccessorByName() local 187 callee = LookupGetterByName<FIELD_TYPE>(rawField->GetName(), current); in GetAccessorByName() 189 callee = LookupSetterByName<FIELD_TYPE>(rawField->GetName(), current); in GetAccessorByName() 191 if (callee == nullptr) { in GetAccessorByName() 196 IsValidAccessorByName(EtsCoroutine::GetCurrent(), rawField, callee, IS_GETTER); in GetAccessorByName() 198 auto mUint = reinterpret_cast<uint64_t>(callee); in GetAccessorByName() 200 return callee; in GetAccessorByName() 202 return callee; in GetAccessorByName() 415 Method *callee = GetMethodFromCache(cache, klass); in GetMethodByName() local 416 if (callee != nullptr) { in GetMethodByName() [all …]
|