Home
last modified time | relevance | path

Searched refs:Scope (Results 1 – 25 of 260) sorted by relevance

1234567891011

/external/clang/include/clang/Sema/
DScope.h38 class Scope {
130 Scope *AnyParent;
156 Scope *FnParent;
157 Scope *MSLastManglingParent;
163 Scope *BreakParent, *ContinueParent;
167 Scope *BlockParent;
173 Scope *TemplateParamParent;
200 Scope(Scope *Parent, unsigned ScopeFlags, DiagnosticsEngine &Diag) in Scope() function
215 const Scope *getParent() const { return AnyParent; } in getParent()
216 Scope *getParent() { return AnyParent; } in getParent()
[all …]
DSema.h307 SmallVector<Scope*, 2> CurrentSEHFinally;
619 Scope *TUScope;
1058 Scope *getScopeForContext(DeclContext *Ctx);
1061 void PushBlockScope(Scope *BlockScope, BlockDecl *Block);
1069 void PushCapturedRegionScope(Scope *RegionScope, CapturedDecl *CD,
1183 TypeSourceInfo *GetTypeForDeclarator(Declarator &D, Scope *S);
1221 TypeResult ActOnTypeName(Scope *S, Declarator &D);
1351 Scope *S, CXXScopeSpec *SS = nullptr,
1358 TypeSpecifierType isTagName(IdentifierInfo &II, Scope *S);
1359 bool isMicrosoftMissingTypename(const CXXScopeSpec *SS, Scope *S);
[all …]
/external/llvm/lib/CodeGen/
DLexicalScopes.cpp110 MDLocalScope *Scope = DL->getScope(); in findLexicalScope() local
111 if (!Scope) in findLexicalScope()
116 if (auto *File = dyn_cast<MDLexicalBlockFile>(Scope)) in findLexicalScope()
117 Scope = File->getScope(); in findLexicalScope()
120 auto I = InlinedLexicalScopeMap.find(std::make_pair(Scope, IA)); in findLexicalScope()
123 return findLexicalScope(Scope); in findLexicalScope()
128 LexicalScope *LexicalScopes::getOrCreateLexicalScope(const MDLocalScope *Scope, in getOrCreateLexicalScope() argument
132 getOrCreateAbstractScope(Scope); in getOrCreateLexicalScope()
134 return getOrCreateInlinedScope(Scope, IA); in getOrCreateLexicalScope()
137 return getOrCreateRegularScope(Scope); in getOrCreateLexicalScope()
[all …]
/external/v8/src/
Dscopes.cc33 Variable* VariableMap::Declare(Scope* scope, const AstRawString* name, in Declare()
70 Scope::Scope(Scope* outer_scope, ScopeType scope_type, in Scope() function in v8::internal::Scope
93 Scope::Scope(Scope* inner_scope, in Scope() function in v8::internal::Scope
121 Scope::Scope(Scope* inner_scope, const AstRawString* catch_variable_name, in Scope() function in v8::internal::Scope
149 void Scope::SetDefaults(ScopeType scope_type, in SetDefaults()
150 Scope* outer_scope, in SetDefaults()
187 Scope* Scope::DeserializeScopeChain(Context* context, Scope* global_scope, in DeserializeScopeChain()
190 Scope* current_scope = NULL; in DeserializeScopeChain()
191 Scope* innermost_scope = NULL; in DeserializeScopeChain()
195 Scope* with_scope = new(zone) Scope(current_scope, in DeserializeScopeChain()
[all …]
Dscopes.h24 Variable* Declare(Scope* scope, const AstRawString* name, VariableMode mode,
70 class Scope: public ZoneObject {
75 Scope(Scope* outer_scope, ScopeType scope_type,
83 static Scope* DeserializeScopeChain(Context* context, Scope* global_scope,
96 Scope* FinalizeBlockScope();
330 ZoneList<Scope*>* inner_scopes() { return &inner_scopes_; } in inner_scopes()
333 Scope* outer_scope() const { return outer_scope_; } in outer_scope()
379 int ContextChainLength(Scope* scope);
382 Scope* GlobalScope();
386 Scope* DeclarationScope();
[all …]
Dparser.h353 typedef v8::internal::Scope Scope; typedef
354 typedef v8::internal::Scope* ScopePtr;
434 Scope* scope, ObjectLiteralProperty* property, bool* has_function) { in CheckFunctionLiteralInsideTopLevelObjectLiteral()
451 void CheckPossibleEvalCall(Expression* expression, Scope* scope);
545 Expression* ThisExpression(Scope* scope,
548 Expression* SuperReference(Scope* scope,
561 const AstRawString* name, int pos, Scope* scope,
577 V8_INLINE Scope* NewScope(Scope* parent_scope, ScopeType scope_type);
580 int DeclareArrowParametersFromExpression(Expression* expression, Scope* scope,
598 V8_INLINE void CheckConflictingVarDeclarations(v8::internal::Scope* scope,
[all …]
/external/clang/lib/CodeGen/
DCGCleanup.cpp163 EHCleanupScope *Scope = in pushCleanup() local
176 return Scope->getCleanupBuffer(); in pushCleanup()
381 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlocks() local
387 Old.strictlyEncloses(Scope.getEnclosingNormalCleanup()); in PopCleanupBlocks()
421 EHCleanupScope &Scope) { in CreateNormalEntry() argument
422 assert(Scope.isNormalCleanup()); in CreateNormalEntry()
423 llvm::BasicBlock *Entry = Scope.getNormalBlock(); in CreateNormalEntry()
426 Scope.setNormalBlock(Entry); in CreateNormalEntry()
575 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlock() local
576 assert(Scope.getFixupDepth() <= EHStack.getNumBranchFixups()); in PopCleanupBlock()
[all …]
/external/llvm/lib/IR/
DLLVMContextImpl.h235 Metadata *Scope;
238 MDNodeKeyImpl(unsigned Line, unsigned Column, Metadata *Scope,
240 : Line(Line), Column(Column), Scope(Scope), InlinedAt(InlinedAt) {}
243 : Line(L->getLine()), Column(L->getColumn()), Scope(L->getRawScope()),
248 Scope == RHS->getRawScope() && InlinedAt == RHS->getRawInlinedAt();
251 return hash_combine(Line, Column, Scope, InlinedAt);
336 Metadata *Scope;
345 Metadata *Scope, Metadata *BaseType, uint64_t SizeInBits,
348 : Tag(Tag), Name(Name), File(File), Line(Line), Scope(Scope),
353 Line(N->getLine()), Scope(N->getRawScope()),
[all …]
DDebugInfoMetadata.cpp42 unsigned Column, Metadata *Scope, in getImpl() argument
48 assert(Scope && "Expected scope"); in getImpl()
52 MDLocationInfo::KeyTy(Line, Column, Scope, InlinedAt))) in getImpl()
61 Ops.push_back(Scope); in getImpl()
256 unsigned Line, Metadata *Scope, Metadata *BaseType, uint64_t SizeInBits, in getImpl() argument
260 DEFINE_GETIMPL_LOOKUP(MDDerivedType, (Tag, getString(Name), File, Line, Scope, in getImpl()
263 Metadata *Ops[] = {File, Scope, Name, BaseType, ExtraData}; in getImpl()
271 unsigned Line, Metadata *Scope, Metadata *BaseType, uint64_t SizeInBits, in getImpl() argument
278 (Tag, getString(Name), File, Line, Scope, BaseType, in getImpl()
282 Metadata *Ops[] = {File, Scope, Name, BaseType, in getImpl()
[all …]
DDebugLoc.cpp52 const MDNode *Scope = getInlinedAtScope(); in getFnDebugLoc() local
53 if (DISubprogram SP = getDISubprogram(Scope)) in getFnDebugLoc()
59 DebugLoc DebugLoc::get(unsigned Line, unsigned Col, const MDNode *Scope, in get() argument
62 if (!Scope) in get()
65 return MDLocation::get(Scope->getContext(), Line, Col, in get()
66 const_cast<MDNode *>(Scope), in get()
91 auto *Scope = cast<MDScope>(getScope()); in print() local
92 OS << Scope->getFilename(); in print()
DDebugInfo.cpp36 DISubprogram llvm::getDISubprogram(const MDNode *Scope) { in getDISubprogram() argument
37 if (auto *LocalScope = dyn_cast_or_null<MDLocalScope>(Scope)) in getDISubprogram()
51 const MDNode *Scope = DLoc.getInlinedAtScope(); in getDISubprogram() local
52 DISubprogram Subprogram = getDISubprogram(Scope); in getDISubprogram()
183 void DebugInfoFinder::processScope(DIScope Scope) { in processScope() argument
184 if (!Scope) in processScope()
186 if (DIType Ty = dyn_cast<MDType>(Scope)) { in processScope()
190 if (DICompileUnit CU = dyn_cast<MDCompileUnit>(Scope)) { in processScope()
194 if (DISubprogram SP = dyn_cast<MDSubprogram>(Scope)) { in processScope()
198 if (!addScope(Scope)) in processScope()
[all …]
/external/v8/test/cctest/
Dtest-lockers.cc69 v8::Isolate::Scope isolate_scope(isolate_); in Run()
74 v8::Context::Scope context_scope(context); in Run()
81 v8::Isolate::Scope isolate_scope(isolate_); in Run()
85 v8::Context::Scope context_scope(context); in Run()
105 v8::Isolate::Scope isolate_scope(isolate); in TEST()
108 v8::Context::Scope context_scope(context); in TEST()
183 v8::Isolate::Scope isolate_scope(isolate_); in Run()
230 v8::Isolate::Scope isolate_scope(isolate); in Run()
233 v8::Context::Scope context_scope(context); in Run()
267 v8::Isolate::Scope isolate_scope(isolate_); in Run()
[all …]
/external/v8/src/heap/
Dgc-tracer.cc51 for (int i = 0; i < Scope::NUMBER_OF_SCOPES; i++) { in Event()
134 for (int i = 0; i < Scope::NUMBER_OF_SCOPES; i++) { in Start()
188 current_.scopes[Scope::MC_MARK]); in Stop()
232 int external_time = static_cast<int>(current_.scopes[Scope::EXTERNAL]); in Print()
276 PrintF("external=%.1f ", current_.scopes[Scope::EXTERNAL]); in PrintNVP()
277 PrintF("mark=%.1f ", current_.scopes[Scope::MC_MARK]); in PrintNVP()
278 PrintF("sweep=%.2f ", current_.scopes[Scope::MC_SWEEP]); in PrintNVP()
279 PrintF("sweepns=%.2f ", current_.scopes[Scope::MC_SWEEP_NEWSPACE]); in PrintNVP()
280 PrintF("sweepos=%.2f ", current_.scopes[Scope::MC_SWEEP_OLDSPACE]); in PrintNVP()
281 PrintF("sweepcode=%.2f ", current_.scopes[Scope::MC_SWEEP_CODE]); in PrintNVP()
[all …]
/external/llvm/include/llvm/IR/
DDIBuilder.h196 MDDerivedType *createMemberType(MDScope *Scope, StringRef Name,
211 MDDerivedType *createStaticMemberType(MDScope *Scope, StringRef Name,
263 MDCompositeType *createClassType(MDScope *Scope, StringRef Name,
284 MDScope *Scope, StringRef Name, MDFile *File, unsigned LineNumber,
300 MDCompositeType *createUnionType(MDScope *Scope, StringRef Name,
313 createTemplateTypeParameter(MDScope *Scope, StringRef Name, MDType *Ty);
321 MDTemplateValueParameter *createTemplateValueParameter(MDScope *Scope,
331 MDTemplateValueParameter *createTemplateTemplateParameter(MDScope *Scope,
341 MDTemplateValueParameter *createTemplateParameterPack(MDScope *Scope,
374 MDScope *Scope, StringRef Name, MDFile *File, unsigned LineNumber,
[all …]
DDebugInfoMetadata.h696 MDScopeRef Scope, MDTypeRef BaseType,
702 Line, Scope, BaseType, SizeInBits, AlignInBits, OffsetInBits,
707 Metadata *Scope, Metadata *BaseType,
723 unsigned Line, Metadata *Scope, Metadata *BaseType,
727 (Tag, Name, File, Line, Scope, BaseType, SizeInBits,
731 MDScopeRef Scope, MDTypeRef BaseType, uint64_t SizeInBits,
734 (Tag, Name, File, Line, Scope, BaseType, SizeInBits,
857 unsigned Line, MDScopeRef Scope, MDTypeRef BaseType,
863 Context, Tag, getCanonicalMDString(Context, Name), File, Line, Scope,
870 unsigned Line, Metadata *Scope, Metadata *BaseType,
[all …]
/external/llvm/lib/CodeGen/AsmPrinter/
DDwarfCompileUnit.cpp304 LexicalScope *Scope, SmallVectorImpl<std::unique_ptr<DIE>> &FinalChildren) { in constructScopeDIE() argument
305 if (!Scope || !Scope->getScopeNode()) in constructScopeDIE()
308 DIScope DS(Scope->getScopeNode()); in constructScopeDIE()
310 assert((Scope->getInlinedAt() || !isa<MDSubprogram>(DS)) && in constructScopeDIE()
321 if (Scope->getParent() && isa<MDSubprogram>(DS)) { in constructScopeDIE()
322 ScopeDIE = constructInlinedScopeDIE(Scope); in constructScopeDIE()
326 createScopeChildrenDIE(Scope, Children); in constructScopeDIE()
329 if (DD->isLexicalScopeDIENull(Scope)) in constructScopeDIE()
336 createScopeChildrenDIE(Scope, Children, &ChildScopeCount); in constructScopeDIE()
354 ScopeDIE = constructLexicalScopeDIE(Scope); in constructScopeDIE()
[all …]
DDwarfCompileUnit.h118 void constructScopeDIE(LexicalScope *Scope,
131 std::unique_ptr<DIE> constructInlinedScopeDIE(LexicalScope *Scope);
135 std::unique_ptr<DIE> constructLexicalScopeDIE(LexicalScope *Scope);
142 const LexicalScope &Scope,
146 DIE *createScopeChildrenDIE(LexicalScope *Scope,
151 void constructSubprogramScopeDIE(LexicalScope *Scope);
153 DIE *createAndAddScopeChildren(LexicalScope *Scope, DIE &ScopeDIE);
155 void constructAbstractSubprogramScopeDIE(LexicalScope *Scope);
/external/llvm/unittests/IR/
DMetadataTest.cpp967 MDScopeRef Scope = getSubprogramRef(); in TEST_F() local
972 File, 1, Scope, BaseType, 2, 3, 4, 5, ExtraData); in TEST_F()
977 EXPECT_EQ(Scope, N->getScope()); in TEST_F()
985 "something", File, 1, Scope, BaseType, 2, 3, in TEST_F()
989 "something", File, 1, Scope, BaseType, 2, 3, in TEST_F()
992 File, 1, Scope, BaseType, 2, 3, 4, 5, in TEST_F()
995 "something", getFile(), 1, Scope, BaseType, 2, in TEST_F()
998 "something", File, 2, Scope, BaseType, 2, 3, in TEST_F()
1005 Scope, getBasicType("basic2"), 2, 3, 4, 5, ExtraData)); in TEST_F()
1007 "something", File, 1, Scope, BaseType, 3, 3, in TEST_F()
[all …]
/external/clang/lib/Sema/
DScope.cpp21 void Scope::Init(Scope *parent, unsigned flags) { in Init()
94 bool Scope::containedInPrototypeScope() const { in containedInPrototypeScope()
95 const Scope *S = this; in containedInPrototypeScope()
104 void Scope::AddFlags(unsigned FlagsToSet) { in AddFlags()
118 void Scope::mergeNRVOIntoParent() { in mergeNRVOIntoParent()
133 void Scope::dump() const { dumpImpl(llvm::errs()); } in dump()
135 void Scope::dumpImpl(raw_ostream &OS) const { in dumpImpl()
211 if (const Scope *Parent = getParent()) in dumpImpl()
/external/llvm/bindings/go/llvm/
DDIBuilderBindings.cpp56 LLVMMetadataRef Scope, in LLVMDIBuilderCreateLexicalBlock() argument
61 auto *LB = D->createLexicalBlock(unwrap<MDLocalScope>(Scope), in LLVMDIBuilderCreateLexicalBlock()
67 LLVMMetadataRef Scope, in LLVMDIBuilderCreateLexicalBlockFile() argument
72 unwrap<MDLocalScope>(Scope), unwrap<MDFile>(File), Discriminator); in LLVMDIBuilderCreateLexicalBlockFile()
77 LLVMDIBuilderRef Dref, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateFunction() argument
83 unwrap<MDScope>(Scope), Name, LinkageName, in LLVMDIBuilderCreateFunction()
91 LLVMDIBuilderRef Dref, unsigned Tag, LLVMMetadataRef Scope, in LLVMDIBuilderCreateLocalVariable() argument
96 Tag, unwrap<MDScope>(Scope), Name, unwrap<MDFile>(File), Line, in LLVMDIBuilderCreateLocalVariable()
133 LLVMDIBuilderRef Dref, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateStructType() argument
139 unwrap<MDScope>(Scope), Name, File ? unwrap<MDFile>(File) : nullptr, Line, in LLVMDIBuilderCreateStructType()
[all …]
DDIBuilderBindings.h45 LLVMMetadataRef Scope,
50 LLVMMetadataRef Scope,
55 LLVMDIBuilderRef D, LLVMMetadataRef Scope, const char *Name,
61 LLVMDIBuilderRef D, unsigned Tag, LLVMMetadataRef Scope, const char *Name,
82 LLVMDIBuilderRef D, LLVMMetadataRef Scope, const char *Name,
88 LLVMDIBuilderRef D, unsigned Tag, const char *Name, LLVMMetadataRef Scope,
93 LLVMDIBuilderCreateMemberType(LLVMDIBuilderRef D, LLVMMetadataRef Scope,
/external/llvm/utils/TableGen/
DDAGISelMatcherOpt.cpp33 if (ScopeMatcher *Scope = dyn_cast<ScopeMatcher>(N)) { in ContractNodes() local
34 for (unsigned i = 0, e = Scope->getNumChildren(); i != e; ++i) { in ContractNodes()
35 std::unique_ptr<Matcher> Child(Scope->takeChild(i)); in ContractNodes()
37 Scope->resetChild(i, Child.release()); in ContractNodes()
198 if (ScopeMatcher *Scope = dyn_cast<ScopeMatcher>(N)) { in SinkPatternPredicates() local
199 for (unsigned i = 0, e = Scope->getNumChildren(); i != e; ++i) { in SinkPatternPredicates()
200 std::unique_ptr<Matcher> Child(Scope->takeChild(i)); in SinkPatternPredicates()
202 Scope->resetChild(i, Child.release()); in SinkPatternPredicates()
262 ScopeMatcher *Scope = dyn_cast<ScopeMatcher>(N); in FactorNodes() local
263 if (!Scope) in FactorNodes()
[all …]
/external/v8/src/compiler/
Dsource-position.h48 class Scope {
50 Scope(SourcePositionTable* source_positions, SourcePosition position) in Scope() function
55 Scope(SourcePositionTable* source_positions, Node* node) in Scope() function
60 ~Scope() { source_positions_->current_position_ = prev_position_; } in ~Scope()
71 DISALLOW_COPY_AND_ASSIGN(Scope);
/external/clang/lib/Parse/
DParseStmt.cpp428 Scope::DeclScope | Scope::SEHTryScope)); in ParseSEHTryBlock()
466 ParseScope ExpectScope(this, Scope::DeclScope | Scope::ControlScope | in ParseSEHExceptBlock()
467 Scope::SEHExceptScope); in ParseSEHExceptBlock()
478 Scope::SEHFilterScope); in ParseSEHExceptBlock()
810 return ParseCompoundStatement(isStmtExpr, Scope::DeclScope); in ParseCompoundStatement()
1103 ParseScope IfScope(this, Scope::DeclScope | Scope::ControlScope, C99orCXX); in ParseIfStatement()
1131 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, Tok.is(tok::l_brace)); in ParseIfStatement()
1163 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, Tok.is(tok::l_brace)); in ParseIfStatement()
1227 unsigned ScopeFlags = Scope::SwitchScope; in ParseSwitchStatement()
1229 ScopeFlags |= Scope::DeclScope | Scope::ControlScope; in ParseSwitchStatement()
[all …]
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/
DANTLRHashMap.m42 @synthesize Scope;
68 Scope = 0;
70 Scope = ((ANTLRHashMap *)fNext)->Scope+1;
87 Scope = 0;
89 Scope = ((ANTLRHashMap *)fNext)->Scope+1;
246 if ( self->Scope == scope ) {
267 -(id)lookup:(NSString *)s Scope:(NSInteger)scope
293 -(ANTLRMapElement *)install:(ANTLRMapElement *)sym Scope:(NSInteger)scope
297 np = [self lookup:[sym getName] Scope:scope ];
353 [self install:np Scope:0];
[all …]

1234567891011