[heap] Avoid inclusion of heap internals in v8.h header.
authormstarzinger <mstarzinger@chromium.org>
Mon, 10 Aug 2015 17:06:04 +0000 (10:06 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 10 Aug 2015 17:06:12 +0000 (17:06 +0000)
R=mlippautz@chromium.org

Review URL: https://codereview.chromium.org/1283833002

Cr-Commit-Position: refs/heads/master@{#30093}

src/DEPS
src/heap/heap-inl.h
src/v8.h

index 80dab6b..021cd3b 100644 (file)
--- a/src/DEPS
+++ b/src/DEPS
@@ -16,11 +16,6 @@ specific_include_rules = {
   "d8\.cc": [
     "+include/libplatform/libplatform.h",
   ],
-  # TODO(mstarzinger): Get rid of grab-bag includes from heap in v8.h soon.
-  "v8\.h": [
-    "+src/heap/spaces-inl.h",
-    "+src/heap/incremental-marking-inl.h",
-  ],
   # TODO(mstarzinger): Only needed because of Code::CodeIterateBody cyclicity.
   "objects\.cc": [
     "+src/heap/objects-visiting-inl.h",
index fdb1d73..45ba379 100644 (file)
@@ -9,6 +9,8 @@
 
 #include "src/base/platform/platform.h"
 #include "src/heap/heap.h"
+#include "src/heap/incremental-marking-inl.h"
+#include "src/heap/spaces-inl.h"
 #include "src/heap/store-buffer.h"
 #include "src/heap/store-buffer-inl.h"
 #include "src/heap-profiler.h"
index 41d4c36..c516cac 100644 (file)
--- a/src/v8.h
+++ b/src/v8.h
 #include "src/flags.h"  // NOLINT
 #include "src/globals.h"  // NOLINT
 
-// Objects & heap
+// Objects
 #include "src/objects-inl.h"  // NOLINT
-#include "src/heap/spaces-inl.h"               // NOLINT
-#include "src/heap/incremental-marking-inl.h"  // NOLINT
 #include "src/log-inl.h"  // NOLINT
 #include "src/handles-inl.h"  // NOLINT
 #include "src/types-inl.h"  // NOLINT