Revision: 12147
Author:   [email protected]
Date:     Thu Jul 19 07:59:30 2012
Log:      Remove LastAdded from the EnumCacheBridge.

Review URL: https://chromiumcodereview.appspot.com/10806030
http://code.google.com/p/v8/source/detail?r=12147

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

=======================================
--- /branches/bleeding_edge/src/objects.cc      Thu Jul 19 07:45:19 2012
+++ /branches/bleeding_edge/src/objects.cc      Thu Jul 19 07:59:30 2012
@@ -5728,7 +5728,7 @@
     if (!maybe_array->To(&result)) return maybe_array;
   }

-  result->set(kEnumCacheIndex, Smi::FromInt(Map::kNoneAdded));
+  result->set(kEnumCacheIndex, Smi::FromInt(0));
   result->set(kTransitionsIndex, Smi::FromInt(0));
   return result;
 }
@@ -5750,9 +5750,6 @@
       set(kEnumCacheBridgeCacheIndex, new_cache);
     FixedArray::cast(bridge_storage)->
       set(kEnumCacheBridgeIndicesCacheIndex, new_index_cache);
-    NoWriteBarrierSet(FixedArray::cast(bridge_storage),
-                      kEnumCacheBridgeLastAdded,
-                      get(kEnumCacheIndex));
     set(kEnumCacheIndex, bridge_storage);
   }
 }
=======================================
--- /branches/bleeding_edge/src/objects.h       Thu Jul 19 07:45:19 2012
+++ /branches/bleeding_edge/src/objects.h       Thu Jul 19 07:59:30 2012
@@ -2573,10 +2573,9 @@
   static const int kFirstIndex = 3;

   // The length of the "bridge" to the enum cache.
-  static const int kEnumCacheBridgeLength = 3;
-  static const int kEnumCacheBridgeLastAdded = 0;
-  static const int kEnumCacheBridgeCacheIndex = 1;
-  static const int kEnumCacheBridgeIndicesCacheIndex = 2;
+  static const int kEnumCacheBridgeLength = 2;
+  static const int kEnumCacheBridgeCacheIndex = 0;
+  static const int kEnumCacheBridgeIndicesCacheIndex = 1;

   // Layout description.
   static const int kBackPointerStorageOffset = FixedArray::kHeaderSize;
@@ -2586,9 +2585,7 @@
   static const int kFirstOffset = kTransitionsOffset + kPointerSize;

   // Layout description for the bridge array.
- static const int kEnumCacheBridgeLastAddedOffset = FixedArray::kHeaderSize;
-  static const int kEnumCacheBridgeCacheOffset =
-    kEnumCacheBridgeLastAddedOffset + kPointerSize;
+  static const int kEnumCacheBridgeCacheOffset = FixedArray::kHeaderSize;

   // Layout of descriptor.
   static const int kDescriptorKey = 0;

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to