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

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

Issue 2669543003: Use the app snapshot when testing with -cdartk. (Closed)
Patch Set: . Created 3 years, 10 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 RUNTIME_VM_SNAPSHOT_H_ 5 #ifndef RUNTIME_VM_SNAPSHOT_H_
6 #define RUNTIME_VM_SNAPSHOT_H_ 6 #define RUNTIME_VM_SNAPSHOT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/bitfield.h" 10 #include "vm/bitfield.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 Kind kind() const { 182 Kind kind() const {
183 return static_cast<Kind>(ReadUnaligned(&unaligned_kind_)); 183 return static_cast<Kind>(ReadUnaligned(&unaligned_kind_));
184 } 184 }
185 185
186 static bool IsFull(Kind kind) { 186 static bool IsFull(Kind kind) {
187 return (kind == kCore) || (kind == kAppJIT) || (kind == kAppAOT); 187 return (kind == kCore) || (kind == kAppJIT) || (kind == kAppAOT);
188 } 188 }
189 static bool IncludesCode(Kind kind) { 189 static bool IncludesCode(Kind kind) {
190 return (kind == kAppJIT) || (kind == kAppAOT); 190 return (kind == kAppJIT) || (kind == kAppAOT);
191 } 191 }
192 static const char* FeaturesString(Kind kind);
192 193
193 const uint8_t* Addr() const { return reinterpret_cast<const uint8_t*>(this); } 194 const uint8_t* Addr() const { return reinterpret_cast<const uint8_t*>(this); }
194 195
195 static intptr_t length_offset() { 196 static intptr_t length_offset() {
196 return OFFSET_OF(Snapshot, unaligned_length_); 197 return OFFSET_OF(Snapshot, unaligned_length_);
197 } 198 }
198 static intptr_t kind_offset() { return OFFSET_OF(Snapshot, unaligned_kind_); } 199 static intptr_t kind_offset() { return OFFSET_OF(Snapshot, unaligned_kind_); }
199 200
200 private: 201 private:
201 // Prevent Snapshot from ever being allocated directly. 202 // Prevent Snapshot from ever being allocated directly.
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 private: 1012 private:
1012 SnapshotWriter* writer_; 1013 SnapshotWriter* writer_;
1013 bool as_references_; 1014 bool as_references_;
1014 1015
1015 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 1016 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
1016 }; 1017 };
1017 1018
1018 } // namespace dart 1019 } // namespace dart
1019 1020
1020 #endif // RUNTIME_VM_SNAPSHOT_H_ 1021 #endif // RUNTIME_VM_SNAPSHOT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698