Reviewers: Michael Starzinger,

Description:
Don't need to protect pregenerated stubs from flushing from the
cache.  They are in a different cache that is not flushed.  Keep
the marking of pregenerated stubs for assertion purposes.

Please review this at http://codereview.chromium.org/8065028/

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/stub-cache.cc


Index: src/stub-cache.cc
===================================================================
--- src/stub-cache.cc   (revision 9478)
+++ src/stub-cache.cc   (working copy)
@@ -1109,18 +1109,12 @@
 void StubCache::Clear() {
   Code* empty = isolate_->builtins()->builtin(Builtins::kIllegal);
   for (int i = 0; i < kPrimaryTableSize; i++) {
-    Code* code = primary_[i].value;
-    if (code != empty && !code->is_pregenerated()) {
-      primary_[i].key = heap()->empty_string();
-      primary_[i].value = empty;
-    }
+    primary_[i].key = heap()->empty_string();
+    primary_[i].value = empty;
   }
   for (int j = 0; j < kSecondaryTableSize; j++) {
-    Code* code = secondary_[j].value;
-    if (code != empty && !code->is_pregenerated()) {
-      secondary_[j].key = heap()->empty_string();
-      secondary_[j].value = empty;
-    }
+    secondary_[j].key = heap()->empty_string();
+    secondary_[j].value = empty;
   }
 }



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

Reply via email to