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 RUNTIME_VM_OBJECT_STORE_H_ | 5 #ifndef RUNTIME_VM_OBJECT_STORE_H_ |
6 #define RUNTIME_VM_OBJECT_STORE_H_ | 6 #define RUNTIME_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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 #define DECLARE_OBJECT_STORE_FIELD(type, name) type name; | 553 #define DECLARE_OBJECT_STORE_FIELD(type, name) type name; |
554 OBJECT_STORE_FIELD_LIST(DECLARE_OBJECT_STORE_FIELD) | 554 OBJECT_STORE_FIELD_LIST(DECLARE_OBJECT_STORE_FIELD) |
555 #undef DECLARE_OBJECT_STORE_FIELD | 555 #undef DECLARE_OBJECT_STORE_FIELD |
556 RawObject** to() { | 556 RawObject** to() { |
557 return reinterpret_cast<RawObject**>(&megamorphic_miss_function_); | 557 return reinterpret_cast<RawObject**>(&megamorphic_miss_function_); |
558 } | 558 } |
559 RawObject** to_snapshot(Snapshot::Kind kind) { | 559 RawObject** to_snapshot(Snapshot::Kind kind) { |
560 switch (kind) { | 560 switch (kind) { |
561 case Snapshot::kCore: | 561 case Snapshot::kCore: |
562 return reinterpret_cast<RawObject**>(&library_load_error_table_); | 562 return reinterpret_cast<RawObject**>(&library_load_error_table_); |
563 case Snapshot::kAppWithJIT: | 563 case Snapshot::kAppJIT: |
564 case Snapshot::kAppNoJIT: | 564 case Snapshot::kAppAOT: |
565 return to(); | 565 return to(); |
566 case Snapshot::kScript: | 566 case Snapshot::kScript: |
567 case Snapshot::kMessage: | 567 case Snapshot::kMessage: |
568 case Snapshot::kNone: | 568 case Snapshot::kNone: |
569 case Snapshot::kInvalid: | 569 case Snapshot::kInvalid: |
570 break; | 570 break; |
571 } | 571 } |
572 UNREACHABLE(); | 572 UNREACHABLE(); |
573 return NULL; | 573 return NULL; |
574 } | 574 } |
575 | 575 |
576 friend class Serializer; | 576 friend class Serializer; |
577 friend class Deserializer; | 577 friend class Deserializer; |
578 | 578 |
579 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 579 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
580 }; | 580 }; |
581 | 581 |
582 } // namespace dart | 582 } // namespace dart |
583 | 583 |
584 #endif // RUNTIME_VM_OBJECT_STORE_H_ | 584 #endif // RUNTIME_VM_OBJECT_STORE_H_ |
OLD | NEW |