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

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

Issue 226543007: Implement new stacktrace and deoptimization stress testing flags: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 3rd times a charm Created 6 years, 8 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/code_generator.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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 } 262 }
263 BlockEntryInstr* current_block() const { return current_block_; } 263 BlockEntryInstr* current_block() const { return current_block_; }
264 void set_current_block(BlockEntryInstr* value) { 264 void set_current_block(BlockEntryInstr* value) {
265 current_block_ = value; 265 current_block_ = value;
266 } 266 }
267 static bool CanOptimize(); 267 static bool CanOptimize();
268 bool CanOptimizeFunction() const; 268 bool CanOptimizeFunction() const;
269 bool CanOSRFunction() const; 269 bool CanOSRFunction() const;
270 bool is_optimizing() const { return is_optimizing_; } 270 bool is_optimizing() const { return is_optimizing_; }
271 271
272 bool ShouldDeoptimizeFunction() const; 272 bool ForceSlowPathForStackOverflow() const;
273 273
274 const GrowableArray<BlockInfo*>& block_info() const { return block_info_; } 274 const GrowableArray<BlockInfo*>& block_info() const { return block_info_; }
275 ParallelMoveResolver* parallel_move_resolver() { 275 ParallelMoveResolver* parallel_move_resolver() {
276 return &parallel_move_resolver_; 276 return &parallel_move_resolver_;
277 } 277 }
278 278
279 // Constructor is lighweight, major initialization work should occur here. 279 // Constructor is lighweight, major initialization work should occur here.
280 // This makes it easier to measure time spent in the compiler. 280 // This makes it easier to measure time spent in the compiler.
281 void InitCompiler(); 281 void InitCompiler();
282 282
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 // that should be used when deoptimizing we store it in this variable. 606 // that should be used when deoptimizing we store it in this variable.
607 // In future AddDeoptStub should be moved out of the instruction template. 607 // In future AddDeoptStub should be moved out of the instruction template.
608 Environment* pending_deoptimization_env_; 608 Environment* pending_deoptimization_env_;
609 609
610 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 610 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
611 }; 611 };
612 612
613 } // namespace dart 613 } // namespace dart
614 614
615 #endif // VM_FLOW_GRAPH_COMPILER_H_ 615 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698