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

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

Issue 10915141: Repair flow graph printing after graph refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | 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/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/flow_graph_allocator.h" 9 #include "vm/flow_graph_allocator.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 ASSERT(other_constant != NULL); 98 ASSERT(other_constant != NULL);
99 return (value().raw() == other_constant->value().raw()); 99 return (value().raw() == other_constant->value().raw());
100 } 100 }
101 101
102 102
103 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry) 103 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry)
104 : BlockEntryInstr(CatchClauseNode::kInvalidTryIndex), 104 : BlockEntryInstr(CatchClauseNode::kInvalidTryIndex),
105 normal_entry_(normal_entry), 105 normal_entry_(normal_entry),
106 catch_entries_(), 106 catch_entries_(),
107 start_env_(NULL), 107 start_env_(NULL),
108 constant_null_(new ConstantInstr(Object::ZoneHandle())), 108 constant_null_(NULL),
109 spill_slot_count_(0) { 109 spill_slot_count_(0) {
110 } 110 }
111 111
112 112
113 MethodRecognizer::Kind MethodRecognizer::RecognizeKind( 113 MethodRecognizer::Kind MethodRecognizer::RecognizeKind(
114 const Function& function) { 114 const Function& function) {
115 // Only core and math library methods can be recognized. 115 // Only core and math library methods can be recognized.
116 const Library& core_lib = Library::Handle(Library::CoreLibrary()); 116 const Library& core_lib = Library::Handle(Library::CoreLibrary());
117 const Library& core_impl_lib = Library::Handle(Library::CoreImplLibrary()); 117 const Library& core_impl_lib = Library::Handle(Library::CoreImplLibrary());
118 const Library& math_lib = Library::Handle(Library::MathLibrary()); 118 const Library& math_lib = Library::Handle(Library::MathLibrary());
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 value->set_use_index(i); 1635 value->set_use_index(i);
1636 value->AddToEnvUseList(); 1636 value->AddToEnvUseList();
1637 } 1637 }
1638 instr->set_env(copy); 1638 instr->set_env(copy);
1639 } 1639 }
1640 1640
1641 1641
1642 #undef __ 1642 #undef __
1643 1643
1644 } // namespace dart 1644 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698