From 8fed3da4a47688a4869f5c161a258bc4fcbbce9a Mon Sep 17 00:00:00 2001 From: "verwaest@chromium.org" Date: Tue, 21 May 2013 12:59:48 +0000 Subject: [PATCH] Zap map value in the stub-cache on clear. The empty_string is a valid key for keyed loads and stores. BUG= R=mstarzinger@chromium.org Review URL: https://chromiumcodereview.appspot.com/15565002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14732 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/stub-cache.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stub-cache.cc b/src/stub-cache.cc index a613ced..4e3a906 100644 --- a/src/stub-cache.cc +++ b/src/stub-cache.cc @@ -1034,10 +1034,12 @@ void StubCache::Clear() { 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; } } -- 2.7.4