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

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

Issue 11956004: Fix vm code base so that it can be built for --arch=simarm (no snapshot yet). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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/flow_graph_compiler_x64.cc ('k') | runtime/vm/flow_graph_optimizer.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) 2013, 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_inliner.h" 5 #include "vm/flow_graph_inliner.h"
6 6
7 #include "vm/compiler.h" 7 #include "vm/compiler.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/flow_graph.h" 9 #include "vm/flow_graph.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
11 #include "vm/flow_graph_optimizer.h" 11 #include "vm/flow_graph_optimizer.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 // Helper to get the default value of a formal parameter. 128 // Helper to get the default value of a formal parameter.
129 static ConstantInstr* GetDefaultValue(intptr_t i, 129 static ConstantInstr* GetDefaultValue(intptr_t i,
130 const ParsedFunction& parsed_function) { 130 const ParsedFunction& parsed_function) {
131 return new ConstantInstr(Object::ZoneHandle( 131 return new ConstantInstr(Object::ZoneHandle(
132 parsed_function.default_parameter_values().At(i))); 132 parsed_function.default_parameter_values().At(i)));
133 } 133 }
134 134
135 135
136 // Pair of an argument name and its value. 136 // Pair of an argument name and its value.
137 struct NamedArgument : ValueObject { 137 struct NamedArgument {
138 public: 138 public:
139 String* name; 139 String* name;
140 Value* value; 140 Value* value;
141 NamedArgument(String* name, Value* value) 141 NamedArgument(String* name, Value* value)
142 : name(name), value(value) { } 142 : name(name), value(value) { }
143 }; 143 };
144 144
145 145
146 // Helper to collect information about a callee graph when considering it for 146 // Helper to collect information about a callee graph when considering it for
147 // inlining. 147 // inlining.
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 OS::Print("After Inlining of %s\n", flow_graph_-> 883 OS::Print("After Inlining of %s\n", flow_graph_->
884 parsed_function().function().ToFullyQualifiedCString()); 884 parsed_function().function().ToFullyQualifiedCString());
885 FlowGraphPrinter printer(*flow_graph_); 885 FlowGraphPrinter printer(*flow_graph_);
886 printer.PrintBlocks(); 886 printer.PrintBlocks();
887 } 887 }
888 } 888 }
889 } 889 }
890 } 890 }
891 891
892 } // namespace dart 892 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698