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

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

Issue 2902313004: CoreJIT snapshots without training. (Closed)
Patch Set: . Created 3 years, 6 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 #include "vm/snapshot.h" 5 #include "vm/snapshot.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/bootstrap.h" 8 #include "vm/bootstrap.h"
9 #include "vm/class_finalizer.h" 9 #include "vm/class_finalizer.h"
10 #include "vm/dart.h" 10 #include "vm/dart.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 return kStringType; 138 return kStringType;
139 } else if (raw_type == object_store->array_type()) { 139 } else if (raw_type == object_store->array_type()) {
140 return kArrayType; 140 return kArrayType;
141 } 141 }
142 return kInvalidIndex; 142 return kInvalidIndex;
143 } 143 }
144 144
145 145
146 const char* Snapshot::KindToCString(Kind kind) { 146 const char* Snapshot::KindToCString(Kind kind) {
147 switch (kind) { 147 switch (kind) {
148 case kCore: 148 case kFull:
149 return "core"; 149 return "full";
150 case kScript: 150 case kScript:
151 return "script"; 151 return "script";
152 case kMessage: 152 case kMessage:
153 return "message"; 153 return "message";
154 case kAppJIT: 154 case kFullJIT:
155 return "app-jit"; 155 return "full-jit";
156 case kAppAOT: 156 case kFullAOT:
157 return "app-aot"; 157 return "full-aot";
158 case kNone: 158 case kNone:
159 return "none"; 159 return "none";
160 case kInvalid: 160 case kInvalid:
161 default: 161 default:
162 return "invalid"; 162 return "invalid";
163 } 163 }
164 } 164 }
165 165
166 166
167 // TODO(5411462): Temporary setup of snapshot for testing purposes, 167 // TODO(5411462): Temporary setup of snapshot for testing purposes,
(...skipping 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after
2010 *buffer_len_ = BytesWritten(); 2010 *buffer_len_ = BytesWritten();
2011 } 2011 }
2012 } else { 2012 } else {
2013 FreeBuffer(); 2013 FreeBuffer();
2014 ThrowException(exception_type(), exception_msg()); 2014 ThrowException(exception_type(), exception_msg());
2015 } 2015 }
2016 } 2016 }
2017 2017
2018 2018
2019 } // namespace dart 2019 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698