| Index: src/heap/heap.h
|
| diff --git a/src/heap/heap.h b/src/heap/heap.h
|
| index 5d01e2a401999a24c2b5e08f44aa421b7e0d484a..89f1267002cedf4f589ae64f2063aca806cc1e86 100644
|
| --- a/src/heap/heap.h
|
| +++ b/src/heap/heap.h
|
| @@ -1644,10 +1644,8 @@ class Heap {
|
| static void ScavengeStoreBufferCallback(Heap* heap, MemoryChunk* page,
|
| StoreBufferEvent event);
|
|
|
| - // Selects the proper allocation space depending on the given object
|
| - // size and pretenuring decision.
|
| - static AllocationSpace SelectSpace(int object_size, PretenureFlag pretenure) {
|
| - if (object_size > Page::kMaxRegularHeapObjectSize) return LO_SPACE;
|
| + // Selects the proper allocation space based on the pretenuring decision.
|
| + static AllocationSpace SelectSpace(PretenureFlag pretenure) {
|
| return (pretenure == TENURED) ? OLD_SPACE : NEW_SPACE;
|
| }
|
|
|
|
|