Index: src/factory.cc |
=================================================================== |
--- src/factory.cc (revision 10379) |
+++ src/factory.cc (working copy) |
@@ -77,14 +77,24 @@ |
} |
-Handle<NumberDictionary> Factory::NewNumberDictionary(int at_least_space_for) { |
+Handle<SeededNumberDictionary> Factory::NewSeededNumberDictionary( |
+ int at_least_space_for) { |
ASSERT(0 <= at_least_space_for); |
CALL_HEAP_FUNCTION(isolate(), |
- NumberDictionary::Allocate(at_least_space_for), |
- NumberDictionary); |
+ SeededNumberDictionary::Allocate(at_least_space_for), |
+ SeededNumberDictionary); |
} |
+Handle<UnseededNumberDictionary> Factory::NewUnseededNumberDictionary( |
+ int at_least_space_for) { |
+ ASSERT(0 <= at_least_space_for); |
+ CALL_HEAP_FUNCTION(isolate(), |
+ UnseededNumberDictionary::Allocate(at_least_space_for), |
+ UnseededNumberDictionary); |
+} |
+ |
+ |
Handle<ObjectHashTable> Factory::NewObjectHashTable(int at_least_space_for) { |
ASSERT(0 <= at_least_space_for); |
CALL_HEAP_FUNCTION(isolate(), |
@@ -990,16 +1000,26 @@ |
} |
-Handle<NumberDictionary> Factory::DictionaryAtNumberPut( |
- Handle<NumberDictionary> dictionary, |
+Handle<SeededNumberDictionary> Factory::DictionaryAtNumberPut( |
+ Handle<SeededNumberDictionary> dictionary, |
uint32_t key, |
Handle<Object> value) { |
CALL_HEAP_FUNCTION(isolate(), |
dictionary->AtNumberPut(key, *value), |
- NumberDictionary); |
+ SeededNumberDictionary); |
} |
+Handle<UnseededNumberDictionary> Factory::DictionaryAtNumberPut( |
+ Handle<UnseededNumberDictionary> dictionary, |
+ uint32_t key, |
+ Handle<Object> value) { |
+ CALL_HEAP_FUNCTION(isolate(), |
+ dictionary->AtNumberPut(key, *value), |
+ UnseededNumberDictionary); |
+} |
+ |
+ |
Handle<JSFunction> Factory::NewFunctionHelper(Handle<String> name, |
Handle<Object> prototype) { |
Handle<SharedFunctionInfo> function_share = NewSharedFunctionInfo(name); |