Flush PC-to-code cache before doing verification.

Review URL: https://chromiumcodereview.appspot.com/10144002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11395 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent cadf0586
......@@ -296,8 +296,6 @@ void MarkCompactCollector::CollectGarbage() {
if (!collect_maps_) ReattachInitialMaps();
heap_->isolate()->inner_pointer_to_code_cache()->Flush();
Finish();
tracer_ = NULL;
......@@ -3423,6 +3421,8 @@ void MarkCompactCollector::EvacuateNewSpaceAndCandidates() {
// under it.
ProcessInvalidatedCode(&updating_visitor);
heap_->isolate()->inner_pointer_to_code_cache()->Flush();
#ifdef DEBUG
if (FLAG_verify_heap) {
VerifyEvacuation(heap_);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment