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

Unified Diff: src/heap/mark-compact-inl.h

Issue 437993003: Move a bunch of GC related files to heap/ subdirectory (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: make presubmit happy Created 6 years, 4 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.cc ('k') | src/heap/spaces.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/mark-compact-inl.h
diff --git a/src/mark-compact-inl.h b/src/heap/mark-compact-inl.h
similarity index 85%
rename from src/mark-compact-inl.h
rename to src/heap/mark-compact-inl.h
index 6f853fd90deca0cc018d6ddc570ebfb1ab7af76c..934fce847dbfb787b6d6c1adba95c876ee0b946f 100644
--- a/src/mark-compact-inl.h
+++ b/src/heap/mark-compact-inl.h
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef V8_MARK_COMPACT_INL_H_
-#define V8_MARK_COMPACT_INL_H_
+#ifndef V8_HEAP_MARK_COMPACT_INL_H_
+#define V8_HEAP_MARK_COMPACT_INL_H_
#include <memory.h>
+#include "src/heap/mark-compact.h"
#include "src/isolate.h"
-#include "src/mark-compact.h"
namespace v8 {
@@ -57,23 +57,19 @@ bool MarkCompactCollector::IsMarked(Object* obj) {
}
-void MarkCompactCollector::RecordSlot(Object** anchor_slot,
- Object** slot,
+void MarkCompactCollector::RecordSlot(Object** anchor_slot, Object** slot,
Object* object,
SlotsBuffer::AdditionMode mode) {
Page* object_page = Page::FromAddress(reinterpret_cast<Address>(object));
if (object_page->IsEvacuationCandidate() &&
!ShouldSkipEvacuationSlotRecording(anchor_slot)) {
if (!SlotsBuffer::AddTo(&slots_buffer_allocator_,
- object_page->slots_buffer_address(),
- slot,
- mode)) {
+ object_page->slots_buffer_address(), slot, mode)) {
EvictEvacuationCandidate(object_page);
}
}
}
+}
+} // namespace v8::internal
-
-} } // namespace v8::internal
-
-#endif // V8_MARK_COMPACT_INL_H_
+#endif // V8_HEAP_MARK_COMPACT_INL_H_
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/heap/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698