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

Unified Diff: runtime/vm/flow_graph_builder.h

Issue 10939036: 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/flow_graph_builder.h
diff --git a/runtime/vm/flow_graph_builder.h b/runtime/vm/flow_graph_builder.h
index f00201a0aeae401c236e69371d0c248a49740be1..42218837af2e7dbbe276fe523d25655ba7a40271 100644
--- a/runtime/vm/flow_graph_builder.h
+++ b/runtime/vm/flow_graph_builder.h
@@ -34,6 +34,8 @@ class FlowGraphBuilder: public ValueObject {
void Bailout(const char* reason);
+ intptr_t AllocateBlockId() { return ++last_used_block_id_; }
+
void set_context_level(intptr_t value) { context_level_ = value; }
intptr_t context_level() const { return context_level_; }
@@ -78,6 +80,7 @@ class FlowGraphBuilder: public ValueObject {
const intptr_t num_non_copied_params_;
const intptr_t num_stack_locals_; // Does not include any parameters.
+ intptr_t last_used_block_id_;
intptr_t context_level_;
intptr_t last_used_try_index_;
intptr_t try_index_;

Powered by Google App Engine
This is Rietveld 408576698