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

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, 11 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 3062)
+++ vm/object.cc (working copy)
@@ -5282,11 +5282,6 @@
*reinterpret_cast<uword*>(addr + offset) = 0;
offset += kWordSize;
}
- // Initialize all dart fields to null.
- while (offset < instance_size) {
- *reinterpret_cast<RawObject**>(addr + offset) = Object::null();
- offset += kWordSize;
- }
}
return result.raw();
}
@@ -7117,9 +7112,6 @@
NoGCScope no_gc;
result ^= raw;
result.SetLength(len);
- for (intptr_t i = 0; i < len; i++) {
- *result.ObjectAddr(i) = Object::null();
- }
}
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