Chromium Code Reviews| Index: src/factory.cc |
| diff --git a/src/factory.cc b/src/factory.cc |
| index fcb4918839ffb699c4ed6bc63880eb345a4c27e9..4c3ad80c41abd1ca12f4a8eb43464fdec39b13ae 100644 |
| --- a/src/factory.cc |
| +++ b/src/factory.cc |
| @@ -131,6 +131,38 @@ Handle<ConstantPoolArray> Factory::NewConstantPoolArray( |
| } |
| +Handle<ConstantPoolArray> Factory::NewExtendedConstantPoolArray( |
|
ulan
2014/06/02 12:32:58
Instead of passing this long list arguments around
rmcilroy
2014/06/03 12:32:28
Good idea - done.
|
| + int small_section_int64_entries, |
| + int small_section_code_ptr_entries, |
| + int small_section_heap_ptr_entries, |
| + int small_section_int32_entries, |
| + int extended_section_int64_entries, |
| + int extended_section_code_ptr_entries, |
| + int extended_section_heap_ptr_entries, |
| + int extended_section_int32_entries) { |
| + ASSERT(small_section_int64_entries > 0 || |
| + small_section_code_ptr_entries > 0 || |
| + small_section_heap_ptr_entries > 0 || |
| + small_section_int32_entries > 0 || |
| + extended_section_int64_entries > 0 || |
| + extended_section_code_ptr_entries > 0 || |
| + extended_section_heap_ptr_entries > 0 || |
| + extended_section_int32_entries > 0); |
| + CALL_HEAP_FUNCTION( |
| + isolate(), |
| + isolate()->heap()->AllocateExtendedConstantPoolArray( |
| + small_section_int64_entries, |
| + small_section_code_ptr_entries, |
| + small_section_heap_ptr_entries, |
| + small_section_int32_entries, |
| + extended_section_int64_entries, |
| + extended_section_code_ptr_entries, |
| + extended_section_heap_ptr_entries, |
| + extended_section_int32_entries), |
| + ConstantPoolArray); |
| +} |
| + |
| + |
| Handle<OrderedHashSet> Factory::NewOrderedHashSet() { |
| return OrderedHashSet::Allocate(isolate(), 4); |
| } |