Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index a6455e51ec6d74bd8921850a532c8aef81c466b8..478aca73e36079fb40c0b1bd3ff52e016b4269d6 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -66,6 +66,7 @@ inline Heap* _inline_get_heap_(); |
V(Map, global_context_map, GlobalContextMap) \ |
V(Map, fixed_array_map, FixedArrayMap) \ |
V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ |
+ V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ |
V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ |
V(Map, meta_map, MetaMap) \ |
V(Map, hash_table_map, HashTableMap) \ |
@@ -78,6 +79,7 @@ inline Heap* _inline_get_heap_(); |
V(Object, termination_exception, TerminationException) \ |
V(FixedArray, empty_fixed_array, EmptyFixedArray) \ |
V(ByteArray, empty_byte_array, EmptyByteArray) \ |
+ V(FixedDoubleArray, empty_fixed_double_array, EmptyFixedDoubleArray) \ |
V(String, empty_string, EmptyString) \ |
V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ |
V(Map, string_map, StringMap) \ |
@@ -616,6 +618,18 @@ class Heap { |
int length, |
PretenureFlag pretenure = NOT_TENURED); |
+ MUST_USE_RESULT MaybeObject* AllocateRawFixedDoubleArray( |
+ int length, |
+ PretenureFlag pretenure); |
+ |
+ // Allocates a fixed double array initialized with undefined values |
Mads Ager (chromium)
2011/06/06 07:58:23
Period at end of comment.
Let's call this Allocat
danno
2011/06/08 12:09:43
Done.
|
+ // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
+ // failed. |
+ // Please note this does not perform a garbage collection. |
+ MUST_USE_RESULT MaybeObject* AllocateFixedDoubleArray( |
+ int length, |
+ PretenureFlag pretenure = NOT_TENURED); |
+ |
// AllocateHashTable is identical to AllocateFixedArray except |
// that the resulting object has hash_table_map as map. |
MUST_USE_RESULT MaybeObject* AllocateHashTable( |
@@ -1456,6 +1470,9 @@ class Heap { |
// Allocate empty fixed array. |
MUST_USE_RESULT MaybeObject* AllocateEmptyFixedArray(); |
+ // Allocate empty fixed double array. |
+ MUST_USE_RESULT MaybeObject* AllocateEmptyFixedDoubleArray(); |
+ |
void SwitchScavengingVisitorsTableIfProfilingWasEnabled(); |
// Performs a minor collection in new generation. |