From: yangguo@chromium.org Date: Tue, 1 Jul 2014 11:54:57 +0000 (+0000) Subject: Disable test-spaces/SizeOfFirstPageIsLargeEnough for snapshot=off build. X-Git-Tag: upstream/4.7.83~8455 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e4fb07c24640b4a4e785703869cba9eb51466b3;p=platform%2Fupstream%2Fv8.git Disable test-spaces/SizeOfFirstPageIsLargeEnough for snapshot=off build. 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 --- diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc index f8ab94e..0062094 100644 --- a/test/cctest/test-spaces.cc +++ b/test/cctest/test-spaces.cc @@ -27,9 +27,11 @@ #include +#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();