/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | i2c_bridge_test.cpp | 145 Method callee(nullptr, nullptr, panda_file::File::EntityId(), panda_file::File::EntityId(), ACC_STATIC, 0, shorty); in TEST_F() 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, shorty); in TEST_F() 175 callee in TEST_F() [all...] |
/arkcompiler/ets_frontend/ets2panda/checker/ets/dynamic/ |
H A D | dynamicCall.cpp | 26 DynamicCall::Result DynamicCall::ResolveCall(const varbinder::ETSBinder *varbinder, const ir::Expression *callee) in ResolveCall() argument 30 if (callee->IsETSTypeReference()) { in ResolveCall() 32 callee = callee->AsETSTypeReference()->Part()->Name(); in ResolveCall() 33 while (callee->IsTSQualifiedName()) { in ResolveCall() 34 auto *qname = callee->AsTSQualifiedName(); in ResolveCall() 35 callee = qname->Left(); in ResolveCall() 38 ASSERT(callee->IsIdentifier()); in ResolveCall() 39 } else if (callee->IsMemberExpression()) { in ResolveCall() 40 const auto memberExpr = callee in ResolveCall() [all...] |
H A 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/ |
H A 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()
|
H A D | panda_runtime_lowering.cpp | 62 auto callee = call->getCalledFunction(); in run() local 63 ASSERT((callee != nullptr && !callee->isIntrinsic()) || in run() 64 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_SECTION)) { in run() 75 } else if (arkInterface_->IsRememberedCall(&function, callee)) { in run() 97 // Cast entry point address to a pointer to callee functio in LowerCallStatic() 155 auto callee = call->getCalledFunction(); NeedsToBeLowered() local [all...] |
H A D | intrinsics_lowering.cpp | 104 llvm::CallInst *call, llvm::FunctionCallee callee, in HandleMemCall() 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, intrinsicName); in HandleCall() local 157 auto newCall = builder.CreateCall(callee, llv in HandleCall() 103 HandleMemCall( llvm::CallInst *call, llvm::FunctionCallee callee, std::unordered_map<llvm::Instruction *, llvm::Instruction *> *instToReplaceWithInst) HandleMemCall() argument [all...] |
H A D | ark_inlining.cpp | 68 auto callee = callBase->getCalledFunction(); in CheckShouldInline() local 75 if (callee == nullptr) { in CheckShouldInline() 80 auto demCalleeName = llvm::demangle(std::string(callee->getName())); in CheckShouldInline() 114 llvm::Function *callee = callBase->getCalledFunction(); in run() local 115 if (callee == nullptr || callee->isDeclaration()) { in run()
|
/arkcompiler/ets_frontend/ets2panda/ast_verifier/ |
H A 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 ctx.AddCheckMessage("PROPERTY_NOT_VISIBLE_HERE", *callee, callee->Start()); in HandleCallExpression()
|
H A 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 ctx.AddCheckMessage("PROPERTY_NOT_VISIBLE_HERE(NOT_EXPORTED)", *callee, callee->Start()); in operator ()()
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A 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 method. 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/ir/expressions/ |
H A D | callExpression.h | 44 explicit CallExpression(Expression *const callee, ArenaVector<Expression *> &&arguments, in CallExpression() argument 48 callee_(callee), in CallExpression() 73 void SetCallee(Expression *callee) noexcept 75 callee_ = callee; 180 checker::Type *InitAnonymousLambdaCallee(checker::ETSChecker *checker, Expression *callee,
|
H A D | directEvalExpression.h | 28 explicit DirectEvalExpression(Expression *callee, ArenaVector<Expression *> &&arguments, in DirectEvalExpression() argument 30 : CallExpression(callee, std::move(arguments), typeParams, optional), parserStatus_(parserStatus) in DirectEvalExpression()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
H A D | compiler_intrinsics.cpp | 81 ark::Method *callee; in TryGetCallee() local 83 callee = klass->LookupGetterByName<FIELD_TYPE>(rawField->GetName()); in TryGetCallee() 85 callee = klass->LookupSetterByName<FIELD_TYPE>(rawField->GetName()); in TryGetCallee() 87 if (callee != nullptr && useIc) { in TryGetCallee() 88 auto mUint = reinterpret_cast<uint64_t>(callee); in TryGetCallee() 92 return callee; in TryGetCallee() 169 auto callee = TryGetCallee<FIELD_TYPE, true>(method, rawField, pc, klass); in CompilerEtsLdObjByName() local 170 if (callee != nullptr) { in CompilerEtsLdObjByName() 172 Value result = callee->Invoke(Coroutine::GetCurrent(), &val); in CompilerEtsLdObjByName() 266 auto callee in CompilerEtsStObjByName() local 297 auto callee = TryGetCallee<panda_file::Type::TypeId::REFERENCE, false>(method, rawField, pc, klass); CompilerEtsStObjByNameRef() local [all...] |
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
H A D | taggedTemplateExpression.cpp | 51 compiler::VReg callee = pg->AllocReg(); in Compile() local 64 pg->StoreAccumulator(this, callee); in Compile() 78 pg->CallThis(this, callee, static_cast<int64_t>(quasi_->Expressions().size() + extraParams)); in Compile() 83 pg->Call(this, callee, quasi_->Expressions().size() + extraParams); in Compile()
|
H A D | callExpression.cpp | 54 {"callee", callee_}, in Dump() 168 compiler::VReg callee = pg->AllocReg(); in Compile() local 181 // Guaranteed by implementation in callThis, thisVReg is always the next register of callee. in Compile() 182 thisVReg_ = callee + 1; in Compile() 189 pg->StoreAccumulator(this, callee); in Compile() 190 pg->GetOptionalChain()->CheckNullish(optional_, callee); in Compile() 200 pg->CallSpread(this, callee, thisReg, argsObj); in Compile() 211 pg->CallThis(this, callee, static_cast<int64_t>(arguments_.size() + 1)); in Compile() 215 pg->Call(this, callee, arguments_.size()); in Compile()
|
H A D | newExpression.h | 36 explicit NewExpression(Expression *callee, TSTypeParameterInstantiation *typeParams, in NewExpression() argument 38 : Expression(AstNodeType::NEW_EXPRESSION), callee_(callee), in NewExpression()
|
/arkcompiler/ets_frontend/ets2panda/util/ast-builders/ |
H A D | newExpressionBuilder.h | 32 NewExpressionBuilder &SetCallee(Expression *const callee) in SetCallee() argument 34 callee_ = callee; in SetCallee()
|
H A D | callExpressionBuilder.h | 32 CallExpressionBuilder &SetCallee(Expression *const callee) in SetCallee() argument 34 callee_ = callee; in SetCallee()
|
H A D | directEvalExpressionBuilder.h | 32 DirectEvalExpressionBuilder &SetCallee(Expression *const callee) in SetCallee() argument 34 callee_ = callee; in SetCallee()
|
/arkcompiler/runtime_core/static_core/libllvmbackend/ |
H A D | llvm_ark_interface.cpp | 579 const llvm::Function *callee) const in GetMethodId() 581 ASSERT(callee != nullptr); in GetMethodId() 588 auto calleeName = callee->getName(); in GetMethodId() 598 void LLVMArkInterface::RememberFunctionCall(const llvm::Function *caller, const llvm::Function *callee, in RememberFunctionCall() argument 601 ASSERT(callee != nullptr); in RememberFunctionCall() 610 pandaFileMap.insert({callee->getName(), methodId}); in RememberFunctionCall() 614 const llvm::Function *callee) const in IsRememberedCall() 617 ASSERT(callee != nullptr); in IsRememberedCall() 625 callerOriginFileIterator->second.find(callee->getName()) != callerOriginFileIterator->second.end(); in IsRememberedCall() 638 auto callee in IsExternal() local 651 auto callee = methodPtrs_.find(call->getCalledFunction()->getName()); ResolveVirtual() local 719 auto callee = runtime_->GetMethodById(arkCaller->second, methodId); GetVTableOffset() local 731 auto callee = runtime_->GetMethodById(caller->second, methodId); IsInterfaceMethod() local [all...] |
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/ |
H A D | gc_barriers.cpp | 93 auto callee = builder->CreateLoad(ptrTy, addr, "post_wrb_one_object_addr"); in EmitPostWRB() local 102 auto call = builder->CreateCall(funcTy, callee, {mem, offset, value}); in EmitPostWRB() 109 auto call = builder->CreateCall(funcTy, callee, {mem, offset, value, threadRegPtr}); in EmitPostWRB() 117 auto call = builder->CreateCall(funcTy, callee, {mem, offset, value, threadRegPtr, frameRegPtr}); in EmitPostWRB()
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | dynamic.cpp | 98 ir::MethodDefinition *ETSChecker::CreateDynamicCallIntrinsic(ir::Expression *callee, const ArenaVector<T *> &arguments, in CreateDynamicCallIntrinsic() argument 111 if (!DynamicCall::IsByValue(VarBinder()->AsETSBinder(), callee)) { in CreateDynamicCallIntrinsic() 173 Signature *ETSChecker::ResolveDynamicCallExpression(ir::Expression *callee, const ArenaVector<T *> &arguments, in ResolveDynamicCallExpression() argument 187 if (DynamicCall::IsByValue(VarBinder()->AsETSBinder(), callee)) { in ResolveDynamicCallExpression() 190 const auto callNames = DynamicCall::ResolveCall(VarBinder()->AsETSBinder(), callee); in ResolveDynamicCallExpression() 201 auto *method = CreateDynamicCallIntrinsic(callee, arguments, lang); in ResolveDynamicCallExpression() 223 ir::Expression *callee, const ArenaVector<ir::Expression *> &arguments, Language lang, bool isConstruct); 226 ir::Expression *callee, const ArenaVector<varbinder::LocalVariable *> &arguments, Language lang, bool isConstruct); 329 auto *callee = in CreateDynamicCallClassInitializer() local 333 auto *initCall = AllocNode<ir::CallExpression>(callee, ArenaVecto in CreateDynamicCallClassInitializer() 408 auto *callee = ClassInitializerFromImport() local [all...] |
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
H A D | stringComparison.cpp | 85 auto *const callee = checker->AllocNode<ir::Identifier>("compareTo", checker->Allocator()); in ProcessBinaryExpression() local 86 accessor = checker->AllocNode<ir::MemberExpression>(expr->Left(), callee, ir::MemberExpressionKind::PROPERTY_ACCESS, in ProcessBinaryExpression() 88 callee->SetReference(); in ProcessBinaryExpression()
|
/arkcompiler/ets_runtime/ecmascript/dfx/vmstat/ |
H A D | function_call_timer.cpp | 41 auto callee = &callTimer_[id]; in StopCount() local 42 if (callee != currentTimer_) { in StopCount() 48 PandaRuntimeTimer *callerTimer = callee->Stop(); in StopCount()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_function_test.cpp | 114 JSHandle<JSTaggedValue> callee( in HWTEST_F_L0() 116 EXPECT_TRUE(*callee != nullptr); in HWTEST_F_L0() 124 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(callee), calleeKey, calleeValue); in HWTEST_F_L0() 126 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, callee, undefined, 1); in HWTEST_F_L0()
|