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

Side by Side Diff: runtime/vm/flow_graph_compiler.h

Issue 18111006: Collect edge count profiling data and reorder basic blocks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
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 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_
6 #define VM_FLOW_GRAPH_COMPILER_H_ 6 #define VM_FLOW_GRAPH_COMPILER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/code_descriptors.h" 10 #include "vm/code_descriptors.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 Label* jump_label_; 226 Label* jump_label_;
227 Label block_label_; 227 Label block_label_;
228 228
229 Label* fallthrough_label_; 229 Label* fallthrough_label_;
230 230
231 bool is_marked_; 231 bool is_marked_;
232 }; 232 };
233 233
234 public: 234 public:
235 FlowGraphCompiler(Assembler* assembler, 235 FlowGraphCompiler(Assembler* assembler,
236 const FlowGraph& flow_graph, 236 FlowGraph* flow_graph,
237 bool is_optimizing); 237 bool is_optimizing);
238 238
239 ~FlowGraphCompiler(); 239 ~FlowGraphCompiler();
240 240
241 static bool SupportsUnboxedMints(); 241 static bool SupportsUnboxedMints();
242 242
243 // Accessors. 243 // Accessors.
244 Assembler* assembler() const { return assembler_; } 244 Assembler* assembler() const { return assembler_; }
245 const ParsedFunction& parsed_function() const { return parsed_function_; } 245 const ParsedFunction& parsed_function() const { return parsed_function_; }
246 const GrowableArray<BlockEntryInstr*>& block_order() const { 246 const GrowableArray<BlockEntryInstr*>& block_order() const {
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 // that should be used when deoptimizing we store it in this variable. 595 // that should be used when deoptimizing we store it in this variable.
596 // In future AddDeoptStub should be moved out of the instruction template. 596 // In future AddDeoptStub should be moved out of the instruction template.
597 Environment* pending_deoptimization_env_; 597 Environment* pending_deoptimization_env_;
598 598
599 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 599 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
600 }; 600 };
601 601
602 } // namespace dart 602 } // namespace dart
603 603
604 #endif // VM_FLOW_GRAPH_COMPILER_H_ 604 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698