A tiny contribution for the IWYU day: Include allocation.h in every
authorsvenpanne@chromium.org <svenpanne@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 6 May 2011 06:50:20 +0000 (06:50 +0000)
committersvenpanne@chromium.org <svenpanne@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 6 May 2011 06:50:20 +0000 (06:50 +0000)
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

48 files changed:
src/accessors.h
src/arguments.h
src/assembler.h
src/ast.h
src/bootstrapper.h
src/code-stubs.h
src/code.h
src/compiler.h
src/cpu-profiler.h
src/cpu.h
src/d8.h
src/data-flow.h
src/dateparser.h
src/debug.h
src/deoptimizer.h
src/disassembler.h
src/execution.h
src/frame-element.h
src/frames.h
src/full-codegen.h
src/gdb-jit.h
src/handles.h
src/heap-profiler.h
src/heap.h
src/hydrogen-instructions.h
src/hydrogen.h
src/jsregexp.h
src/lithium-allocator.h
src/lithium.h
src/liveedit.h
src/log-utils.h
src/log.h
src/objects-visiting.h
src/objects.h
src/preparse-data.h
src/prettyprinter.h
src/profile-generator.h
src/property.h
src/runtime.h
src/safepoint-table.h
src/scopeinfo.h
src/spaces.h
src/splay-tree.h
src/stub-cache.h
src/type-info.h
src/unbound-queue.h
src/vm-state.h
src/zone.h

index 14ccc8fb852da8e9f8281da3c064f0c982a50053..385536d22ee16a42425f98a30c9306e1f63f9779 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef V8_ACCESSORS_H_
 #define V8_ACCESSORS_H_
 
