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

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

Issue 1221503004: Reclaim the CreatedFromSnapshot bit and use it to indicate VM Heap object (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address-code-review-comments Created 5 years, 4 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
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 const Array& result, 443 const Array& result,
444 intptr_t len, 444 intptr_t len,
445 intptr_t tags); 445 intptr_t tags);
446 446
447 intptr_t NextAvailableObjectId() const; 447 intptr_t NextAvailableObjectId() const;
448 448
449 void SetReadException(const char* msg); 449 void SetReadException(const char* msg);
450 450
451 RawObject* VmIsolateSnapshotObject(intptr_t index) const; 451 RawObject* VmIsolateSnapshotObject(intptr_t index) const;
452 452
453 bool is_vm_isolate() const;
454
453 Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message). 455 Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message).
454 Isolate* isolate_; // Current isolate. 456 Isolate* isolate_; // Current isolate.
455 Zone* zone_; // Zone for allocations while reading snapshot. 457 Zone* zone_; // Zone for allocations while reading snapshot.
456 Heap* heap_; // Heap of the current isolate. 458 Heap* heap_; // Heap of the current isolate.
457 PageSpace* old_space_; // Old space of the current isolate. 459 PageSpace* old_space_; // Old space of the current isolate.
458 Class& cls_; // Temporary Class handle. 460 Class& cls_; // Temporary Class handle.
459 Object& obj_; // Temporary Object handle. 461 Object& obj_; // Temporary Object handle.
460 PassiveObject& pobj_; // Temporary PassiveObject handle. 462 PassiveObject& pobj_; // Temporary PassiveObject handle.
461 Array& array_; // Temporary Array handle. 463 Array& array_; // Temporary Array handle.
462 Field& field_; // Temporary Field handle. 464 Field& field_; // Temporary Field handle.
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 private: 934 private:
933 SnapshotWriter* writer_; 935 SnapshotWriter* writer_;
934 bool as_references_; 936 bool as_references_;
935 937
936 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 938 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
937 }; 939 };
938 940
939 } // namespace dart 941 } // namespace dart
940 942
941 #endif // VM_SNAPSHOT_H_ 943 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698