Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index 1b6bf8eb019d3466bc70d55fe49aa5a06832fe01..96b86f54e802003751255dc286a3974ad13941a9 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -71,6 +71,7 @@ namespace internal { |
V(Map, scope_info_map, ScopeInfoMap) \ |
V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ |
V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ |
+ V(Map, constant_pool_array_map, ConstantPoolArrayMap) \ |
V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ |
V(Map, hash_table_map, HashTableMap) \ |
V(FixedArray, empty_fixed_array, EmptyFixedArray) \ |
@@ -967,6 +968,16 @@ class Heap { |
MUST_USE_RESULT MaybeObject* CopyFixedDoubleArrayWithMap( |
FixedDoubleArray* src, Map* map); |
+ // Make a copy of src and return it. Returns |
+ // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
+ MUST_USE_RESULT inline MaybeObject* CopyConstantPoolArray( |
+ ConstantPoolArray* src); |
+ |
+ // Make a copy of src, set the map, and return the copy. Returns |
+ // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
+ MUST_USE_RESULT MaybeObject* CopyConstantPoolArrayWithMap( |
+ ConstantPoolArray* src, Map* map); |
+ |
// Allocates a fixed array initialized with the hole values. |
// Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
// failed. |
@@ -979,6 +990,11 @@ class Heap { |
int length, |
PretenureFlag pretenure); |
+ MUST_USE_RESULT MaybeObject* AllocateRawConstantPoolArray( |
+ int length, |
+ int first_int32_index, |
+ PretenureFlag pretenure); |
+ |
// Allocates a fixed double array with uninitialized values. Returns |
// Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
// Please note this does not perform a garbage collection. |