Revision: 17341
Author:   [email protected]
Date:     Wed Oct 23 12:49:27 2013 UTC
Log: Use common allocation choke point in Heap::AllocateConstantPoolArray.

[email protected]

Review URL: https://codereview.chromium.org/37003003
http://code.google.com/p/v8/source/detail?r=17341

Modified:
 /branches/bleeding_edge/src/heap.cc

=======================================
--- /branches/bleeding_edge/src/heap.cc Mon Oct 21 13:55:24 2013 UTC
+++ /branches/bleeding_edge/src/heap.cc Wed Oct 23 12:49:27 2013 UTC
@@ -5520,9 +5520,10 @@
 #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<HeapObject>(&object)) return maybe_object;
   }
   object = EnsureDoubleAligned(this, object, size);

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to