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

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
« 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 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:
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_
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