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

Unified Diff: src/spaces-inl.h

Issue 8342037: Switch UnreachableObjectsFilter to use Marking instead of InstrusiveMarking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 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
« src/mark-compact.cc ('K') | « src/spaces.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces-inl.h
diff --git a/src/spaces-inl.h b/src/spaces-inl.h
index 1973b3a3500504119ea8ea6d07d36b4c844880ae..bb505b29f291e1ebbec671276296ff1df0259250 100644
--- a/src/spaces-inl.h
+++ b/src/spaces-inl.h
@@ -348,7 +348,7 @@ void NewSpace::ShrinkStringAtAllocationBoundary(String* string, int length) {
allocation_info_.top =
string->address() + StringType::SizeFor(length);
string->set_length(length);
- if (Marking::IsBlack(Marking::MarkBitFrom(string))) {
+ if (MarkCompactCollector::IsLiveBytesUpdateRequired(string)) {
int delta = static_cast<int>(old_top - allocation_info_.top);
MemoryChunk::IncrementLiveBytes(string->address(), -delta);
}
« src/mark-compact.cc ('K') | « src/spaces.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698