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

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

Issue 11780005: Allow optimized code when debugger is active (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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_IA32_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_IA32_H_
6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_ 6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_
7 7
8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_
9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h. 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h.
10 #endif 10 #endif
(...skipping 29 matching lines...) Expand all
40 return block_order_; 40 return block_order_;
41 } 41 }
42 DescriptorList* pc_descriptors_list() const { 42 DescriptorList* pc_descriptors_list() const {
43 return pc_descriptors_list_; 43 return pc_descriptors_list_;
44 } 44 }
45 BlockEntryInstr* current_block() const { return current_block_; } 45 BlockEntryInstr* current_block() const { return current_block_; }
46 void set_current_block(BlockEntryInstr* value) { 46 void set_current_block(BlockEntryInstr* value) {
47 current_block_ = value; 47 current_block_ = value;
48 } 48 }
49 static bool CanOptimize(); 49 static bool CanOptimize();
50 bool CanOptimizeFunction();
51
50 bool is_optimizing() const { return is_optimizing_; } 52 bool is_optimizing() const { return is_optimizing_; }
51 53
52 const GrowableArray<BlockInfo*>& block_info() const { return block_info_; } 54 const GrowableArray<BlockInfo*>& block_info() const { return block_info_; }
53 ParallelMoveResolver* parallel_move_resolver() { 55 ParallelMoveResolver* parallel_move_resolver() {
54 return &parallel_move_resolver_; 56 return &parallel_move_resolver_;
55 } 57 }
56 58
57 // Constructor is lighweight, major initialization work should occur here. 59 // Constructor is lighweight, major initialization work should occur here.
58 // This makes it easier to measure time spent in the compiler. 60 // This makes it easier to measure time spent in the compiler.
59 void InitCompiler(); 61 void InitCompiler();
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 // that should be used when deoptimizing we store it in this variable. 353 // that should be used when deoptimizing we store it in this variable.
352 // In future AddDeoptStub should be moved out of the instruction template. 354 // In future AddDeoptStub should be moved out of the instruction template.
353 Environment* pending_deoptimization_env_; 355 Environment* pending_deoptimization_env_;
354 356
355 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 357 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
356 }; 358 };
357 359
358 } // namespace dart 360 } // namespace dart
359 361
360 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ 362 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698