Commit 9946158f authored by Dan Elphick's avatar Dan Elphick Committed by V8 LUCI CQ

[Build] Reduce unnecessary includes of v8.h

Removes unnecessary includes of v8.h from
src/diagnostics/gdb-jit.h
src/diagnostics/system-jit-win.h
src/diagnostics/unwinder.h

by predeclaring types or using more appropriate headers.

Bug: v8:11879
Change-Id: I17f42acfef8e61133988453d67c3c0d473ff0337
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3045702
Auto-Submit: Dan Elphick <delphick@chromium.org>
Commit-Queue: Dan Elphick <delphick@chromium.org>
Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75870}
parent 1482e2ae
......@@ -2,7 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include "include/v8-unwinder-state.h"
#include "include/v8.h"
#include "src/diagnostics/unwinder.h"
#include "src/execution/frame-constants.h"
......
......@@ -6,6 +6,8 @@
namespace v8 {
struct RegisterState;
void GetCalleeSavedRegistersFromEntryFrame(void* fp,
RegisterState* register_state) {}
......
......@@ -8,6 +8,7 @@
#include <memory>
#include <vector>
#include "include/v8.h"
#include "src/api/api-inl.h"
#include "src/base/bits.h"
#include "src/base/hashmap.h"
......
......@@ -5,8 +5,6 @@
#ifndef V8_DIAGNOSTICS_GDB_JIT_H_
#define V8_DIAGNOSTICS_GDB_JIT_H_
#include "include/v8.h"
//
// GDB has two ways of interacting with JIT code. With the "JIT compilation
// interface", V8 can tell GDB when it emits JIT code. Unfortunately to do so,
......@@ -25,6 +23,9 @@
//
namespace v8 {
struct JitCodeEvent;
namespace internal {
namespace GDBJITInterface {
#ifdef ENABLE_GDB_JIT_INTERFACE
......
......@@ -6,6 +6,8 @@
namespace v8 {
struct RegisterState;
void GetCalleeSavedRegistersFromEntryFrame(void* fp,
RegisterState* register_state) {}
......
......@@ -6,6 +6,8 @@
namespace v8 {
struct RegisterState;
void GetCalleeSavedRegistersFromEntryFrame(void* fp,
RegisterState* register_state) {}
......
......@@ -6,6 +6,8 @@
namespace v8 {
struct RegisterState;
void GetCalleeSavedRegistersFromEntryFrame(void* fp,
RegisterState* register_state) {}
......
......@@ -3,6 +3,9 @@
// found in the LICENSE file.
#include "src/diagnostics/unwinder.h"
namespace v8 {
struct RegisterState;
void GetCalleeSavedRegistersFromEntryFrame(void* fp,
RegisterState* register_state) {}
} // namespace v8
......@@ -6,6 +6,8 @@
namespace v8 {
struct RegisterState;
void GetCalleeSavedRegistersFromEntryFrame(void* fp,
RegisterState* register_state) {}
......
......@@ -3,6 +3,9 @@
// found in the LICENSE file.
#include "src/diagnostics/unwinder.h"
namespace v8 {
struct RegisterState;
void GetCalleeSavedRegistersFromEntryFrame(void* fp,
RegisterState* register_state) {}
} // namespace v8
......@@ -4,6 +4,7 @@
#include "src/diagnostics/system-jit-win.h"
#include "include/v8.h"
#include "src/api/api-inl.h"
#include "src/base/lazy-instance.h"
#include "src/base/logging.h"
......
......@@ -5,9 +5,10 @@
#ifndef V8_DIAGNOSTICS_SYSTEM_JIT_WIN_H_
#define V8_DIAGNOSTICS_SYSTEM_JIT_WIN_H_
#include "include/v8.h"
namespace v8 {
struct JitCodeEvent;
namespace internal {
namespace ETWJITInterface {
void Register();
......
......@@ -6,6 +6,8 @@
#include <algorithm>
#include "include/v8.h"
#include "src/execution/frame-constants.h"
#include "src/execution/pointer-authentication.h"
namespace v8 {
......
......@@ -5,12 +5,11 @@
#ifndef V8_DIAGNOSTICS_UNWINDER_H_
#define V8_DIAGNOSTICS_UNWINDER_H_
#include "include/v8.h"
#include "src/common/globals.h"
#include "include/v8-internal.h"
namespace v8 {
i::Address Load(i::Address address);
internal::Address Load(internal::Address address);
} // namespace v8
......
......@@ -6,6 +6,8 @@
namespace v8 {
struct RegisterState;
void GetCalleeSavedRegistersFromEntryFrame(void* fp,
RegisterState* register_state) {}
......
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