Revision: 14732
Author:   [email protected]
Date:     Tue May 21 05:59:48 2013
Log:      Zap map value in the stub-cache on clear.
The empty_string is a valid key for keyed loads and stores.

BUG=
[email protected]

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

Modified:
 /branches/bleeding_edge/src/stub-cache.cc

=======================================
--- /branches/bleeding_edge/src/stub-cache.cc   Mon May 20 23:36:24 2013
+++ /branches/bleeding_edge/src/stub-cache.cc   Tue May 21 05:59:48 2013
@@ -1034,10 +1034,12 @@
   Code* empty = isolate_->builtins()->builtin(Builtins::kIllegal);
   for (int i = 0; i < kPrimaryTableSize; i++) {
     primary_[i].key = heap()->empty_string();
+    primary_[i].map = NULL;
     primary_[i].value = empty;
   }
   for (int j = 0; j < kSecondaryTableSize; j++) {
     secondary_[j].key = heap()->empty_string();
+    secondary_[j].map = NULL;
     secondary_[j].value = empty;
   }
 }

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