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

Side by Side Diff: vm/compiler.cc

Issue 10407031: Add IR printing into a supplied buffer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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 | « no previous file | vm/flow_graph_builder.h » ('j') | vm/flow_graph_builder.h » ('J')
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/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/ast_printer.h" 8 #include "vm/ast_printer.h"
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 isolate->set_ic_data_array( 180 isolate->set_ic_data_array(
181 ExtractTypeFeedbackArray(unoptimized_code)); 181 ExtractTypeFeedbackArray(unoptimized_code));
182 } 182 }
183 } 183 }
184 FlowGraphBuilder graph_builder(parsed_function); 184 FlowGraphBuilder graph_builder(parsed_function);
185 graph_builder.BuildGraph(optimized); 185 graph_builder.BuildGraph(optimized);
186 186
187 // The non-optimizing compiler compiles blocks in reverse postorder, 187 // The non-optimizing compiler compiles blocks in reverse postorder,
188 // because it is a 'natural' order for the human reader of the 188 // because it is a 'natural' order for the human reader of the
189 // generated code. 189 // generated code.
190 intptr_t length = graph_builder.postorder_block_entries().length(); 190 intptr_t length = graph_builder.postorder_block_entries()->length();
191 for (intptr_t i = length - 1; i >= 0; --i) { 191 for (intptr_t i = length - 1; i >= 0; --i) {
192 block_order.Add(graph_builder.postorder_block_entries()[i]); 192 block_order.Add((*graph_builder.postorder_block_entries())[i]);
193 } 193 }
194 } 194 }
195 195
196 Assembler assembler; 196 Assembler assembler;
197 FlowGraphCompiler graph_compiler(&assembler, parsed_function, 197 FlowGraphCompiler graph_compiler(&assembler, parsed_function,
198 block_order, optimized); 198 block_order, optimized);
199 { 199 {
200 TimerScope timer(FLAG_compiler_stats, 200 TimerScope timer(FLAG_compiler_stats,
201 &CompilerStats::graphcompiler_timer, 201 &CompilerStats::graphcompiler_timer,
202 isolate); 202 isolate);
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 isolate->object_store()->clear_sticky_error(); 533 isolate->object_store()->clear_sticky_error();
534 isolate->set_long_jump_base(base); 534 isolate->set_long_jump_base(base);
535 return result.raw(); 535 return result.raw();
536 } 536 }
537 UNREACHABLE(); 537 UNREACHABLE();
538 return Object::null(); 538 return Object::null();
539 } 539 }
540 540
541 541
542 } // namespace dart 542 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | vm/flow_graph_builder.h » ('j') | vm/flow_graph_builder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698