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

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

Issue 2580823003: Rename snapshot kind enum values kAppWithJIT -> kAppJIT, kAppNoJIT -> kAppAOT. (Closed)
Patch Set: Created 4 years 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/object.cc ('k') | runtime/vm/pages.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 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
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_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698