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

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

Issue 311993007: VM: Reduce the number of edge counters in generated code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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/block_scheduler.cc ('k') | runtime/vm/flow_graph_compiler.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) 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 Label* is_instance_lbl, 338 Label* is_instance_lbl,
339 Label* is_not_instance_lbl); 339 Label* is_not_instance_lbl);
340 void GenerateStringTypeCheck(Register kClassIdReg, 340 void GenerateStringTypeCheck(Register kClassIdReg,
341 Label* is_instance_lbl, 341 Label* is_instance_lbl,
342 Label* is_not_instance_lbl); 342 Label* is_not_instance_lbl);
343 void GenerateListTypeCheck(Register kClassIdReg, 343 void GenerateListTypeCheck(Register kClassIdReg,
344 Label* is_instance_lbl); 344 Label* is_instance_lbl);
345 345
346 void EmitComment(Instruction* instr); 346 void EmitComment(Instruction* instr);
347 347
348 bool NeedsEdgeCounter(TargetEntryInstr* block);
349
348 void EmitEdgeCounter(); 350 void EmitEdgeCounter();
349 351
350 void EmitOptimizedInstanceCall(ExternalLabel* target_label, 352 void EmitOptimizedInstanceCall(ExternalLabel* target_label,
351 const ICData& ic_data, 353 const ICData& ic_data,
352 intptr_t argument_count, 354 intptr_t argument_count,
353 intptr_t deopt_id, 355 intptr_t deopt_id,
354 intptr_t token_pos, 356 intptr_t token_pos,
355 LocationSummary* locs); 357 LocationSummary* locs);
356 358
357 void EmitInstanceCall(ExternalLabel* target_label, 359 void EmitInstanceCall(ExternalLabel* target_label,
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 intptr_t entry_patch_pc_offset_; 599 intptr_t entry_patch_pc_offset_;
598 intptr_t patch_code_pc_offset_; 600 intptr_t patch_code_pc_offset_;
599 intptr_t lazy_deopt_pc_offset_; 601 intptr_t lazy_deopt_pc_offset_;
600 602
601 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 603 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
602 }; 604 };
603 605
604 } // namespace dart 606 } // namespace dart
605 607
606 #endif // VM_FLOW_GRAPH_COMPILER_H_ 608 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/block_scheduler.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698