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

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

Issue 8761011: Renaming type classes as discussed: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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
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/snapshot.h" 5 #include "vm/snapshot.h"
6 6
7 #include "vm/assert.h" 7 #include "vm/assert.h"
8 #include "vm/bootstrap.h" 8 #include "vm/bootstrap.h"
9 #include "vm/heap.h" 9 #include "vm/heap.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 } 279 }
280 280
281 // Check if it is a singleton boolean false value. 281 // Check if it is a singleton boolean false value.
282 if (rawobj == object_store()->false_value()) { 282 if (rawobj == object_store()->false_value()) {
283 WriteObjectHeader(kObjectId, ObjectStore::kFalseValue); 283 WriteObjectHeader(kObjectId, ObjectStore::kFalseValue);
284 return; 284 return;
285 } 285 }
286 286
287 // Check if classes are not being serialized and it is preinitialized type. 287 // Check if classes are not being serialized and it is preinitialized type.
288 if (!serialize_classes_) { 288 if (!serialize_classes_) {
289 RawParameterizedType* raw_type = 289 RawType* raw_type = reinterpret_cast<RawType*>(rawobj);
290 reinterpret_cast<RawParameterizedType*>(rawobj);
291 index = object_store()->GetTypeIndex(raw_type); 290 index = object_store()->GetTypeIndex(raw_type);
292 if (index != ObjectStore::kInvalidIndex) { 291 if (index != ObjectStore::kInvalidIndex) {
293 WriteObjectHeader(kObjectId, index); 292 WriteObjectHeader(kObjectId, index);
294 return; 293 return;
295 } 294 }
296 } 295 }
297 296
298 // Now write the object out inline in the stream. 297 // Now write the object out inline in the stream.
299 WriteInlinedObject(rawobj); 298 WriteInlinedObject(rawobj);
300 } 299 }
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 427
429 428
430 void SnapshotWriterVisitor::VisitPointers(RawObject** first, RawObject** last) { 429 void SnapshotWriterVisitor::VisitPointers(RawObject** first, RawObject** last) {
431 for (RawObject** current = first; current <= last; current++) { 430 for (RawObject** current = first; current <= last; current++) {
432 RawObject* raw_obj = *current; 431 RawObject* raw_obj = *current;
433 writer_->WriteObject(raw_obj); 432 writer_->WriteObject(raw_obj);
434 } 433 }
435 } 434 }
436 435
437 } // namespace dart 436 } // namespace dart
OLDNEW
« runtime/vm/raw_object.h ('K') | « runtime/vm/scopes.cc ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698