Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 0e0f391620d1dfb98d908706c46bf7ad6d9c0385..7b548b19c9e1a7625f9e62254d032f4b597a66ae 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -141,30 +141,6 @@ Handle<OrderedHashMap> Factory::NewOrderedHashMap() { |
} |
-Handle<ObjectHashTable> Factory::NewObjectHashTable( |
- int at_least_space_for, |
- MinimumCapacity capacity_option) { |
- ASSERT(0 <= at_least_space_for); |
- CALL_HEAP_FUNCTION(isolate(), |
- ObjectHashTable::Allocate(isolate()->heap(), |
- at_least_space_for, |
- capacity_option), |
- ObjectHashTable); |
-} |
- |
- |
-Handle<WeakHashTable> Factory::NewWeakHashTable(int at_least_space_for) { |
- ASSERT(0 <= at_least_space_for); |
- CALL_HEAP_FUNCTION( |
- isolate(), |
- WeakHashTable::Allocate(isolate()->heap(), |
- at_least_space_for, |
- USE_DEFAULT_MINIMUM_CAPACITY, |
- TENURED), |
- WeakHashTable); |
-} |
- |
- |
Handle<DeoptimizationInputData> Factory::NewDeoptimizationInputData( |
int deopt_entry_count, |
PretenureFlag pretenure) { |
@@ -2201,14 +2177,6 @@ Handle<JSFunction> Factory::CreateApiFunction( |
} |
-Handle<MapCache> Factory::NewMapCache(int at_least_space_for) { |
- CALL_HEAP_FUNCTION(isolate(), |
- MapCache::Allocate(isolate()->heap(), |
- at_least_space_for), |
- MapCache); |
-} |
- |
- |
Handle<MapCache> Factory::AddToMapCache(Handle<Context> context, |
Handle<FixedArray> keys, |
Handle<Map> map) { |
@@ -2223,7 +2191,7 @@ Handle<Map> Factory::ObjectLiteralMapFromCache(Handle<Context> context, |
Handle<FixedArray> keys) { |
if (context->map_cache()->IsUndefined()) { |
// Allocate the new map cache for the native context. |
- Handle<MapCache> new_cache = NewMapCache(24); |
+ Handle<MapCache> new_cache = MapCache::New(isolate(), 24); |
context->set_map_cache(*new_cache); |
} |
// Check to see whether there is a matching element in the cache. |