Index: runtime/vm/pages.cc |
diff --git a/runtime/vm/pages.cc b/runtime/vm/pages.cc |
index 05e01fb50351c09b16deeaa91856945d8ae51dc4..64b1d5e91f7d342c85cc9622fba2cd1d72c9db40 100644 |
--- a/runtime/vm/pages.cc |
+++ b/runtime/vm/pages.cc |
@@ -211,7 +211,7 @@ HeapPage* PageSpace::AllocatePage(HeapPage::PageType type) { |
} else { |
// Should not allocate executable pages when running from a precompiled |
// snapshot. |
- ASSERT(!Dart::IsRunningPrecompiledCode()); |
+ ASSERT(Dart::snapshot_kind() != Snapshot::kAppNoJIT); |
if (exec_pages_ == NULL) { |
exec_pages_ = page; |