Chromium Code Reviews| Index: src/factory.cc |
| diff --git a/src/factory.cc b/src/factory.cc |
| index df72da50fb4851c6517eb30cab44d52cb25a8d6f..8703d15cc84d005a29ae9e6df49a859fdc30102d 100644 |
| --- a/src/factory.cc |
| +++ b/src/factory.cc |
| @@ -115,12 +115,17 @@ Handle<ObjectHashTable> Factory::NewObjectHashTable(int at_least_space_for) { |
| Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors) { |
| ASSERT(0 <= number_of_descriptors); |
| CALL_HEAP_FUNCTION(isolate(), |
| - DescriptorArray::Allocate(number_of_descriptors, |
| - DescriptorArray::MAY_BE_SHARED), |
| + DescriptorArray::Allocate(number_of_descriptors), |
| DescriptorArray); |
| } |
| +void Factory::SetDescriptors(Handle<Map> map, |
|
Michael Starzinger
2012/08/06 14:15:52
This method should definitely be moved into the "M
Toon Verwaest
2012/08/07 08:33:04
Done.
|
| + Handle<DescriptorArray> descriptors) { |
| + CALL_HEAP_FUNCTION_VOID(isolate(), map->SetDescriptors(*descriptors)); |
| +} |
| + |
| + |
| Handle<DeoptimizationInputData> Factory::NewDeoptimizationInputData( |
| int deopt_entry_count, |
| PretenureFlag pretenure) { |
| @@ -497,7 +502,7 @@ Handle<Map> Factory::CopyMap(Handle<Map> src, |
| Handle<Map> Factory::CopyMap(Handle<Map> src) { |
| - CALL_HEAP_FUNCTION(isolate(), src->Copy(DescriptorArray::MAY_BE_SHARED), Map); |
| + CALL_HEAP_FUNCTION(isolate(), src->Copy(), Map); |
| } |