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

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

Issue 501553005: Scale invocation count by the number of BBs in the flow-graph of a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Refactor and port to archs. Created 6 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
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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 587
588 void CompactBlock(BlockEntryInstr* block); 588 void CompactBlock(BlockEntryInstr* block);
589 void CompactBlocks(); 589 void CompactBlocks();
590 590
591 bool IsListClass(const Class& cls) const { 591 bool IsListClass(const Class& cls) const {
592 return cls.raw() == list_class_.raw(); 592 return cls.raw() == list_class_.raw();
593 } 593 }
594 594
595 void EmitSourceLine(Instruction* instr); 595 void EmitSourceLine(Instruction* instr);
596 596
597 intptr_t GetOptimizationThreshold() const;
598
597 Isolate* isolate_; 599 Isolate* isolate_;
598 Assembler* assembler_; 600 Assembler* assembler_;
599 const ParsedFunction& parsed_function_; 601 const ParsedFunction& parsed_function_;
600 const FlowGraph& flow_graph_; 602 const FlowGraph& flow_graph_;
601 const GrowableArray<BlockEntryInstr*>& block_order_; 603 const GrowableArray<BlockEntryInstr*>& block_order_;
602 604
603 // Compiler specific per-block state. Indexed by postorder block number 605 // Compiler specific per-block state. Indexed by postorder block number
604 // for convenience. This is not the block's index in the block order, 606 // for convenience. This is not the block's index in the block order,
605 // which is reverse postorder. 607 // which is reverse postorder.
606 BlockEntryInstr* current_block_; 608 BlockEntryInstr* current_block_;
(...skipping 29 matching lines...) Expand all
636 intptr_t lazy_deopt_pc_offset_; 638 intptr_t lazy_deopt_pc_offset_;
637 639
638 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; 640 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_;
639 641
640 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 642 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
641 }; 643 };
642 644
643 } // namespace dart 645 } // namespace dart
644 646
645 #endif // VM_FLOW_GRAPH_COMPILER_H_ 647 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698