+#include "allocation.h"
+
 namespace v8 {
 namespace internal {
 
index a7a30e297dc80db801d9a3307a893cec767c5af7..a0805812052c991f972f124a438db0a7a1921fab 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef V8_ARGUMENTS_H_
 #define V8_ARGUMENTS_H_
 
+#include "allocation.h"
+
 namespace v8 {
 namespace internal {
 
index d2807accf28f570f8c2e7778518ed69cde510d22..10d90a922b19a94a22682bdbb4c919677513a7bf 100644 (file)
@@ -35,6 +35,7 @@
 #ifndef V8_ASSEMBLER_H_
 #define V8_ASSEMBLER_H_
 
+#include "allocation.h"
 #include "gdb-jit.h"
 #include "runtime.h"
 #include "token.h"
index b98b8e761e3aeeb1dc42c9c58edb2636ef66391a..3de84bd7102ebad5ad35b7435eaef694ee0342bb 100644 (file)
--- a/src/ast.h
+++ b/src/ast.h
@@ -28,6 +28,7 @@
 #ifndef V8_AST_H_
 #define V8_AST_H_
 
+#include "allocation.h"
 #include "execution.h"
 #include "factory.h"
 #include "jsregexp.h"
index 018ceef3a6249c2c5049c362cf7de0b1065b2b76..2f06608a62dfd5ea2e57c1f692de24521dab5376 100644 (file)
@@ -29,6 +29,8 @@
 #ifndef V8_BOOTSTRAPPER_H_
 #define V8_BOOTSTRAPPER_H_
 
+#include "allocation.h"
+
 namespace v8 {
 namespace internal {
 
index a3de29afe0a3dacfa7b7bc7e8e43e3015eadd42d..4c5b2ff090fc3a2e75d412d6b915cdbe13be19d1 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_CODE_STUBS_H_
 #define V8_CODE_STUBS_H_
 
+#include "allocation.h"
 #include "globals.h"
 
 namespace v8 {
index 072344b67dadaa746bf25195196fa92ebb5667b1..766c932e0f6182697670996180f5f66829751245 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef V8_CODE_H_
 #define V8_CODE_H_
 
+#include "allocation.h"
+
 namespace v8 {
 namespace internal {
 
index e75e86956bb91d897ad5c3536e320d4c6c1744cf..c19ceff0751381ab7acee0bbd7533008a7f9ce2e 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_COMPILER_H_
 #define V8_COMPILER_H_
 
+#include "allocation.h"
 #include "ast.h"
 #include "frame-element.h"
 #include "zone.h"
index 4e395271b4f952f22b3fb7ec65d51cebe78151e6..9481d3b1d27da0178ee0094da274544346d86afe 100644 (file)
@@ -30,6 +30,7 @@
 
 #ifdef ENABLE_LOGGING_AND_PROFILING
 
+#include "allocation.h"
 #include "atomicops.h"
 #include "circular-queue.h"
 #include "unbound-queue.h"
index e3073027c1a7559d9a4bbda6d082e69e2783b911..2525484a016d0deb24c6d9177f1f70b930a20ffe 100644 (file)
--- a/src/cpu.h
+++ b/src/cpu.h
@@ -36,6 +36,8 @@
 #ifndef V8_CPU_H_
 #define V8_CPU_H_
 
+#include "allocation.h"
+
 namespace v8 {
 namespace internal {
 
index 6c973ad79d8fd641a59c87a30668e67ea6a54f4c..dc0232295d2f80c1cfdca11417746606d3c3067c 100644 (file)
--- a/src/d8.h
+++ b/src/d8.h
@@ -28,6 +28,7 @@
 #ifndef V8_D8_H_
 #define V8_D8_H_
 
+#include "allocation.h"
 #include "v8.h"
 #include "hashmap.h"
 
index da921029e7e35196dd3069ace940c3b37f434242..d69d6c7a52472cbf628cee176d89572821916bbe 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "v8.h"
 
+#include "allocation.h"
 #include "ast.h"
 #include "compiler.h"
 #include "zone-inl.h"
index 9d297155230b13c8664b7a1a754fe9ed423e0d93..6e87c3418519bb8a322086052f9576fd0ce4b6da 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_DATEPARSER_H_
 #define V8_DATEPARSER_H_
 
+#include "allocation.h"
 #include "char-predicates-inl.h"
 #include "scanner-base.h"
 
index dbaabe9e1af5308b486ad6f515eb26a1cdaef636..95dca729247e4baac1a606a173e9fdc8e120fc27 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_DEBUG_H_
 #define V8_DEBUG_H_
 
+#include "allocation.h"
 #include "arguments.h"
 #include "assembler.h"
 #include "debug-agent.h"
index cb82f446beacc838a46c292def294ffe5ba3c767..7c5dfb8799c2907228517eeffab804ba87faaeae 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "v8.h"
 
+#include "allocation.h"
 #include "macro-assembler.h"
 #include "zone-inl.h"
 
index 68a338d18ace18227128d66336a59bc4d8379216..4a87dca678172c5361cd3276f3cd37f18b74e51c 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef V8_DISASSEMBLER_H_
 #define V8_DISASSEMBLER_H_
 
+#include "allocation.h"
+
 namespace v8 {
 namespace internal {
 
index 8f83b8963bcd51329f67e74a2d6253077a417e05..74189a2d4b87e980ad5acfb8a63687f7ccac57de 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef V8_EXECUTION_H_
 #define V8_EXECUTION_H_
 
+#include "allocation.h"
+
 namespace v8 {
 namespace internal {
 
index 0c7d0103e02d1fbebe6004b2112f9c41ee75c646..d2e41ebf7ceb00867820953155b13ef15509c8ea 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_FRAME_ELEMENT_H_
 #define V8_FRAME_ELEMENT_H_
 
+#include "allocation.h"
 #include "type-info.h"
 #include "macro-assembler.h"
 #include "zone.h"
index da9009be3020e6448e87733928660cf115e43fe6..27ba33913bcad3afe57964af8c66ebc0d06b828b 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_FRAMES_H_
 #define V8_FRAMES_H_
 
+#include "allocation.h"
 #include "handles.h"
 #include "safepoint-table.h"
 
index f5e819cf59ce72909d4c00a516909121d06b9793..859c342d970679a5b8d19348103e22713e097313 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "v8.h"
 
+#include "allocation.h"
 #include "ast.h"
 #include "code-stubs.h"
 #include "codegen.h"
index de6928f817c4b3255f155d5337f61fe47355af87..0c80fb65b759527faca15d40a7cafb7a2a8c2c99 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef V8_GDB_JIT_H_
 #define V8_GDB_JIT_H_
 
+#include "allocation.h"
+
 //
 // Basic implementation of GDB JIT Interface client.
 // GBD JIT Interface is supported in GDB 7.0 and above.
index 3839f37a9e88c3d4977be8c700f4d2893a2b35a9..ed8a824cd8c370627993bc42e23c751c82ab0462 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_HANDLES_H_
 #define V8_HANDLES_H_
 
+#include "allocation.h"
 #include "apiutils.h"
 
 namespace v8 {
index 89a2e8a508aecd1d5ec010d54723442cd594a67d..c1e93c09caabde6f22c994676a836a1d31d921ce 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_HEAP_PROFILER_H_
 #define V8_HEAP_PROFILER_H_
 
+#include "allocation.h"
 #include "isolate.h"
 #include "zone-inl.h"
 
index d0c1551aae9ed88ea9090cc0337634a8ec410c42..4f03572964e19a25c2e18cbdb01bc884eba5a02a 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <math.h>
 
+#include "allocation.h"
 #include "globals.h"
 #include "list.h"
 #include "mark-compact.h"
index 82fdfa70a2161309b690b64b05e14eeeef14f2e3..5a502e5cd116e2d54f8510d12f92d17158e021f3 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "v8.h"
 
+#include "allocation.h"
 #include "code-stubs.h"
 #include "data-flow.h"
 #include "small-pointer-list.h"
index 595dba30a6058f67786e9b076c1bac083ac0f4f1..bd51dd15651cc10fb53e2454fca2cfe1c6ea1451 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "v8.h"
 
+#include "allocation.h"
 #include "ast.h"
 #include "compiler.h"
 #include "hydrogen-instructions.h"
index b9b2f60406d9c68c4c823cdd6f452879ffdc3ea5..e1892de7142f144c238ea888a6a798df151c5e6b 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_JSREGEXP_H_
 #define V8_JSREGEXP_H_
 
+#include "allocation.h"
 #include "macro-assembler.h"
 #include "zone-inl.h"
 
index 7fff294bd1073cf7b059b67b5c00986b0e12b270..d4565587f4ebe4912764ecdf7b4996c6b2dd5363 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "v8.h"
 
+#include "allocation.h"
 #include "lithium.h"
 #include "zone.h"
 
index d85a87c12e9fa1848858733b570ddd8f4387277e..c5486847dada8842302cebe5c98116aae67e56ee 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_LITHIUM_H_
 #define V8_LITHIUM_H_
 
+#include "allocation.h"
 #include "hydrogen.h"
 #include "safepoint-table.h"
 
index 36c2c760677c8e9c80d74d7b701a725245de3172..60e6238c80420f4cce490373de01e2f86c1d552c 100644 (file)
@@ -49,6 +49,7 @@
 // instantiate newly compiled functions.
 
 
+#include "allocation.h"
 #include "compiler.h"
 
 namespace v8 {
index 0dbaa9f2141edda5aadd4752aaa3e417b97c77c8..81bbf779f333fa8f043898cc0fffedfd189008e3 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef V8_LOG_UTILS_H_
 #define V8_LOG_UTILS_H_
 
+#include "allocation.h"
+
 namespace v8 {
 namespace internal {
 
index 980af1e8fd4723023bdb14d438bbcfedc4057fa2..3434b736f34598d66e451f39729aa679bb9f93de 100644 (file)
--- a/src/log.h
+++ b/src/log.h
@@ -28,6 +28,7 @@
 #ifndef V8_LOG_H_
 #define V8_LOG_H_
 
+#include "allocation.h"
 #include "platform.h"
 #include "log-utils.h"
 
index da955da614f42cd7148f92794afa7b9f9339408e..d06140c332fab2a4ef7e844318630ad8775b9608 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef V8_OBJECTS_VISITING_H_
 #define V8_OBJECTS_VISITING_H_
 
+#include "allocation.h"
+
 // This file provides base classes and auxiliary methods for defining
 // static object visitors used during GC.
 // Visiting HeapObject body with a normal ObjectVisitor requires performing
index 1e62ce0110f74dcb9ed66d8ba04574770a49f4d2..77aab244709a31870a5e36578f2631d78596cf07 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_OBJECTS_H_
 #define V8_OBJECTS_H_
 
+#include "allocation.h"
 #include "builtins.h"
 #include "smart-pointer.h"
 #include "unicode-inl.h"
index e12203a631d2ba761c7093ecbe5093400eda1a67..0c5bd3aebe0fef12e7eda182c20ae3a2ca51325c 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_PREPARSER_DATA_H_
 #define V8_PREPARSER_DATA_H_
 
+#include "allocation.h"
 #include "hashmap.h"
 #include "utils-inl.h"
 
index 451b17eaf20ac94d537f9c7b1737993400135243..080081dd301d08468f600819527ea6d412875f93 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_PRETTYPRINTER_H_
 #define V8_PRETTYPRINTER_H_
 
+#include "allocation.h"
 #include "ast.h"
 
 namespace v8 {
index bbc9efc7e487b4ffbabdb0f2d534b0e3a42cb3ca..5b789ac3d4eec66be337a9a03b36289157081a8a 100644 (file)
@@ -30,6 +30,7 @@
 
 #ifdef ENABLE_LOGGING_AND_PROFILING
 
+#include "allocation.h"
 #include "hashmap.h"
 #include "../include/v8-profiler.h"
 
index ee95ca217a28b42b7916b3d36dceef2a2843a41c..5cd3c6696178c69155f8200214cd001fc30b2cbb 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef V8_PROPERTY_H_
 #define V8_PROPERTY_H_
 
+#include "allocation.h"
+
 namespace v8 {
 namespace internal {
 
index f9a9cad30a08d1f566219dc0457452a95b87a6b1..f0beaf5442fb040dc8874c823d485e38c2be33b8 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_RUNTIME_H_
 #define V8_RUNTIME_H_
 
+#include "allocation.h"
 #include "zone.h"
 
 namespace v8 {
index 084a0b4f15ee730f9c6e71ba8a1d596fefe49a9f..de537f98284c73fd5faf502859e9ae8b3c495d6a 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_SAFEPOINT_TABLE_H_
 #define V8_SAFEPOINT_TABLE_H_
 
+#include "allocation.h"
 #include "heap.h"
 #include "v8memory.h"
 #include "zone.h"
index 2552af22f57bc099227cd575937eded7654a0721..9e607fe46170a741d6eca80a9e753c987aa81901 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_SCOPEINFO_H_
 #define V8_SCOPEINFO_H_
 
+#include "allocation.h"
 #include "variables.h"
 #include "zone-inl.h"
 
index 8269ea6a27e628dbdb7a2e8fcd7a5db6a1d0dfd0..4024387cd8791386e6966539d38245159674cd2b 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_SPACES_H_
 #define V8_SPACES_H_
 
+#include "allocation.h"
 #include "list.h"
 #include "log.h"
 
index c265276003e3d03a9934f2822e81a4b2cdf6db73..0cb9ea8405dd0bb7265f6737ff06d24ee7729207 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef V8_SPLAY_TREE_H_
 #define V8_SPLAY_TREE_H_
 
+#include "allocation.h"
+
 namespace v8 {
 namespace internal {
 
index c5dcf36ddbc94b1915370ff9bd3c7bf290ef335f..358f205b94c22a83c6083c95dd798fcd4780b0d0 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_STUB_CACHE_H_
 #define V8_STUB_CACHE_H_
 
+#include "allocation.h"
 #include "arguments.h"
 #include "macro-assembler.h"
 #include "zone-inl.h"
index a715bc786ef17d03e191fbb0c705c129e99ed213..5bfd4cd09e716cc9e8d9e4315732c9f311b8a3f4 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_TYPE_INFO_H_
 #define V8_TYPE_INFO_H_
 
+#include "allocation.h"
 #include "globals.h"
 #include "zone.h"
 #include "zone-inl.h"
index 443d5ce6d88a78cf95ba19a1ef7a6bf50663056c..59a426b7fedf72c822a6d8d4aaf1ee2aa75b3213 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef V8_UNBOUND_QUEUE_
 #define V8_UNBOUND_QUEUE_
 
+#include "allocation.h"
+
 namespace v8 {
 namespace internal {
 
index 11fc6d67ef5981e0003ae52e6d52f2bbca41ed2a..2062340f9b8fb534025ca7dc4ed0ce45cf9c2c64 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef V8_VM_STATE_H_
 #define V8_VM_STATE_H_
 
+#include "allocation.h"
 #include "isolate.h"
 
 namespace v8 {
index 9efe4f5d0511a533cb37ff9dc09355be23202d46..94a6241278d8f0095f5352d240e86e746acc80d6 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef V8_ZONE_H_
 #define V8_ZONE_H_
 
+#include "allocation.h"
+
 namespace v8 {
 namespace internal {