Chromium Code Reviews| Index: src/bootstrapper.cc |
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
| index a20f87b122cda6954667cb88e20d1c40a5e7e51a..bffbbd3105292865183b233636175c465e00e1c0 100644 |
| --- a/src/bootstrapper.cc |
| +++ b/src/bootstrapper.cc |
| @@ -1632,9 +1632,9 @@ bool Genesis::InstallNatives() { |
| // through a common bottleneck that would make the SMI_ONLY -> FAST_ELEMENT |
| // transition easy to trap. Moreover, they rarely are smi-only. |
| MaybeObject* maybe_map = |
| - array_function->initial_map()->CopyDropTransitions(); |
| + array_function->initial_map()->CopyDropTransitions(MAYBE_SHARED); |
|
danno
2012/06/04 13:52:13
I think you mean MAY_BE_SHARED
Toon Verwaest
2012/06/04 15:03:20
Done.
|
| Map* new_map; |
| - if (!maybe_map->To<Map>(&new_map)) return false; |
| + if (!maybe_map->To(&new_map)) return false; |
| new_map->set_elements_kind(FAST_HOLEY_ELEMENTS); |
| array_function->set_initial_map(new_map); |
| @@ -2195,7 +2195,6 @@ void Genesis::TransferNamedProperties(Handle<JSObject> from, |
| break; |
| } |
| case MAP_TRANSITION: |
| - case ELEMENTS_TRANSITION: |
| case CONSTANT_TRANSITION: |
| case NULL_DESCRIPTOR: |
| // Ignore non-properties. |