Reviewers: Kevin Millikin,

Message:
PTAL.

First attempt at this. For this file set it worked pretty well, for some others
it failed. I guess some manual work would have been necessary.

Description:
Include what you use for the files zone*

BUG=
TEST=


Please review this at http://codereview.chromium.org/9297052/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/zone-inl.h
  M src/zone.h
  M src/zone.cc


Index: src/zone-inl.h
diff --git a/src/zone-inl.h b/src/zone-inl.h
index 7e506e7cac172c3f07d453c7566c3dfcc838e7bb..3c2e598fba30bc022fe83d909ab36b42364d07db 100644
--- a/src/zone-inl.h
+++ b/src/zone-inl.h
@@ -28,9 +28,17 @@
 #ifndef V8_ZONE_INL_H_
 #define V8_ZONE_INL_H_

+#include <stddef.h>
+#include <stdint.h>
+
+#include "checks.h"
+#include "counters.h"
+#include "globals.h"
 #include "isolate.h"
-#include "zone.h"
+#include "splay-tree.h"
+#include "utils.h"
 #include "v8-counters.h"
+#include "zone.h"

 namespace v8 {
 namespace internal {
Index: src/zone.cc
diff --git a/src/zone.cc b/src/zone.cc
index 2d14d137efddf6119c8dd24daf7b5d5b4490375a..0f810a0a4245c2019f424554584bd7d53fb3481c 100644
--- a/src/zone.cc
+++ b/src/zone.cc
@@ -25,10 +25,11 @@
 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-#include "v8.h"
+#include <string.h>

+#include "allocation.h"
+#include "v8.h"
 #include "zone-inl.h"
-#include "splay-tree-inl.h"

 namespace v8 {
 namespace internal {
Index: src/zone.h
diff --git a/src/zone.h b/src/zone.h
index 2ca3c4d369e3977be5ecbf002c9b528985636547..d0db912c0cb3a5c88093e3d01d72d04afe222a75 100644
--- a/src/zone.h
+++ b/src/zone.h
@@ -28,7 +28,13 @@
 #ifndef V8_ZONE_H_
 #define V8_ZONE_H_

+#include <stddef.h>
+
 #include "allocation.h"
+#include "checks.h"
+#include "globals.h"
+#include "list.h"
+#include "splay-tree.h"

 namespace v8 {
 namespace internal {
@@ -42,6 +48,7 @@ enum ZoneScopeMode {
 };

 class Segment;
+class Isolate;

 // The Zone supports very fast allocation of small chunks of
 // memory. The chunks cannot be deallocated individually, but instead


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to