Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1154)

Unified Diff: src/factory.cc

Issue 304143002: Add support for extended constant pool arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | src/objects.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698