Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 35) sorted by relevance

12

/ark/runtime_core/runtime/
Dsignal_handler.cpp76 …Trace([[maybe_unused]] int signo, [[maybe_unused]] siginfo_t *info, [[maybe_unused]] void *context) in DumpStackTrace() argument
105 static bool CallSignalActionHandler(int sig, siginfo_t *info, void *context) in CallSignalActionHandler() argument
107 return Runtime::GetCurrent()->GetSignalManager()->SignalActionHandler(sig, info, context); in CallSignalActionHandler()
110 bool SignalManager::SignalActionHandler(int sig, siginfo_t *info, void *context) in SignalActionHandler() argument
112 if (InOatCode(info, context, true)) { in SignalActionHandler()
114 if (handler->Action(sig, info, context)) { in SignalActionHandler()
121 if (InOtherCode(sig, info, context)) { in SignalActionHandler()
130 …Manager::InOatCode([[maybe_unused]] const siginfo_t *siginfo, [[maybe_unused]] const void *context, in InOatCode() argument
137 [[maybe_unused]] void *context) in InOtherCode() argument
210 [[maybe_unused]] const void *context, in GetMethodAndReturnPcAndSp() argument
[all …]
Dsignal_handler.h40 bool SignalActionHandler(int sig, siginfo_t *info, void *context);
41 bool InOatCode(const siginfo_t *siginfo, const void *context, bool check_bytecode_pc);
42 bool InOtherCode(int sig, siginfo_t *info, void *context);
47 …void GetMethodAndReturnPcAndSp(const siginfo_t *siginfo, const void *context, const Method **out_m…
74 virtual bool Action(int sig, siginfo_t *siginfo, void *context) = 0;
88 bool Action(int sig, siginfo_t *siginfo, void *context) override;
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()
187 Class *ClassLinker::FindLoadedClass(const uint8_t *descriptor, ClassLinkerContext *context) in FindLoadedClass() argument
189 ASSERT(context != nullptr); in FindLoadedClass()
190 return context->FindClass(descriptor); in FindLoadedClass()
278 … Span<Class *> interfaces, ClassLinkerContext *context) in GetClassInfo() argument
287 vtable_builder->Build(data_accessor, base, itable_builder->GetITable(), context); in GetClassInfo()
629 …LoadBaseClass(panda_file::ClassDataAccessor *cda, LanguageContext ctx, ClassLinkerContext *context, in LoadBaseClass() argument
640 auto *base_class = ext->GetClass(pf, base_class_id, context, error_handler); in LoadBaseClass()
[all …]
Dclass_linker_extension.cpp148 Class *ClassLinkerExtension::FindLoadedClass(const uint8_t *descriptor, ClassLinkerContext *context in FindLoadedClass() argument
150 return class_linker_->FindLoadedClass(descriptor, ResolveContext(context)); in FindLoadedClass()
156 ClassLinkerContext *context /* = nullptr */, in GetClass() argument
161 return class_linker_->GetClass(descriptor, need_copy_descriptor, ResolveContext(context), in GetClass()
186 ClassLinkerContext *context /* = nullptr */, in GetClass() argument
191 …auto *cls = class_linker_->GetClass(pf, id, ResolveContext(context), ResolveErrorHandler(error_han… in GetClass()
205 auto *context = klass->GetLoadContext(); in AddClass() local
206 auto *other_klass = ResolveContext(context)->InsertClass(klass); in AddClass()
Druntime.cpp682 ClassLinkerContext *context = app_context_.ctx; in ResolveEntryPoint() local
683 if (context == nullptr) { in ResolveEntryPoint()
684context = class_linker_->GetExtension(GetLanguageContext(options_.GetRuntimeType()))->GetBootConte… in ResolveEntryPoint()
690 cls = class_linker_->GetClass(class_name_bytes, true, context); in ResolveEntryPoint()
692 cls = class_linker_->GetClass(class_name_bytes, true, context); in ResolveEntryPoint()
/ark/runtime_core/runtime/include/
Dclass_linker.h65 … Class *GetClass(const uint8_t *descriptor, bool need_copy_descriptor, ClassLinkerContext *context,
68 …s *GetClass(const panda_file::File &pf, panda_file::File::EntityId id, ClassLinkerContext *context,
74 …Class(const panda_file::File &pf, panda_file::File::EntityId class_id, ClassLinkerContext *context,
77 return LoadClass(&pf, class_id, pf.GetStringData(class_id).data, context, error_handler);
80 …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…
248 Class *FindLoadedClass(const uint8_t *descriptor, ClassLinkerContext *context = nullptr);
255 … Span<Field> fields, Class *base_class, Span<Class *> interfaces, ClassLinkerContext *context,
278 EnumerateContexts([panda_file, &app_context](ClassLinkerContext *context) -> bool { in GetAppContext()
[all …]
Dclass_linker_extension.h90 Class *FindLoadedClass(const uint8_t *descriptor, ClassLinkerContext *context = nullptr);
92 …const uint8_t *descriptor, bool need_copy_descriptor = true, ClassLinkerContext *context = nullptr,
95 …s(const panda_file::File &pf, panda_file::File::EntityId id, ClassLinkerContext *context = nullptr,
149 auto *context = fn(); in RegisterContext() local
150 if (context != nullptr) { in RegisterContext()
151 contexts_.push_back(context); in RegisterContext()
163 for (auto *context : contexts_) { in EnumerateContexts()
164 if (!cb(context)) { in EnumerateContexts()
174 ClassLinkerContext *ResolveContext(ClassLinkerContext *context) in ResolveContext() argument
176 if (context == nullptr) { in ResolveContext()
[all …]
Dlanguage_context.h191 explicit LanguageContext(const LanguageContextBase *context) : base_(context) {} in LanguageContext() argument
Dclass.h550 void SetLoadContext(ClassLinkerContext *context) in SetLoadContext() argument
552 ASSERT(context != nullptr); in SetLoadContext()
553 load_context_ = context; in SetLoadContext()
/ark/js_runtime/ecmascript/napi/test/
Djsi_test.cpp34 std::string context; in GetLogContent() local
36 context += value->ToString(runtime); in GetLogContent()
38 return context; in GetLogContent()
44 std::string context = GetLogContent(runtime, argument); in AppDebugLogPrint() local
45 std::cout << context.c_str() << std::endl; in AppDebugLogPrint()
52 std::string context = GetLogContent(runtime, argument); in Setter() local
53 std::cout << context.c_str() << std::endl; in Setter()
60 std::string context = GetLogContent(runtime, argument); in Getter() local
/ark/runtime_core/verification/debug/config/
Dconfig_parse.cpp101 Context context; in ParseConfig() local
103 context.current.name = "config"; in ParseConfig()
105 if (SECTION(context, str, &str[std::strlen(str)])) { // NOLINT in ParseConfig()
106 cfg = context.current; in ParseConfig()
/ark/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…
/ark/js_runtime/ecmascript/interpreter/
Dslow_runtime_helper.cpp83 void SlowRuntimeHelper::SaveFrameToContext(JSThread *thread, JSHandle<GeneratorContext> context) in SaveFrameToContext() argument
93 context->SetRegsArray(thread, regsArray.GetTaggedValue()); in SaveFrameToContext()
94 context->SetMethod(thread, frameHandler.GetFunction()); in SaveFrameToContext()
96 context->SetAcc(thread, frameHandler.GetAcc()); in SaveFrameToContext()
97 context->SetLexicalEnv(thread, thread->GetCurrentLexenv()); in SaveFrameToContext()
98 context->SetNRegs(nregs); in SaveFrameToContext()
99 context->SetBCOffset(frameHandler.GetBytecodeOffset()); in SaveFrameToContext()
Dslow_runtime_helper.h32 static void SaveFrameToContext(JSThread *thread, JSHandle<GeneratorContext> context);
Dinterpreter.h53 …ne JSTaggedValue GeneratorReEnterInterpreter(JSThread *thread, JSHandle<GeneratorContext> context);
54 static inline void ChangeGenContext(JSThread *thread, JSHandle<GeneratorContext> context);
/ark/runtime_core/verification/debug/
DDebug.cmake15 ${VERIFICATION_SOURCES_DIR}/debug/context/context.cpp
/ark/runtime_core/verification/models/contexts_merge/
Dcheck_set_intersection_as_lub.als35 -- r1,r2,r3 - reg values accured during context calculation
36 -- arg - is some type to be checked for compatibility with context
65 -- select target arg, that will be checked against merged context
70 arg.CorrectSubtyping[comp_types] -- and arg is checked against this new context
/ark/runtime_core/verification/
Dverification.gni47 "$ark_root/verification/debug/context/context.cpp",
/ark/runtime_core/runtime/tooling/
Dpt_hooks_wrapper.h335 void ExecutionContextCreated(ExecutionContextWrapper context) override in ExecutionContextCreated() argument
344 hooks_->ExecutionContextCreated(context); in ExecutionContextCreated()
347 void ExecutionContextDestroyed(ExecutionContextWrapper context) override in ExecutionContextDestroyed() argument
356 hooks_->ExecutionContextDestroyed(context); in ExecutionContextDestroyed()
/ark/runtime_core/docs/
Druntime-class.md40 …pes::Class` one and vice versa without dereferencies if we know language context and it's constant…
73 In common places where language context can be different we can use `panda::Class::GetManagedObject…
/ark/runtime_core/docs/bc_verification/
Dabsint_checks.md25 This type of checks ensure correctness of context on exception handler entry.
/ark/runtime_core/runtime/include/tooling/
Ddebug_interface.h340 virtual void ExecutionContextCreated(ExecutionContextWrapper context) = 0;
342 virtual void ExecutionContextDestroyed(ExecutionContextWrapper context) = 0;
/ark/js_runtime/ecmascript/compiler/tests/
Dstub_tests.cpp576 LLVMContextRef context = LLVMGetGlobalContext(); in HWTEST_F_L0() local
587 LLVMTypeRef llvmI32 = LLVMInt32TypeInContext(context); in HWTEST_F_L0()
588 LLVMTypeRef llvmI64 = LLVMInt64TypeInContext(context); in HWTEST_F_L0()
590 … LLVMTypeRef threadTy = LLVMStructTypeInContext(context, elements_t.data(), elements_t.size(), 0); in HWTEST_F_L0()
781 LLVMContextRef context = LLVMGetGlobalContext(); in HWTEST_F_L0() local
784 LLVMTypeRef llvmI64 = LLVMInt64TypeInContext(context); in HWTEST_F_L0()
786 … LLVMTypeRef threadTy = LLVMStructTypeInContext(context, elements_t.data(), elements_t.size(), 0); in HWTEST_F_L0()
859 llvm::LLVMContext context; in HWTEST_F_L0() local
862 std::unique_ptr<llvm::Module> rawModule = parseIRFile(inputFilename, err, context); in HWTEST_F_L0()
/ark/runtime_core/assembler/
DBUILD.gn35 "context.cpp",
DCMakeLists.txt43 context.cpp

12