Home
last modified time | relevance | path

Searched refs:TypeRecorder (Results 1 – 25 of 26) sorted by relevance

12

/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeRecorder.cpp32 TypeRecorder::TypeRecorder(ArenaAllocator *allocator, compiler::CompilerContext *context) in TypeRecorder() function in panda::es2panda::extractor::TypeRecorder
37 ArenaAllocator *TypeRecorder::Allocator() const in Allocator()
42 const ArenaVector<compiler::LiteralBuffer *> &TypeRecorder::BuffStorage() const in BuffStorage()
47 const std::unordered_map<const ir::AstNode *, int64_t> &TypeRecorder::NodeTypeIndex() const in NodeTypeIndex()
52 const std::unordered_map<const binder::Variable *, int64_t> &TypeRecorder::VariableTypeIndex() const in VariableTypeIndex()
57 const std::unordered_map<std::string, int64_t> &TypeRecorder::ExportType() const in ExportType()
62 const std::unordered_map<std::string, int64_t> &TypeRecorder::DeclareType() const in DeclareType()
67 compiler::LiteralBuffer *TypeRecorder::NewLiteralBuffer() in NewLiteralBuffer()
72 int64_t TypeRecorder::AddLiteralBuffer(compiler::LiteralBuffer *buffer) in AddLiteralBuffer()
79 compiler::LiteralBuffer *TypeRecorder::GetLiteralBuffer(int64_t index) const in GetLiteralBuffer()
[all …]
DtypeRecorder.h35 class TypeRecorder {
37 explicit TypeRecorder(ArenaAllocator *allocator, compiler::CompilerContext *context);
38 ~TypeRecorder() = default;
39 NO_COPY_SEMANTIC(TypeRecorder);
40 NO_MOVE_SEMANTIC(TypeRecorder);
DtypeExtractor.h42 TypeRecorder *Recorder() const;
50 int64_t builtinTypeIndex = TypeRecorder::PRIMITIVETYPE_ANY);
90 std::unique_ptr<TypeRecorder> recorder_;
DtypeSystem.h258 TypeRecorder *recorder_;
339 for (int64_t i = 0; i < TypeRecorder::USERTYPEINDEXHEAD - BuiltinType::BT_HEAD; i++) { in TypeCounter()
360 TypeRecorder::USERTYPEINDEXHEAD - BuiltinType::BT_HEAD)); in FillLiteralBuffer()
361 …for (int builtinTypeOrder = BuiltinType::BT_HEAD; builtinTypeOrder < TypeRecorder::USERTYPEINDEXHE… in FillLiteralBuffer()
DtypeExtractor.cpp67 recorder_ = std::make_unique<TypeRecorder>(allocator, context); in TypeExtractor()
139 TypeRecorder *TypeExtractor::Recorder() const in Recorder()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dtype_recorder.cpp26 TypeRecorder::TypeRecorder(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral, in TypeRecorder() function in panda::ecmascript::kungfu::TypeRecorder
42 void TypeRecorder::LoadTypes(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral, in LoadTypes()
88 void TypeRecorder::CollectLiteralGT(TSManager *tsManager, TypeLocation &loc, GlobalTSTypeRef gt) in CollectLiteralGT()
123 bool TypeRecorder::CheckTypeMarkForDefineFunc(uint32_t checkBc) const in CheckTypeMarkForDefineFunc()
131 void TypeRecorder::LoadTypesFromPGO(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLite… in LoadTypesFromPGO()
148 void TypeRecorder::CreateTypesForPGO(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLit… in CreateTypesForPGO()
194 void TypeRecorder::LoadArgTypes(const TSManager *tsManager, GlobalTSTypeRef funcGT, GlobalTSTypeRef… in LoadArgTypes()
210 GateType TypeRecorder::TryGetThisType(const TSManager *tsManager, GlobalTSTypeRef funcGT, GlobalTST… in TryGetThisType()
224 GateType TypeRecorder::TryGetNewTargetType(const TSManager *tsManager, GlobalTSTypeRef thisGT) const in TryGetNewTargetType()
238 GateType TypeRecorder::TryGetFuncType(GlobalTSTypeRef funcGT) const in TryGetFuncType()
[all …]
Dtype_recorder.h33 class TypeRecorder {
35 TypeRecorder(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral,
38 ~TypeRecorder() = default;
Dargument_accessor.h79 void FillArgsGateType(const TypeRecorder *typeRecorder);
Dargument_accessor.cpp120 void ArgumentAccessor::FillArgsGateType(const TypeRecorder *typeRecorder) in FillArgsGateType()
Dbytecode_circuit_builder.h602 TypeRecorder typeRecorder_;
/arkcompiler/ets_frontend/ts2panda/src/
DtypeChecker.ts34 import { TypeRecorder } from "./typeRecorder";
133 let classTypeIndex = TypeRecorder.getInstance().tryGetTypeIndex(typeDeclNode);
154 if (TypeRecorder.getInstance().inNampespaceMap(localName)) {
155 let redirectPath = TypeRecorder.getInstance().getPathForNamespace(localName)!;
167 let interfaceTypeIndex = TypeRecorder.getInstance().tryGetTypeIndex(typeDeclNode);
186 let importTypeIndex = TypeRecorder.getInstance().tryGetTypeIndex(typeDeclNode);
278 let typeRec = TypeRecorder.getInstance();
287 let typeRec = TypeRecorder.getInstance();
333 TypeRecorder.getInstance().setVariable2Type(variableNode, typeIndex);
350 TypeRecorder.getInstance().setVariable2Type(variableNode, typeIndex);
[all …]
DtypeRecorder.ts24 export class TypeRecorder { class
25 private static instance: TypeRecorder;
44 public static getInstance(): TypeRecorder {
45 return TypeRecorder.instance;
48 public static createInstance(): TypeRecorder {
49 TypeRecorder.instance = new TypeRecorder();
50 return TypeRecorder.instance;
DaddVariable2Scope.ts35 import { TypeRecorder } from "./typeRecorder";
47 let typeIndex = TypeRecorder.getInstance().tryGetVariable2Type(ts.getOriginalNode(node));
49 typeIndex = TypeRecorder.getInstance().tryGetTypeIndex(ts.getOriginalNode(node));
57 let typeIndex = TypeRecorder.getInstance().tryGetTypeIndex(ts.getOriginalNode(node));
DcompilerDriver.ts48 import { TypeRecorder } from "./typeRecorder";
477 TypeRecorder.createInstance();
483 TypeRecorder.getInstance().setTypeSummary();
485 TypeRecorder.getInstance().getLog();
Dts2panda.ts60 import { TypeRecorder } from "./typeRecorder";
335 let typeRecorder = TypeRecorder.getInstance();
500 …typeSummaryIndex = getLiteralKey(CompilerDriver.srcNode, TypeRecorder.getInstance().getTypeSummary…
Dpandagen.ts190 import { TypeRecorder } from "./typeRecorder";
326 if (TypeRecorder.getInstance()) {
327 return TypeRecorder.getInstance().getExportedType();
334 if (TypeRecorder.getInstance()) {
335 return TypeRecorder.getInstance().getDeclaredType();
1527 if (typeId != undefined && TypeRecorder.getInstance() != undefined) {
/arkcompiler/ets_frontend/es2panda/compiler/core/
DcompilerContext.h35 class TypeRecorder; variable
119 extractor::TypeRecorder *TypeRecorder() const in TypeRecorder() function
129 void SetTypeRecorder(extractor::TypeRecorder *recorder);
148 extractor::TypeRecorder *recorder_ {};
DcompilerContext.cpp34 void CompilerContext::SetTypeRecorder(extractor::TypeRecorder *recorder) in SetTypeRecorder()
Dpandagen.cpp241 typedFunc_.first = context_->TypeRecorder()->GetNodeTypeIndex(node); in CopyFunctionArguments()
247 auto typeIndex = context_->TypeRecorder()->GetNodeTypeIndex(method->Parent()); in CopyFunctionArguments()
249 typeIndex = context_->TypeRecorder()->GetClassInst(typeIndex); in CopyFunctionArguments()
492 …if (context_->IsTypeExtractorEnabled() && typeIndex != extractor::TypeRecorder::PRIMITIVETYPE_ANY)… in TryLoadGlobalByName()
1698 int64_t typeIndex = Context()->TypeRecorder()->GetNodeTypeIndex(declareNode); in LoadExternalModuleVariable()
1699 if (typeIndex != extractor::TypeRecorder::PRIMITIVETYPE_ANY) { in LoadExternalModuleVariable()
1713 int64_t typeIndex = Context()->TypeRecorder()->GetNodeTypeIndex(node); in StoreModuleVariable()
1714 if (typeIndex != extractor::TypeRecorder::PRIMITIVETYPE_ANY) { in StoreModuleVariable()
1860 if (typeIndex != extractor::TypeRecorder::PRIMITIVETYPE_ANY) { in StoreLexicalVar()
1869 if (fn(context_->TypeRecorder()->GetVariableTypeIndex(local), "variable")) { in StoreLexicalVar()
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
DtypeExtractorEmitter.cpp38 if (pg_->Context()->TypeRecorder()->ExportType().size() > 0U) { in TypeExtractorEmitter()
41 if (pg_->Context()->TypeRecorder()->DeclareType().size() > 0U) { in TypeExtractorEmitter()
56 static void GenTypeInfo(const extractor::TypeRecorder *recorder, int64_t typeIndex, std::vector<Lit… in GenTypeInfo()
75 static void GenInsnTypeInfo(const extractor::TypeRecorder *recorder, uint32_t orderIndex, int64_t t… in GenInsnTypeInfo()
92 auto recorder = pg_->Context()->TypeRecorder(); in GenFunctionTypeInfo()
107 if (typeIndex > extractor::TypeRecorder::PRIMITIVETYPE_ANY) { in GenFunctionTypeInfo()
117 if (pg_->TypedFunc().first != extractor::TypeRecorder::PRIMITIVETYPE_ANY) { in GenFunctionTypeInfo()
122 if (pg_->TypedFunc().second > extractor::TypeRecorder::PRIMITIVETYPE_ANY) { in GenFunctionTypeInfo()
147 const extractor::TypeRecorder *recorder, const M &map, AnnotationData &funcTypeAnnotation) in GenImportOrDeclareTypeInfo()
185 GenImportOrDeclareTypeInfo<true>(prog, pg_->Context()->TypeRecorder(), in GenExportTypeInfo()
[all …]
DtypeExtractorEmitter.h42 …static void GenTypeLiteralBuffers(panda::pandasm::Program *prog, const extractor::TypeRecorder *re…
64 …void GenImportOrDeclareTypeInfo(panda::pandasm::Program *prog, const extractor::TypeRecorder *reco…
Demitter.h113 void FillTypeLiteralBuffers(const extractor::TypeRecorder *recorder) const;
Demitter.cpp449 void Emitter::FillTypeLiteralBuffers(const extractor::TypeRecorder *recorder) const in FillTypeLiteralBuffers()
/arkcompiler/ets_frontend/es2panda/compiler/base/
Dlexenv.cpp119 if (typeIndex != extractor::TypeRecorder::PRIMITIVETYPE_ANY) { 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/ts2panda/src/base/
DtypeSystem.ts20 import { TypeRecorder } from "../typeRecorder";
162 protected typeRecorder = TypeRecorder.getInstance();

12