Reviewers: Michael Starzinger,
Message:
PTAL
Description:
Zap map value in the stub-cache on clear.
The empty_string is a valid key for keyed loads and stores.
BUG=
Please review this at https://chromiumcodereview.appspot.com/15565002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/stub-cache.cc
Index: src/stub-cache.cc
diff --git a/src/stub-cache.cc b/src/stub-cache.cc
index
a613ced0f609cce6469286eb84f38ab3f711ef09..32403cd209c394675d48de2e90799a4084889fc4
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_[i].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.