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

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

Issue 672183002: Simplify SnapshotReader::LookupInternalClass. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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 | « no previous file | 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 // Read a VM isolate object that was serialized as an Id. 354 // Read a VM isolate object that was serialized as an Id.
355 RawObject* ReadVMIsolateObject(intptr_t object_id); 355 RawObject* ReadVMIsolateObject(intptr_t object_id);
356 356
357 // Read an object that was serialized as an Id (singleton in object store, 357 // Read an object that was serialized as an Id (singleton in object store,
358 // or an object that was already serialized before). 358 // or an object that was already serialized before).
359 RawObject* ReadIndexedObject(intptr_t object_id); 359 RawObject* ReadIndexedObject(intptr_t object_id);
360 360
361 // Read an inlined object from the stream. 361 // Read an inlined object from the stream.
362 RawObject* ReadInlinedObject(intptr_t object_id); 362 RawObject* ReadInlinedObject(intptr_t object_id);
363 363
364 // Based on header field check to see if it is an internal VM class. 364 // Decode class id from the header field.
365 RawClass* LookupInternalClass(intptr_t class_header); 365 intptr_t LookupInternalClass(intptr_t class_header);
366 366
367 void ArrayReadFrom(const Array& result, intptr_t len, intptr_t tags); 367 void ArrayReadFrom(const Array& result, intptr_t len, intptr_t tags);
368 368
369 intptr_t NextAvailableObjectId() const; 369 intptr_t NextAvailableObjectId() const;
370 370
371 Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message). 371 Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message).
372 Isolate* isolate_; // Current isolate. 372 Isolate* isolate_; // Current isolate.
373 Heap* heap_; // Heap of the current isolate. 373 Heap* heap_; // Heap of the current isolate.
374 PageSpace* old_space_; // Old space of the current isolate. 374 PageSpace* old_space_; // Old space of the current isolate.
375 Class& cls_; // Temporary Class handle. 375 Class& cls_; // Temporary Class handle.
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 private: 727 private:
728 SnapshotWriter* writer_; 728 SnapshotWriter* writer_;
729 bool as_references_; 729 bool as_references_;
730 730
731 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 731 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
732 }; 732 };
733 733
734 } // namespace dart 734 } // namespace dart
735 735
736 #endif // VM_SNAPSHOT_H_ 736 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698