0c20a4c6aa
Drive-by: Refactor FlushInstructionCache to its own header. This removes dependencies of objects.cc and code.cc Bug: v8:8562 Change-Id: If23f3b9d4f2068e08c61c0f4b070ecfe1b9a6cc0 Reviewed-on: https://chromium-review.googlesource.com/c/1456081 Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Reviewed-by: Georg Neis <neis@chromium.org> Commit-Queue: Sigurd Schneider <sigurds@chromium.org> Cr-Commit-Position: refs/heads/master@{#59435}
34 lines
738 B
C++
34 lines
738 B
C++
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "src/visitors.h"
|
|
|
|
#include "src/reloc-info.h"
|
|
|
|
namespace v8 {
|
|
namespace internal {
|
|
|
|
const char* RootVisitor::RootName(Root root) {
|
|
switch (root) {
|
|
#define ROOT_CASE(root_id, description) \
|
|
case Root::root_id: \
|
|
return description;
|
|
ROOT_ID_LIST(ROOT_CASE)
|
|
#undef ROOT_CASE
|
|
case Root::kNumberOfRoots:
|
|
break;
|
|
}
|
|
UNREACHABLE();
|
|
return nullptr;
|
|
}
|
|
|
|
void ObjectVisitor::VisitRelocInfo(RelocIterator* it) {
|
|
for (; !it->done(); it->next()) {
|
|
it->rinfo()->Visit(this);
|
|
}
|
|
}
|
|
|
|
} // namespace internal
|
|
} // namespace v8
|