Index: test/cctest/test-spaces.cc |
diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc |
index f8ab94e9a74f582346fa2dbbcb6e33acb7ec37da..00620944002c0c533fca61c844ff81d66e932891 100644 |
--- a/test/cctest/test-spaces.cc |
+++ b/test/cctest/test-spaces.cc |
@@ -27,9 +27,11 @@ |
#include <stdlib.h> |
+#include "src/snapshot.h" |
#include "src/v8.h" |
#include "test/cctest/cctest.h" |
+ |
using namespace v8::internal; |
#if 0 |
@@ -405,6 +407,8 @@ 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(); |