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

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

Issue 10824017: Implement deoptimization in the SSA compiler as a parallel move. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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_X64_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_X64_H_
6 #define VM_FLOW_GRAPH_COMPILER_X64_H_ 6 #define VM_FLOW_GRAPH_COMPILER_X64_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_x64.h. 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h.
10 #endif 10 #endif
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 DescriptorList* pc_descriptors_list() const { 43 DescriptorList* pc_descriptors_list() const {
44 return pc_descriptors_list_; 44 return pc_descriptors_list_;
45 } 45 }
46 BlockEntryInstr* current_block() const { return current_block_; } 46 BlockEntryInstr* current_block() const { return current_block_; }
47 void set_current_block(BlockEntryInstr* value) { 47 void set_current_block(BlockEntryInstr* value) {
48 current_block_ = value; 48 current_block_ = value;
49 } 49 }
50 static bool CanOptimize(); 50 static bool CanOptimize();
51 bool is_optimizing() const { return is_optimizing_; } 51 bool is_optimizing() const { return is_optimizing_; }
52 const GrowableArray<BlockInfo*>& block_info() const { return block_info_; } 52 const GrowableArray<BlockInfo*>& block_info() const { return block_info_; }
53 ParallelMoveResolver* parallel_move_resolver() {
54 return &parallel_move_resolver_;
55 }
53 56
54 // Constructor is lighweight, major initialization work should occur here. 57 // Constructor is lighweight, major initialization work should occur here.
55 // This makes it easier to measure time spent in the compiler. 58 // This makes it easier to measure time spent in the compiler.
56 void InitCompiler(); 59 void InitCompiler();
57 60
58 void CompileGraph(); 61 void CompileGraph();
59 62
60 void VisitBlocks(); 63 void VisitBlocks();
61 64
62 // Bail out of the flow graph compiler. Does not return to the caller. 65 // Bail out of the flow graph compiler. Does not return to the caller.
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // that should be used when deoptimizing we store it in this variable. 310 // that should be used when deoptimizing we store it in this variable.
308 // In future AddDeoptStub should be moved out of the instruction template. 311 // In future AddDeoptStub should be moved out of the instruction template.
309 Environment* pending_deoptimization_env_; 312 Environment* pending_deoptimization_env_;
310 313
311 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 314 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
312 }; 315 };
313 316
314 } // namespace dart 317 } // namespace dart
315 318
316 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ 319 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698