Home
last modified time | relevance | path

Searched full:context (Results 1 – 25 of 870) sorted by relevance

12345678910>>...35

/arkcompiler/ets_runtime/ecmascript/
Decma_handle_scope.cpp23 auto context = thread_->GetCurrentEcmaContext(); in EcmaHandleScope() local
24 OpenHandleScope(context); in EcmaHandleScope()
25 OpenPrimitiveScope(context); in EcmaHandleScope()
28 void EcmaHandleScope::OpenHandleScope(EcmaContext *context) in OpenHandleScope() argument
30 prevNext_ = context->handleScopeStorageNext_; in OpenHandleScope()
31 prevEnd_ = context->handleScopeStorageEnd_; in OpenHandleScope()
32 prevHandleStorageIndex_ = context->currentHandleStorageIndex_; in OpenHandleScope()
34 context->HandleScopeCountAdd(); in OpenHandleScope()
35 prevHandleScope_ = context->GetLastHandleScope(); in OpenHandleScope()
36 context->SetLastHandleScope(this); in OpenHandleScope()
[all …]
Djs_async_function.cpp33 // 1.Let asyncContext be the running execution context. in AsyncFunctionAwait()
83 … // 11.Remove asyncContext from the execution context stack and restore the execution context that in AsyncFunctionAwait()
84 // is at the top of the execution context stack as the running execution context. in AsyncFunctionAwait()
94 // 1.Let asyncContext be the running execution context. in AsyncFunctionAwait()
143 … // 11.Remove asyncContext from the execution context stack and restore the execution context that in AsyncFunctionAwait()
144 // is at the top of the execution context stack as the running execution context. in AsyncFunctionAwait()
162 // 2.Let prevContext be the running execution context. in AsyncFunctionAwaitFulfilled()
164 …// 4.Push asyncContext onto the execution context stack; asyncContext is now the running execution… in AsyncFunctionAwaitFulfilled()
168 …rt: When we reach this step, asyncContext has already been removed from the execution context stack in AsyncFunctionAwaitFulfilled()
169 // and prevContext is the currently running execution context. in AsyncFunctionAwaitFulfilled()
[all …]
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DcompilerImpl.cpp49 void CompilerImpl::HandleContextLiterals(public_lib::Context *context) in HandleContextLiterals() argument
51 auto *emitter = context->emitter; in HandleContextLiterals()
54 for (const auto &buff : context->contextLiterals) { in HandleContextLiterals()
58 emitter->LiteralBufferIndex() += context->contextLiterals.size(); in HandleContextLiterals()
61 ark::pandasm::Program *CompilerImpl::Emit(public_lib::Context *context) in Emit() argument
63 HandleContextLiterals(context); in Emit()
65 queue_.Schedule(context); in Emit()
69 auto *emitter = context->emitter; in Emit()
72 …return emitter->Finalize(context->config->options->CompilerOptions().dumpDebugInfo, Signatures::ET… in Emit()
105 ASTVerificationRunner(ArenaAllocator &allocator, const public_lib::Context &context) in ASTVerificationRunner() argument
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Decma_context_test.cpp30 auto context = EcmaContext::CreateAndInitialize(thread); in HWTEST_F_L0() local
31 thread->SwitchCurrentContext(context); in HWTEST_F_L0()
38 EcmaContext::CheckAndDestroy(thread, context); in HWTEST_F_L0()
48 auto context = EcmaContext::CreateAndInitialize(thread); in HWTEST_F_L0() local
49 thread->SwitchCurrentContext(context); in HWTEST_F_L0()
52 context->SetRegExpCache(value2.GetTaggedValue()); in HWTEST_F_L0()
53 JSHandle<JSTaggedValue> res2 = context->GetRegExpCache(); in HWTEST_F_L0()
55 EcmaContext::CheckAndDestroy(thread, context); in HWTEST_F_L0()
60 auto context = EcmaContext::CreateAndInitialize(thread); in HWTEST_F_L0() local
61 thread->SwitchCurrentContext(context); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/
Dstd_core_array.sts20 {% include 'utils/test_core_array_lib.j2' with context %}
27 {% include 'utils/test_core_array_lib.j2' with context %}
34 {% include 'utils/test_core_array_lib.j2' with context %}
41 {% include 'utils/test_core_array_lib.j2' with context %}
48 {% include 'utils/test_core_array_lib.j2' with context %}
55 {% include 'utils/test_core_array_lib.j2' with context %}
62 {% include 'utils/test_core_array_lib.j2' with context %}
69 {% include 'utils/test_core_array_lib.j2' with context %}
76 {% include 'utils/test_core_array_lib.j2' with context %}
83 {% include 'utils/test_core_array_lib.j2' with context %}
[all …]
/arkcompiler/runtime_core/static_core/runtime/fibers/
Dfiber_context.h37 * This set of functions implements user mode context switch functionality.
41 * - retrieve current context
43 * - update the saved context with a new stack (allocated manually elsewhere) and an entrypoint
51 /// @brief Saves current usermode context to the provided buffer in memory.
55 * @brief Saves current context and switches to the target one.
56 * @param from the buffer to save the current context in
57 * @param to the buffer to load the new context from
62 * @brief Updates the previously saved context with a new stack and a new entry point.
64 * @param ctx a buffer with a valid saved context (via GetCurrentContext() or SwitchContext())
65 …* @param func the new entry point. After a context switch to ctx with SwitchContext(), the control…
[all …]
/arkcompiler/ets_frontend/ets2panda/public/
Des2panda_lib.h127 …panda_Context *(*ProceedToState)(es2panda_Context *context, es2panda_ContextState state); // cont…
128 void (*DestroyContext)(es2panda_Context *context);
130 es2panda_ContextState (*ContextState)(es2panda_Context *context);
131 char const *(*ContextErrorMessage)(es2panda_Context *context);
133 es2panda_Program *(*ContextProgram)(es2panda_Context *context);
143 …void (*AstNodeSetDecorators)(es2panda_Context *context, es2panda_AstNode *ast, es2panda_AstNode **…
151 …es2panda_AstNode *(*CreateArrowFunctionExpression)(es2panda_Context *context, es2panda_AstNode *sc…
155 es2panda_AstNode *(*CreateAsExpression)(es2panda_Context *context, es2panda_AstNode *expr,
164 … es2panda_AstNode *(*CreateAssignmentExpression)(es2panda_Context *context, es2panda_AstNode *left,
172 es2panda_AstNode *(*CreatebinaryExpression)(es2panda_Context *context, es2panda_AstNode *left,
[all …]
Des2panda_lib.cpp71 #include "parser/context/parserContext.h"
407 static void CompileJob(public_lib::Context *context, varbinder::FunctionScope *scope, in CompileJob() argument
413 …compiler::ETSGen cg {&allocator, &regSpiller, context, std::make_tuple(scope, programElement, &ast… in CompileJob()
422 auto *res = new Context; in CreateContext()
465 auto *res = new Context; in CreateContextFromFile()
473 auto *res = new Context; in CreateContextFromFile()
487 static Context *Parse(Context *ctx) in Parse()
508 static Context *InitScopes(Context *ctx) in InitScopes()
539 static Context *Check(Context *ctx) in Check()
577 static Context *Lower(Context *ctx) in Lower()
[all …]
/arkcompiler/runtime_core/static_core/assembler/
Dcontext.cpp22 void Context::Make(const std::vector<ark::pandasm::Token> &t) in Make()
40 size_t Context::Len() const in Len()
45 bool Context::ValidateFoundedRegisterName(char c, size_t n) const in ValidateFoundedRegisterName()
70 bool Context::ValidateRegisterName(char c, size_t n) const in ValidateRegisterName()
79 bool Context::ValidateParameterName(size_t numberOfParamsAlreadyIs) const in ValidateParameterName()
98 std::string_view Context::GiveToken() in GiveToken()
103 Token::Type Context::Next() in Next()
112 void Context::UpSignOperation() in UpSignOperation()
117 Token::Type Context::WaitFor() in WaitFor()
122 bool Context::Mask() in Mask()
[all …]
/arkcompiler/runtime_core/static_core/verification/util/parser/
Dparser.h59 template <typename Context, typename Type, typename Char, typename Iter>
60 struct BaseParser : public verifier::callable<bool(Context &, Iter &, Iter)> {
63 constexpr BaseParser(const F &f) : verifier::callable<bool(Context &, Iter &, Iter)> {f}
67 using Ctx = Context;
73 using Next = BaseParser<Context, type_sum<NType, T>, Char, Iter>;
75 using P = BaseParser<Context, type_sum<op_next, T>, Char, Iter>;
79 static const auto L = [c](Context &, Iter &start, Iter end) {
95 static const auto L = [=](Context &, Iter &start, Iter end) {
113 static const auto L = [=](Context &, Iter &start, Iter end) {
138 static const auto L = [](Context &, Iter &start, Iter end) { return start == end; };
[all …]
/arkcompiler/runtime_core/static_core/runtime/
Dsignal_handler.cpp46 [[maybe_unused]] const void *context) in DumpStackTrace() argument
70 static bool CallSignalActionHandler(int sig, siginfo_t *info, void *context) in CallSignalActionHandler() argument
72 return Runtime::GetCurrent()->GetSignalManager()->SignalActionHandler(sig, info, context); in CallSignalActionHandler()
75 bool SignalManager::SignalActionHandler(int sig, siginfo_t *info, void *context) in SignalActionHandler() argument
78 if (InOatCode(info, context, true)) { in SignalActionHandler()
80 if (handler->Action(sig, info, context)) { in SignalActionHandler()
87 if (InOtherCode(sig, info, context)) { in SignalActionHandler()
96 …Manager::InOatCode([[maybe_unused]] const siginfo_t *siginfo, [[maybe_unused]] const void *context, in InOatCode() argument
104 [[maybe_unused]] const void *context) const in InOtherCode()
170 [[maybe_unused]] const void *context, in GetMethodAndReturnPcAndSp() argument
[all …]
/arkcompiler/runtime_core/assembler/
Dcontext.cpp22 void Context::Make(const std::vector<panda::pandasm::Token> &t) in Make()
40 size_t Context::Len() const in Len()
45 bool Context::ValidateRegisterName(char c, size_t n) const in ValidateRegisterName()
74 bool Context::ValidateParameterName(size_t number_of_params_already_is) const in ValidateParameterName()
93 std::string_view Context::GiveToken() in GiveToken()
98 Token::Type Context::Next() in Next()
107 void Context::UpSignOperation() in UpSignOperation()
112 Token::Type Context::WaitFor() in WaitFor()
117 bool Context::Mask() in Mask()
122 bool Context::NextMask() in NextMask()
[all …]
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/types/
Dpgo_profile_type.cpp22 ProfileTypeRef::ProfileTypeRef(PGOContext &context, const ProfileType &type) in ProfileTypeRef() argument
25 context.GetProfileTypePool()->TryAdd(type, apId); in ProfileTypeRef()
29 ProfileTypeRef &ProfileTypeRef::Remap([[maybe_unused]] const PGOContext &context) in Remap() argument
35 ProfileType::ProfileType(PGOContext &context, ProfileTypeRef typeRef, bool *isValid) in ProfileType() argument
40 if (!context.GetHeader()->SupportWideProfileType()) { in ProfileType()
46 const auto *typeEntry = context.GetProfileTypePool()->GetEntry(typeRef.GetId()); in ProfileType()
57 ProfileType &ProfileType::Remap([[maybe_unused]]const PGOContext &context) in Remap() argument
59 if ((GetAbcId() >= PGOAbcFilePool::RESERVED_COUNT) && (!context.GetAbcIdRemap().empty())) { in Remap()
60 UpdateAbcId(context.GetAbcIdRemap().at(GetAbcId())); in Remap()
/arkcompiler/runtime_core/static_core/runtime/fibers/arch/aarch64/
Dupdate.S44 // context->PC = func
46 // context->LR = FiberExitBridge (for the case when Fiber returns)
49 // context->X0 = argument
61 // context->SP = %x8
63 // context->FP = 0
78 // %x8 = context->PC
80 // context->PC = func
82 // context->X0 = argument
85 // pretend that we called the func(), i.e. put context's PC to LR
86 // context->LR = %x8
/arkcompiler/runtime_core/static_core/runtime/fibers/arch/arm/
Dupdate.S44 // context->PC = func
47 // context->LR = FiberExitBridge (for the case when Fiber returns)
50 // context->R0 = argument
63 // context->SP = r1
65 // context->FP = 0
81 // r4 = context->PC
83 // context->PC = func
85 // context->R0 = argument
88 // pretend that we called the func(), i.e. put context's PC to LR
89 // context->LR = r4
/arkcompiler/runtime_core/static_core/compiler/aot/
Daot_manager.cpp81 static void FancyClassContextPrint(std::string_view context) in FancyClassContextPrint() argument
85 size_t end = context.find(DELIMITER, start); in FancyClassContextPrint()
87 LOG(ERROR, AOT) << "\t\t" << context.substr(start, end - start); in FancyClassContextPrint()
89 end = context.find(DELIMITER, start); in FancyClassContextPrint()
91 LOG(ERROR, AOT) << "\t\t" << context.substr(start); in FancyClassContextPrint()
94 static bool CheckFilesInClassContext(std::string_view context, std::string_view aotContext) in CheckFilesInClassContext() argument
101 if (context.find(fileContext) == std::string::npos) { in CheckFilesInClassContext()
102 LOG(ERROR, AOT) << "Cannot found file " << fileContext << " in runtime context"; in CheckFilesInClassContext()
121 auto context = aotFile->IsBootPandaFile() ? bootClassContext_ : completeContext; in VerifyClassHierarchy() local
125 // Aot file context must be prefix of current runtime context in VerifyClassHierarchy()
[all …]
/arkcompiler/runtime_core/static_core/runtime/fibers/arch/amd64/
Dupdate.S45 // context->RIP = func
47 // context->RDI = argument
61 // context->RSP = %rax
80 // %r10 = context->RIP
82 // context->RIP = func
84 // context->RDI = argument
87 // pretend that we called the func(), i.e. push context's RIP to context's stack:
88 // %rax = context->RSP
94 // context->RSP = %rax
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
DdefaultParameterLowering.h33 …eterDeclaration *CreateParameterDeclaraion(ir::MethodDefinition *method, public_lib::Context *ctx);
35 public_lib::Context *ctx);
37 public_lib::Context *ctx);
38 ir::BlockStatement *CreateFunctionBody(ir::MethodDefinition *method, public_lib::Context *ctx,
40 …unctionExpression *CreateFunctionExpression(ir::MethodDefinition *method, public_lib::Context *ctx,
44 … ArenaVector<ir::Expression *> funcDefinitionArgs, public_lib::Context *ctx);
46 void ProcessGlobalFunctionDefinition(ir::MethodDefinition *method, public_lib::Context *ctx);
53 bool Perform(public_lib::Context *ctx, parser::Program *program) override;
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/09.constant_string_to_char_conversion/
Dstr2char_n1.params.yaml20 // assignment-like context, variable declaration
28 // assignment-like context, constant declaration
35 // assignment-like context, field declaration
48 // assignment-like context, variable assignment
55 // assignment-like context, field assignment
65 // call context, function
75 // call context, method
88 // call context, constructor
101 // call context, lambda
Dstr2char_n2.params.yaml20 // assignment-like context, constant declaration
27 // assignment-like context, field declaration
39 // assignment-like context, variable assignment
46 // assignment-like context, field assignment
57 // call context, function
67 // call context, method
79 // call context, constructor
92 // call context, lambda
Dstr2char_n3.params.yaml20 // assignment-like context, variable declaration
27 // assignment-like context, field declaration
38 // assignment-like context, variable assignment
45 // assignment-like context, field assignment
56 // call context, function
66 // call context, method
78 // call context, constructor
91 // call context, lambda
/arkcompiler/runtime_core/static_core/runtime/coroutines/
Dstackful_coroutine.h27 * @brief Native context of a coroutine. "Fiber"-based implementation.
29 * This implementation uses panda fibers library to implement native coroutine context.
46 …* Prepares the context for execution, links it to the managed context part (Coroutine instance) an…
51 …* Manually destroys the context. Should be called by the Coroutine instance as a part of main coro…
62 …* Suspends the execution context, sets its status to either Status::RUNNABLE or Status::BLOCKED, d…
66 /// Resumes the suspended context, sets status to RUNNING.
76 …/// Coroutine status is a part of native context, because it might require some synchronization on…
80 * Transfer control to the target context
81 * NB: this method will return only after the control is transferred back to the caller context
91 /// Executes a foreign lambda function within this context (does not corrupt the saved context)
/arkcompiler/runtime_core/static_core/verification/config/parse/
Dconfig_parse.cpp33 struct Context { struct
40 using P = ark::parser::Parser<Context, const char, const char *>;
56 static const auto NAME_HANDLER = [](auto a, Context &c, auto from, auto to) { in ParseConfig()
79 static const auto LINE_HANDLER = [](auto a, Context &c, auto from, auto to) { in ParseConfig()
95 static const auto SECTION_HANDLER = [](auto a, Context &c) { in ParseConfig()
119 Context context; in ParseConfig() local
121 context.current.name = "config"; in ParseConfig()
123 if (SECTION(context, str, &str[std::strlen(str)])) { // NOLINT in ParseConfig()
124 cfg = context.current; in ParseConfig()
/arkcompiler/ets_frontend/arkguard/src/transformers/rename/
DVirtualConstructorTransformer.ts50 function virtualConstructorTransformerFactory(context: TransformationContext): Transformer<Node> {
51 return (node: SourceFile) => virtualConstructorTransformer(node, context);
54 function virtualConstructorTransformer(node: SourceFile, context: TransformationContext): Node {
60 let astWithoutVirtualConstructor = removeVirtualConstructor(node, context);
67 function removeVirtualConstructor(node: Node, context: TransformationContext): Node {
75 return visitEachChild(node, (childNode) => removeVirtualConstructor(childNode, context), context);
/arkcompiler/ets_frontend/ets2panda/util/
Dplugin.h50 void AfterParse(es2panda_Context *context) const in AfterParse() argument
53 afterParse_(context); in AfterParse()
57 void AfterCheck(es2panda_Context *context) const in AfterCheck() argument
60 afterCheck_(context); in AfterCheck()
64 void AfterLowerings(es2panda_Context *context) const in AfterLowerings() argument
67 afterLowerings_(context); in AfterLowerings()

12345678910>>...35