diff options
Diffstat (limited to 'deps/v8/test/cctest/heap/test-alloc.cc')
-rw-r--r-- | deps/v8/test/cctest/heap/test-alloc.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/deps/v8/test/cctest/heap/test-alloc.cc b/deps/v8/test/cctest/heap/test-alloc.cc index c01827eee1..d7031e876d 100644 --- a/deps/v8/test/cctest/heap/test-alloc.cc +++ b/deps/v8/test/cctest/heap/test-alloc.cc @@ -60,10 +60,12 @@ AllocationResult v8::internal::HeapTester::AllocateAfterFailures() { heap->AllocateFixedArray(10000, TENURED).ToObjectChecked(); // Large object space. - static const int kLargeObjectSpaceFillerLength = 3 * (Page::kPageSize / 10); - static const int kLargeObjectSpaceFillerSize = FixedArray::SizeFor( - kLargeObjectSpaceFillerLength); - CHECK(kLargeObjectSpaceFillerSize > heap->old_space()->AreaSize()); + static const size_t kLargeObjectSpaceFillerLength = + 3 * (Page::kPageSize / 10); + static const size_t kLargeObjectSpaceFillerSize = + FixedArray::SizeFor(kLargeObjectSpaceFillerLength); + CHECK_GT(kLargeObjectSpaceFillerSize, + static_cast<size_t>(heap->old_space()->AreaSize())); while (heap->OldGenerationSpaceAvailable() > kLargeObjectSpaceFillerSize) { heap->AllocateFixedArray( kLargeObjectSpaceFillerLength, TENURED).ToObjectChecked(); @@ -116,11 +118,8 @@ void TestGetter( v8::internal::HeapTester::TestAllocateAfterFailures())); } - -void TestSetter( - v8::Local<v8::Name> name, - v8::Local<v8::Value> value, - const v8::PropertyCallbackInfo<void>& info) { +void TestSetter(v8::Local<v8::Name> name, v8::Local<v8::Value> value, + const v8::PropertyCallbackInfo<v8::Boolean>& info) { UNREACHABLE(); } |