From 2638ba16fd601babc24eda2f937c333b5cc24134 Mon Sep 17 00:00:00 2001 From: Michael Lippautz Date: Thu, 6 Jul 2017 13:29:24 +0200 Subject: [PATCH] [heap] Better inlining for incremental marking visitor Bug: Change-Id: If88c6deee07b0188bd6177a4cef6a14dd7610392 Reviewed-on: https://chromium-review.googlesource.com/561397 Reviewed-by: Ulan Degenbaev Commit-Queue: Michael Lippautz Cr-Commit-Position: refs/heads/master@{#46443} --- src/heap/incremental-marking.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc index b12e542465..1884f67acb 100644 --- a/src/heap/incremental-marking.cc +++ b/src/heap/incremental-marking.cc @@ -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()) {