| Index: test/cctest/test-spaces.cc
|
| diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc
|
| index a11485be1a14039d1b8d1ce9f7dec258f6b93b5f..19c1dd79145bf7a7879bce8c9140c67fae8a0d7c 100644
|
| --- a/test/cctest/test-spaces.cc
|
| +++ b/test/cctest/test-spaces.cc
|
| @@ -437,9 +437,10 @@ TEST(LargeObjectSpace) {
|
| TEST(SizeOfFirstPageIsLargeEnough) {
|
| if (i::FLAG_always_opt) return;
|
| // Bootstrapping without a snapshot causes more allocations.
|
| - if (!i::Snapshot::HaveASnapshotToStartFrom()) return;
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| + if (!isolate->snapshot_available()) return;
|
| + if (Snapshot::EmbedsScript(isolate)) return;
|
|
|
| // Freshly initialized VM gets by with one page per space.
|
| for (int i = FIRST_PAGED_SPACE; i <= LAST_PAGED_SPACE; i++) {
|
|
|