| Index: test/cctest/cctest.h
|
| diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h
|
| index bade26308f35694e55a935b4f8e2f5d045a5c36f..81bc7b22ee587ab37c93be1ba8d4c9373afca91e 100644
|
| --- a/test/cctest/cctest.h
|
| +++ b/test/cctest/cctest.h
|
| @@ -504,8 +504,8 @@ static inline void ExpectUndefined(const char* code) {
|
|
|
| // Helper function that simulates a full new-space in the heap.
|
| static inline bool FillUpOnePage(v8::internal::NewSpace* space) {
|
| - v8::internal::AllocationResult allocation =
|
| - space->AllocateRaw(v8::internal::Page::kMaxRegularHeapObjectSize);
|
| + v8::internal::AllocationResult allocation = space->AllocateRawUnaligned(
|
| + v8::internal::Page::kMaxRegularHeapObjectSize);
|
| if (allocation.IsRetry()) return false;
|
| v8::internal::HeapObject* free_space = NULL;
|
| CHECK(allocation.To(&free_space));
|
| @@ -524,7 +524,7 @@ static inline void AllocateAllButNBytes(v8::internal::NewSpace* space,
|
| int new_linear_size = space_remaining - extra_bytes;
|
| if (new_linear_size == 0) return;
|
| v8::internal::AllocationResult allocation =
|
| - space->AllocateRaw(new_linear_size);
|
| + space->AllocateRawUnaligned(new_linear_size);
|
| v8::internal::HeapObject* free_space = NULL;
|
| CHECK(allocation.To(&free_space));
|
| space->heap()->CreateFillerObjectAt(free_space->address(), new_linear_size);
|
|
|