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

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: 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..88d32b4744404d3b6aa6728fd78d8f30fed290fe 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
+ // Deep copy a non-NULL environment. A 'length' parameter can be given,
srdjan 2013/08/22 15:45:31 This may be redundant information as non-NULL is s
Kevin Millikin (Google) 2013/08/26 08:59:11 OK, removed.
+ // which may be less than the environment's length in order to drop values
// (e.g., passed arguments) from the copy.
- Environment* DeepCopy() const;
+ 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