/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/call/ |
H A D | call_ets.cpp | 28 ctx_(ctx), in CallETSHandler() 29 protoReader_(method, ctx_->GetClassLinker(), ctx_->LinkerCtx()), in CallETSHandler() 68 InteropCtx *const ctx_; member in ark::ets::interop::js::CallETSHandler 89 auto etsBoxedArgs = ctx_->GetTempArgs<ArgValueBox>(numArgs); in ConvertArgs() 101 if (UNLIKELY(!ConvertArgToEts(ctx_, protoReader_, store, jsVal))) { in ConvertArgs() 134 ObjectHeader **restParamsSlot = PackRestParameters(coro_, ctx_, protoReader_, restArgs); in ConvertRestParams() 150 InteropCtx::ThrowJSTypeError(ctx_->GetJSEnv(), msg); in CheckNumArgs() 168 return ForwardException(ctx_, coro_); in HandleImpl() 171 auto etsArgs = ctx_ in HandleImpl() [all...] |
H A D | call_js.cpp | 38 ctx_(InteropCtx::Current(coro_)), in CallJSHandler() 39 protoReader_(method, ctx_->GetClassLinker(), ctx_->LinkerCtx()), in CallJSHandler() 119 InteropCtx *const ctx_; member in ark::ets::interop::js::CallJSHandler 132 napi_env env = ctx_->GetJSEnv(); in Handle() 135 if (UNLIKELY(!ArgSetup()(ctx_, this))) { in Handle() 136 return ForwardException(ctx_, coro_); in Handle() 139 ctx_->ThrowJSTypeError(env, "call target is not a function"); in Handle() 140 return ForwardException(ctx_, coro_); in Handle() 145 return ForwardException(ctx_, coro in Handle() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | code_scopes.h | 64 explicit JSNapiEnvScope(InteropCtx *ctx, napi_env newEnv) : ctx_(ctx) in JSNapiEnvScope() 66 saved_ = ctx_->jsEnv_; in JSNapiEnvScope() 67 ctx_->SetJSEnv(newEnv); in JSNapiEnvScope() 72 ctx_->SetJSEnv(saved_); in ~JSNapiEnvScope() 79 InteropCtx *ctx_ {};
|
H A D | js_refconvert_builtin.cpp | 166 ets_proxy::EtsClassWrapper *wclass = RegisterEtsProxyForStdClass(ctx_, descriptor, jsBuiltinName, overloads); in RegisterClass() 167 auto env = ctx_->GetJSEnv(); in RegisterClass() 220 NAPI_CHECK_FATAL(napi_object_seal(ctx_->GetJSEnv(), jsGlobalEts_)); in RegisterArray() 311 return MObjectObject(ctx_, jsValue); in MObject() 313 return ctx_->GetUndefinedObject(); in MObject() 329 explicit CompatConvertorsRegisterer(InteropCtx *ctx) : ctx_(ctx) in CompatConvertorsRegisterer() 331 auto env = ctx_->GetJSEnv(); in CompatConvertorsRegisterer() 351 ctorTypeError_ = StdCtorRef(ctx_, "TypeError"); in Run() 352 ctorRangeError_ = StdCtorRef(ctx_, "RangeError"); in Run() 353 ctorReferenceError_ = StdCtorRef(ctx_, "ReferenceErro in Run() 375 InteropCtx *ctx_; global() member in ark::ets::interop::js::__anon167::CompatConvertorsRegisterer [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
H A D | ets_typeapi_create.h | 131 explicit TypeCreator(TypeCreatorCtx *ctx) : ctx_(ctx) {} in TypeCreator() 135 return ctx_; in GetCtx() 139 TypeCreatorCtx *ctx_; member in ark::ark::ark::ets::TypeCreator 233 : ctx_(ctx), name_(name), fn_(std::move(name), SourceLanguage::ETS) in PandasmMethodCreator() 257 return ctx_; in Ctx() 261 TypeCreatorCtx *ctx_; member in ark::ark::ark::ets::PandasmMethodCreator
|
H A D | ets_typeapi_create.cpp | 253 auto ok = ctx_->Program().functionTable.emplace(name_, std::move(fn_)).second; in Create() 255 ctx_->AddError("duplicate function " + name_); in Create()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | pass_manager.cpp | 90 ctx_ = new PassContext(triple_, log_, collector_, m->GetModule(), &profilerDecoder_); in Compile() member 92 auto jsPandaFile = ctx_->GetJSPandaFile(); in Compile() 93 auto cmpCfg = ctx_->GetCompilerConfig(); in Compile() 118 circuit_ = new Circuit(compilationEnv_->GetNativeAreaAllocator(), ctx_->GetAOTModule()->GetDebugInfo(), in Compile() 121 circuit_ = new Circuit(compilationEnv_->GetNativeAreaAllocator(), ctx_->GetAOTModule()->GetDebugInfo(), in Compile() 129 circuit_, ctx_->GetByteCodes(), enableMethodLog && log_->OutputCIR(), in Compile() 143 data_ = new PassData(builder_, circuit_, ctx_, log_, fullName, &methodInfo, recordName, in Compile() 227 if (ctx_ != nullptr) { 228 delete ctx_; 229 ctx_ [all...] |
H A D | ts_inline_lowering.cpp | 114 if (methodOffset == 0 || ctx_->IsSkippedMethod(methodOffset)) { in TryInline() 120 inlinedMethod = ctx_->GetJSPandaFile()->FindMethodLiteral(methodOffset); in TryInline() 124 auto &bytecodeInfo = ctx_->GetBytecodeInfo(); in TryInline() 126 ctx_->GetBytecodeInfoCollector()->ProcessMethod(inlinedMethod); in TryInline() 132 if (info.IsNormalCall() && ctx_->FilterMethod(inlinedMethod, methodPcInfo)) { in TryInline() 162 auto jsPandaFile = ctx_->GetJSPandaFile(); in TryInline() 184 const JSPandaFile *jsPandaFile = ctx_->GetJSPandaFile(); in FilterInlinedMethod() 193 auto ecmaOpcode = ctx_->GetByteCodes()->GetOpcode(pc); in FilterInlinedMethod() 212 const JSPandaFile *jsPandaFile = ctx_->GetJSPandaFile(); in InlineCall() 213 CompilerLog *log = ctx_ in InlineCall() [all...] |
H A D | pass.h | 79 : builder_(builder), circuit_(circuit), ctx_(ctx), log_(log), methodName_(methodName), 111 return ctx_; in GetPassContext() 116 return ctx_->GetCompilerConfig(); in GetCompilerConfig() 121 return ctx_->GetPTManager(); in GetPTManager() 126 return ctx_->GetJSPandaFile(); in GetJSPandaFile() 131 return ctx_->GetAOTModule(); in GetAotModule() 201 ctx_->GetBytecodeInfo().AddSkippedMethod(methodOffset_); in AbortCompilation() 210 PassContext *ctx_ {nullptr};
|
H A D | typed_bytecode_lowering.h | 47 ctx_(ctx), in TypedBytecodeLowering() 70 panda_file::IndexAccessor indexAccessor(*(ctx_->GetJSPandaFile()->GetPandaFile()), in TypedBytecodeLowering() 251 PassContext *ctx_ {nullptr};
|
H A D | ts_inline_lowering.h | 55 ctx_(ctx), in TSInlineLowering() 151 PassContext *ctx_ {nullptr};
|
H A D | pass_manager.h | 179 PassContext *ctx_ {nullptr};
|
H A D | typed_bytecode_lowering.cpp | 1527 MethodLiteral* method = ctx_->GetJSPandaFile()->FindMethodLiteral(methodId); in LowerTypedNewObjRange() 1610 auto *methodLiteral = ctx_->GetJSPandaFile()->FindMethodLiteral(methodId); in LowerTypedSuperCall() 1752 auto pandaFile = ctx_->GetJSPandaFile(); in InSameConstPool() 1817 auto *methodLiteral = ctx_->GetJSPandaFile()->FindMethodLiteral(methodId); in LowerTypedCall() 1991 auto *methodLiteral = ctx_->GetJSPandaFile()->FindMethodLiteral(methodId); in LowerTypedThisCall()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | fibers_test.cpp | 61 fibers::GetCurrentContext(&ctx_); in Fiber() 63 fibers::UpdateContext(&ctx_, entry, this, stack_, STACK_SIZE); in Fiber() 74 return &ctx_; in GetContextPtr() 94 fibers::FiberContext ctx_; member in ark::fibers::test::final
|
/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | parserStatusContext.h | 28 : ctx_(ctx), savedStatus_(static_cast<ParserStatus>(ctx->Status() & STATUS)) in SavedStatusContext() 40 ctx_->Status() &= ~savedStatus_; in ~SavedStatusContext() 45 ParserContext *ctx_; member in ark::es2panda::parser::SavedStatusContext
|
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | vtable_builder_base.h | 45 ctx_(ctx), in MethodInfo() 58 ctx_(method->GetClass()->GetLoadContext()), in MethodInfo() 130 return ctx_; in GetLoadContext() 150 ClassLinkerContext *ctx_ {nullptr};
|
/arkcompiler/runtime_core/static_core/runtime/methodtrace/ |
H A D | trace.cpp | 33 LanguageContext Trace::ctx_ = LanguageContext(nullptr); member in ark::Trace 117 ctx_ = Runtime::GetCurrent()->GetLanguageContext(lang); in StartTracing() 119 singletonTrace_ = ctx_.CreateTrace(std::move(traceFile), bufferSize); in StartTracing()
|
H A D | trace.h | 150 static LanguageContext ctx_; member in ark::Trace
|
/arkcompiler/runtime_core/static_core/static_linker/ |
H A D | linker_context.h | 273 : error_(std::move(error)), indent_(indent), ctx_(ctx) in ErrorToStringWrapper() 287 Context *ctx_; member in ark::static_linker::Context::ErrorToStringWrapper
|
H A D | linker_context_misc.cpp | 308 for (auto [beg, end] = self.ctx_->cameFrom_.equal_range(v); beg != end; ++beg) { in operator <<()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/ |
H A D | scopesInitPhase.h | 142 return ctx_; in Context() 196 PhaseContext *ctx_ {};
|
H A D | scopesInitPhase.cpp | 476 ctx_ = ctx; in Prepare()
|
/arkcompiler/ets_frontend/es2panda/parser/ |
H A D | parserImpl.h | 664 : ctx_(ctx), savedStatus_(static_cast<ParserStatus>(ctx->Status())) in SavedStatusContext() 675 ctx_->Status() = savedStatus_; in ~SavedStatusContext() 679 ParserContext *ctx_; member in panda::es2panda::lexer::TokenFlags::ModifierFlags::SavedStatusContext
|