OLD | NEW |
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 RUNTIME_VM_CLUSTERED_SNAPSHOT_H_ | 5 #ifndef RUNTIME_VM_CLUSTERED_SNAPSHOT_H_ |
6 #define RUNTIME_VM_CLUSTERED_SNAPSHOT_H_ | 6 #define RUNTIME_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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 } | 353 } |
354 | 354 |
355 RawInstructions* GetInstructionsAt(int32_t offset) { | 355 RawInstructions* GetInstructionsAt(int32_t offset) { |
356 return instructions_reader_->GetInstructionsAt(offset); | 356 return instructions_reader_->GetInstructionsAt(offset); |
357 } | 357 } |
358 | 358 |
359 RawObject* GetObjectAt(int32_t offset) { | 359 RawObject* GetObjectAt(int32_t offset) { |
360 return instructions_reader_->GetObjectAt(offset); | 360 return instructions_reader_->GetObjectAt(offset); |
361 } | 361 } |
362 | 362 |
363 RawApiError* VerifyVersionAndFeatures(); | 363 RawApiError* VerifyVersionAndFeatures(Isolate* isolate); |
364 | 364 |
365 void Prepare(); | 365 void Prepare(); |
366 void Deserialize(); | 366 void Deserialize(); |
367 | 367 |
368 DeserializationCluster* ReadCluster(); | 368 DeserializationCluster* ReadCluster(); |
369 | 369 |
370 intptr_t next_index() const { return next_ref_index_; } | 370 intptr_t next_index() const { return next_ref_index_; } |
371 Heap* heap() const { return heap_; } | 371 Heap* heap() const { return heap_; } |
372 Snapshot::Kind kind() const { return kind_; } | 372 Snapshot::Kind kind() const { return kind_; } |
373 | 373 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 intptr_t size_; | 461 intptr_t size_; |
462 const uint8_t* instructions_buffer_; | 462 const uint8_t* instructions_buffer_; |
463 const uint8_t* data_buffer_; | 463 const uint8_t* data_buffer_; |
464 | 464 |
465 DISALLOW_COPY_AND_ASSIGN(FullSnapshotReader); | 465 DISALLOW_COPY_AND_ASSIGN(FullSnapshotReader); |
466 }; | 466 }; |
467 | 467 |
468 } // namespace dart | 468 } // namespace dart |
469 | 469 |
470 #endif // RUNTIME_VM_CLUSTERED_SNAPSHOT_H_ | 470 #endif // RUNTIME_VM_CLUSTERED_SNAPSHOT_H_ |
OLD | NEW |