Revision: 10627
Author:   [email protected]
Date:     Tue Feb  7 23:23:14 2012
Log:      Fixed assertions when accessing the hidden properties dictionary.

[email protected]

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

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

=======================================
--- /branches/bleeding_edge/src/objects.cc      Tue Feb  7 00:59:03 2012
+++ /branches/bleeding_edge/src/objects.cc      Tue Feb  7 23:23:14 2012
@@ -3779,7 +3779,8 @@
             this->FastPropertyAt(descriptors->GetFieldIndex(0));
         return StringDictionary::cast(hidden_store);
       } else {
-        ASSERT(descriptors->GetType(0) == MAP_TRANSITION);
+        ASSERT(descriptors->GetType(0) == NULL_DESCRIPTOR ||
+               descriptors->GetType(0) == MAP_TRANSITION);
       }
     }
   } else {
@@ -3826,7 +3827,8 @@
         this->FastPropertyAtPut(descriptors->GetFieldIndex(0), dictionary);
         return this;
       } else {
-        ASSERT(descriptors->GetType(0) == MAP_TRANSITION);
+        ASSERT(descriptors->GetType(0) == NULL_DESCRIPTOR ||
+               descriptors->GetType(0) == MAP_TRANSITION);
       }
     }
   }

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

Reply via email to