Reviewers: Hannes Payer,
Description:
Use common allocation choke point in Heap::AllocateConstantPoolArray.
[email protected]
Please review this at https://codereview.chromium.org/37003003/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+2, -1 lines):
M src/heap.cc
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index
fd5504ffe27a5fa347a8024e17ea72c3d3793273..2e460487c75468ba5f629a3f8d39ee0684bdcf9e
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<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.