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

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

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_store.h ('k') | runtime/vm/precompiler.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 #include "vm/pages.h" 5 #include "vm/pages.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/compiler_stats.h" 8 #include "vm/compiler_stats.h"
9 #include "vm/gc_marker.h" 9 #include "vm/gc_marker.h"
10 #include "vm/gc_sweeper.h" 10 #include "vm/gc_sweeper.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 if (!is_exec) { 220 if (!is_exec) {
221 if (pages_ == NULL) { 221 if (pages_ == NULL) {
222 pages_ = page; 222 pages_ = page;
223 } else { 223 } else {
224 pages_tail_->set_next(page); 224 pages_tail_->set_next(page);
225 } 225 }
226 pages_tail_ = page; 226 pages_tail_ = page;
227 } else { 227 } else {
228 // Should not allocate executable pages when running from a precompiled 228 // Should not allocate executable pages when running from a precompiled
229 // snapshot. 229 // snapshot.
230 ASSERT(Dart::snapshot_kind() != Snapshot::kAppNoJIT); 230 ASSERT(Dart::snapshot_kind() != Snapshot::kAppAOT);
231 231
232 if (exec_pages_ == NULL) { 232 if (exec_pages_ == NULL) {
233 exec_pages_ = page; 233 exec_pages_ = page;
234 } else { 234 } else {
235 if (FLAG_write_protect_code) { 235 if (FLAG_write_protect_code) {
236 exec_pages_tail_->WriteProtect(false); 236 exec_pages_tail_->WriteProtect(false);
237 } 237 }
238 exec_pages_tail_->set_next(page); 238 exec_pages_tail_->set_next(page);
239 if (FLAG_write_protect_code) { 239 if (FLAG_write_protect_code) {
240 exec_pages_tail_->WriteProtect(true); 240 exec_pages_tail_->WriteProtect(true);
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 return 0; 1261 return 0;
1262 } else { 1262 } else {
1263 ASSERT(total_time >= gc_time); 1263 ASSERT(total_time >= gc_time);
1264 int result = static_cast<int>( 1264 int result = static_cast<int>(
1265 (static_cast<double>(gc_time) / static_cast<double>(total_time)) * 100); 1265 (static_cast<double>(gc_time) / static_cast<double>(total_time)) * 100);
1266 return result; 1266 return result;
1267 } 1267 }
1268 } 1268 }
1269 1269
1270 } // namespace dart 1270 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object_store.h ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698