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

Unified Diff: runtime/vm/snapshot.cc

Issue 9175002: Build fix for mac/clang (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.cc
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc
index 4f01d350c72f30c95239efad43d5ca24ac071528..ac90a10aedc276c00295f680c46dfece69fef5d1 100644
--- a/runtime/vm/snapshot.cc
+++ b/runtime/vm/snapshot.cc
@@ -184,7 +184,7 @@ RawObject* SnapshotReader::ReadInlinedObject(intptr_t object_id) {
intptr_t instance_size = cls.instance_size();
ASSERT(instance_size > 0);
// Allocate the instance and read in all the fields for the object.
- RawObject* raw = Object::Allocate(cls, instance_size, Heap::kNew);
+ RawObject* raw = Instance::New(cls, Heap::kNew);
result ^= raw;
intptr_t offset = Object::InstanceSize();
while (offset < instance_size) {
« 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