| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 943902e153415da198c6d7b9088cd8729b302d33..9135d542c0460224997232eb40ef06f076ab8fe1 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -73,7 +73,8 @@ Handle<FixedDoubleArray> Factory::NewFixedDoubleArray(int size,
|
| Handle<NameDictionary> Factory::NewNameDictionary(int at_least_space_for) {
|
| ASSERT(0 <= at_least_space_for);
|
| CALL_HEAP_FUNCTION(isolate(),
|
| - NameDictionary::Allocate(at_least_space_for),
|
| + NameDictionary::Allocate(isolate()->heap(),
|
| + at_least_space_for),
|
| NameDictionary);
|
| }
|
|
|
| @@ -82,7 +83,8 @@ Handle<SeededNumberDictionary> Factory::NewSeededNumberDictionary(
|
| int at_least_space_for) {
|
| ASSERT(0 <= at_least_space_for);
|
| CALL_HEAP_FUNCTION(isolate(),
|
| - SeededNumberDictionary::Allocate(at_least_space_for),
|
| + SeededNumberDictionary::Allocate(isolate()->heap(),
|
| + at_least_space_for),
|
| SeededNumberDictionary);
|
| }
|
|
|
| @@ -91,7 +93,8 @@ 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::Allocate(isolate()->heap(),
|
| + at_least_space_for),
|
| UnseededNumberDictionary);
|
| }
|
|
|
| @@ -99,7 +102,8 @@ Handle<UnseededNumberDictionary> Factory::NewUnseededNumberDictionary(
|
| Handle<ObjectHashSet> Factory::NewObjectHashSet(int at_least_space_for) {
|
| ASSERT(0 <= at_least_space_for);
|
| CALL_HEAP_FUNCTION(isolate(),
|
| - ObjectHashSet::Allocate(at_least_space_for),
|
| + ObjectHashSet::Allocate(isolate()->heap(),
|
| + at_least_space_for),
|
| ObjectHashSet);
|
| }
|
|
|
| @@ -107,7 +111,8 @@ Handle<ObjectHashSet> Factory::NewObjectHashSet(int at_least_space_for) {
|
| Handle<ObjectHashTable> Factory::NewObjectHashTable(int at_least_space_for) {
|
| ASSERT(0 <= at_least_space_for);
|
| CALL_HEAP_FUNCTION(isolate(),
|
| - ObjectHashTable::Allocate(at_least_space_for),
|
| + ObjectHashTable::Allocate(isolate()->heap(),
|
| + at_least_space_for),
|
| ObjectHashTable);
|
| }
|
|
|
| @@ -1364,7 +1369,9 @@ Handle<JSFunction> Factory::CreateApiFunction(
|
|
|
| Handle<MapCache> Factory::NewMapCache(int at_least_space_for) {
|
| CALL_HEAP_FUNCTION(isolate(),
|
| - MapCache::Allocate(at_least_space_for), MapCache);
|
| + MapCache::Allocate(isolate()->heap(),
|
| + at_least_space_for),
|
| + MapCache);
|
| }
|
|
|
|
|
|
|