Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index f5b99d6e53dd28d794baac7b99807eeb90d8fb08..52d932f54b4465ae01d297e8db8f9139dfbf76fd 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) \ |
@@ -943,6 +944,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. |
@@ -951,6 +962,11 @@ class Heap { |
int length, |
PretenureFlag pretenure = NOT_TENURED); |
+ MUST_USE_RESULT MaybeObject* AllocateConstantPoolArray( |
+ int first_int64_index, |
+ int first_ptr_index, |
+ int first_int32_index); |
+ |
// 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. |