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

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

Issue 1938653002: JIT precompilated snapshots. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
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 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
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:
585 break; 586 break;
586 } 587 }
587 UNREACHABLE(); 588 UNREACHABLE();
588 return NULL; 589 return NULL;
589 } 590 }
590 591
591 friend class FullSnapshotWriter; 592 friend class FullSnapshotWriter;
592 friend class SnapshotReader; 593 friend class SnapshotReader;
593 friend class VmIsolateSnapshotReader; 594 friend class VmIsolateSnapshotReader;
594 595
595 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 596 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
596 }; 597 };
597 598
598 } // namespace dart 599 } // namespace dart
599 600
600 #endif // VM_OBJECT_STORE_H_ 601 #endif // VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698