From 6dd69355a9073a6e3721b357c29e197c4f845dd2 Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Wed, 23 Oct 2013 12:49:27 +0000 Subject: [PATCH] Use common allocation choke point in Heap::AllocateConstantPoolArray. R=hpayer@chromium.org Review URL: https://codereview.chromium.org/37003003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17341 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/heap.cc b/src/heap.cc index fd5504ffe2..2e460487c7 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -5520,9 +5520,10 @@ MaybeObject* Heap::AllocateConstantPoolArray(int number_of_int64_entries, #ifndef V8_HOST_ARCH_64_BIT size += kPointerSize; #endif + AllocationSpace space = SelectSpace(size, OLD_POINTER_SPACE, TENURED); HeapObject* object; - { MaybeObject* maybe_object = old_pointer_space_->AllocateRaw(size); + { MaybeObject* maybe_object = AllocateRaw(size, space, OLD_POINTER_SPACE); if (!maybe_object->To(&object)) return maybe_object; } object = EnsureDoubleAligned(this, object, size);