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

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

Issue 10964012: Revert "A simpler scheme for garbage collection of ureachable phi inputs." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_builder.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_BUILDER_H_ 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_
6 #define VM_FLOW_GRAPH_BUILDER_H_ 6 #define VM_FLOW_GRAPH_BUILDER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 16 matching lines...) Expand all
27 kEffectContext, 27 kEffectContext,
28 kTestContext 28 kTestContext
29 }; 29 };
30 30
31 FlowGraph* BuildGraph(InliningContext context); 31 FlowGraph* BuildGraph(InliningContext context);
32 32
33 const ParsedFunction& parsed_function() const { return parsed_function_; } 33 const ParsedFunction& parsed_function() const { return parsed_function_; }
34 34
35 void Bailout(const char* reason); 35 void Bailout(const char* reason);
36 36
37 intptr_t AllocateBlockId() { return ++last_used_block_id_; }
38
39 void set_context_level(intptr_t value) { context_level_ = value; } 37 void set_context_level(intptr_t value) { context_level_ = value; }
40 intptr_t context_level() const { return context_level_; } 38 intptr_t context_level() const { return context_level_; }
41 39
42 // Each try in this function gets its own try index. 40 // Each try in this function gets its own try index.
43 intptr_t AllocateTryIndex() { return ++last_used_try_index_; } 41 intptr_t AllocateTryIndex() { return ++last_used_try_index_; }
44 42
45 // Manage the currently active try index. 43 // Manage the currently active try index.
46 void set_try_index(intptr_t value) { try_index_ = value; } 44 void set_try_index(intptr_t value) { try_index_ = value; }
47 intptr_t try_index() const { return try_index_; } 45 intptr_t try_index() const { return try_index_; }
48 46
(...skipping 24 matching lines...) Expand all
73 intptr_t variable_count() const { 71 intptr_t variable_count() const {
74 return parameter_count() + num_stack_locals_; 72 return parameter_count() + num_stack_locals_;
75 } 73 }
76 74
77 const ParsedFunction& parsed_function_; 75 const ParsedFunction& parsed_function_;
78 76
79 const intptr_t num_copied_params_; 77 const intptr_t num_copied_params_;
80 const intptr_t num_non_copied_params_; 78 const intptr_t num_non_copied_params_;
81 const intptr_t num_stack_locals_; // Does not include any parameters. 79 const intptr_t num_stack_locals_; // Does not include any parameters.
82 80
83 intptr_t last_used_block_id_;
84 intptr_t context_level_; 81 intptr_t context_level_;
85 intptr_t last_used_try_index_; 82 intptr_t last_used_try_index_;
86 intptr_t try_index_; 83 intptr_t try_index_;
87 GraphEntryInstr* graph_entry_; 84 GraphEntryInstr* graph_entry_;
88 InliningContext inlining_context_; 85 InliningContext inlining_context_;
89 ZoneGrowableArray<ReturnInstr*>* exits_; 86 ZoneGrowableArray<ReturnInstr*>* exits_;
90 87
91 DISALLOW_IMPLICIT_CONSTRUCTORS(FlowGraphBuilder); 88 DISALLOW_IMPLICIT_CONSTRUCTORS(FlowGraphBuilder);
92 }; 89 };
93 90
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 // Output parameters. 388 // Output parameters.
392 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 389 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
393 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 390 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
394 391
395 intptr_t condition_token_pos_; 392 intptr_t condition_token_pos_;
396 }; 393 };
397 394
398 } // namespace dart 395 } // namespace dart
399 396
400 #endif // VM_FLOW_GRAPH_BUILDER_H_ 397 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698