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

Unified Diff: src/factory.cc

Issue 202293004: Work in progress: ES6 Maps and Sets with deterministic iteration support (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Avoid unnecessary growth Created 6 years, 9 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/objects.cc » ('j') | src/objects.cc » ('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 5e66202ded50ffeb8047f7c150377cef71423f5b..632fba6baa8735fd9483ab5643c776bebee6b885 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -38,6 +38,8 @@
#include "platform.h"
#include "scopeinfo.h"
+#include "close-table.h"
+
namespace v8 {
namespace internal {
@@ -142,6 +144,20 @@ Handle<ObjectHashSet> Factory::NewObjectHashSet(int at_least_space_for) {
}
+Handle<CloseTableSet> Factory::NewCloseTableSet() {
+ CALL_HEAP_FUNCTION(isolate(),
+ CloseTableSet::Allocate(isolate()->heap(), 4),
+ CloseTableSet);
+}
+
+
+Handle<CloseTableMap> Factory::NewCloseTableMap() {
+ CALL_HEAP_FUNCTION(isolate(),
+ CloseTableMap::Allocate(isolate()->heap(), 4),
+ CloseTableMap);
+}
+
+
Handle<ObjectHashTable> Factory::NewObjectHashTable(
int at_least_space_for,
MinimumCapacity capacity_option) {
« no previous file with comments | « src/factory.h ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698