/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
H A D | localClassLowering.h | 30 ArenaSet<varbinder::Variable *> const &capturedVars, 31 ArenaMap<varbinder::Variable *, varbinder::Variable *> &variableMap, 32 ArenaMap<varbinder::Variable *, ir::ClassProperty *> &propertyMap); 35 ArenaSet<varbinder::Variable *> const &capturedVars, 36 ArenaMap<varbinder::Variable *, varbinder::Variable *> &variableMap, 37 ArenaMap<varbinder::Variable *, varbinder::Variable *> ¶meterMap); 40 ir::ClassDefinition *classDef, ArenaMap<varbinder::Variable *, varbinde [all...] |
H A D | localClassLowering.cpp | 28 static ir::ClassProperty *CreateCapturedField(checker::ETSChecker *checker, const varbinder::Variable *capturedVar, in CreateCapturedField() 61 static ir::Statement *CreateCtorFieldInit(checker::ETSChecker *checker, util::StringView name, varbinder::Variable *var) in CreateCtorFieldInit() 83 public_lib::Context *ctx, ir::ClassDefinition *classDef, ArenaSet<varbinder::Variable *> const &capturedVars, in CreateClassPropertiesForCapturedVariables() 84 ArenaMap<varbinder::Variable *, varbinder::Variable *> &variableMap, in CreateClassPropertiesForCapturedVariables() 85 ArenaMap<varbinder::Variable *, ir::ClassProperty *> &propertyMap) in CreateClassPropertiesForCapturedVariables() 97 variableMap[var] = property->Id()->Variable(); in CreateClassPropertiesForCapturedVariables() 121 public_lib::Context *ctx, ir::ClassDefinition *classDef, ArenaSet<varbinder::Variable *> const &capturedVars, in ModifyConstructorParameters() 122 ArenaMap<varbinder::Variable *, varbinder::Variable *> in ModifyConstructorParameters() [all...] |
H A D | boxingForLocals.cpp | 25 static ArenaSet<varbinder::Variable *> FindCaptured(public_lib::Context *ctx, ir::ScriptFunction *func) in FindCaptured() 28 auto captured = ArenaSet<varbinder::Variable *>(allocator->Adapter()); in FindCaptured() 62 auto *var = ast->AsIdentifier()->Variable(); in FindCaptured() 78 auto varsToBox = ArenaSet<varbinder::Variable *>(allocator->Adapter()); in FindCaptured() 82 static ArenaSet<varbinder::Variable *> FindModified(public_lib::Context *ctx, ir::ScriptFunction *func) in FindModified() 85 auto modified = ArenaSet<varbinder::Variable *>(allocator->Adapter()); in FindModified() 91 ASSERT(assignment->Left()->Variable() != nullptr); in FindModified() 92 auto *var = assignment->Left()->Variable(); in FindModified() 103 static ArenaSet<varbinder::Variable *> FindVariablesToBox(public_lib::Context *ctx, ir::ScriptFunction *func) in FindVariablesToBox() 109 auto varsToBox = ArenaSet<varbinder::Variable *>(allocato in FindVariablesToBox() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_collection_stub_builder.h | 33 void Clear(Variable *result, Label *exit, Label *slowPath); 34 void Values(Variable *result, Label *exit, Label *slowPath); 35 void Entries(Variable *result, Label *exit, Label *slowPath); 36 void Keys(Variable *result, Label *exit, Label *slowPath); 37 void ForEach(Variable *result, Label *exit, Label *slowPath); 38 void Set(Variable *result, Label *exit, Label *slowPath); 39 void Add(Variable *result, Label *exit, Label *slowPath); 40 void Delete(Variable *result, Label *exit, Label *slowPath); 41 void Has(Variable *result, Label *exit, Label *slowPath); 42 void Get(Variable *resul [all...] |
H A D | builtins_collection_stub_builder.cpp | 36 void BuiltinsCollectionStubBuilder<CollectionType>::Clear(Variable *result, Label *exit, Label *slowPath) in Clear() 65 template void BuiltinsCollectionStubBuilder<JSMap>::Clear(Variable *result, Label *exit, Label *slowPath); 66 template void BuiltinsCollectionStubBuilder<JSSet>::Clear(Variable *result, Label *exit, Label *slowPath); 69 void BuiltinsCollectionStubBuilder<CollectionType>::CreateIterator(Variable *result, in CreateIterator() 89 void BuiltinsCollectionStubBuilder<CollectionType>::Values(Variable *result, Label *exit, Label *slowPath) in Values() 95 template void BuiltinsCollectionStubBuilder<JSMap>::Values(Variable *result, Label *exit, Label *slowPath); 96 template void BuiltinsCollectionStubBuilder<JSSet>::Values(Variable *result, Label *exit, Label *slowPath); 99 void BuiltinsCollectionStubBuilder<CollectionType>::Entries(Variable *result, Label *exit, Label *slowPath) in Entries() 105 template void BuiltinsCollectionStubBuilder<JSMap>::Entries(Variable *result, Label *exit, Label *slowPath); 106 template void BuiltinsCollectionStubBuilder<JSSet>::Entries(Variable *resul [all...] |
H A D | builtins_object_stub_builder.h | 35 void method(Variable *result, Label *exit, Label *slowPath);
41 void HasOwnProperty(Variable *result, Label *exit, Label *slowPath, GateRef thisValue, GateRef prop,
59 void AssignEnumElementProperty(Variable *res, Label *funcExit, GateRef toAssign, GateRef source);
60 void LayoutInfoAssignAllEnumProperty(Variable *res, Label *funcExit, GateRef toAssign, GateRef source);
61 void NameDictionaryAssignAllEnumProperty(Variable *res, Label *funcExit, GateRef toAssign, GateRef source,
63 void SlowAssign(Variable *res, Label *funcExit, GateRef toAssign, GateRef source);
64 void FastAssign(Variable *res, Label *funcExit, GateRef toAssign, GateRef source);
65 void AssignAllEnumProperty(Variable *res, Label *funcExit, GateRef toAssign, GateRef source);
66 void Assign(Variable *res, Label *nextIt, Label *funcExit, GateRef toAssign, GateRef source);
|
H A D | builtins_array_stub_builder.h | 36 void method(GateRef glue, GateRef thisValue, GateRef numArgs, Variable *result, Label *exit, Label *slowPath); 40 void Sort(GateRef glue, GateRef thisValue, GateRef numArgs, Variable *result, Label *exit, Label *slowPath); 43 Variable *result, Label *exit, Label *slowPath, GateRef hir = Circuit::NullGate()); 48 void FastCreateArrayWithArgv(GateRef glue, Variable *res, GateRef argc, GateRef hclass, Label *exit); 54 void InitializeArray(GateRef glue, GateRef count, Variable *result, GateRef intialHClass); 63 Variable *result, Label *exit, Label *slowPath, GateRef hir = Circuit::NullGate()); 66 ElementsKind kind, Variable *result, Label *exit);
|
/arkcompiler/ets_frontend/ets2panda/varbinder/ |
H A D | scope.h | 45 class Variable; 53 ScopeFindResultT(util::StringView n, ScopeT s, uint32_t l, Variable *v) : ScopeFindResultT(n, s, l, l, v) {} in ScopeFindResultT() 54 ScopeFindResultT(ScopeT s, uint32_t l, uint32_t ll, Variable *v) : scope(s), level(l), lexLevel(ll), variable(v) {} in ScopeFindResultT() 55 ScopeFindResultT(util::StringView n, ScopeT s, uint32_t l, uint32_t ll, Variable *v) in ScopeFindResultT() 65 Variable *variable {}; 78 using VariableMap = ArenaUnorderedMap<util::StringView, Variable *>; 218 Variable *AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl() 226 Variable *AddTsDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddTsDecl() 243 Variable *PropagateBinding(ArenaAllocator *allocator, util::StringView name, Args &&...args); 245 virtual InsertResult InsertBinding(const util::StringView &name, Variable *va [all...] |
H A D | variable.h | 46 class Variable { class 48 virtual ~Variable() = default; 49 NO_COPY_SEMANTIC(Variable); 50 NO_MOVE_SEMANTIC(Variable); 146 explicit Variable(Decl *decl, VariableFlags flags) : decl_(decl), flags_(flags) {} in Variable() function in ark::es2panda::ark::es2panda::varbinder::Variable 147 explicit Variable(VariableFlags flags) : flags_(flags) {} in Variable() function in ark::es2panda::ark::es2panda::varbinder::Variable 159 class LocalVariable : public Variable { 205 class GlobalVariable : public Variable { 207 explicit GlobalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in GlobalVariable() 217 class ModuleVariable : public Variable { [all...] |
H A D | scope.cpp | 118 Variable *Scope::FindLocal(const util::StringView &name, ResolveBindingOptions options) const in FindLocal() 142 Scope::InsertResult Scope::InsertBinding(const util::StringView &name, Variable *const var) in InsertBinding() 153 Scope::InsertResult Scope::TryInsertBinding(const util::StringView &name, Variable *const var) in TryInsertBinding() 255 Variable *Scope::AddLocalVar(ArenaAllocator *allocator, Decl *newDecl) in AddLocalVar() 258 IterateShadowedVariables(newDecl->Name(), [](const Variable *v) { return !v->HasFlag(VariableFlags::VAR); }); in AddLocalVar() 272 Variable *Scope::AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddLocal() 311 newDecl->Name(), [](const Variable *v) { return v->HasFlag(VariableFlags::LEXICAL_VAR); }); in AddLocal() 354 std::vector<varbinder::Variable *> bindings(LexicalSlots()); in CheckDirectEval() 382 Variable *ParamScop [all...] |
/arkcompiler/ets_frontend/es2panda/binder/ |
H A D | variable.h | 38 class Variable; 40 using VariableMap = ArenaMap<util::StringView, Variable *>; 46 class Variable { class 48 virtual ~Variable() = default; 49 NO_COPY_SEMANTIC(Variable); 50 NO_MOVE_SEMANTIC(Variable); 127 explicit Variable(Decl *decl, VariableFlags flags) : decl_(decl), flags_(flags) {} in Variable() function in panda::es2panda::panda::es2panda::binder::Variable 134 class LocalVariable : public Variable { 174 class GlobalVariable : public Variable { 176 explicit GlobalVariable(Decl *decl, VariableFlags flags) : Variable(dec [all...] |
H A D | scope.h | 50 class Variable; 52 using VariableMap = ArenaMap<util::StringView, Variable *>; 59 bool AddTSVariable(const util::StringView &name, Variable *variable) in AddTSVariable() 70 Variable *FindTSVariable(const util::StringView &name) const in FindTSVariable() 112 Variable *FindExportVariable(const util::StringView &name) const in FindExportVariable() 121 bool AddExportVariable(const util::StringView &name, Variable *var) in AddExportVariable() 133 Variable *FindExportTSVariable(const util::StringView &name) const in FindExportTSVariable() 139 bool AddExportTSVariable(const util::StringView &name, Variable *var) in AddExportTSVariable() 152 ScopeFindResult(util::StringView n, Scope *s, uint32_t l, Variable *v) in ScopeFindResult() 156 ScopeFindResult(Scope *s, uint32_t l, uint32_t ll, Variable * in ScopeFindResult() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | new_object_stub_builder.h | 53 void NewLexicalEnv(Variable *result, Label *exit, GateRef numSlots, GateRef parent);
54 void NewJSObject(Variable *result, Label *exit, GateRef hclass, GateRef size);
55 void NewJSObject(Variable *result, Label *exit, GateRef hclass);
56 void NewSObject(Variable *result, Label *exit, GateRef hclass);
76 void ExtendArray(Variable *result, GateRef glue, GateRef elements, GateRef newLen, Label *exit,
78 void ExtendMutantArray(Variable *result, GateRef glue, GateRef elements, GateRef newLen, Label *exit,
89 Variable *result, Label *success, Label *failed, GateRef slotId,
94 void NewArgumentsList(Variable *result, Label *exit, GateRef sp, GateRef startIdx, GateRef numArgs);
97 void NewArgumentsObj(Variable *result, Label *exit, GateRef argumentsList, GateRef numArgs);
98 void AssignRestArg(Variable *resul [all...] |
H A D | ic_stub_builder.h | 47 void LoadICByName(Variable* result, Label* tryFastPath, Label *slowPath, Label *success, 49 void StoreICByName(Variable* result, Label* tryFastPath, Label *slowPath, Label *success); 50 void LoadICByValue(Variable* result, Label* tryFastPath, Label *slowPath, Label *success, 52 void StoreICByValue(Variable* result, Label* tryFastPath, Label *slowPath, Label *success); 53 void TryLoadGlobalICByName(Variable* result, Label* tryFastPath, Label *slowPath, Label *success); 54 void TryStoreGlobalICByName(Variable* result, Label* tryFastPath, Label *slowPath, Label *success); 56 void NamedICAccessor(Variable* cachedHandler, Label *tryICHandler); 57 void ValuedICAccessor(Variable* cachedHandler, Label *tryICHandler, Label* tryElementIC);
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | validateHelpers.cpp | 53 void ETSChecker::ValidatePropertyAccess(varbinder::Variable *var, ETSObjectType *obj, const lexer::SourcePosition &pos) in ValidatePropertyAccess() 87 void ETSChecker::ValidateCallExpressionIdentifier(ir::Identifier *const ident, varbinder::Variable *const resolved, in ValidateCallExpressionIdentifier() 93 ident->Variable()->SetTsType(GlobalTypeError()); in ValidateCallExpressionIdentifier() 99 if (ident->Variable() != nullptr && // It should always be true! in ValidateCallExpressionIdentifier() 100 ident->Variable()->Declaration()->Node() != nullptr && in ValidateCallExpressionIdentifier() 101 ident->Variable()->Declaration()->Node()->IsImportNamespaceSpecifier()) { in ValidateCallExpressionIdentifier() 103 ident->Variable()->SetTsType(GlobalTypeError()); in ValidateCallExpressionIdentifier() 124 ident->Variable()->SetTsType(GlobalTypeError()); in ValidateCallExpressionIdentifier() 127 void ETSChecker::ValidateNewClassInstanceIdentifier(ir::Identifier *const ident, varbinder::Variable *const resolved) in ValidateNewClassInstanceIdentifier() 136 void ETSChecker::ValidateMemberIdentifier(ir::Identifier *const ident, varbinder::Variable *cons [all...] |
/arkcompiler/ets_frontend/ets2panda/checker/ |
H A D | resolveResult.h | 34 explicit ResolveResult(varbinder::Variable *v, ResolvedKind kind) : variable_(v), kind_(kind) {} in ResolveResult() 36 varbinder::Variable *Variable() in Variable() function in ark::es2panda::checker::ResolveResult 47 varbinder::Variable *variable_ {};
|
H A D | checkerContext.h | 68 using CapturedVarsMap = ArenaUnorderedMap<varbinder::Variable *, lexer::SourcePosition>; 69 using SmartCastMap = ArenaMap<varbinder::Variable const *, checker::Type *>; 70 using SmartCastArray = std::vector<std::pair<varbinder::Variable const *, checker::Type *>>; 71 using SmartCastTestMap = ArenaMap<varbinder::Variable const *, std::pair<checker::Type *, checker::Type *>>; 72 using SmartCastTuple = std::tuple<varbinder::Variable const *, checker::Type *, checker::Type *>; 75 using SmartVariables = std::unordered_set<varbinder::Variable const *>; 85 varbinder::Variable const *variable = nullptr; 152 void AddCapturedVar(varbinder::Variable *var, const lexer::SourcePosition &pos) in AddCapturedVar() 171 void RemoveSmartCast(varbinder::Variable const *const variable) noexcept 176 void SetSmartCast(varbinder::Variable cons [all...] |
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
H A D | object.cpp | 180 ASSERT(type->Variable() && type->Variable()->Declaration()->Node()->IsTSTypeLiteral()); in ResolveObjectTypeMembers() 181 auto *typeLiteral = type->Variable()->Declaration()->Node()->AsTSTypeLiteral(); in ResolveObjectTypeMembers() 200 varbinder::Variable *prop = member->AsTSPropertySignature()->Variable(); in ResolvePropertiesOfObjectType() 211 varbinder::Variable *method = member->AsTSMethodSignature()->Variable(); in ResolvePropertiesOfObjectType() 271 varbinder::Variable *TSChecker::GetPropertyOfType(Type *type, const util::StringView &name, bool getPartial, in GetPropertyOfType() 286 varbinder::Variable *TSChecker::GetPropertyOfUnionType(UnionType *type, const util::StringView &name, bool getPartial, in GetPropertyOfUnionType() 298 varbinder::Variable *pro in GetPropertyOfUnionType() [all...] |
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
H A D | type.h | 28 class Variable; 100 void SetVariable(binder::Variable *variable) in SetVariable() 105 binder::Variable *Variable() in Variable() function in panda::es2panda::panda::es2panda::checker::Type 110 const binder::Variable *Variable() const in Variable() function in panda::es2panda::panda::es2panda::checker::Type 128 binder::Variable *variable_; // Variable associated with the type if any
|
/arkcompiler/ets_frontend/ets2panda/evaluate/ |
H A D | entityDeclarator.h | 29 class Variable; 38 using UMapStringViewVariable = ArenaUnorderedMap<util::StringView, varbinder::Variable *>; 56 varbinder::Variable *ImportGlobalEntity(util::StringView pathToDeclSource, util::StringView declName, 66 static varbinder::Variable *FindEntityVariable(UMapStringViewVariable &entitiesMap, util::StringView entityName); 72 varbinder::Variable *var);
|
H A D | scopedDebugInfoPlugin.h | 35 class Variable; 55 varbinder::Variable *FindIdentifier(ir::Identifier *ident); 61 varbinder::Variable *FindClass(ir::Identifier *ident); 182 varbinder::Variable *FindGlobalVariable(ir::Identifier *ident); 183 varbinder::Variable *FindGlobalFunction(ir::Identifier *ident); 184 varbinder::Variable *FindLocalVariable(ir::Identifier *ident);
|
/arkcompiler/ets_frontend/ets2panda/evaluate/debugInfoDeserialization/ |
H A D | debugInfoDeserializer.h | 24 class Variable; 56 varbinder::Variable *CreateIrClass(panda_file::File::EntityId classId, parser::Program *classProgram, 59 varbinder::Variable *CreateIrLocalVariable(ir::Identifier *ident, 63 varbinder::Variable *CreateIrGlobalVariable(parser::Program *program, util::StringView pathToSource, 66 varbinder::Variable *CreateIrGlobalMethods(ArenaVector<ir::AstNode *> &createdMethods, parser::Program *program, 89 varbinder::Variable *CreateLocalVarDecl(ir::Identifier *ident, RegisterNumber regNumber,
|
H A D | debugInfoDeserializer.cpp | 71 varbinder::Variable *DebugInfoDeserializer::CreateIrClass(panda_file::File::EntityId classId, parser::Program *program, in CreateIrClass() 84 return classDecl->Definition()->Ident()->Variable(); in CreateIrClass() 110 varbinder::Variable *DebugInfoDeserializer::CreateIrLocalVariable( in CreateIrLocalVariable() 133 varbinder::Variable *DebugInfoDeserializer::CreateIrGlobalVariable(parser::Program *program, in CreateIrGlobalVariable() 145 varbinder::Variable *var = nullptr; in CreateIrGlobalVariable() 170 var = field->Key()->AsIdentifier()->Variable(); in CreateIrGlobalVariable() 176 varbinder::Variable *DebugInfoDeserializer::CreateIrGlobalMethods(ArenaVector<ir::AstNode *> &createdMethods, in CreateIrGlobalMethods() 183 varbinder::Variable *var = nullptr; in CreateIrGlobalMethods() 202 auto *methodVar = method->AsClassElement()->Value()->AsFunctionExpression()->Function()->Id()->Variable(); in CreateIrGlobalMethods() 211 varbinder::Variable *DebugInfoDeserialize [all...] |
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
H A D | object.cpp | 184 ASSERT(type->Variable() && type->Variable()->Declaration()->Node()->IsTSTypeLiteral()); in ResolveObjectTypeMembers() 185 const ir::TSTypeLiteral *typeLiteral = type->Variable()->Declaration()->Node()->AsTSTypeLiteral(); in ResolveObjectTypeMembers() 205 binder::Variable *prop = member->AsTSPropertySignature()->Variable(); in ResolvePropertiesOfObjectType() 216 binder::Variable *method = member->AsTSMethodSignature()->Variable(); in ResolvePropertiesOfObjectType() 277 binder::Variable *Checker::GetPropertyOfType(Type *type, const util::StringView &name, bool getPartial, in GetPropertyOfType() 292 binder::Variable *Checker::GetPropertyOfUnionType(UnionType *type, const util::StringView &name, bool getPartial, in GetPropertyOfUnionType() 305 binder::Variable *pro in GetPropertyOfUnionType() [all...] |
/arkcompiler/ets_frontend/ets2panda/checker/types/ |
H A D | type.h | 25 class Variable; 199 void SetVariable(varbinder::Variable *variable) in SetVariable() 204 varbinder::Variable *Variable() in Variable() function in ark::es2panda::ark::es2panda::checker::Type 209 const varbinder::Variable *Variable() const in Variable() function in ark::es2panda::ark::es2panda::checker::Type 263 virtual Type *AsSuper(Checker *checker, varbinder::Variable *sourceVar); 291 varbinder::Variable *variable_ {}; // Variable associated with the type if any
|