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