/external/bcc/src/cc/frontends/b/ |
D | parser.cc | 31 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 …]
|
D | type_check.cc | 32 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 …]
|
D | loader.cc | 56 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()
|
D | codegen_llvm.cc | 97 : 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 …]
|
D | type_check.h | 30 : scopes_(scopes), proto_scopes_(proto_scopes) {} in TypeCheck() 43 Scopes *scopes_;
|
D | parser.h | 34 : root_node_(NULL), scopes_(new Scopes), in_(infile), lexer(&in_), parser(lexer, *this) { in Parser() 59 Scopes::Ptr scopes_; variable
|
D | parser.yy | 215 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(); } ;
|
D | codegen_llvm.h | 116 Scopes *scopes_; variable
|
/external/fonttools/Lib/fontTools/voltLib/ |
D | parser.py | 600 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/ |
D | declarations.cc | 27 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()
|
D | scope.cc | 24 scopes_.emplace_back(std::unique_ptr<Scope>(new_scope)); in NewScope()
|
D | scope.h | 156 std::vector<std::unique_ptr<Scope>> scopes_; variable
|
D | declarations.h | 161 std::map<std::pair<const AstNode*, TypeVector>, Scope*> scopes_; variable
|
/external/v8/tools/gcmole/ |
D | gcmole.cc | 172 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/ |
D | parser.py | 1684 self.scopes_ = [{}] 1687 self.scopes_.append({}) 1690 self.scopes_.pop() 1693 self.scopes_[-1][name] = item 1696 for scope in reversed(self.scopes_):
|