Revision: 17949
Author:   [email protected]
Date:     Thu Nov 21 09:16:34 2013 UTC
Log:      Do deferred migration of maps after deoptimizing once.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/50213003
http://code.google.com/p/v8/source/detail?r=17949

Modified:
 /branches/bleeding_edge/src/objects.cc

=======================================
--- /branches/bleeding_edge/src/objects.cc      Tue Nov 19 13:38:15 2013 UTC
+++ /branches/bleeding_edge/src/objects.cc      Thu Nov 21 09:16:34 2013 UTC
@@ -2784,7 +2784,6 @@
   Handle<Map> new_map = split_map;
   for (; descriptor < descriptors; descriptor++) {
new_map = Map::CopyInstallDescriptors(new_map, descriptor, new_descriptors);
-    new_map->set_migration_target(true);
   }

   new_map->set_owns_descriptors(true);
@@ -3875,6 +3874,7 @@
   Handle<Map> original_map(object->map());
   GeneralizeFieldRepresentation(
       object, 0, Representation::None(), ALLOW_AS_CONSTANT);
+  object->map()->set_migration_target(true);
   if (FLAG_trace_migration) {
     object->PrintInstanceMigration(stdout, *original_map, object->map());
   }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to