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

Unified Diff: runtime/vm/intermediate_language.h

Issue 23190029: Cleanup of deoptimization environment copying functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 644cb99c8471c14976986bf7cbdfda90c3ed077d..9dc34e7608a159cced31e423bc21ccc9570e7ff3 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -6701,10 +6701,10 @@ class Environment : public ZoneAllocated {
function_(function),
outer_(outer) { }
- // Deep copy the environment. A 'length' parameter can be given, which
- // may be less than the environment's length in order to drop values
- // (e.g., passed arguments) from the copy.
- Environment* DeepCopy() const;
+ // Deep copy an environment. A 'length' parameter can be given, which may
+ // be less than the environment's length in order to drop values (e.g.,
+ // passed arguments) from the copy.
+ Environment* DeepCopy() const { return DeepCopy(Length()); }
Environment* DeepCopy(intptr_t length) const;
GrowableArray<Value*> values_;
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698