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

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

Issue 725593003: Don't print intrinsic flow graph with --print-flow-graph-optimized. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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 // Class for intrinsifying functions. 4 // Class for intrinsifying functions.
5 5
6 #include "vm/assembler.h" 6 #include "vm/assembler.h"
7 #include "vm/intrinsifier.h" 7 #include "vm/intrinsifier.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/symbols.h" 10 #include "vm/symbols.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 ASSERT(function.CheckSourceFingerprint(fp)); \ 146 ASSERT(function.CheckSourceFingerprint(fp)); \
147 if (!Build_##enum_name(graph)) return false; \ 147 if (!Build_##enum_name(graph)) return false; \
148 break; 148 break;
149 149
150 GRAPH_INTRINSICS_LIST(EMIT_CASE); 150 GRAPH_INTRINSICS_LIST(EMIT_CASE);
151 default: 151 default:
152 return false; 152 return false;
153 #undef EMIT_CASE 153 #undef EMIT_CASE
154 } 154 }
155 155
156 if (FLAG_print_flow_graph || FLAG_print_flow_graph_optimized) { 156 if (FLAG_print_flow_graph) {
157 OS::Print("Intrinsic graph before\n"); 157 OS::Print("Intrinsic graph before\n");
158 FlowGraphPrinter printer(*graph); 158 FlowGraphPrinter printer(*graph);
159 printer.PrintBlocks(); 159 printer.PrintBlocks();
160 } 160 }
161 161
162 // Perform register allocation on the SSA graph. 162 // Perform register allocation on the SSA graph.
163 FlowGraphAllocator allocator(*graph, true); // Intrinsic mode. 163 FlowGraphAllocator allocator(*graph, true); // Intrinsic mode.
164 allocator.AllocateRegisters(); 164 allocator.AllocateRegisters();
165 165
166 if (FLAG_print_flow_graph || FLAG_print_flow_graph_optimized) { 166 if (FLAG_print_flow_graph) {
167 OS::Print("Intrinsic graph after\n"); 167 OS::Print("Intrinsic graph after\n");
168 FlowGraphPrinter printer(*graph); 168 FlowGraphPrinter printer(*graph);
169 printer.PrintBlocks(); 169 printer.PrintBlocks();
170 } 170 }
171 EmitCodeFor(compiler, graph); 171 EmitCodeFor(compiler, graph);
172 return true; 172 return true;
173 } 173 }
174 174
175 175
176 void Intrinsifier::Intrinsify(ParsedFunction* parsed_function, 176 void Intrinsifier::Intrinsify(ParsedFunction* parsed_function,
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 new LoadFieldInstr(new Value(backing_store), 560 new LoadFieldInstr(new Value(backing_store),
561 Array::length_offset(), 561 Array::length_offset(),
562 Type::ZoneHandle(), 562 Type::ZoneHandle(),
563 builder.TokenPos())); 563 builder.TokenPos()));
564 builder.AddIntrinsicReturn(new Value(capacity)); 564 builder.AddIntrinsicReturn(new Value(capacity));
565 return true; 565 return true;
566 } 566 }
567 567
568 568
569 } // namespace dart 569 } // 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