Home
last modified time | relevance | path

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

1234

/arkcompiler/ets_runtime/ecmascript/
Decma_handle_scope.cpp23 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 …]
Djs_thread.cpp220 for (EcmaContext *context : contexts_) { in Iterate()
222 SwitchCurrentContext(context, true); in Iterate()
225 context->Iterate(visitor, rangeVisitor); in Iterate()
244 for (EcmaContext *context : contexts_) { in IterateHandleWithCheck()
245 handleCount += context->IterateHandle(rangeVisitor); in IterateHandleWithCheck()
572 void JSThread::PushContext(EcmaContext *context) in PushContext() argument
575 contexts_.emplace_back(context); in PushContext()
579 currentContext_ = context; in PushContext()
580 context->SetFramePointers(const_cast<JSTaggedType *>(GetCurrentSPFrame()), in PushContext()
583 context->SetFrameBase(glueData_.frameBase_); in PushContext()
[all …]
Decma_context.cpp56 auto context = new EcmaContext(thread); in Create() local
57 if (UNLIKELY(context == nullptr)) { in Create()
61 return context; in Create()
65 bool EcmaContext::Destroy(EcmaContext *context) in Destroy() argument
67 if (context != nullptr) { in Destroy()
68 delete context; in Destroy()
69 context = nullptr; in Destroy()
616 EcmaContext *context = EcmaContext::CreateAndInitialize(thread); in MountContext() local
617 thread->SwitchCurrentContext(context); in MountContext()
622 EcmaContext *context = thread->GetCurrentEcmaContext(); in UnmountContext() local
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Decma_context_test.cpp54 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/
DcompilerImpl.cpp43 …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 …]
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/ets_runtime/test/typeinfer/automatedcases/
DdeclFilePrivateMethodOverloads.ts28 private _forEachBindingContext(context, fn: (bindingContext: IContext) => void): void {
34 private overloadWithArityDifference(context): void {
39 private overload1(context, fn);
41 private overload2(context);
42 private overload2(context, fn);
DobjectRest2.ts24 AssertType({ resolve: async (context, args) => { const { objects } = await { objects: 12 …
27 resolve: async (context, args) => {
29 AssertType(context, "any");
31 AssertType(async (context, args) => { const { objects } = await { objects: 12 }; return…
DinferenceErasedSignatures.ts34 async baz(context: number): Promise<string> {
35 AssertType(`${context}`, "string");
36 AssertType(context, "number");
37 return `${context}`;
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
Demitter.cpp305 Emitter::Emitter(const CompilerContext *context) in Emitter() argument
310 if (context->IsJsonInputFile()) { in Emitter()
311 GenJsonContentRecord(context); in Emitter()
317 if (context->IsMergeAbc()) { in Emitter()
318 auto recordName = context->Binder()->Program()->FormatedRecordName().Mutf8(); in Emitter()
320 SetPkgNameField(context->PkgName()); in Emitter()
321 SetCommonjsField(context->Binder()->Program()->Kind() == parser::ScriptKind::COMMONJS); in Emitter()
324 if (context->Binder()->Program()->Kind() == parser::ScriptKind::COMMONJS) { in Emitter()
367 void Emitter::GenJsonContentRecord(const CompilerContext *context) in GenJsonContentRecord() argument
369 …rec_ = new panda::pandasm::Record(std::string(context->RecordName()), panda::panda_file::SourceLan… in GenJsonContentRecord()
[all …]
Demitter.h104 explicit Emitter(const CompilerContext *context);
109 void AddFunction(FunctionEmitter *func, CompilerContext *context);
110 void AddSourceTextModuleRecord(ModuleRecordEmitter *module, CompilerContext *context);
111 void FillTypeInfoRecord(CompilerContext *context, bool typeFlag, int64_t typeSummaryIndex,
119 void GenJsonContentRecord(const CompilerContext *context);
/arkcompiler/ets_frontend/arkguard/src/transformers/layout/
DDisableConsoleTransformer.ts59 function disableConsoleFactory(context: TransformationContext): Transformer<Node> {
79 const visitedAst: SourceFile = visitEachChild(node, visitAst, context);
86 return visitEachChild(node, visitAst, context);
89 const visitedBlock: Block = visitEachChild(node, visitAst, context);
DDisableHilogTransformer.ts61 function disableHilogFactory(context: TransformationContext): Transformer<Node> {
77 const visitedAst: SourceFile = visitEachChild(node, visitAst, context);
84 return visitEachChild(node, visitAst, context);
87 const visitedBlock: Block = visitEachChild(node, visitAst, context);
/arkcompiler/ets_runtime/test/aottest/async_context/
Dasync_context.ts21 function context() {
25 context()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dprogram_object.cpp22 auto context = vm->GetJSThread()->GetCurrentEcmaContext(); in GetDeserializedConstantPool() local
23 …return JSHandle<ConstantPool>(context->GetAOTFileManager()->GetDeserializedConstantPool(jsPandaFil… in GetDeserializedConstantPool()
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/declarationEmitComputedNameCausesImportToBePainted/
Dindex.ts23 export const context: Context = { constant
24 AssertType(context, "Context");
/arkcompiler/ets_frontend/arkguard/src/transformers/rename/
DRenamePropertiesTransformer.ts79 function renamePropertiesFactory(context: TransformationContext): Transformer<Node> {
121 return visitEachChild(node, renameProperties, context);
139 return visitEachChild(node, renameProperties, context);
154 return visitEachChild(node, renameProperties, context);
159 return visitEachChild(node, renameProperties, context);
DShorthandPropertyTransformer.ts48 function shorthandPropertyTransformFactory(context: TransformationContext): Transformer<Node> {
86 return visitEachChild(node, transformShortHandProperty, context);
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dinterpreter.h49 …ne JSTaggedValue GeneratorReEnterInterpreter(JSThread *thread, JSHandle<GeneratorContext> context);
50 …tic inline JSTaggedValue GeneratorReEnterAot(JSThread *thread, JSHandle<GeneratorContext> context);
55 static inline void InitStackFrame(EcmaContext *context);
/arkcompiler/ets_frontend/es2panda/compiler/base/
Dlexenv.cpp116 auto context = pg->Context(); in ExpandStoreNormalVar() local
117 if (context->IsTypeExtractorEnabled() && pg->TypedVars().count(local) == 0U) { in ExpandStoreNormalVar()
128 if (fn(context->TypeRecorder()->GetVariableTypeIndex(local), "variable")) { in ExpandStoreNormalVar()
131 if (fn(context->TypeRecorder()->GetNodeTypeIndex(node), "declnode")) { in ExpandStoreNormalVar()
/arkcompiler/ets_frontend/arkguard/src/utils/
DTransformUtil.ts58 export function collectIdentifiers(sourceFile: SourceFile, context: TransformationContext): Identif…
63 return visitEachChild(node, visit, context);
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-keyword-declare10-expected.txt1 SyntaxError: Generators are not allowed in an ambient context. [test-keyword-declare10.ts:18:14]
Dtest_module1-expected.txt1 SyntaxError: A 'declare' modifier cannot be used in an already ambient context. [test_module1.ts:18…
Dtest_module2-expected.txt1 SyntaxError: A 'declare' modifier cannot be used in an already ambient context. [test_module2.ts:18…
Dtest_module4-expected.txt1 SyntaxError: A 'declare' modifier cannot be used in an already ambient context. [test_module4.ts:18…

1234