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

Unified Diff: vm/object.cc

Issue 9108036: - Remove redundant initialization in Array::New (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 12 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 | « vm/dart.cc ('k') | vm/timer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.cc
===================================================================
--- vm/object.cc (revision 3009)
+++ vm/object.cc (working copy)
@@ -7112,9 +7112,7 @@
NoGCScope no_gc;
result ^= raw;
result.SetLength(len);
- for (intptr_t i = 0; i < len; i++) {
- *result.ObjectAddr(i) = Object::null();
- }
+ // Object::Allocate has already initialized the allocated area.
Ivan Posva 2012/01/06 21:40:05 Comment can be dropped, no?
siva 2012/01/07 00:01:02 Done.
}
return result.raw();
}
« no previous file with comments | « vm/dart.cc ('k') | vm/timer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698