| Index: src/factory.cc
|
| ===================================================================
|
| --- src/factory.cc (revision 2326)
|
| +++ src/factory.cc (working copy)
|
| @@ -49,12 +49,20 @@
|
| }
|
|
|
|
|
| -Handle<Dictionary> Factory::NewDictionary(int at_least_space_for) {
|
| +Handle<StringDictionary> Factory::NewStringDictionary(int at_least_space_for) {
|
| ASSERT(0 <= at_least_space_for);
|
| - CALL_HEAP_FUNCTION(Dictionary::Allocate(at_least_space_for), Dictionary);
|
| + CALL_HEAP_FUNCTION(StringDictionary::Allocate(at_least_space_for),
|
| + StringDictionary);
|
| }
|
|
|
|
|
| +Handle<NumberDictionary> Factory::NewNumberDictionary(int at_least_space_for) {
|
| + ASSERT(0 <= at_least_space_for);
|
| + CALL_HEAP_FUNCTION(NumberDictionary::Allocate(at_least_space_for),
|
| + NumberDictionary);
|
| +}
|
| +
|
| +
|
| Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors) {
|
| ASSERT(0 <= number_of_descriptors);
|
| CALL_HEAP_FUNCTION(DescriptorArray::Allocate(number_of_descriptors),
|
| @@ -655,10 +663,11 @@
|
| }
|
|
|
|
|
| -Handle<Dictionary> Factory::DictionaryAtNumberPut(Handle<Dictionary> dictionary,
|
| - uint32_t key,
|
| - Handle<Object> value) {
|
| - CALL_HEAP_FUNCTION(dictionary->AtNumberPut(key, *value), Dictionary);
|
| +Handle<NumberDictionary> Factory::DictionaryAtNumberPut(
|
| + Handle<NumberDictionary> dictionary,
|
| + uint32_t key,
|
| + Handle<Object> value) {
|
| + CALL_HEAP_FUNCTION(dictionary->AtNumberPut(key, *value), NumberDictionary);
|
| }
|
|
|
|
|
|
|