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

Side by Side Diff: vm/snapshot.h

Issue 10446112: Refactor snapshot writing code in preparation for the change to remove recursive calls to WriteObje… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef VM_SNAPSHOT_H_ 5 #ifndef VM_SNAPSHOT_H_
6 #define VM_SNAPSHOT_H_ 6 #define VM_SNAPSHOT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/bitfield.h" 10 #include "vm/bitfield.h"
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 RawObject* raw() const { return raw_; } 515 RawObject* raw() const { return raw_; }
516 uword tags() const { return tags_; } 516 uword tags() const { return tags_; }
517 517
518 private: 518 private:
519 RawObject* raw_; 519 RawObject* raw_;
520 uword tags_; 520 uword tags_;
521 521
522 DISALLOW_COPY_AND_ASSIGN(ForwardObjectNode); 522 DISALLOW_COPY_AND_ASSIGN(ForwardObjectNode);
523 }; 523 };
524 524
525 intptr_t MarkObject(RawObject* raw, RawClass* cls); 525 intptr_t MarkObject(RawObject* raw);
526
527 bool CheckAndWritePredefinedObject(RawObject* raw);
526 528
527 void WriteInlinedObject(RawObject* raw); 529 void WriteInlinedObject(RawObject* raw);
528 530
529 ObjectStore* object_store() const { return object_store_; } 531 ObjectStore* object_store() const { return object_store_; }
530 532
531 Snapshot::Kind kind_; 533 Snapshot::Kind kind_;
532 ObjectStore* object_store_; // Object store for common classes. 534 ObjectStore* object_store_; // Object store for common classes.
533 ClassTable* class_table_; // Class table for the class index to class lookup. 535 ClassTable* class_table_; // Class table for the class index to class lookup.
534 GrowableArray<ForwardObjectNode*> forward_list_; 536 GrowableArray<ForwardObjectNode*> forward_list_;
535 537
(...skipping 28 matching lines...) Expand all
564 566
565 private: 567 private:
566 SnapshotWriter* writer_; 568 SnapshotWriter* writer_;
567 569
568 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 570 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
569 }; 571 };
570 572
571 } // namespace dart 573 } // namespace dart
572 574
573 #endif // VM_SNAPSHOT_H_ 575 #endif // VM_SNAPSHOT_H_
OLDNEW
« vm/raw_object_snapshot.cc ('K') | « vm/raw_object_snapshot.cc ('k') | vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698