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

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

Issue 1284713003: Refactor VMTagScope to Thread* rather than Isolate*. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | « runtime/vm/compiler.cc ('k') | runtime/vm/heap.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/class_finalizer.h" 10 #include "vm/class_finalizer.h"
(...skipping 4766 matching lines...) Expand 10 before | Expand all | Expand 10 after
4777 exit_ = for_finally_block.exit_; 4777 exit_ = for_finally_block.exit_;
4778 } 4778 }
4779 4779
4780 4780
4781 void EffectGraphVisitor::VisitStopNode(StopNode* node) { 4781 void EffectGraphVisitor::VisitStopNode(StopNode* node) {
4782 AddInstruction(new(Z) StopInstr(node->message())); 4782 AddInstruction(new(Z) StopInstr(node->message()));
4783 } 4783 }
4784 4784
4785 4785
4786 FlowGraph* FlowGraphBuilder::BuildGraph() { 4786 FlowGraph* FlowGraphBuilder::BuildGraph() {
4787 VMTagScope tagScope(Thread::Current()->isolate(), 4787 VMTagScope tagScope(Thread::Current(),
4788 VMTag::kCompileFlowGraphBuilderTagId, 4788 VMTag::kCompileFlowGraphBuilderTagId,
4789 FLAG_profile_vm); 4789 FLAG_profile_vm);
4790 if (FLAG_print_ast) { 4790 if (FLAG_print_ast) {
4791 // Print the function ast before IL generation. 4791 // Print the function ast before IL generation.
4792 AstPrinter::PrintFunctionNodes(parsed_function()); 4792 AstPrinter::PrintFunctionNodes(parsed_function());
4793 } 4793 }
4794 if (FLAG_print_scopes) { 4794 if (FLAG_print_scopes) {
4795 AstPrinter::PrintFunctionScope(parsed_function()); 4795 AstPrinter::PrintFunctionScope(parsed_function());
4796 } 4796 }
4797 TargetEntryInstr* normal_entry = 4797 TargetEntryInstr* normal_entry =
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
4832 Report::MessageF(Report::kBailout, 4832 Report::MessageF(Report::kBailout,
4833 Script::Handle(function.script()), 4833 Script::Handle(function.script()),
4834 function.token_pos(), 4834 function.token_pos(),
4835 "FlowGraphBuilder Bailout: %s %s", 4835 "FlowGraphBuilder Bailout: %s %s",
4836 String::Handle(function.name()).ToCString(), 4836 String::Handle(function.name()).ToCString(),
4837 reason); 4837 reason);
4838 UNREACHABLE(); 4838 UNREACHABLE();
4839 } 4839 }
4840 4840
4841 } // namespace dart 4841 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698