Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Unified Diff: src/objects.cc

Issue 12088106: Remove obsolete debug code and add new one. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mark-compact.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index fb8c7040100af0ac8e88226a22f0a06daa0b5def..48f4c796df4e5b7a1301775ff325f6878a8baf52 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -8534,6 +8534,10 @@ void ObjectVisitor::VisitCodeEntry(Address entry_address) {
Object* old_code = code;
VisitPointer(&code);
if (code != old_code) {
+ // TODO(mstarzinger): Active in release mode to flush out problems.
+ // Should be turned back into an ASSERT or removed completely.
+ Page* target_page = Page::FromAddress(reinterpret_cast<Address>(code));
+ CHECK(!target_page->IsEvacuationCandidate());
Memory::Address_at(entry_address) = reinterpret_cast<Code*>(code)->entry();
}
}
« no previous file with comments | « src/mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698