Disable test-spaces/SizeOfFirstPageIsLargeEnough for snapshot=off build.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 1 Jul 2014 11:54:57 +0000 (11:54 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 1 Jul 2014 11:54:57 +0000 (11:54 +0000)
R=hpayer@chromium.org

Review URL: https://codereview.chromium.org/368583002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22114 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

test/cctest/test-spaces.cc

index f8ab94e..0062094 100644 (file)
 
 #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();