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

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

Issue 2140333002: Collect TokenStreams into the vm isolate snapshot instead of Scripts. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | runtime/vm/clustered_snapshot.cc » ('j') | runtime/vm/clustered_snapshot.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_CLUSTERED_SNAPSHOT_H_ 5 #ifndef VM_CLUSTERED_SNAPSHOT_H_
6 #define VM_CLUSTERED_SNAPSHOT_H_ 6 #define VM_CLUSTERED_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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 435
436 Thread* thread_; 436 Thread* thread_;
437 Snapshot::Kind kind_; 437 Snapshot::Kind kind_;
438 uint8_t** vm_isolate_snapshot_buffer_; 438 uint8_t** vm_isolate_snapshot_buffer_;
439 uint8_t** isolate_snapshot_buffer_; 439 uint8_t** isolate_snapshot_buffer_;
440 ReAlloc alloc_; 440 ReAlloc alloc_;
441 intptr_t vm_isolate_snapshot_size_; 441 intptr_t vm_isolate_snapshot_size_;
442 intptr_t isolate_snapshot_size_; 442 intptr_t isolate_snapshot_size_;
443 ForwardList* forward_list_; 443 ForwardList* forward_list_;
444 InstructionsWriter* instructions_writer_; 444 InstructionsWriter* instructions_writer_;
445 Array& scripts_; 445 Array& token_streams_;
446 Array& saved_symbol_table_; 446 Array& saved_symbol_table_;
447 Array& new_vm_symbol_table_; 447 Array& new_vm_symbol_table_;
448 448
449 DISALLOW_COPY_AND_ASSIGN(FullSnapshotWriter); 449 DISALLOW_COPY_AND_ASSIGN(FullSnapshotWriter);
450 }; 450 };
451 451
452 452
453 class VmIsolateSnapshotReader { 453 class VmIsolateSnapshotReader {
454 public: 454 public:
455 VmIsolateSnapshotReader(Snapshot::Kind kind, 455 VmIsolateSnapshotReader(Snapshot::Kind kind,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 intptr_t size_; 511 intptr_t size_;
512 const uint8_t* instructions_buffer_; 512 const uint8_t* instructions_buffer_;
513 const uint8_t* data_buffer_; 513 const uint8_t* data_buffer_;
514 514
515 DISALLOW_COPY_AND_ASSIGN(IsolateSnapshotReader); 515 DISALLOW_COPY_AND_ASSIGN(IsolateSnapshotReader);
516 }; 516 };
517 517
518 } // namespace dart 518 } // namespace dart
519 519
520 #endif // VM_CLUSTERED_SNAPSHOT_H_ 520 #endif // VM_CLUSTERED_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/clustered_snapshot.cc » ('j') | runtime/vm/clustered_snapshot.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698