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

Unified Diff: vm/object.cc

Issue 10021046: Initialize tags back to 0 before using it. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.cc
===================================================================
--- vm/object.cc (revision 6666)
+++ vm/object.cc (working copy)
@@ -6126,12 +6126,12 @@
void ICData::set_function(const Function& value) const {
- raw_ptr()->function_ = value.raw();
+ StorePointer(&raw_ptr()->function_, value.raw());
}
void ICData::set_target_name(const String& value) const {
- raw_ptr()->target_name_ = value.raw();
+ StorePointer(&raw_ptr()->target_name_, value.raw());
}
@@ -6146,7 +6146,7 @@
void ICData::set_ic_data(const Array& value) const {
- raw_ptr()->ic_data_ = value.raw();
+ StorePointer(&raw_ptr()->ic_data_, value.raw());
}
@@ -8536,6 +8536,7 @@
intptr_t leftover_size = capacity_size - used_size;
uword addr = RawObject::ToAddr(array.raw()) + used_size;
+ tags = 0;
cshapiro 2012/04/18 20:52:00 This seems like a strange idiom but I may not unde
siva 2012/04/18 21:21:17 This is in preparation for merging the tags fields
if (leftover_size >= Array::InstanceSize(0)) {
// As we have enough space to use an array object, update the leftover
// space as an Array object.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698