[heap] Better inlining for incremental marking visitor

Bug: 
Change-Id: If88c6deee07b0188bd6177a4cef6a14dd7610392
Reviewed-on: https://chromium-review.googlesource.com/561397
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46443}
This commit is contained in:
Michael Lippautz 2017-07-06 13:29:24 +02:00 committed by Commit Bot
parent 6c8aed76ff
commit 2638ba16fd

View File

@ -290,7 +290,7 @@ class IncrementalMarkingMarkingVisitor final
return Parent::VisitNativeContext(map, context);
}
inline void VisitPointer(HeapObject* host, Object** p) final {
V8_INLINE void VisitPointer(HeapObject* host, Object** p) final {
Object* target = *p;
if (target->IsHeapObject()) {
collector_->RecordSlot(host, p, target);
@ -298,8 +298,8 @@ class IncrementalMarkingMarkingVisitor final
}
}
inline void VisitPointers(HeapObject* host, Object** start,
Object** end) final {
V8_INLINE void VisitPointers(HeapObject* host, Object** start,
Object** end) final {
for (Object** p = start; p < end; p++) {
Object* target = *p;
if (target->IsHeapObject()) {