Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 93614aceba272263c529d86ed1982be323c68c74..c7ec580547be9fc58e374d9a89c6c04b3333715d 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -710,16 +710,17 @@ class CodeFlusher { |
SharedFunctionInfo* candidate) { |
Code* code = candidate->code(); |
return reinterpret_cast<SharedFunctionInfo**>( |
- code->address() + Code::kNextCodeFlushingCandidateOffset); |
+ code->address() + Code::kGCMetadataOffset); |
} |
static SharedFunctionInfo* GetNextCandidate(SharedFunctionInfo* candidate) { |
- return *GetNextCandidateField(candidate); |
+ return reinterpret_cast<SharedFunctionInfo*>( |
+ candidate->code()->gc_metadata()); |
} |
static void SetNextCandidate(SharedFunctionInfo* candidate, |
SharedFunctionInfo* next_candidate) { |
- *GetNextCandidateField(candidate) = next_candidate; |
+ candidate->code()->set_gc_metadata(next_candidate); |
} |
Isolate* isolate_; |