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

Side by Side Diff: runtime/vm/raw_object_snapshot.cc

Issue 8429027: Add an external array type to support typed arrays. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address final review comments Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/bigint_operations.h" 5 #include "vm/bigint_operations.h"
6 #include "vm/object.h" 6 #include "vm/object.h"
7 #include "vm/object_store.h" 7 #include "vm/object_store.h"
8 #include "vm/snapshot.h" 8 #include "vm/snapshot.h"
9 #include "vm/visitor.h" 9 #include "vm/visitor.h"
10 10
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 ArrayWriteTo(writer, 1215 ArrayWriteTo(writer,
1216 object_id, 1216 object_id,
1217 serialize_classes, 1217 serialize_classes,
1218 ObjectStore::kImmutableArrayClass, 1218 ObjectStore::kImmutableArrayClass,
1219 ptr()->length_, 1219 ptr()->length_,
1220 ptr()->type_arguments_, 1220 ptr()->type_arguments_,
1221 ptr()->data()); 1221 ptr()->data());
1222 } 1222 }
1223 1223
1224 1224
1225 RawByteBuffer* ByteBuffer::ReadFrom(SnapshotReader* reader,
1226 intptr_t object_id,
1227 bool classes_serialized) {
1228 UNIMPLEMENTED();
1229 return ByteBuffer::null();
1230 }
1231
1232
1233 void RawByteBuffer::WriteTo(SnapshotWriter* writer,
1234 intptr_t object_id,
1235 bool serialize_classes) {
1236 UNIMPLEMENTED();
1237 }
1238
1239
1225 RawClosure* Closure::ReadFrom(SnapshotReader* reader, 1240 RawClosure* Closure::ReadFrom(SnapshotReader* reader,
1226 intptr_t object_id, 1241 intptr_t object_id,
1227 bool classes_serialized) { 1242 bool classes_serialized) {
1228 UNIMPLEMENTED(); 1243 UNIMPLEMENTED();
1229 return Closure::null(); 1244 return Closure::null();
1230 } 1245 }
1231 1246
1232 1247
1233 void RawClosure::WriteTo(SnapshotWriter* writer, 1248 void RawClosure::WriteTo(SnapshotWriter* writer,
1234 intptr_t object_id, 1249 intptr_t object_id,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 // Write out all the other fields. 1312 // Write out all the other fields.
1298 writer->Write<RawObject*>(ptr()->num_bracket_expressions_); 1313 writer->Write<RawObject*>(ptr()->num_bracket_expressions_);
1299 writer->WriteObject(ptr()->pattern_); 1314 writer->WriteObject(ptr()->pattern_);
1300 writer->Write<intptr_t>(ptr()->type_); 1315 writer->Write<intptr_t>(ptr()->type_);
1301 writer->Write<intptr_t>(ptr()->flags_); 1316 writer->Write<intptr_t>(ptr()->flags_);
1302 1317
1303 // Do not write out the data part which is native. 1318 // Do not write out the data part which is native.
1304 } 1319 }
1305 1320
1306 } // namespace dart 1321 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698