Revision: 18983
Author:   [email protected]
Date:     Fri Jan 31 11:38:43 2014 UTC
Log:      Don't unmark dictionary mode maps as unstable.
[email protected]
BUG=

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

Modified:
 /branches/bleeding_edge/src/objects-inl.h
 /branches/bleeding_edge/src/objects.cc

=======================================
--- /branches/bleeding_edge/src/objects-inl.h   Thu Jan 30 20:05:11 2014 UTC
+++ /branches/bleeding_edge/src/objects-inl.h   Fri Jan 31 11:38:43 2014 UTC
@@ -3988,8 +3988,9 @@


 void Map::set_dictionary_map(bool value) {
-  if (value) mark_unstable();
-  set_bit_field3(DictionaryMap::update(bit_field3(), value));
+  uint32_t new_bit_field3 = DictionaryMap::update(bit_field3(), value);
+  new_bit_field3 = IsUnstable::update(new_bit_field3, value);
+  set_bit_field3(new_bit_field3);
 }


=======================================
--- /branches/bleeding_edge/src/objects.cc      Fri Jan 31 09:07:30 2014 UTC
+++ /branches/bleeding_edge/src/objects.cc      Fri Jan 31 11:38:43 2014 UTC
@@ -6682,7 +6682,9 @@
   new_bit_field3 = EnumLengthBits::update(new_bit_field3,
                                           kInvalidEnumCacheSentinel);
   new_bit_field3 = Deprecated::update(new_bit_field3, false);
-  new_bit_field3 = IsUnstable::update(new_bit_field3, false);
+  if (!is_dictionary_map()) {
+    new_bit_field3 = IsUnstable::update(new_bit_field3, false);
+  }
   result->set_bit_field3(new_bit_field3);
   return result;
 }

--
--
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