A tiny contribution for the IWYU day: Include allocation.h in every

header which uses BASE_EMBEDDED and/or AllStatic. Note that still only
45 out of 135 headers in src/ can be used stand-alone, but at least
this is a little bit more than before...
Review URL: http://codereview.chromium.org/6931031

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7798 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2500f148
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#ifndef V8_ACCESSORS_H_ #ifndef V8_ACCESSORS_H_
#define V8_ACCESSORS_H_ #define V8_ACCESSORS_H_
#include "allocation.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#ifndef V8_ARGUMENTS_H_ #ifndef V8_ARGUMENTS_H_
#define V8_ARGUMENTS_H_ #define V8_ARGUMENTS_H_
#include "allocation.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#ifndef V8_ASSEMBLER_H_ #ifndef V8_ASSEMBLER_H_
#define V8_ASSEMBLER_H_ #define V8_ASSEMBLER_H_
#include "allocation.h"
#include "gdb-jit.h" #include "gdb-jit.h"
#include "runtime.h" #include "runtime.h"
#include "token.h" #include "token.h"
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_AST_H_ #ifndef V8_AST_H_
#define V8_AST_H_ #define V8_AST_H_
#include "allocation.h"
#include "execution.h" #include "execution.h"
#include "factory.h" #include "factory.h"
#include "jsregexp.h" #include "jsregexp.h"
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#ifndef V8_BOOTSTRAPPER_H_ #ifndef V8_BOOTSTRAPPER_H_
#define V8_BOOTSTRAPPER_H_ #define V8_BOOTSTRAPPER_H_
#include "allocation.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_CODE_STUBS_H_ #ifndef V8_CODE_STUBS_H_
#define V8_CODE_STUBS_H_ #define V8_CODE_STUBS_H_
#include "allocation.h"
#include "globals.h" #include "globals.h"
namespace v8 { namespace v8 {
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#ifndef V8_CODE_H_ #ifndef V8_CODE_H_
#define V8_CODE_H_ #define V8_CODE_H_
#include "allocation.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_COMPILER_H_ #ifndef V8_COMPILER_H_
#define V8_COMPILER_H_ #define V8_COMPILER_H_
#include "allocation.h"
#include "ast.h" #include "ast.h"
#include "frame-element.h" #include "frame-element.h"
#include "zone.h" #include "zone.h"
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#ifdef ENABLE_LOGGING_AND_PROFILING #ifdef ENABLE_LOGGING_AND_PROFILING
#include "allocation.h"
#include "atomicops.h" #include "atomicops.h"
#include "circular-queue.h" #include "circular-queue.h"
#include "unbound-queue.h" #include "unbound-queue.h"
......
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
#ifndef V8_CPU_H_ #ifndef V8_CPU_H_
#define V8_CPU_H_ #define V8_CPU_H_
#include "allocation.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_D8_H_ #ifndef V8_D8_H_
#define V8_D8_H_ #define V8_D8_H_
#include "allocation.h"
#include "v8.h" #include "v8.h"
#include "hashmap.h" #include "hashmap.h"
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "v8.h" #include "v8.h"
#include "allocation.h"
#include "ast.h" #include "ast.h"
#include "compiler.h" #include "compiler.h"
#include "zone-inl.h" #include "zone-inl.h"
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_DATEPARSER_H_ #ifndef V8_DATEPARSER_H_
#define V8_DATEPARSER_H_ #define V8_DATEPARSER_H_
#include "allocation.h"
#include "char-predicates-inl.h" #include "char-predicates-inl.h"
#include "scanner-base.h" #include "scanner-base.h"
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_DEBUG_H_ #ifndef V8_DEBUG_H_
#define V8_DEBUG_H_ #define V8_DEBUG_H_
#include "allocation.h"
#include "arguments.h" #include "arguments.h"
#include "assembler.h" #include "assembler.h"
#include "debug-agent.h" #include "debug-agent.h"
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "v8.h" #include "v8.h"
#include "allocation.h"
#include "macro-assembler.h" #include "macro-assembler.h"
#include "zone-inl.h" #include "zone-inl.h"
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#ifndef V8_DISASSEMBLER_H_ #ifndef V8_DISASSEMBLER_H_
#define V8_DISASSEMBLER_H_ #define V8_DISASSEMBLER_H_
#include "allocation.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#ifndef V8_EXECUTION_H_ #ifndef V8_EXECUTION_H_
#define V8_EXECUTION_H_ #define V8_EXECUTION_H_
#include "allocation.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_FRAME_ELEMENT_H_ #ifndef V8_FRAME_ELEMENT_H_
#define V8_FRAME_ELEMENT_H_ #define V8_FRAME_ELEMENT_H_
#include "allocation.h"
#include "type-info.h" #include "type-info.h"
#include "macro-assembler.h" #include "macro-assembler.h"
#include "zone.h" #include "zone.h"
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_FRAMES_H_ #ifndef V8_FRAMES_H_
#define V8_FRAMES_H_ #define V8_FRAMES_H_
#include "allocation.h"
#include "handles.h" #include "handles.h"
#include "safepoint-table.h" #include "safepoint-table.h"
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "v8.h" #include "v8.h"
#include "allocation.h"
#include "ast.h" #include "ast.h"
#include "code-stubs.h" #include "code-stubs.h"
#include "codegen.h" #include "codegen.h"
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#ifndef V8_GDB_JIT_H_ #ifndef V8_GDB_JIT_H_
#define V8_GDB_JIT_H_ #define V8_GDB_JIT_H_
#include "allocation.h"
// //
// Basic implementation of GDB JIT Interface client. // Basic implementation of GDB JIT Interface client.
// GBD JIT Interface is supported in GDB 7.0 and above. // GBD JIT Interface is supported in GDB 7.0 and above.
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_HANDLES_H_ #ifndef V8_HANDLES_H_
#define V8_HANDLES_H_ #define V8_HANDLES_H_
#include "allocation.h"
#include "apiutils.h" #include "apiutils.h"
namespace v8 { namespace v8 {
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_HEAP_PROFILER_H_ #ifndef V8_HEAP_PROFILER_H_
#define V8_HEAP_PROFILER_H_ #define V8_HEAP_PROFILER_H_
#include "allocation.h"
#include "isolate.h" #include "isolate.h"
#include "zone-inl.h" #include "zone-inl.h"
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <math.h> #include <math.h>
#include "allocation.h"
#include "globals.h" #include "globals.h"
#include "list.h" #include "list.h"
#include "mark-compact.h" #include "mark-compact.h"
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "v8.h" #include "v8.h"
#include "allocation.h"
#include "code-stubs.h" #include "code-stubs.h"
#include "data-flow.h" #include "data-flow.h"
#include "small-pointer-list.h" #include "small-pointer-list.h"
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "v8.h" #include "v8.h"
#include "allocation.h"
#include "ast.h" #include "ast.h"
#include "compiler.h" #include "compiler.h"
#include "hydrogen-instructions.h" #include "hydrogen-instructions.h"
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_JSREGEXP_H_ #ifndef V8_JSREGEXP_H_
#define V8_JSREGEXP_H_ #define V8_JSREGEXP_H_
#include "allocation.h"
#include "macro-assembler.h" #include "macro-assembler.h"
#include "zone-inl.h" #include "zone-inl.h"
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "v8.h" #include "v8.h"
#include "allocation.h"
#include "lithium.h" #include "lithium.h"
#include "zone.h" #include "zone.h"
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_LITHIUM_H_ #ifndef V8_LITHIUM_H_
#define V8_LITHIUM_H_ #define V8_LITHIUM_H_
#include "allocation.h"
#include "hydrogen.h" #include "hydrogen.h"
#include "safepoint-table.h" #include "safepoint-table.h"
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
// instantiate newly compiled functions. // instantiate newly compiled functions.
#include "allocation.h"
#include "compiler.h" #include "compiler.h"
namespace v8 { namespace v8 {
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#ifndef V8_LOG_UTILS_H_ #ifndef V8_LOG_UTILS_H_
#define V8_LOG_UTILS_H_ #define V8_LOG_UTILS_H_
#include "allocation.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_LOG_H_ #ifndef V8_LOG_H_
#define V8_LOG_H_ #define V8_LOG_H_
#include "allocation.h"
#include "platform.h" #include "platform.h"
#include "log-utils.h" #include "log-utils.h"
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#ifndef V8_OBJECTS_VISITING_H_ #ifndef V8_OBJECTS_VISITING_H_
#define V8_OBJECTS_VISITING_H_ #define V8_OBJECTS_VISITING_H_
#include "allocation.h"
// This file provides base classes and auxiliary methods for defining // This file provides base classes and auxiliary methods for defining
// static object visitors used during GC. // static object visitors used during GC.
// Visiting HeapObject body with a normal ObjectVisitor requires performing // Visiting HeapObject body with a normal ObjectVisitor requires performing
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_OBJECTS_H_ #ifndef V8_OBJECTS_H_
#define V8_OBJECTS_H_ #define V8_OBJECTS_H_
#include "allocation.h"
#include "builtins.h" #include "builtins.h"
#include "smart-pointer.h" #include "smart-pointer.h"
#include "unicode-inl.h" #include "unicode-inl.h"
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_PREPARSER_DATA_H_ #ifndef V8_PREPARSER_DATA_H_
#define V8_PREPARSER_DATA_H_ #define V8_PREPARSER_DATA_H_
#include "allocation.h"
#include "hashmap.h" #include "hashmap.h"
#include "utils-inl.h" #include "utils-inl.h"
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_PRETTYPRINTER_H_ #ifndef V8_PRETTYPRINTER_H_
#define V8_PRETTYPRINTER_H_ #define V8_PRETTYPRINTER_H_
#include "allocation.h"
#include "ast.h" #include "ast.h"
namespace v8 { namespace v8 {
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#ifdef ENABLE_LOGGING_AND_PROFILING #ifdef ENABLE_LOGGING_AND_PROFILING
#include "allocation.h"
#include "hashmap.h" #include "hashmap.h"
#include "../include/v8-profiler.h" #include "../include/v8-profiler.h"
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#ifndef V8_PROPERTY_H_ #ifndef V8_PROPERTY_H_
#define V8_PROPERTY_H_ #define V8_PROPERTY_H_
#include "allocation.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_RUNTIME_H_ #ifndef V8_RUNTIME_H_
#define V8_RUNTIME_H_ #define V8_RUNTIME_H_
#include "allocation.h"
#include "zone.h" #include "zone.h"
namespace v8 { namespace v8 {
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_SAFEPOINT_TABLE_H_ #ifndef V8_SAFEPOINT_TABLE_H_
#define V8_SAFEPOINT_TABLE_H_ #define V8_SAFEPOINT_TABLE_H_
#include "allocation.h"
#include "heap.h" #include "heap.h"
#include "v8memory.h" #include "v8memory.h"
#include "zone.h" #include "zone.h"
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_SCOPEINFO_H_ #ifndef V8_SCOPEINFO_H_
#define V8_SCOPEINFO_H_ #define V8_SCOPEINFO_H_
#include "allocation.h"
#include "variables.h" #include "variables.h"
#include "zone-inl.h" #include "zone-inl.h"
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_SPACES_H_ #ifndef V8_SPACES_H_
#define V8_SPACES_H_ #define V8_SPACES_H_
#include "allocation.h"
#include "list.h" #include "list.h"
#include "log.h" #include "log.h"
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#ifndef V8_SPLAY_TREE_H_ #ifndef V8_SPLAY_TREE_H_
#define V8_SPLAY_TREE_H_ #define V8_SPLAY_TREE_H_
#include "allocation.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_STUB_CACHE_H_ #ifndef V8_STUB_CACHE_H_
#define V8_STUB_CACHE_H_ #define V8_STUB_CACHE_H_
#include "allocation.h"
#include "arguments.h" #include "arguments.h"
#include "macro-assembler.h" #include "macro-assembler.h"
#include "zone-inl.h" #include "zone-inl.h"
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_TYPE_INFO_H_ #ifndef V8_TYPE_INFO_H_
#define V8_TYPE_INFO_H_ #define V8_TYPE_INFO_H_
#include "allocation.h"
#include "globals.h" #include "globals.h"
#include "zone.h" #include "zone.h"
#include "zone-inl.h" #include "zone-inl.h"
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#ifndef V8_UNBOUND_QUEUE_ #ifndef V8_UNBOUND_QUEUE_
#define V8_UNBOUND_QUEUE_ #define V8_UNBOUND_QUEUE_
#include "allocation.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef V8_VM_STATE_H_ #ifndef V8_VM_STATE_H_
#define V8_VM_STATE_H_ #define V8_VM_STATE_H_
#include "allocation.h"
#include "isolate.h" #include "isolate.h"
namespace v8 { namespace v8 {
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#ifndef V8_ZONE_H_ #ifndef V8_ZONE_H_
#define V8_ZONE_H_ #define V8_ZONE_H_
#include "allocation.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
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