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

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

Issue 1420103006: Shared token objects (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: catch up Created 5 years, 1 month 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.h ('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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 Zone* zone() const { return zone_; } 355 Zone* zone() const { return zone_; }
356 Isolate* isolate() const { return thread_->isolate(); } 356 Isolate* isolate() const { return thread_->isolate(); }
357 Heap* heap() const { return heap_; } 357 Heap* heap() const { return heap_; }
358 ObjectStore* object_store() const { return isolate()->object_store(); } 358 ObjectStore* object_store() const { return isolate()->object_store(); }
359 ClassTable* class_table() const { return isolate()->class_table(); } 359 ClassTable* class_table() const { return isolate()->class_table(); }
360 PassiveObject* PassiveObjectHandle() { return &pobj_; } 360 PassiveObject* PassiveObjectHandle() { return &pobj_; }
361 Array* ArrayHandle() { return &array_; } 361 Array* ArrayHandle() { return &array_; }
362 String* StringHandle() { return &str_; } 362 String* StringHandle() { return &str_; }
363 AbstractType* TypeHandle() { return &type_; } 363 AbstractType* TypeHandle() { return &type_; }
364 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; } 364 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; }
365 Array* TokensHandle() { return &tokens_; } 365 GrowableObjectArray* TokensHandle() { return &tokens_; }
366 TokenStream* StreamHandle() { return &stream_; } 366 TokenStream* StreamHandle() { return &stream_; }
367 ExternalTypedData* DataHandle() { return &data_; } 367 ExternalTypedData* DataHandle() { return &data_; }
368 TypedData* TypedDataHandle() { return &typed_data_; } 368 TypedData* TypedDataHandle() { return &typed_data_; }
369 Code* CodeHandle() { return &code_; } 369 Code* CodeHandle() { return &code_; }
370 Function* FunctionHandle() { return &function_; } 370 Function* FunctionHandle() { return &function_; }
371 MegamorphicCache* MegamorphicCacheHandle() { return &megamorphic_cache_; } 371 MegamorphicCache* MegamorphicCacheHandle() { return &megamorphic_cache_; }
372 Snapshot::Kind kind() const { return kind_; } 372 Snapshot::Kind kind() const { return kind_; }
373 bool snapshot_code() const { return snapshot_code_; } 373 bool snapshot_code() const { return snapshot_code_; }
374 374
375 // Reads an object. 375 // Reads an object.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 PageSpace* old_space_; // Old space of the current isolate. 532 PageSpace* old_space_; // Old space of the current isolate.
533 Class& cls_; // Temporary Class handle. 533 Class& cls_; // Temporary Class handle.
534 Object& obj_; // Temporary Object handle. 534 Object& obj_; // Temporary Object handle.
535 PassiveObject& pobj_; // Temporary PassiveObject handle. 535 PassiveObject& pobj_; // Temporary PassiveObject handle.
536 Array& array_; // Temporary Array handle. 536 Array& array_; // Temporary Array handle.
537 Field& field_; // Temporary Field handle. 537 Field& field_; // Temporary Field handle.
538 String& str_; // Temporary String handle. 538 String& str_; // Temporary String handle.
539 Library& library_; // Temporary library handle. 539 Library& library_; // Temporary library handle.
540 AbstractType& type_; // Temporary type handle. 540 AbstractType& type_; // Temporary type handle.
541 TypeArguments& type_arguments_; // Temporary type argument handle. 541 TypeArguments& type_arguments_; // Temporary type argument handle.
542 Array& tokens_; // Temporary tokens handle. 542 GrowableObjectArray& tokens_; // Temporary tokens handle.
543 TokenStream& stream_; // Temporary token stream handle. 543 TokenStream& stream_; // Temporary token stream handle.
544 ExternalTypedData& data_; // Temporary stream data handle. 544 ExternalTypedData& data_; // Temporary stream data handle.
545 TypedData& typed_data_; // Temporary typed data handle. 545 TypedData& typed_data_; // Temporary typed data handle.
546 Code& code_; // Temporary code handle. 546 Code& code_; // Temporary code handle.
547 Function& function_; // Temporary function handle. 547 Function& function_; // Temporary function handle.
548 MegamorphicCache& megamorphic_cache_; // Temporary megamorphic cache handle. 548 MegamorphicCache& megamorphic_cache_; // Temporary megamorphic cache handle.
549 UnhandledException& error_; // Error handle. 549 UnhandledException& error_; // Error handle.
550 intptr_t max_vm_isolate_object_id_; 550 intptr_t max_vm_isolate_object_id_;
551 ZoneGrowableArray<BackRefNode>* backward_references_; 551 ZoneGrowableArray<BackRefNode>* backward_references_;
552 InstructionsReader* instructions_reader_; 552 InstructionsReader* instructions_reader_;
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 private: 1121 private:
1122 SnapshotWriter* writer_; 1122 SnapshotWriter* writer_;
1123 bool as_references_; 1123 bool as_references_;
1124 1124
1125 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 1125 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
1126 }; 1126 };
1127 1127
1128 } // namespace dart 1128 } // namespace dart
1129 1129
1130 #endif // VM_SNAPSHOT_H_ 1130 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698