Home
last modified time | relevance | path

Searched refs:scopes_ (Results 1 – 15 of 15) sorted by relevance

/external/bcc/src/cc/frontends/b/
Dparser.cc31 if (scopes_->current_var()->lookup(decl->id_->name_, SCOPE_LOCAL) == NULL) { in variable_exists()
43 decl->scope_id_ = string("v") + std::to_string(scopes_->current_var()->id_) + string("_"); in variable_add()
44 scopes_->current_var()->add(decl->id_->name_, decl); in variable_add()
56 decl->scope_id_ = string("v") + std::to_string(scopes_->current_var()->id_) + string("_"); in variable_add()
57 scopes_->current_var()->add(decl->id_->name_, decl); in variable_add()
82 decl->scope_id_ = string("v") + std::to_string(scopes_->current_var()->id_) + string("_"); in variable_add()
83 scopes_->current_var()->add(decl->id_->name_, decl); in variable_add()
88 if (scopes_->current_state()->lookup(id->full_name(), SCOPE_LOCAL)) { in state_add()
98 scopes_->current_state()->add(state->id_->full_name(), state); in state_add()
99 state->scope_id_ = string("s") + std::to_string(scopes_->current_state()->id_) + string("_"); in state_add()
[all …]
Dtype_check.cc32 scopes_->push_var(n->scope_); in visit_block_stmt_node()
39 scopes_->pop_var(); in visit_block_stmt_node()
88 n->decl_ = scopes_->current_var()->lookup(n->name_, SCOPE_GLOBAL); in visit_ident_expr_node()
105 n->struct_type_ = scopes_->top_struct()->lookup(sdecl->struct_id_->name_, true); in visit_ident_expr_node()
119 n->struct_type_ = scopes_->top_struct()->lookup(sdecl->struct_id_->name_, true); in visit_ident_expr_node()
254 auto table = scopes_->top_table()->lookup(n->id_->name_); in check_lookup_method()
270 auto table = scopes_->top_table()->lookup(n->id_->name_); in check_update_method()
281 auto table = scopes_->top_table()->lookup(n->id_->name_); in check_delete_method()
345 n->table_ = scopes_->top_table()->lookup(n->id_->name_); in visit_table_index_expr_node()
377 type = scopes_->top_struct()->lookup(n->struct_id_->name_, true); in visit_struct_variable_decl_stmt_node()
[all …]
Dloader.cc56 ebpf::cc::TypeCheck type_check(parser_->scopes_.get(), proto_parser_->scopes_.get()); in parse()
63 … = ebpf::make_unique<ebpf::cc::CodegenLLVM>(mod, parser_->scopes_.get(), proto_parser_->scopes_.ge… in parse()
Dcodegen_llvm.cc97 : out_(stdout), mod_(mod), indent_(0), tmp_reg_index_(0), scopes_(scopes), in CodegenLLVM()
119 scopes_->push_var(n->scope_); in visit_block_stmt_node()
127 scopes_->pop_var(); in visit_block_stmt_node()
363 TRY2(lookup_var(n, "skb", scopes_->current_var(), &skb_decl, &skb_mem)); in visit_packet_expr_node()
364 TRY2(lookup_var(n, "$" + n->id_->name_, scopes_->current_var(), &offset_decl, &offset_mem)); in visit_packet_expr_node()
547 auto state = scopes_->current_state()->lookup(n->id_->full_name(), false); in visit_goto_expr_node()
554 state = scopes_->current_state()->lookup("EOP", false); in visit_goto_expr_node()
574 TableDeclStmtNode* table = scopes_->top_table()->lookup(n->id_->name_); in emit_table_lookup()
617 TableDeclStmtNode* table = scopes_->top_table()->lookup(n->id_->name_); in emit_table_update()
648 TableDeclStmtNode* table = scopes_->top_table()->lookup(n->id_->name_); in emit_table_delete()
[all …]
Dtype_check.h30 : scopes_(scopes), proto_scopes_(proto_scopes) {} in TypeCheck()
43 Scopes *scopes_;
Dparser.h34 : root_node_(NULL), scopes_(new Scopes), in_(infile), lexer(&in_), parser(lexer, *this) { in Parser()
59 Scopes::Ptr scopes_; variable
Dparser.yy215 enter_varscope : /* empty */ { $$ = parser.scopes_->enter_var_scope(); } ;
216 exit_varscope : /* emtpy */ { $$ = parser.scopes_->exit_var_scope(); } ;
217 enter_statescope : /* empty */ { $$ = parser.scopes_->enter_state_scope(); } ;
218 exit_statescope : /* emtpy */ { $$ = parser.scopes_->exit_state_scope(); } ;
Dcodegen_llvm.h116 Scopes *scopes_; variable
/external/fonttools/Lib/fontTools/voltLib/
Dparser.py600 self.scopes_ = [{}]
603 self.scopes_.append({})
606 self.scopes_.pop()
609 self.scopes_[-1][name] = item
612 for scope in reversed(self.scopes_):
625 self.scopes_ = [OrderedDict()]
628 self.scopes_.append(OrderedDict())
634 for scope in reversed(self.scopes_):
/external/v8/src/torque/
Ddeclarations.cc27 auto i = scopes_.find(key); in GetNodeScope()
28 if (i != scopes_.end()) return i->second; in GetNodeScope()
31 scopes_[key] = result; in GetNodeScope()
39 auto i = scopes_.find(key); in GetGenericScope()
40 if (i != scopes_.end()) return i->second; in GetGenericScope()
42 scopes_[key] = result; in GetGenericScope()
Dscope.cc24 scopes_.emplace_back(std::unique_ptr<Scope>(new_scope)); in NewScope()
Dscope.h156 std::vector<std::unique_ptr<Scope>> scopes_; variable
Ddeclarations.h161 std::map<std::pair<const AstNode*, TypeVector>, Scope*> scopes_; variable
/external/v8/tools/gcmole/
Dgcmole.cc172 scopes_.push(callees); in EnterScope()
176 scopes_.pop(); in LeaveScope()
180 if (!scopes_.empty()) scopes_.top()->insert(name); in AddCallee()
201 std::stack<CalleesSet* > scopes_; member in __anon85d096280111::CalleesPrinter
/external/fonttools/Lib/fontTools/feaLib/
Dparser.py1684 self.scopes_ = [{}]
1687 self.scopes_.append({})
1690 self.scopes_.pop()
1693 self.scopes_[-1][name] = item
1696 for scope in reversed(self.scopes_):