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

Unified Diff: src/mark-compact.cc

Issue 10823254: Remove obsolete SLOT_ADDR macro usages. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | « no previous file | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mark-compact.cc
diff --git a/src/mark-compact.cc b/src/mark-compact.cc
index 261cf9e1ad4ed85ef73d7e7cc2b6dcc5d8300553..658b02d4f3b8f45b6350c949bbbcb31b2847aabb 100644
--- a/src/mark-compact.cc
+++ b/src/mark-compact.cc
@@ -1430,10 +1430,6 @@ class MarkCompactMarkingVisitor
}
-#define SLOT_ADDR(obj, offset) \
- reinterpret_cast<Object**>((obj)->address() + offset)
-
-
static inline void VisitJSFunctionFields(Map* map,
JSFunction* object,
bool flush_code_candidate) {
@@ -1469,27 +1465,29 @@ class MarkCompactMarkingVisitor
heap,
HeapObject::RawField(object,
JSFunction::kCodeEntryOffset + kPointerSize),
- HeapObject::RawField(object,
- JSFunction::kNonWeakFieldsEndOffset));
+ HeapObject::RawField(object, JSFunction::kNonWeakFieldsEndOffset));
}
static void VisitSharedFunctionInfoFields(Heap* heap,
HeapObject* object,
bool flush_code_candidate) {
- VisitPointer(heap, SLOT_ADDR(object, SharedFunctionInfo::kNameOffset));
+ VisitPointer(heap,
+ HeapObject::RawField(object, SharedFunctionInfo::kNameOffset));
if (!flush_code_candidate) {
- VisitPointer(heap, SLOT_ADDR(object, SharedFunctionInfo::kCodeOffset));
+ VisitPointer(heap,
+ HeapObject::RawField(object,
+ SharedFunctionInfo::kCodeOffset));
}
- VisitPointers(heap,
- SLOT_ADDR(object, SharedFunctionInfo::kOptimizedCodeMapOffset),
- SLOT_ADDR(object, SharedFunctionInfo::kSize));
+ VisitPointers(
+ heap,
+ HeapObject::RawField(object,
+ SharedFunctionInfo::kOptimizedCodeMapOffset),
+ HeapObject::RawField(object, SharedFunctionInfo::kSize));
}
- #undef SLOT_ADDR
-
static VisitorDispatchTable<Callback> non_count_table_;
};
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698