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

Unified Diff: src/heap/objects-visiting-inl.h

Issue 2647873002: Revert of [heap] Provide ObjectMarking with marking transitions (Closed)
Patch Set: Created 3 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/heap/mark-compact-inl.h ('k') | src/heap/scavenger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/objects-visiting-inl.h
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h
index 7f524839ad5c1d44af8dcbce3475fc894499a2ea..53a1310ed9ca4a210988166a1b94f962a7ba99e1 100644
--- a/src/heap/objects-visiting-inl.h
+++ b/src/heap/objects-visiting-inl.h
@@ -534,7 +534,8 @@
// Code is either on stack, in compilation cache or referenced
// by optimized version of function.
- if (ObjectMarking::IsBlackOrGrey(function->code())) {
+ MarkBit code_mark = ObjectMarking::MarkBitFrom(function->code());
+ if (Marking::IsBlackOrGrey(code_mark)) {
return false;
}
@@ -557,7 +558,8 @@
Heap* heap, SharedFunctionInfo* shared_info) {
// Code is either on stack, in compilation cache or referenced
// by optimized version of function.
- if (ObjectMarking::IsBlackOrGrey(shared_info->code())) {
+ MarkBit code_mark = ObjectMarking::MarkBitFrom(shared_info->code());
+ if (Marking::IsBlackOrGrey(code_mark)) {
return false;
}
« no previous file with comments | « src/heap/mark-compact-inl.h ('k') | src/heap/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698