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

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

Issue 510613002: Add passive handle types PassiveObject and PassiveInstance to allow (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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 | « 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 10 matching lines...) Expand all
21 class AbstractType; 21 class AbstractType;
22 class Array; 22 class Array;
23 class Class; 23 class Class;
24 class ClassTable; 24 class ClassTable;
25 class ExternalTypedData; 25 class ExternalTypedData;
26 class GrowableObjectArray; 26 class GrowableObjectArray;
27 class Heap; 27 class Heap;
28 class LanguageError; 28 class LanguageError;
29 class Library; 29 class Library;
30 class Object; 30 class Object;
31 class PassiveObject;
31 class ObjectStore; 32 class ObjectStore;
32 class PageSpace; 33 class PageSpace;
33 class RawApiError; 34 class RawApiError;
34 class RawArray; 35 class RawArray;
35 class RawBigint; 36 class RawBigint;
36 class RawBoundedType; 37 class RawBoundedType;
37 class RawCapability; 38 class RawCapability;
38 class RawClass; 39 class RawClass;
39 class RawClosureData; 40 class RawClosureData;
40 class RawContext; 41 class RawContext;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 SnapshotReader(const uint8_t* buffer, 246 SnapshotReader(const uint8_t* buffer,
246 intptr_t size, 247 intptr_t size,
247 Snapshot::Kind kind, 248 Snapshot::Kind kind,
248 Isolate* isolate); 249 Isolate* isolate);
249 ~SnapshotReader() { } 250 ~SnapshotReader() { }
250 251
251 Isolate* isolate() const { return isolate_; } 252 Isolate* isolate() const { return isolate_; }
252 Heap* heap() const { return heap_; } 253 Heap* heap() const { return heap_; }
253 ObjectStore* object_store() const { return isolate_->object_store(); } 254 ObjectStore* object_store() const { return isolate_->object_store(); }
254 ClassTable* class_table() const { return isolate_->class_table(); } 255 ClassTable* class_table() const { return isolate_->class_table(); }
255 Object* ObjectHandle() { return &obj_; } 256 PassiveObject* PassiveObjectHandle() { return &pobj_; }
256 Array* ArrayHandle() { return &array_; } 257 Array* ArrayHandle() { return &array_; }
257 String* StringHandle() { return &str_; } 258 String* StringHandle() { return &str_; }
258 AbstractType* TypeHandle() { return &type_; } 259 AbstractType* TypeHandle() { return &type_; }
259 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; } 260 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; }
260 Array* TokensHandle() { return &tokens_; } 261 Array* TokensHandle() { return &tokens_; }
261 TokenStream* StreamHandle() { return &stream_; } 262 TokenStream* StreamHandle() { return &stream_; }
262 ExternalTypedData* DataHandle() { return &data_; } 263 ExternalTypedData* DataHandle() { return &data_; }
263 264
264 // Reads an object. 265 // Reads an object.
265 RawObject* ReadObject(); 266 RawObject* ReadObject();
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 void ArrayReadFrom(const Array& result, intptr_t len, intptr_t tags); 362 void ArrayReadFrom(const Array& result, intptr_t len, intptr_t tags);
362 363
363 intptr_t NextAvailableObjectId() const; 364 intptr_t NextAvailableObjectId() const;
364 365
365 Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message). 366 Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message).
366 Isolate* isolate_; // Current isolate. 367 Isolate* isolate_; // Current isolate.
367 Heap* heap_; // Heap of the current isolate. 368 Heap* heap_; // Heap of the current isolate.
368 PageSpace* old_space_; // Old space of the current isolate. 369 PageSpace* old_space_; // Old space of the current isolate.
369 Class& cls_; // Temporary Class handle. 370 Class& cls_; // Temporary Class handle.
370 Object& obj_; // Temporary Object handle. 371 Object& obj_; // Temporary Object handle.
372 PassiveObject& pobj_; // Temporary PassiveObject handle.
371 Array& array_; // Temporary Array handle. 373 Array& array_; // Temporary Array handle.
372 Field& field_; // Temporary Field handle. 374 Field& field_; // Temporary Field handle.
373 String& str_; // Temporary String handle. 375 String& str_; // Temporary String handle.
374 Library& library_; // Temporary library handle. 376 Library& library_; // Temporary library handle.
375 AbstractType& type_; // Temporary type handle. 377 AbstractType& type_; // Temporary type handle.
376 TypeArguments& type_arguments_; // Temporary type argument handle. 378 TypeArguments& type_arguments_; // Temporary type argument handle.
377 Array& tokens_; // Temporary tokens handle. 379 Array& tokens_; // Temporary tokens handle.
378 TokenStream& stream_; // Temporary token stream handle. 380 TokenStream& stream_; // Temporary token stream handle.
379 ExternalTypedData& data_; // Temporary stream data handle. 381 ExternalTypedData& data_; // Temporary stream data handle.
380 UnhandledException& error_; // Error handle. 382 UnhandledException& error_; // Error handle.
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 private: 722 private:
721 SnapshotWriter* writer_; 723 SnapshotWriter* writer_;
722 bool as_references_; 724 bool as_references_;
723 725
724 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 726 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
725 }; 727 };
726 728
727 } // namespace dart 729 } // namespace dart
728 730
729 #endif // VM_SNAPSHOT_H_ 731 #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