Commit 2638ba16 authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

[heap] Better inlining for incremental marking visitor

Bug: 
Change-Id: If88c6deee07b0188bd6177a4cef6a14dd7610392
Reviewed-on: https://chromium-review.googlesource.com/561397Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46443}
parent 6c8aed76
...@@ -290,7 +290,7 @@ class IncrementalMarkingMarkingVisitor final ...@@ -290,7 +290,7 @@ class IncrementalMarkingMarkingVisitor final
return Parent::VisitNativeContext(map, context); 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; Object* target = *p;
if (target->IsHeapObject()) { if (target->IsHeapObject()) {
collector_->RecordSlot(host, p, target); collector_->RecordSlot(host, p, target);
...@@ -298,7 +298,7 @@ class IncrementalMarkingMarkingVisitor final ...@@ -298,7 +298,7 @@ class IncrementalMarkingMarkingVisitor final
} }
} }
inline void VisitPointers(HeapObject* host, Object** start, V8_INLINE void VisitPointers(HeapObject* host, Object** start,
Object** end) final { Object** end) final {
for (Object** p = start; p < end; p++) { for (Object** p = start; p < end; p++) {
Object* target = *p; Object* target = *p;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment