Home
last modified time | relevance | path

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

12345678

/arkcompiler/runtime_core/verification/util/parser/
Dparser.h59 template <typename Context, typename Type, typename Char, typename Iter>
60 struct base_parser : public verifier::callable<bool(Context &, Iter &, Iter)> {
62 constexpr base_parser(const F &f) : verifier::callable<bool(Context &, Iter &, Iter)> {f}
66 using Ctx = Context;
72 using next = base_parser<Context, type_sum<NType, T>, Char, Iter>;
74 using p = base_parser<Context, type_sum<op_next, T>, Char, Iter>;
78 static const auto l = [c](Context &, Iter &start, Iter end) {
94 static const auto l = [=](Context &, Iter &start, Iter end) {
112 static const auto l = [](Context &, Iter &start, Iter end) { return start == end; };
118 static const auto l = [p = *this](Context &c, Iter &start, Iter end) {
[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 …]
Dassembly-context.h33 * *context :
35 * ++context :
38 * context++ :
41 * similarly --context and context--
43 struct Context { struct
/arkcompiler/runtime_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 aot_context) in CheckFilesInClassContext() argument
101 if (context.find(file_context) == std::string::npos) { in CheckFilesInClassContext()
102 LOG(ERROR, AOT) << "Cannot found file " << file_context << " in runtime context"; in CheckFilesInClassContext()
121 auto context = aot_file->IsBootPandaFile() ? boot_class_context_ : complete_context; in VerifyClassHierarchy() local
125 // Aot file context must be prefix of current runtime context in VerifyClassHierarchy()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_async_function.cpp37 // 1.Let asyncContext be the running execution context. in AsyncFunctionAwait()
84 … // 11.Remove asyncContext from the execution context stack and restore the execution context that in AsyncFunctionAwait()
85 // is at the top of the execution context stack as the running execution context. in AsyncFunctionAwait()
95 // 1.Let asyncContext be the running execution context. in AsyncFunctionAwait()
141 … // 11.Remove asyncContext from the execution context stack and restore the execution context that in AsyncFunctionAwait()
142 // is at the top of the execution context stack as the running execution context. in AsyncFunctionAwait()
160 // 2.Let prevContext be the running execution context. in AsyncFunctionAwaitFulfilled()
162 …// 4.Push asyncContext onto the execution context stack; asyncContext is now the running execution… in AsyncFunctionAwaitFulfilled()
166 …rt: When we reach this step, asyncContext has already been removed from the execution context stack in AsyncFunctionAwaitFulfilled()
167 // and prevContext is the currently running execution context. in AsyncFunctionAwaitFulfilled()
[all …]
Djs_generator_object.cpp68 // 5.Let methodContext be the running execution context. in GeneratorResume()
74 …// 8.Push genContext onto the execution context stack; genContext is now the running execution con… in GeneratorResume()
77 …sert: When we return here, genContext has already been removed from the execution context stack and in GeneratorResume()
78 // methodContext is the currently running execution context. in GeneratorResume()
95 …e a generator enters the completed state it never leaves it and its associated execution context is in GeneratorResumeAbrupt()
122 // 6.Let methodContext be the running execution context. in GeneratorResumeAbrupt()
128 …// 9.Push genContext onto the execution context stack; genContext is now the running execution con… in GeneratorResumeAbrupt()
131 …sert: When we return here, genContext has already been removed from the execution context stack and in GeneratorResumeAbrupt()
132 // methodContext is the currently running execution context. in GeneratorResumeAbrupt()
/arkcompiler/runtime_core/verification/config/parse/
Dconfig_parse.cpp32 struct Context { struct
39 using p = panda::parser::parser<Context, const char, const char *>;
54 static const auto NAME_HANDLER = [](auto a, Context &c, auto from, auto to) { in ParseConfig()
65 static const auto LINE_HANDLER = [](auto a, Context &c, auto from, auto to) { in ParseConfig()
78 static const auto SECTION_HANDLER = [](auto a, Context &c) { in ParseConfig()
102 Context context; in ParseConfig() local
104 context.current.name = "config"; in ParseConfig()
106 if (SECTION(context, str, &str[std::strlen(str)])) { // NOLINT in ParseConfig()
107 cfg = context.current; in ParseConfig()
/arkcompiler/runtime_core/runtime/include/
Dclass_linker.h67 … Class *GetClass(const uint8_t *descriptor, bool need_copy_descriptor, ClassLinkerContext *context,
70 …s *GetClass(const panda_file::File &pf, panda_file::File::EntityId id, ClassLinkerContext *context,
76 …Class(const panda_file::File &pf, panda_file::File::EntityId class_id, ClassLinkerContext *context,
79 …return LoadClass(&pf, class_id, pf.GetStringData(class_id).data, context, error_handler, add_to_ru…
82 …d(const panda_file::File &pf, panda_file::File::EntityId id, ClassLinkerContext *context = nullptr,
88 …d(const panda_file::File &pf, panda_file::File::EntityId id, ClassLinkerContext *context = nullptr,
94 …void AddPandaFile(std::unique_ptr<const panda_file::File> &&pf, ClassLinkerContext *context = null…
266 Class *FindLoadedClass(const uint8_t *descriptor, ClassLinkerContext *context = nullptr);
273 … Span<Field> fields, Class *base_class, Span<Class *> interfaces, ClassLinkerContext *context,
291 EnumerateContexts([panda_file, &app_context](ClassLinkerContext *context) -> bool { in GetAppContext()
[all …]
Dclass_linker_extension.h89 Class *FindLoadedClass(const uint8_t *descriptor, ClassLinkerContext *context = nullptr);
91 …const uint8_t *descriptor, bool need_copy_descriptor = true, ClassLinkerContext *context = nullptr,
94 …s(const panda_file::File &pf, panda_file::File::EntityId id, ClassLinkerContext *context = nullptr,
185 auto *context = fn(); in RegisterContext() local
186 if (context != nullptr) { in RegisterContext()
187 contexts_.push_back(context); in RegisterContext()
199 for (auto *context : contexts_) { in EnumerateContexts()
200 if (!cb(context)) { in EnumerateContexts()
210 ClassLinkerContext *ResolveContext(ClassLinkerContext *context) in ResolveContext() argument
212 if (context == nullptr) { in ResolveContext()
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/core/
DcompilerImpl.cpp42 …CompilerContext context(program->Binder(), options.isDebug, options.isDebuggerEvaluateExpressionMo… in Compile() local
51 auto rootNode = context.Binder()->TopScope()->Node()->AsBlockStatement(); in Compile()
53 options.typeDtsBuiltin, &localAllocator, &context); in Compile()
56 context.SetTypeRecorder(extractor_->Recorder()); in Compile()
60 context.GetEmitter()->FillTypeInfoRecord(options.typeExtractor, in Compile()
64 queue_ = new CompileFuncQueue(threadCount_, &context); in Compile()
71 return context.GetEmitter()->Finalize(options.dumpDebugInfo, hotfixHelper_); in Compile()
DcompileQueue.h38 explicit CompileFunctionJob(CompilerContext *context) : context_(context) {}; in CompileFunctionJob() argument
62 explicit CompileModuleRecordJob(CompilerContext *context) : context_(context) {}; in CompileModuleRecordJob() argument
96 explicit CompileFuncQueue(size_t threadCount, CompilerContext *context) in CompileFuncQueue() argument
97 : util::WorkerQueue(threadCount), context_(context) {} in CompileFuncQueue()
/arkcompiler/runtime_core/runtime/
Dclass_linker.cpp48 …lassLinker::AddPandaFile(std::unique_ptr<const panda_file::File> &&pf, ClassLinkerContext *context) in AddPandaFile() argument
58 … panda_files_.push_back({context, std::forward<std::unique_ptr<const panda_file::File>>(pf)}); in AddPandaFile()
61 if (context == nullptr || context->IsBootContext()) { in AddPandaFile()
197 Class *ClassLinker::FindLoadedClass(const uint8_t *descriptor, ClassLinkerContext *context) in FindLoadedClass() argument
199 ASSERT(context != nullptr); in FindLoadedClass()
200 return context->FindClass(descriptor); in FindLoadedClass()
288 … Span<Class *> interfaces, ClassLinkerContext *context) in GetClassInfo() argument
297 vtable_builder->Build(data_accessor, base, itable_builder->GetITable(), context); in GetClassInfo()
721 … ClassLinkerContext *context, ClassLinkerErrorHandler *error_handler) in LoadBaseClass() argument
731 auto *base_class = ext->GetClass(pf, base_class_id, context, error_handler); in LoadBaseClass()
[all …]
Dclass_linker_extension.cpp115 // can load more classes and modify boot context in Initialize()
153 Class *ClassLinkerExtension::FindLoadedClass(const uint8_t *descriptor, ClassLinkerContext *context in FindLoadedClass() argument
155 return class_linker_->FindLoadedClass(descriptor, ResolveContext(context)); in FindLoadedClass()
159 ClassLinkerContext *context /* = nullptr */, in GetClass() argument
164 return class_linker_->GetClass(descriptor, need_copy_descriptor, ResolveContext(context), in GetClass()
194 ClassLinkerContext *context /* = nullptr */, in GetClass() argument
199 …auto *cls = class_linker_->GetClass(pf, id, ResolveContext(context), ResolveErrorHandler(error_han… in GetClass()
214 auto *context = klass->GetLoadContext(); in AddClass() local
216 auto *other_klass = ResolveContext(context)->InsertClass(klass); in AddClass()
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
Demitter.cpp193 if (pg_->Context()->IsTypeExtractorEnabled()) { in GenFunctionInstructions()
285 Emitter::Emitter(const CompilerContext *context) in Emitter() argument
290 if (context->IsJsonInputFile()) { in Emitter()
291 GenJsonContentRecord(context); in Emitter()
300 if (context->IsMergeAbc()) { in Emitter()
301 auto recordName = context->Binder()->Program()->FormatedRecordName().Mutf8(); in Emitter()
303 SetPkgNameField(context->PkgName()); in Emitter()
304 SetCommonjsField(context->Binder()->Program()->Kind() == parser::ScriptKind::COMMONJS); in Emitter()
307 if (context->Binder()->Program()->Kind() == parser::ScriptKind::COMMONJS) { in Emitter()
343 void Emitter::GenJsonContentRecord(const CompilerContext *context) in GenJsonContentRecord() argument
[all …]
Demitter.h103 explicit Emitter(const CompilerContext *context);
108 void AddFunction(FunctionEmitter *func, CompilerContext *context);
109 void AddSourceTextModuleRecord(ModuleRecordEmitter *module, CompilerContext *context);
116 void GenJsonContentRecord(const CompilerContext *context);
/arkcompiler/runtime_core/verification/util/tests/
Denvironment.cpp30 struct Context { in EnvOptions() struct
35 using par = parser<Context, const char, const char *>::next<EnvOptions>; in EnvOptions()
39 …static const auto NAME_HANDLER = [](auto a, Context &c, auto s, auto e, [[maybe_unused]] auto end)… in EnvOptions()
52 static const auto BOOL_HANDLER = [](auto a, Context &c, auto s, [[maybe_unused]] auto to, in EnvOptions()
66 …static const auto NUM_HANDLER = [](auto a, Context &c, auto s, auto e, [[maybe_unused]] auto end) { in EnvOptions()
76 …static const auto STRING_HANDLER = [](auto a, Context &c, auto s, auto e, [[maybe_unused]] auto en… in EnvOptions()
86 …static const auto KV_PAIR_HANDLER = [this](auto a, Context &c, [[maybe_unused]] auto f, [[maybe_un… in EnvOptions()
102 Context c; in EnvOptions()
/arkcompiler/runtime_core/verification/config/handlers/
Dconfig_handler_method_groups.cpp50 struct Context { in RegisterConfigHandlerMethodGroups() struct
55 using p = parser<Context, const char, const char *>; in RegisterConfigHandlerMethodGroups()
58 const auto GROUP_HANDLER = [](Context &c, PandaString &&group) { in RegisterConfigHandlerMethodGroups()
63 const auto OPTIONS_HANDLER = [](Context &c, PandaString &&options) { in RegisterConfigHandlerMethodGroups()
74 Context ctx; in RegisterConfigHandlerMethodGroups()
Dliteral_parser.h58 using Context = PandaVector<PandaString>; in LiteralsParser() local
60 using p = typename parser<Context, const char, const char *>::template next<Literals>; in LiteralsParser()
67 static const auto LITERAL_HANDLER = [](Context &c, PandaString &&str) { in LiteralsParser()
/arkcompiler/runtime_core/verification/models/
DREADME.md3 Using Alloy to prove that we may use simple set intersection of reg supertypes during context merge…
26 1. `example` - to show models of proper supertypes calculation during context merge and checking of…
28 …h for counterexamples), where supertypes intersection calculation during context merge does not le…
/arkcompiler/runtime_core/verification/config/debug_breakpoint/
Dconfig_handler_breakpoints.cpp40 struct Context { struct
51 using p = parser<Context, const char, const char *>::next<Breakpoint>; in BreakpointParser()
63 static const auto OFFSET_HANDLER = [](action a, Context &c, auto from) { in BreakpointParser()
72 static const auto METHOD_NAME_HANDLER = [](action a, Context &c, auto from, auto to) { in BreakpointParser()
79 static const auto BREAKPOINT_HANDLER = [](action a, Context &c) { in BreakpointParser()
99 Context c; in RegisterConfigHandlerBreakpoints()
/arkcompiler/runtime_core/compiler/docs/
Daot_cha.md8 result the order of files in class path and files themselves are enough to verify the class context
12 This class context is represented by a string which is written into AOT file and compared with runt…
49 Runtime class context: '$LIBDIR/lib1.abc*2239629066:$LIBDIR/lib2.abc*2767220441:application.abc*252…
50 AoT class context: '$LIBDIR/lib1.abc*2239629066:application.abc*2524155584'
53 The string of class context for AOT file takes into account `--paoc-location` option.
56 The boot class path now is a part of class context string. When boot image would be implemented the…
/arkcompiler/runtime_core/runtime/tooling/inspector/
Dinspector.cpp65 params.AddProperty("context", [](JsonObjectBuilder &context) { in EnableRuntime() argument
66 context.AddProperty("id", 0); in EnableRuntime()
67 context.AddProperty("origin", ""); in EnableRuntime()
68 context.AddProperty("name", "context"); in EnableRuntime()
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dreturn.void.yaml49 …description: Check 'return.void' returns control flow to caller in Pandasm context with static cal…
84 …description: Check 'return.void' returns control flow to caller in PandaAssembly context with stat…
120 …description: Check 'return.void' returns control flow to caller in Pandasm context with virtual ca…
157 …description: Check 'return.void' returns control flow to caller in PandaAssembly context with virt…
365 …description: Check accumulator value if undefined after 'return.void' in Pandasm context with stat…
387 …Check accumulator value if undefined after 'return.void' in PandaAssembly context with static call.
409 …description: Check accumulator value if undefined after 'return.void' in Pandasm context with virt…
433 …heck accumulator value if undefined after 'return.void' in PandaAssembly context with virtual call.
Dstobj.v.64.yaml81 …ption: Check that verifier reports error if a register is not initialized in PandaAssembly context.
122 …ption: Check that verifier reports error if a register is not initialized in PandaAssembly context.
163 …cription: Check that NullPointerException is thrown if object ref is null in PandaAssembly context.
204 …cription: Check that NullPointerException is thrown if object ref is null in PandaAssembly context.
245 object (other than array) in PandaAssembly context.
287 object (other than array) in PandaAssembly context.
330 valid object field in PandaAssembly context.
385 valid object field in PandaAssembly context.
432 that is not corresponding to bytecode in PandaAssembly context.
485 that is not corresponding to bytecode in PandaAssembly context.
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/base/
Dlexenv.cpp116 auto context = pg->Context(); in ExpandStoreNormalVar() local
117 if (context->IsTypeExtractorEnabled()) { in ExpandStoreNormalVar()
118 auto typeIndex = context->TypeRecorder()->GetVariableTypeIndex(local); in ExpandStoreNormalVar()
127 typeIndex = context->TypeRecorder()->GetNodeTypeIndex(node); in ExpandStoreNormalVar()

12345678