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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10692140: Cleanup usage of GrowableArrays in class Environment. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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_builder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 9520)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -2363,19 +2363,19 @@
class Environment : public ZoneAllocated {
public:
// Construct an environment by copying from an array of values.
- explicit Environment(ZoneGrowableArray<Value*>* values)
- : values_(values->length()) {
- values_.AddArray(*values);
+ explicit Environment(const GrowableArray<Value*>& values)
+ : values_(values.length()) {
+ values_.AddArray(values);
}
- const ZoneGrowableArray<Value*>& values() const {
+ const GrowableArray<Value*>& values() const {
return values_;
}
void PrintTo(BufferFormatter* f) const;
private:
- ZoneGrowableArray<Value*> values_;
+ GrowableArray<Value*> values_;
DISALLOW_COPY_AND_ASSIGN(Environment);
};
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698