Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 537ca1781df88fae8afd14b63e56e6e100f506b9..33d856f387e5a1c77a4b02db6bca3bc0711a3a2a 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -115,18 +115,23 @@ Handle<FixedArrayBase> Factory::NewFixedDoubleArrayWithHoles( |
Handle<ConstantPoolArray> Factory::NewConstantPoolArray( |
- int number_of_int64_entries, |
- int number_of_code_ptr_entries, |
- int number_of_heap_ptr_entries, |
- int number_of_int32_entries) { |
- ASSERT(number_of_int64_entries > 0 || number_of_code_ptr_entries > 0 || |
- number_of_heap_ptr_entries > 0 || number_of_int32_entries > 0); |
+ const ConstantPoolArray::NumberOfEntries& small) { |
+ ASSERT(small.total_count() > 0); |
CALL_HEAP_FUNCTION( |
isolate(), |
- isolate()->heap()->AllocateConstantPoolArray(number_of_int64_entries, |
- number_of_code_ptr_entries, |
- number_of_heap_ptr_entries, |
- number_of_int32_entries), |
+ isolate()->heap()->AllocateConstantPoolArray(small), |
+ ConstantPoolArray); |
+} |
+ |
+ |
+Handle<ConstantPoolArray> Factory::NewExtendedConstantPoolArray( |
+ const ConstantPoolArray::NumberOfEntries& small, |
+ const ConstantPoolArray::NumberOfEntries& extended) { |
+ ASSERT(small.total_count() > 0); |
+ ASSERT(extended.total_count() > 0); |
+ CALL_HEAP_FUNCTION( |
+ isolate(), |
+ isolate()->heap()->AllocateExtendedConstantPoolArray(small, extended), |
ConstantPoolArray); |
} |