From: erik.corry@gmail.com Date: Thu, 29 Sep 2011 11:52:05 +0000 (+0000) Subject: Don't need to protect pregenerated stubs from flushing from the X-Git-Tag: upstream/4.7.83~18324 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af20990e0e240195d6aa05b73a875c0a6b80a55b;p=platform%2Fupstream%2Fv8.git 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. Review URL: http://codereview.chromium.org/8065028 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9479 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/stub-cache.cc b/src/stub-cache.cc index c06a11dd0..09ee79394 100644 --- a/src/stub-cache.cc +++ b/src/stub-cache.cc @@ -1109,18 +1109,12 @@ MaybeObject* StubCache::ComputeCallDebugPrepareStepIn( 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; } }