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

Unified Diff: runtime/vm/snapshot.cc

Issue 13093012: More cleanup in preparation for removing support for dart:scalarlist in the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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/snapshot.h ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.cc
===================================================================
--- runtime/vm/snapshot.cc (revision 20529)
+++ runtime/vm/snapshot.cc (working copy)
@@ -160,7 +160,7 @@
type_arguments_(AbstractTypeArguments::Handle()),
tokens_(Array::Handle()),
stream_(TokenStream::Handle()),
- data_(ExternalUint8Array::Handle()),
+ data_(ExternalTypedData::Handle()),
error_(UnhandledException::Handle()),
backward_references_((kind == Snapshot::kFull) ?
kNumInitialReferencesInFullSnapshot :
@@ -438,12 +438,12 @@
cls_ = Object::token_stream_class();
stream_ = reinterpret_cast<RawTokenStream*>(
AllocateUninitialized(cls_, TokenStream::InstanceSize()));
- cls_ = object_store()->external_uint8_array_class();
+ cls_ = isolate()->class_table()->At(kExternalTypedDataUint8ArrayCid);
uint8_t* array = const_cast<uint8_t*>(CurrentBufferAddress());
ASSERT(array != NULL);
Advance(len);
- data_ = reinterpret_cast<RawExternalUint8Array*>(
- AllocateUninitialized(cls_, ExternalUint8Array::InstanceSize()));
+ data_ = reinterpret_cast<RawExternalTypedData*>(
+ AllocateUninitialized(cls_, ExternalTypedData::InstanceSize()));
data_.SetData(array);
data_.SetLength(len);
stream_.SetStream(data_);
« no previous file with comments | « runtime/vm/snapshot.h ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698