Commit 92f36954 authored by marja's avatar marja Committed by Commit bot

[iwyu] Include handles.h less.

These headers only need forward declarations.

BUG=v8:5294

Review-Url: https://codereview.chromium.org/2654253002
Cr-Commit-Position: refs/heads/master@{#42740}
parent 2dac4588
......@@ -8,7 +8,6 @@
#include "include/v8.h"
#include "src/allocation.h"
#include "src/globals.h"
#include "src/handles.h"
#include "src/property-details.h"
namespace v8 {
......@@ -16,6 +15,8 @@ namespace internal {
// Forward declarations.
class AccessorInfo;
template <typename T>
class Handle;
// The list of accessor descriptors. This is a second-order macro
// taking a macro to be applied to all accessor descriptor names.
......
......@@ -5,11 +5,11 @@
#ifndef V8_API_EXPERIMENTAL_H_
#define V8_API_EXPERIMENTAL_H_
#include "src/handles.h"
namespace v8 {
namespace internal {
class Code;
template <typename T>
class MaybeHandle;
} // internal;
namespace experimental {
class FastAccessorBuilder;
......
......@@ -6,11 +6,15 @@
#define V8_BUILTINS_BUILTINS_H_
#include "src/base/flags.h"
#include "src/handles.h"
#include "src/globals.h"
namespace v8 {
namespace internal {
template <typename T>
class Handle;
class Isolate;
#define CODE_AGE_LIST_WITH_ARG(V, A) \
V(Quadragenarian, A) \
V(Quinquagenarian, A) \
......
......@@ -6,12 +6,14 @@
#define V8_COMPILATION_CACHE_H_
#include "src/allocation.h"
#include "src/handles.h"
#include "src/objects.h"
namespace v8 {
namespace internal {
template <typename T>
class Handle;
// The compilation cache consists of several generational sub-caches which uses
// this class as a base class. A sub-cache contains a compilation cache tables
// for each generation of the sub-cache. Since the same source code string has
......
......@@ -15,6 +15,7 @@
#include "src/conversions-inl.h"
#include "src/dtoa.h"
#include "src/factory.h"
#include "src/handles.h"
#include "src/list-inl.h"
#include "src/strtod.h"
#include "src/utils.h"
......
......@@ -8,12 +8,13 @@
#include <limits>
#include "src/base/logging.h"
#include "src/handles.h"
#include "src/utils.h"
namespace v8 {
namespace internal {
template <typename T>
class Handle;
class UnicodeCache;
// Maximum number of significant digits in decimal representation.
......
......@@ -7,12 +7,14 @@
#include "src/allocation.h"
#include "src/base/atomicops.h"
#include "src/handles.h"
#include "src/utils.h"
namespace v8 {
namespace internal {
template <typename T>
class Handle;
class Execution final : public AllStatic {
public:
// Whether to report pending messages, or keep them pending on the isolate.
......
......@@ -11,7 +11,7 @@
#include "include/v8-experimental.h"
#include "src/base/macros.h"
#include "src/handles.h"
#include "src/zone/zone.h"
namespace v8 {
namespace internal {
......@@ -19,7 +19,8 @@ namespace internal {
class Code;
class CodeStubAssembler;
class Isolate;
class Zone;
template <typename T>
class MaybeHandle;
namespace compiler {
class Node;
......
......@@ -6,13 +6,15 @@
#define V8_FIELD_TYPE_H_
#include "src/ast/ast-types.h"
#include "src/handles.h"
#include "src/objects.h"
#include "src/ostreams.h"
namespace v8 {
namespace internal {
template <typename T>
class Handle;
class FieldType : public Object {
public:
static FieldType* None();
......
......@@ -13,7 +13,6 @@
#include "src/base/macros.h"
#include "src/base/platform/condition-variable.h"
#include "src/base/platform/mutex.h"
#include "src/handles.h"
// Support for emulating futexes, a low-level synchronization primitive. They
// are natively supported by Linux, but must be emulated for other platforms.
......@@ -31,6 +30,8 @@ class TimeDelta;
namespace internal {
template <typename T>
class Handle;
class Isolate;
class JSArrayBuffer;
......
......@@ -6,7 +6,6 @@
#ifndef V8_I18N_H_
#define V8_I18N_H_
#include "src/handles.h"
#include "src/objects.h"
#include "unicode/uversion.h"
......@@ -20,6 +19,9 @@ class SimpleDateFormat;
namespace v8 {
namespace internal {
template <typename T>
class Handle;
class DateFormat {
public:
// Create a formatter for the specificied locale and options. Returns the
......
......@@ -5,7 +5,6 @@
#ifndef V8_INTERPRETER_HANDLER_TABLE_BUILDER_H_
#define V8_INTERPRETER_HANDLER_TABLE_BUILDER_H_
#include "src/handles.h"
#include "src/interpreter/bytecode-register.h"
#include "src/interpreter/bytecodes.h"
#include "src/zone/zone-containers.h"
......@@ -13,6 +12,8 @@
namespace v8 {
namespace internal {
template <typename T>
class Handle;
class HandlerTable;
class Isolate;
......
......@@ -6,7 +6,6 @@
#define V8_OBJECTS_SCOPE_INFO_H_
#include "src/globals.h"
#include "src/handles.h"
#include "src/objects.h"
#include "src/utils.h"
......@@ -16,7 +15,11 @@
namespace v8 {
namespace internal {
template <typename T>
class Handle;
class Isolate;
template <typename T>
class MaybeHandle;
class Scope;
class Zone;
......
......@@ -5,7 +5,6 @@
#ifndef V8_PARSING_FUNC_NAME_INFERRER_H_
#define V8_PARSING_FUNC_NAME_INFERRER_H_
#include "src/handles.h"
#include "src/zone/zone.h"
namespace v8 {
......
......@@ -6,13 +6,15 @@
#define V8_PARSING_SCANNER_CHARACTER_STREAMS_H_
#include "include/v8.h" // for v8::ScriptCompiler
#include "src/handles.h"
namespace v8 {
namespace internal {
template <typename T>
class Handle;
class Utf16CharacterStream;
class RuntimeCallStats;
class String;
class ScannerStream {
public:
......
......@@ -7,7 +7,6 @@
#define V8_REGEXP_JSREGEXP_INL_H_
#include "src/allocation.h"
#include "src/handles.h"
#include "src/heap/heap.h"
#include "src/objects.h"
#include "src/regexp/jsregexp.h"
......
......@@ -8,7 +8,6 @@
#include "src/assert-scope.h"
#include "src/checks.h"
#include "src/globals.h"
#include "src/handles.h"
#include "src/source-position.h"
#include "src/zone/zone-containers.h"
......@@ -18,6 +17,8 @@ namespace internal {
class AbstractCode;
class BytecodeArray;
class ByteArray;
template <typename T>
class Handle;
class Isolate;
class Zone;
......
......@@ -5,7 +5,6 @@
#ifndef HEAP_HEAP_TESTER_H_
#define HEAP_HEAP_TESTER_H_
#include "src/handles.h"
#include "src/heap/spaces.h"
// Tests that should have access to private methods of {v8::internal::Heap}.
......@@ -56,6 +55,9 @@
namespace v8 {
namespace internal {
template <typename T>
class Handle;
class HeapTester {
public:
#define DECLARE_STATIC(Name) static void Test##Name();
......
......@@ -5,7 +5,6 @@
#ifndef V8_WASM_MODULE_RUNNER_H_
#define V8_WASM_MODULE_RUNNER_H_
#include "src/handles.h"
#include "src/isolate.h"
#include "src/objects.h"
#include "src/wasm/wasm-interpreter.h"
......@@ -16,6 +15,10 @@
namespace v8 {
namespace internal {
template <typename T>
class Handle;
namespace wasm {
namespace testing {
......
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