Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: runtime/vm/flow_graph_builder.cc

Issue 1868783002: Minor cleanup. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code-review-comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/flow_graph_builder.h" 5 #include "vm/flow_graph_builder.h"
6 6
7 #include "lib/invocation_mirror.h" 7 #include "lib/invocation_mirror.h"
8 #include "vm/ast_printer.h" 8 #include "vm/ast_printer.h"
9 #include "vm/bit_vector.h" 9 #include "vm/bit_vector.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 4595 matching lines...) Expand 10 before | Expand all | Expand 10 after
4606 exit_ = for_finally_block.exit_; 4606 exit_ = for_finally_block.exit_;
4607 } 4607 }
4608 4608
4609 4609
4610 void EffectGraphVisitor::VisitStopNode(StopNode* node) { 4610 void EffectGraphVisitor::VisitStopNode(StopNode* node) {
4611 AddInstruction(new(Z) StopInstr(node->message())); 4611 AddInstruction(new(Z) StopInstr(node->message()));
4612 } 4612 }
4613 4613
4614 4614
4615 FlowGraph* FlowGraphBuilder::BuildGraph() { 4615 FlowGraph* FlowGraphBuilder::BuildGraph() {
4616 VMTagScope tagScope(Thread::Current(), 4616 VMTagScope tagScope(thread(),
4617 VMTag::kCompileFlowGraphBuilderTagId, 4617 VMTag::kCompileFlowGraphBuilderTagId,
4618 FLAG_profile_vm); 4618 FLAG_profile_vm);
4619 if (FLAG_support_ast_printer && FLAG_print_ast) { 4619 if (FLAG_support_ast_printer && FLAG_print_ast) {
4620 // Print the function ast before IL generation. 4620 // Print the function ast before IL generation.
4621 AstPrinter::PrintFunctionNodes(parsed_function()); 4621 AstPrinter::PrintFunctionNodes(parsed_function());
4622 } 4622 }
4623 if (FLAG_support_ast_printer && FLAG_print_scopes) { 4623 if (FLAG_support_ast_printer && FLAG_print_scopes) {
4624 AstPrinter::PrintFunctionScope(parsed_function()); 4624 AstPrinter::PrintFunctionScope(parsed_function());
4625 } 4625 }
4626 TargetEntryInstr* normal_entry = 4626 TargetEntryInstr* normal_entry =
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
4662 Script::Handle(function.script()), 4662 Script::Handle(function.script()),
4663 function.token_pos(), 4663 function.token_pos(),
4664 Report::AtLocation, 4664 Report::AtLocation,
4665 "FlowGraphBuilder Bailout: %s %s", 4665 "FlowGraphBuilder Bailout: %s %s",
4666 String::Handle(function.name()).ToCString(), 4666 String::Handle(function.name()).ToCString(),
4667 reason); 4667 reason);
4668 UNREACHABLE(); 4668 UNREACHABLE();
4669 } 4669 }
4670 4670
4671 } // namespace dart 4671 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698