Index: test/cctest/test-serialize.cc |
=================================================================== |
--- test/cctest/test-serialize.cc (revision 5696) |
+++ test/cctest/test-serialize.cc (working copy) |
@@ -576,7 +576,8 @@ |
for (int i = 0; |
i + kSmallFixedArraySize <= new_space_size; |
i += kSmallFixedArraySize) { |
- Object* obj = Heap::AllocateFixedArray(kSmallFixedArrayLength); |
+ Object* obj = |
+ Heap::AllocateFixedArray(kSmallFixedArrayLength)->ToObjectChecked(); |
if (new_last != NULL) { |
CHECK(reinterpret_cast<char*>(obj) == |
reinterpret_cast<char*>(new_last) + kSmallFixedArraySize); |
@@ -588,7 +589,8 @@ |
for (int i = 0; |
i + kSmallFixedArraySize <= size; |
i += kSmallFixedArraySize) { |
- Object* obj = Heap::AllocateFixedArray(kSmallFixedArrayLength, TENURED); |
+ Object* obj = Heap::AllocateFixedArray(kSmallFixedArrayLength, |
+ TENURED)->ToObjectChecked(); |
int old_page_fullness = i % Page::kPageSize; |
int page_fullness = (i + kSmallFixedArraySize) % Page::kPageSize; |
if (page_fullness < old_page_fullness || |
@@ -605,7 +607,8 @@ |
Object* data_last = NULL; |
for (int i = 0; i + kSmallStringSize <= size; i += kSmallStringSize) { |
- Object* obj = Heap::AllocateRawAsciiString(kSmallStringLength, TENURED); |
+ Object* obj = Heap::AllocateRawAsciiString(kSmallStringLength, |
+ TENURED)->ToObjectChecked(); |
int old_page_fullness = i % Page::kPageSize; |
int page_fullness = (i + kSmallStringSize) % Page::kPageSize; |
if (page_fullness < old_page_fullness || |
@@ -622,7 +625,8 @@ |
Object* map_last = NULL; |
for (int i = 0; i + kMapSize <= size; i += kMapSize) { |
- Object* obj = Heap::AllocateMap(JS_OBJECT_TYPE, 42 * kPointerSize); |
+ Object* obj = Heap::AllocateMap(JS_OBJECT_TYPE, |
+ 42 * kPointerSize)->ToObjectChecked(); |
int old_page_fullness = i % Page::kPageSize; |
int page_fullness = (i + kMapSize) % Page::kPageSize; |
if (page_fullness < old_page_fullness || |
@@ -644,7 +648,7 @@ |
int large_object_array_length = |
(size - FixedArray::kHeaderSize) / kPointerSize; |
Object* obj = Heap::AllocateFixedArray(large_object_array_length, |
- TENURED); |
+ TENURED)->ToObjectChecked(); |
CHECK(!obj->IsFailure()); |
} |
} |