/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 | 220 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 …]
|
D | ecma_context.cpp | 56 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/ |
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/test/typeinfer/automatedcases/ |
D | declFilePrivateMethodOverloads.ts | 28 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);
|
D | objectRest2.ts | 24 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…
|
D | inferenceErasedSignatures.ts | 34 async baz(context: number): Promise<string> { 35 AssertType(`${context}`, "string"); 36 AssertType(context, "number"); 37 return `${context}`;
|
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/ |
D | emitter.cpp | 305 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 …]
|
D | emitter.h | 104 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/ |
D | DisableConsoleTransformer.ts | 59 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);
|
D | DisableHilogTransformer.ts | 61 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/ |
D | async_context.ts | 21 function context() { 25 context()
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | program_object.cpp | 22 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/ |
D | index.ts | 23 export const context: Context = { constant 24 AssertType(context, "Context");
|
/arkcompiler/ets_frontend/arkguard/src/transformers/rename/ |
D | RenamePropertiesTransformer.ts | 79 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);
|
D | ShorthandPropertyTransformer.ts | 48 function shorthandPropertyTransformFactory(context: TransformationContext): Transformer<Node> { 86 return visitEachChild(node, transformShortHandProperty, context);
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | interpreter.h | 49 …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/ |
D | lexenv.cpp | 116 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/ |
D | TransformUtil.ts | 58 export function collectIdentifiers(sourceFile: SourceFile, context: TransformationContext): Identif… 63 return visitEachChild(node, visit, context);
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
D | test-keyword-declare10-expected.txt | 1 SyntaxError: Generators are not allowed in an ambient context. [test-keyword-declare10.ts:18:14]
|
D | test_module1-expected.txt | 1 SyntaxError: A 'declare' modifier cannot be used in an already ambient context. [test_module1.ts:18…
|
D | test_module2-expected.txt | 1 SyntaxError: A 'declare' modifier cannot be used in an already ambient context. [test_module2.ts:18…
|
D | test_module4-expected.txt | 1 SyntaxError: A 'declare' modifier cannot be used in an already ambient context. [test_module4.ts:18…
|