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

Unified Diff: runtime/vm/snapshot.cc

Issue 711833002: Support verified heap pointer writes on ia32. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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
Index: runtime/vm/snapshot.cc
===================================================================
--- runtime/vm/snapshot.cc (revision 41609)
+++ runtime/vm/snapshot.cc (working copy)
@@ -15,6 +15,7 @@
#include "vm/object_store.h"
#include "vm/snapshot_ids.h"
#include "vm/symbols.h"
+#include "vm/verified_memory.h"
#include "vm/version.h"
namespace dart {
@@ -847,6 +848,7 @@
// Make sure to initialize the last word, as this can be left untouched in
// case the object deserialized has an alignment tail.
*reinterpret_cast<RawObject**>(address + size - kWordSize) = Object::null();
+ VerifiedMemory::Accept(address, size);
RawObject* raw_obj = reinterpret_cast<RawObject*>(address + kHeapObjectTag);
uword tags = 0;

Powered by Google App Engine
This is Rietveld 408576698