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

Unified Diff: runtime/vm/object.cc

Issue 19990006: Make sure that all objects store in the Code object live in old space. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 25346)
+++ runtime/vm/object.cc (working copy)
@@ -8307,16 +8307,19 @@
void Code::set_stackmaps(const Array& maps) const {
+ ASSERT(maps.IsOld());
StorePointer(&raw_ptr()->stackmaps_, maps.raw());
}
void Code::set_deopt_info_array(const Array& array) const {
+ ASSERT(array.IsOld());
StorePointer(&raw_ptr()->deopt_info_array_, array.raw());
}
void Code::set_object_table(const Array& array) const {
+ ASSERT(array.IsOld());
StorePointer(&raw_ptr()->object_table_, array.raw());
}
@@ -8421,6 +8424,7 @@
void Code::set_comments(const Code::Comments& comments) const {
+ ASSERT(comments.comments_.IsOld());
StorePointer(&raw_ptr()->comments_, comments.comments_.raw());
}
« no previous file with comments | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698