OLD | NEW |
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_OBJECT_STORE_H_ | 5 #ifndef VM_OBJECT_STORE_H_ |
6 #define VM_OBJECT_STORE_H_ | 6 #define VM_OBJECT_STORE_H_ |
7 | 7 |
8 #include "vm/object.h" | 8 #include "vm/object.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 } | 575 } |
576 RawObject** to_snapshot(Snapshot::Kind kind) { | 576 RawObject** to_snapshot(Snapshot::Kind kind) { |
577 switch (kind) { | 577 switch (kind) { |
578 case Snapshot::kCore: | 578 case Snapshot::kCore: |
579 return reinterpret_cast<RawObject**>(&compile_time_constants_); | 579 return reinterpret_cast<RawObject**>(&compile_time_constants_); |
580 case Snapshot::kAppWithJIT: | 580 case Snapshot::kAppWithJIT: |
581 case Snapshot::kAppNoJIT: | 581 case Snapshot::kAppNoJIT: |
582 return to(); | 582 return to(); |
583 case Snapshot::kScript: | 583 case Snapshot::kScript: |
584 case Snapshot::kMessage: | 584 case Snapshot::kMessage: |
| 585 case Snapshot::kNone: |
| 586 case Snapshot::kInvalid: |
585 break; | 587 break; |
586 } | 588 } |
587 UNREACHABLE(); | 589 UNREACHABLE(); |
588 return NULL; | 590 return NULL; |
589 } | 591 } |
590 | 592 |
591 friend class FullSnapshotWriter; | 593 friend class FullSnapshotWriter; |
592 friend class SnapshotReader; | 594 friend class SnapshotReader; |
593 friend class VmIsolateSnapshotReader; | 595 friend class VmIsolateSnapshotReader; |
594 | 596 |
595 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 597 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
596 }; | 598 }; |
597 | 599 |
598 } // namespace dart | 600 } // namespace dart |
599 | 601 |
600 #endif // VM_OBJECT_STORE_H_ | 602 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |