/arkcompiler/ets_runtime/ecmascript/ |
D | ecma_handle_scope.cpp | 23 auto context = thread_->GetCurrentEcmaContext(); in EcmaHandleScope() local 24 prevNext_ = context->handleScopeStorageNext_; in EcmaHandleScope() 25 prevEnd_ = context->handleScopeStorageEnd_; in EcmaHandleScope() 26 prevHandleStorageIndex_ = context->currentHandleStorageIndex_; in EcmaHandleScope() 28 context->HandleScopeCountAdd(); in EcmaHandleScope() 29 prevHandleScope_ = context->GetLastHandleScope(); in EcmaHandleScope() 30 context->SetLastHandleScope(this); in EcmaHandleScope() 36 auto context = thread_->GetCurrentEcmaContext(); in ~EcmaHandleScope() local 38 context->HandleScopeCountDec(); in ~EcmaHandleScope() 39 context->SetLastHandleScope(prevHandleScope_); in ~EcmaHandleScope() [all …]
|
D | js_thread.cpp | 228 for (EcmaContext *context : contexts_) { in Iterate() 230 SwitchCurrentContext(context, true); in Iterate() 233 context->Iterate(visitor, rangeVisitor); in Iterate() 260 for (EcmaContext *context : contexts_) { in IterateHandleWithCheck() 261 handleCount += context->IterateHandle(rangeVisitor); in IterateHandleWithCheck() 696 void JSThread::PushContext(EcmaContext *context) in PushContext() argument 699 contexts_.emplace_back(context); in PushContext() 703 glueData_.currentContext_ = context; in PushContext() 704 context->SetFramePointers(const_cast<JSTaggedType *>(GetCurrentSPFrame()), in PushContext() 707 context->SetFrameBase(glueData_.frameBase_); in PushContext() [all …]
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
D | compilerImpl.cpp | 51 void CompilerImpl::HandleContextLiterals(CompilerContext *context) in HandleContextLiterals() argument 53 auto *emitter = context->GetEmitter(); in HandleContextLiterals() 56 for (const auto &buff : context->ContextLiterals()) { in HandleContextLiterals() 60 emitter->LiteralBufferIndex() += context->ContextLiterals().size(); in HandleContextLiterals() 63 panda::pandasm::Program *CompilerImpl::Emit(CompilerContext *context) in Emit() argument 65 HandleContextLiterals(context); in Emit() 67 queue_.Schedule(context); in Emit() 71 auto *emitter = context->GetEmitter(); in Emit() 74 return emitter->Finalize(context->DumpDebugInfo(), Signatures::ETS_GLOBAL); in Emit() 80 return [](CompilerContext *context, varbinder::FunctionScope *scope, in MakeCompileJob() [all …]
|
/arkcompiler/runtime_core/static_core/runtime/ |
D | signal_handler.cpp | 46 [[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 …]
|
D | class_linker.cpp | 48 …lassLinker::AddPandaFile(std::unique_ptr<const panda_file::File> &&pf, ClassLinkerContext *context) in AddPandaFile() argument 58 pandaFiles_.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() 287 … Span<Class *> interfaces, ClassLinkerContext *context) in GetClassInfo() argument 296 vtableBuilder->Build(dataAccessor, base, itableBuilder->GetITable(), context); in GetClassInfo() 733 … ClassLinkerContext *context, ClassLinkerErrorHandler *errorHandler) in LoadBaseClass() argument 743 auto *baseClass = ext->GetClass(pf, baseClassId, context, errorHandler); in LoadBaseClass() [all …]
|
D | signal_handler.h | 111 bool SignalActionHandler(int sig, siginfo_t *info, void *context); 112 bool InOatCode(const siginfo_t *siginfo, const void *context, bool checkBytecodePc) const; 113 bool InOtherCode(int sig, const siginfo_t *info, const void *context) const; 118 …void GetMethodAndReturnPcAndSp(const siginfo_t *siginfo, const void *context, const Method **outMe… 145 virtual bool Action(int sig, siginfo_t *siginfo, void *context) = 0; 159 bool Action(int sig, siginfo_t *siginfo, void *context) override; 177 bool Action(int sig, siginfo_t *siginfo, void *context) override;
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | ecma_context_test.cpp | 54 auto context = EcmaContext::CreateAndInitialize(thread); in HWTEST_F_L0() local 60 EcmaContext::CheckAndDestroy(thread, context); in HWTEST_F_L0() 70 auto context = EcmaContext::CreateAndInitialize(thread); in HWTEST_F_L0() local 73 context->SetRegExpCache(value2.GetTaggedValue()); in HWTEST_F_L0() 74 JSHandle<JSTaggedValue> res2 = context->GetRegExpCache(); in HWTEST_F_L0() 76 EcmaContext::CheckAndDestroy(thread, context); in HWTEST_F_L0() 81 auto context = EcmaContext::CreateAndInitialize(thread); in HWTEST_F_L0() local 82 bool value = context->GetAllowAtomicWait(); in HWTEST_F_L0() 84 context->SetAllowAtomicWait(false); in HWTEST_F_L0() 85 bool value2 = context->GetAllowAtomicWait(); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
D | compilerImpl.cpp | 43 …CompilerContext context(program->Binder(), options.isDebug, options.isDebuggerEvaluateExpressionMo… in Compile() local 50 auto rootNode = context.Binder()->TopScope()->Node()->AsBlockStatement(); in Compile() 52 options.typeDtsBuiltin, &localAllocator, &context); in Compile() 55 context.SetTypeRecorder(extractor_->Recorder()); in Compile() 56 context.SetTypeExtractor(extractor_.get()); in Compile() 59 queue_ = new CompileFuncQueue(threadCount_, &context); in Compile() 68 if (!context.IsMergeAbc()) { in Compile() 69 context.GetEmitter()->GenTypeInfoRecord(); in Compile() 71 context.GetEmitter()->GenRecordNameInfo(); in Compile() 75 context.GetEmitter()->FillTypeInfoRecord(&context, options.typeExtractor, in Compile() [all …]
|
D | compileQueue.h | 38 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/ets_runtime/ecmascript/pgo_profiler/types/ |
D | pgo_profile_type.cpp | 26 ProfileTypeRef::ProfileTypeRef(PGOContext &context, const ProfileType &type) in ProfileTypeRef() argument 29 context.GetProfileTypePool()->TryAdd(type, apId); in ProfileTypeRef() 33 ProfileTypeRef &ProfileTypeRef::Remap([[maybe_unused]] const PGOContext &context) in Remap() argument 39 ProfileType::ProfileType(PGOContext &context, ProfileTypeRef typeRef) in ProfileType() argument 41 if (!context.GetHeader()->SupportWideProfileType()) { in ProfileType() 46 const auto *typeEntry = context.GetProfileTypePool()->GetEntry(typeRef.GetId()); in ProfileType() 55 ProfileType &ProfileType::Remap([[maybe_unused]]const PGOContext &context) in Remap() argument 57 if ((GetAbcId() >= PGOAbcFilePool::RESERVED_COUNT) && (!context.GetAbcIdRemap().empty())) { in Remap() 58 UpdateAbcId(context.GetAbcIdRemap().at(GetAbcId())); in Remap()
|
/arkcompiler/ets_frontend/ets2panda/public/ |
D | es2panda_lib.h | 130 …es2panda_Context *(*ProceedToState)(es2panda_Context *context, es2panda_ContextState state); // c… 131 void (*DestroyContext)(es2panda_Context *context); 133 es2panda_ContextState (*ContextState)(es2panda_Context *context); 134 char const *(*ContextErrorMessage)(es2panda_Context *context); 136 es2panda_Program *(*ContextProgram)(es2panda_Context *context); 146 …void (*AstNodeSetDecorators)(es2panda_Context *context, es2panda_AstNode *ast, es2panda_AstNode **… 154 …es2panda_AstNode *(*CreateArrowFunctionExpression)(es2panda_Context *context, es2panda_AstNode *sc… 158 es2panda_AstNode *(*CreateAsExpression)(es2panda_Context *context, es2panda_AstNode *expr, 167 … es2panda_AstNode *(*CreateAssignmentExpression)(es2panda_Context *context, es2panda_AstNode *left, 175 es2panda_AstNode *(*CreatebinaryExpression)(es2panda_Context *context, es2panda_AstNode *left, [all …]
|
D | es2panda_lib.cpp | 417 static void CompileJob(compiler::CompilerContext *context, varbinder::FunctionScope *scope, in CompileJob() argument 423 compiler::ETSGen cg {&allocator, ®Spiller, context, scope, programElement, &astCompiler}; in CompileJob() 678 extern "C" es2panda_Context *ProceedToState(es2panda_Context *context, es2panda_ContextState state) in ProceedToState() argument 680 auto *ctx = reinterpret_cast<Context *>(context); in ProceedToState() 710 extern "C" void DestroyContext(es2panda_Context *context) in DestroyContext() argument 712 auto *ctx = reinterpret_cast<Context *>(context); in DestroyContext() 726 extern "C" es2panda_ContextState ContextState(es2panda_Context *context) in ContextState() argument 728 auto *s = reinterpret_cast<Context *>(context); in ContextState() 732 extern "C" char const *ContextErrorMessage(es2panda_Context *context) in ContextErrorMessage() argument 734 auto *s = reinterpret_cast<Context *>(context); in ContextErrorMessage() [all …]
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/ |
D | std_core_array.ets | 20 {% 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/ets_frontend/ets2panda/util/ |
D | plugin.h | 50 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()
|
/arkcompiler/runtime_core/static_core/runtime/include/ |
D | class_linker.h | 67 …PI Class *GetClass(const uint8_t *descriptor, bool needCopyDescriptor, ClassLinkerContext *context, 71 … ClassLinkerContext *context, ClassLinkerErrorHandler *errorHandler = nullptr); 77 ClassLinkerContext *context); 79 …dClass(const panda_file::File &pf, panda_file::File::EntityId classId, ClassLinkerContext *context, 82 …return LoadClass(&pf, classId, pf.GetStringData(classId).data, context, errorHandler, addToRuntime… 85 …d(const panda_file::File &pf, panda_file::File::EntityId id, ClassLinkerContext *context = nullptr, 91 …d(const panda_file::File &pf, panda_file::File::EntityId id, ClassLinkerContext *context = nullptr, 98 ClassLinkerContext *context = nullptr); 271 Class *FindLoadedClass(const uint8_t *descriptor, ClassLinkerContext *context = nullptr); 279 … Span<Class *> interfaces, ClassLinkerContext *context, bool isInterface); [all …]
|
D | class_linker_extension.h | 89 Class *FindLoadedClass(const uint8_t *descriptor, ClassLinkerContext *context = nullptr); 92 ClassLinkerContext *context = nullptr, 96 ClassLinkerContext *context = nullptr, 187 auto *context = fn(); in RegisterContext() local 188 if (context != nullptr) { in RegisterContext() 189 contexts_.push_back(context); in RegisterContext() 201 for (auto *context : contexts_) { in EnumerateContexts() 202 if (!cb(context)) { in EnumerateContexts() 212 ClassLinkerContext *ResolveContext(ClassLinkerContext *context) in ResolveContext() argument 214 if (context == nullptr) { in ResolveContext() [all …]
|
/arkcompiler/runtime_core/static_core/compiler/aot/ |
D | aot_manager.cpp | 81 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() 121 auto context = aotFile->IsBootPandaFile() ? bootClassContext_ : completeContext; in VerifyClassHierarchy() local 126 if (context.rfind(aotFile->GetClassContext(), 0) != 0) { in VerifyClassHierarchy() 132 if (!CheckFilesInClassContext(context, aotFile->GetClassContext())) { in VerifyClassHierarchy() [all …]
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/ |
D | pgo_method_type_set.cpp | 58 bool PGOMethodTypeSet::ParseFromBinary(PGOContext &context, void **buffer) in ParseFromBinary() argument 60 PGOProfilerHeader *const header = context.GetHeader(); in ParseFromBinary() 68 PGOSampleType::ConvertFrom(context, scalerInfo->GetType())); in ParseFromBinary() 72 type.ConvertFrom(context, defineInfo->GetType()); in ParseFromBinary() 78 info.ConvertFrom(context, *opTypeInfo); in ParseFromBinary() 82 auto protoChain = PGOProtoChain::ConvertFrom(context, protoChainRef); in ParseFromBinary() 92 bool PGOMethodTypeSet::ProcessToBinary(PGOContext &context, std::stringstream &stream) const in ProcessToBinary() argument 98 … PGOSampleTypeRef sampleTypeRef = PGOSampleTypeRef::ConvertFrom(context, typeInfo.GetType()); in ProcessToBinary() 107 infoRef.ConvertFrom(context, typeInfo); in ProcessToBinary() 112 auto protoChainRef = PGOProtoChainRef::ConvertFrom(context, protoChain); in ProcessToBinary() [all …]
|
D | pgo_profile_type_pool.h | 65 … uint32_t ProcessToBinary([[maybe_unused]] PGOContext &context, std::fstream &stream) override in ProcessToBinary() argument 72 uint32_t ParseFromBinary([[maybe_unused]] PGOContext &context, void **buffer, in ParseFromBinary() argument 85 void Remap(PGOContext &context) in Remap() argument 87 type_.Remap(context); in Remap() 163 void Remap(PGOContext &context) in Remap() argument 166 entry.second.Remap(context); in Remap()
|
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/ |
D | emitter.cpp | 348 Emitter::Emitter(const CompilerContext *context) in Emitter() argument 353 if (context->IsJsonInputFile()) { in Emitter() 354 GenJsonContentRecord(context); in Emitter() 359 if (context->IsMergeAbc()) { in Emitter() 360 auto recordName = context->Binder()->Program()->FormatedRecordName().Mutf8(); in Emitter() 362 SetPkgNameField(context->PkgName()); in Emitter() 363 SetCommonjsField(context->Binder()->Program()->Kind() == parser::ScriptKind::COMMONJS); in Emitter() 366 if (context->Binder()->Program()->Kind() == parser::ScriptKind::COMMONJS) { in Emitter() 370 if (context->Binder()->Program()->Kind() == parser::ScriptKind::MODULE) { in Emitter() 371 AddHasTopLevelAwaitRecord(context->Binder()->Program()->HasTLA(), context); in Emitter() [all …]
|
D | emitter.h | 106 explicit Emitter(const CompilerContext *context); 111 void AddFunction(FunctionEmitter *func, CompilerContext *context); 112 void AddSourceTextModuleRecord(ModuleRecordEmitter *module, CompilerContext *context); 113 void FillTypeInfoRecord(CompilerContext *context, bool typeFlag, int64_t typeSummaryIndex, 121 void GenJsonContentRecord(const CompilerContext *context); 134 void AddHasTopLevelAwaitRecord(bool hasTLA, const CompilerContext *context);
|
/arkcompiler/runtime_core/static_core/runtime/coroutines/ |
D | coroutine.cpp | 24 …tine *Coroutine::Create(Runtime *runtime, PandaVM *vm, PandaString name, CoroutineContext *context, in Create() argument 29 … panda::panda_file::SourceLang::PANDA_ASSEMBLY, std::move(name), context, in Create() 36 … panda::panda_file::SourceLang threadLang, PandaString name, CoroutineContext *context, in Coroutine() argument 40 context_(context), in Coroutine() 44 ASSERT(context != nullptr); in Coroutine() 54 void Coroutine::ReInitialize(PandaString name, CoroutineContext *context, std::optional<EntrypointI… in ReInitialize() argument 56 ASSERT(context != nullptr); in ReInitialize() 59 context_ = context; in ReInitialize()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/utils/ |
D | test_core_regexp_lib.j2 | 17 {% include 'utils/test_instance_method_template.j2' with context %} 19 {% include 'utils/test_main_function.j2' with context %} 20 {% include 'utils/test_check_test_regexp_result.j2' with context %} 21 {% include 'utils/test_check_test_string_result.j2' with context %}
|
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
D | terminate.cpp | 45 char *context; in Terminate() local 46 char *lib = strtok_s(libs, ",", &context); in Terminate() 51 lib = strtok_s(nullptr, ",", &context); in Terminate()
|
/arkcompiler/ets_frontend/ets2panda/linter-4.2/ |
D | gallery.log | 6 …in/ets/operation/AlbumSetDeleteMenuOperation.ts (53, 84): Array literals with no context Array type 7 …in/ets/operation/AlbumSetDeleteMenuOperation.ts (94, 81): Array literals with no context Array type 9 …n/ets/operation/AlbumSetDeleteMenuOperation.ts (109, 84): Array literals with no context Array type 22 …in/ets/operation/AlbumSetRenameMenuOperation.ts (67, 13): Array literals with no context Array type 36 …s/operation/GotoPhotosMenuOperation.ts (45, 24): Object literals with no context Class or Interfac… 37 …s/operation/GotoPhotosMenuOperation.ts (47, 21): Object literals with no context Class or Interfac… 50 …r/src/main/ets/operation/RenameMenuOperation.ts (59, 13): Array literals with no context Array type 51 …r/src/main/ets/operation/RenameMenuOperation.ts (89, 63): Array literals with no context Array type 52 …/src/main/ets/operation/RenameMenuOperation.ts (102, 16): Array literals with no context Array type 65 …es/browser/src/main/ets/utils/EventPipeline.ts (183, 62): Array literals with no context Array type [all …]
|