Home
last modified time | relevance | path

Searched refs:context_ (Results 1 – 25 of 44) sorted by relevance

12

/arkcompiler/runtime_core/static_core/assembler/
Dassembly-parser.cpp33 if (!open_ && *context_ == Token::Type::DEL_BRACE_L) { in ParseRecordFields()
37 ++context_; in ParseRecordFields()
43 context_.err = GetError("Expected keyword.", Error::ErrorType::ERR_BAD_KEYWORD); in ParseRecordFields()
47 if (context_.Mask()) { in ParseRecordFields()
51 if (open_ && *context_ == Token::Type::DEL_BRACE_R) { in ParseRecordFields()
53 ++context_; in ParseRecordFields()
63 context_.insNumber = currRecord_->fieldList.size(); in ParseRecordFields()
67 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseRecordFields()
71 if (open_ && *context_ == Token::Type::DEL_BRACE_R) { in ParseRecordFields()
73 ++context_; in ParseRecordFields()
[all …]
Dassembly-parser.h91 Context context_; /* token iterator */ variable
112context_.tokens[static_cast<int>(context_.number) + tokenShift - 1].boundLeft + shift,
113 context_.tokens[static_cast<int>(context_.number) + tokenShift - 1].boundRight,
114 context_.tokens[static_cast<int>(context_.number) + tokenShift - 1].wholeLine);
121context_.tokens[context_.number - 1].boundLeft + static_cast<size_t>(shift),
122 context_.tokens[context_.number - 1].boundRight,
123context_.tokens[context_.number - 1].wholeLine, Error::ErrorClass::WARNING);
129 return SourcePosition {lineStric_, context_.tokens[context_.number - 1].boundLeft}; in GetCurrentPosition()
131 return SourcePosition {lineStric_, context_.tokens[context_.number - 1].boundRight}; in GetCurrentPosition()
232 … return item.try_emplace(cid, cid, program_.lang, context_.tokens[context_.number - 1].boundLeft, in TryEmplaceInTable()
[all …]
/arkcompiler/runtime_core/assembler/
Dassembly-parser.cpp32 if (!open_ && *context_ == Token::Type::DEL_BRACE_L) { in ParseRecordFields()
36 ++context_; in ParseRecordFields()
42 context_.err = GetError("Expected keyword.", Error::ErrorType::ERR_BAD_KEYWORD); in ParseRecordFields()
46 if (context_.Mask()) { in ParseRecordFields()
50 if (open_ && *context_ == Token::Type::DEL_BRACE_R) { in ParseRecordFields()
52 ++context_; in ParseRecordFields()
62 context_.ins_number = curr_record_->field_list.size(); in ParseRecordFields()
66 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseRecordFields()
70 if (open_ && *context_ == Token::Type::DEL_BRACE_R) { in ParseRecordFields()
72 ++context_; in ParseRecordFields()
[all …]
Dassembly-parser.h91 Context context_; /* token iterator */ variable
111context_.tokens[static_cast<int>(context_.number) + token_shift - 1].bound_left + shift,
112context_.tokens[static_cast<int>(context_.number) + token_shift - 1].bound_right,
113context_.tokens[static_cast<int>(context_.number) + token_shift - 1].whole_line);
120context_.tokens[context_.number - 1].bound_left + static_cast<size_t>(shift),
121 context_.tokens[context_.number - 1].bound_right,
122context_.tokens[context_.number - 1].whole_line, Error::ErrorClass::WARNING);
128 return SourcePosition {line_stric_, context_.tokens[context_.number - 1].bound_left}; in GetCurrentPosition()
130 return SourcePosition {line_stric_, context_.tokens[context_.number - 1].bound_right}; in GetCurrentPosition()
228 … return item.try_emplace(std::string(context_.GiveToken().data(), context_.GiveToken().length()), in TryEmplaceInTable()
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/core/
DcompileQueue.cpp41 PandaGen pg(&allocator, context_, scope_); in Run()
46 funcEmitter.Generate(context_->PatchFixHelper()); in Run()
48 context_->GetEmitter()->AddFunction(&funcEmitter, context_); in Run()
60 …ModuleRecordEmitter moduleEmitter(context_->Binder()->Program()->ModuleRecord(), context_->NewLite… in Run()
63 context_->GetEmitter()->AddSourceTextModuleRecord(&moduleEmitter, context_); in Run()
119 const auto &functions = context_->Binder()->Functions(); in Schedule()
122 auto *funcJob = new CompileFunctionJob(context_); in Schedule()
128 if (context_->Binder()->Program()->Kind() == parser::ScriptKind::MODULE) { in Schedule()
129 auto *moduleRecordJob = new CompileModuleRecordJob(context_); in Schedule()
DcompileQueue.h38 explicit CompileFunctionJob(CompilerContext *context) : context_(context) {}; in CompileFunctionJob()
56 CompilerContext *context_ {};
62 explicit CompileModuleRecordJob(CompilerContext *context) : context_(context) {}; in CompileModuleRecordJob()
70 CompilerContext *context_ {};
97 : util::WorkerQueue(threadCount), context_(context) {} in CompileFuncQueue()
106 CompilerContext *context_;
Dpandagen.cpp118 return context_->IsDebug(); in IsDebug()
123 return context_->IsDebuggerEvaluateExpressionMode(); in IsDebuggerEvaluateExpressionMode()
128 return context_->SourceFile(); in SourceFile()
153 if (rootNode_->IsProgram() && context_->Binder()->Program()->IsCommonjs()) { in InternalParamCount()
171 return context_->Binder(); in Binder()
177 if (context_->Binder()->Program()->HasTLA()) { in FunctionInit()
208 return context_->Binder()->Program()->HasTLA(); in FunctionHasFinalizer()
218 if (rootNode_->IsProgram() && context_->Binder()->Program()->HasTLA()) { in IsAsyncFunction()
227 if (rootNode_->IsProgram() && context_->Binder()->Program()->HasTLA()) { in FunctionEnter()
236 if (rootNode_->IsProgram() && context_->Binder()->Program()->HasTLA()) { in FunctionExit()
[all …]
/arkcompiler/runtime_core/static_core/runtime/coroutines/
Dcoroutine.cpp40 context_(context), in Coroutine()
59 context_ = context; in ReInitialize()
62 context_->AttachToCoroutine(this); in ReInitialize()
86 context_->CleanUp(); in CleanUp()
102 return context_->GetStatus(); in GetCoroutineStatus()
107 context_->SetStatus(newStatus); in SetCoroutineStatus()
112 context_->Destroy(); in Destroy()
117 context_->AttachToCoroutine(this); in Initialize()
126 return context_->RetrieveStackInfo(stackAddr, stackSize, guardSize); in RetrieveStackInfo()
134 context_->RequestSuspend(getsBlocked); in RequestSuspend()
[all …]
Dstackful_coroutine.cpp29 fibers::GetCurrentContext(&context_); in StackfulCoroutineContext()
36 fibers::UpdateContext(&context_, CoroThreadProc, this, stack_, stackSizeBytes_); in AttachToCoroutine()
123 fibers::SwitchContext(&context_, &target->context_); in SwitchTo()
Dstackful_coroutine.h95 return rpcCallContext_.Execute(lambda, &requester->context_, &context_); in ExecuteOnThisContext()
166 fibers::FiberContext context_; variable
/arkcompiler/runtime_core/assembler/templates/
Dopcode_parsing.h.erb24 …LOG(DEBUG, ASSEMBLER) << "operand search started (line " << line_stric_ << "): " << context_.token…
25 switch(context_.WaitFor())
56 if (!context_.Mask()) {
60 if (!context_.Mask()) {
63context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS);
68 if (!context_.Mask()) {
72 p = context_.GiveToken();
77context_.err = GetError("Register width mismatch.", Error::ErrorType::ERR_BAD_OPERAND);
79 } else if (context_.err.err == Error::ErrorType::ERR_NONE) {
80context_.err = GetError("Invalid name of register.", Error::ErrorType::ERR_BAD_NAME_REG);
[all …]
/arkcompiler/runtime_core/static_core/assembler/templates/
Dopcode_parsing.h.erb25 …LOG(DEBUG, ASSEMBLER) << "operand search started (line " << lineStric_ << "): " << context_.tokens…
26 switch(context_.WaitFor())
57 if (!context_.Mask()) {
61 if (!context_.Mask()) {
64context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS);
69 if (!context_.Mask()) {
73 p = context_.GiveToken();
78context_.err = GetError("Register width mismatch.", Error::ErrorType::ERR_BAD_OPERAND);
80 } else if (context_.err.err == Error::ErrorType::ERR_NONE) {
81context_.err = GetError("Invalid name of register.", Error::ErrorType::ERR_BAD_NAME_REG);
[all …]
/arkcompiler/runtime_core/static_core/verification/absint/
Dabs_int_inl.cpp58 return context_.ExecCtx().CurrentRegContext()[regIdx]; in GetReg()
79 if (!context_.ExecCtx().CurrentRegContext().IsValid(regIdx)) { in SetReg()
88 context_.ExecCtx().CurrentRegContext()[regIdx] = val; in SetReg()
98 context_.ExecCtx().CurrentRegContext().ChangeValuesOfSameOrigin(regIdx, val); in SetRegAndOthersOfSameOrigin()
108 return context_.ExecCtx().CurrentRegContext()[acc]; in GetAcc()
138 return AbstractTypedValue {t, context_.NewVar(), GetInst()}; in MkVal()
148 return context_.ReturnType(); in ReturnType()
153 return context_.ExecCtx(); in ExecCtx()
/arkcompiler/runtime_core/static_core/runtime/
Dcompiler_queue_counter_priority.h30 explicit CompilationQueueElement(CompilerTask &&task) : context_(std::move(task)) in CompilationQueueElement()
33 counter_ = context_.GetMethod()->GetHotnessCounter(); in CompilationQueueElement()
44 return context_; in GetContext()
49 return context_; in GetContext()
65 CompilerTask context_; variable
/arkcompiler/ets_frontend/ets2panda/checker/
Dchecker.h89 return context_; in Context()
94 return (context_.Status() & status) != 0; in HasStatus()
99 context_.Status() &= ~status; in RemoveStatus()
104 context_.Status() |= status; in AddStatus()
205 CheckerContext context_; variable
289 : checker_(checker), prev_(checker->context_) in SavedCheckerContext()
291 …checker_->context_ = CheckerContext(checker->Allocator(), newStatus, containingClass, containingSi… in SavedCheckerContext()
299 checker_->context_ = prev_; in ~SavedCheckerContext()
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DcompileJob.cpp27 context_->GetCodeGenCb()(context_, scope_, &programElement_); in Run()
DcompileJob.h53 context_ = context; in SetContext()
64 CompilerContext *context_ {};
Demitter.h123 return context_; in Context()
128 const CompilerContext *context_; variable
/arkcompiler/runtime_core/static_core/libllvmbackend/
Dllvm_compiler.h55 return &context_; in GetLLVMContext()
64 llvm::LLVMContext context_; variable
/arkcompiler/ets_frontend/es2panda/parser/
DstatementParser.cpp123 if (context_.Status() & ParserStatus::IN_AMBIENT_CONTEXT) { in CheckDeclare()
231 auto savedStatus = context_.Status(); in ParseStatement()
233 context_.Status() |= ParserStatus::IN_AMBIENT_CONTEXT; in ParseStatement()
236 context_.Status() = savedStatus; in ParseStatement()
316 context_.Status() |= ParserStatus::TS_MODULE; in ParseTsModuleDeclaration()
353 if (!isDeclare && !(context_.Status() & ParserStatus::IN_AMBIENT_CONTEXT)) { in ParseTsAmbientExternalModuleDeclaration()
416 auto savedStatus = context_.Status(); in ParseTsModuleOrNamespaceDelaration()
418 context_.Status() |= ParserStatus::IN_AMBIENT_CONTEXT; in ParseTsModuleOrNamespaceDelaration()
449 context_.Status() = savedStatus; in ParseTsModuleOrNamespaceDelaration()
744 context_.Status() |= ParserStatus::ALLOW_THIS_TYPE; in ParseTsInterfaceDeclaration()
[all …]
/arkcompiler/ets_runtime/ecmascript/deoptimizer/
Ddeoptimizer.cpp106 addr = context_.callsiteSp + offset; in CollectVregs()
108 addr = context_.callsiteFp + offset; in CollectVregs()
273 context_.calleeRegAndOffset = calleeRegInfo; in CollectDeoptBundleVec()
274 context_.callsiteSp = it.GetCallSiteSp(); in CollectDeoptBundleVec()
275 context_.callsiteFp = reinterpret_cast<uintptr_t>(it.GetSp()); in CollectDeoptBundleVec()
314 for (auto &it: context_.calleeRegAndOffset) { in RelocateCalleeSave()
317 uintptr_t value = *(reinterpret_cast<uintptr_t *>(context_.callsiteFp + offset)); in RelocateCalleeSave()
/arkcompiler/ets_frontend/es2panda/typescript/
Dchecker.h262 return context_; in Context()
267 return (context_.Status() & status) != 0; in HasStatus()
272 context_.Status() &= ~status; in RemoveStatus()
277 context_.Status() |= status; in AddStatus()
481 CheckerContext context_; variable
522 : checker_(checker), prev_(checker->context_) in SavedCheckerContext()
524 checker_->context_ = CheckerContext(newStatus); in SavedCheckerContext()
532 checker_->context_ = prev_; in ~SavedCheckerContext()
/arkcompiler/ets_frontend/ets2panda/parser/
DparserImpl.cpp59 : program_(program), context_(program_, status), options_(options) in ParserImpl()
66 std::unique_ptr<lexer::Lexer> lexer = std::make_unique<lexer::Lexer>(&context_); in InitLexer()
76 context_.Status() |= (ParserStatus::MODULE); in ParseScript()
102 return (context_.Status() & ParserStatus::IN_AMBIENT_CONTEXT) != 0; in InAmbientContext()
561 context_.Status() &= ~(ParserStatus::ASYNC_FUNCTION | ParserStatus::GENERATOR_FUNCTION); in ParseClassStaticBlock()
573 ir::ModifierFlags::STATIC, false, context_.GetLanguge()); in ParseClassStaticBlock()
608 context_.Status() |= ParserStatus::ALLOW_THIS_TYPE; in ParseClassElement()
627 context_.Status() &= ~ParserStatus::ALLOW_THIS_TYPE; in ParseClassElement()
659 false, context_.GetLanguge()); in BuildImplicitConstructor()
776 auto savedCtx = SavedStatusContext<ParserStatus::IN_CLASS_BODY>(&context_); in ParseClassBody()
[all …]
DstatementParser.cpp366 context_.Status() & (ParserStatus::CONSTRUCTOR_FUNCTION | ParserStatus::HAS_COMPLEX_PARAM)); in ParseDirective()
429 …bool allowBreak = (context_.Status() & (ParserStatus::IN_ITERATION | ParserStatus::IN_SWITCH)) != … in ParseBreakStatement()
459 if (context_.FindLabel(label) == nullptr) { in ParseBreakStatement()
482 …ThrowPossibleOutOfBoundaryJumpError((context_.Status() & (ParserStatus::IN_ITERATION | ParserStatu… in ParseContinueStatement()
485 if ((context_.Status() & ParserStatus::IN_ITERATION) == 0) { in ParseContinueStatement()
512 const ParserContext *labelCtx = context_.FindLabel(label); in ParseContinueStatement()
532 IterationContext iterCtx(&context_); in ParseDoWhileStatement()
573 ParserStatus savedStatus = context_.Status(); in ParseFunctionDeclaration()
582 context_.Status() = savedStatus; in ParseFunctionDeclaration()
618 ParserStatus savedStatus = context_.Status(); in ParseExpressionStatement()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dllvm_ir_builder.cpp69 context_ = module->GetContext(); in LLVMIRBuilder()
70 builder_ = LLVMCreateBuilderInContext(context_); in LLVMIRBuilder()
418 std::vector<LLVMValueRef> args = {LLVMMetadataAsValue(context_, meta)}; in ReadRegister()
440 LLVMBasicBlockRef llvmBB = LLVMAppendBasicBlockInContext(context_, function_, buf.c_str()); in EnsureLBB()
473 dstType = LLVMMetadataTypeInContext(context_); in GetMachineRepType()
614 … LLVMMetadataRef loc = LLVMDIBuilderCreateDebugLocation(context_, index + 1, 0, dFuncMD_, NULL); in SetDebugInfo()
665 meta = LLVMMDStringInContext2(context_, "rsp", 4); // 4 : 4 means len of "rsp" in GetCurrentSP()
667 meta = LLVMMDStringInContext2(context_, "sp", 3); // 3 : 3 means len of "sp" in GetCurrentSP()
669 LLVMMetadataRef metadataNode = LLVMMDNodeInContext2(context_, &meta, 1); in GetCurrentSP()
687 …LLVMAttributeRef llvmAttr = LLVMCreateStringAttribute(context_, attrName, strlen(attrName), attrVa… in SetGCLeafFunction()
[all …]

12