| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 89abe5043358c14642512f8d677104151b72a2d5..08ef1cf6eb48eef99da78c7ce1b8f9fb3f366f48 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1566,21 +1566,6 @@ MaybeObject* JSObject::AllocateStorageForMap(Map* map) {
|
| }
|
|
|
|
|
| -MaybeObject* JSObject::MigrateInstance() {
|
| - // Converting any field to the most specific type will cause the
|
| - // GeneralizeFieldRepresentation algorithm to create the most general existing
|
| - // transition that matches the object. This achieves what is needed.
|
| - Map* original_map = map();
|
| - MaybeObject* maybe_result = GeneralizeFieldRepresentation(
|
| - 0, Representation::None(), ALLOW_AS_CONSTANT);
|
| - JSObject* result;
|
| - if (FLAG_trace_migration && maybe_result->To(&result)) {
|
| - PrintInstanceMigration(stdout, original_map, result->map());
|
| - }
|
| - return maybe_result;
|
| -}
|
| -
|
| -
|
| MaybeObject* JSObject::TryMigrateInstance() {
|
| Map* new_map = map()->CurrentMapForDeprecated();
|
| if (new_map == NULL) return Smi::FromInt(0);
|
|
|