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

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
« no previous file with comments | « vm/raw_object_snapshot.cc ('k') | vm/snapshot.cc » ('j') | 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) 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 RawObject* raw() const { return raw_; } 525 RawObject* raw() const { return raw_; }
526 uword tags() const { return tags_; } 526 uword tags() const { return tags_; }
527 527
528 private: 528 private:
529 RawObject* raw_; 529 RawObject* raw_;
530 uword tags_; 530 uword tags_;
531 531
532 DISALLOW_COPY_AND_ASSIGN(ForwardObjectNode); 532 DISALLOW_COPY_AND_ASSIGN(ForwardObjectNode);
533 }; 533 };
534 534
535 intptr_t MarkObject(RawObject* raw, RawClass* cls); 535 intptr_t MarkObject(RawObject* raw);
536
537 bool CheckAndWritePredefinedObject(RawObject* raw);
536 538
537 void WriteInlinedObject(RawObject* raw); 539 void WriteInlinedObject(RawObject* raw);
538 540
539 ObjectStore* object_store() const { return object_store_; } 541 ObjectStore* object_store() const { return object_store_; }
540 542
541 Snapshot::Kind kind_; 543 Snapshot::Kind kind_;
542 ObjectStore* object_store_; // Object store for common classes. 544 ObjectStore* object_store_; // Object store for common classes.
543 ClassTable* class_table_; // Class table for the class index to class lookup. 545 ClassTable* class_table_; // Class table for the class index to class lookup.
544 GrowableArray<ForwardObjectNode*> forward_list_; 546 GrowableArray<ForwardObjectNode*> forward_list_;
545 547
(...skipping 28 matching lines...) Expand all
574 576
575 private: 577 private:
576 SnapshotWriter* writer_; 578 SnapshotWriter* writer_;
577 579
578 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 580 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
579 }; 581 };
580 582
581 } // namespace dart 583 } // namespace dart
582 584
583 #endif // VM_SNAPSHOT_H_ 585 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « vm/raw_object_snapshot.cc ('k') | vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698