OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // | 5 // |
6 // Top include for all V8 .cc files. | 6 // Top include for all V8 .cc files. |
7 // | 7 // |
8 | 8 |
9 #ifndef V8_V8_H_ | 9 #ifndef V8_V8_H_ |
10 #define V8_V8_H_ | 10 #define V8_V8_H_ |
11 | 11 |
12 #if defined(GOOGLE3) | 12 #if defined(GOOGLE3) |
13 // Google3 special flag handling. | 13 // Google3 special flag handling. |
14 #if defined(DEBUG) && defined(NDEBUG) | 14 #if defined(DEBUG) && defined(NDEBUG) |
15 // V8 only uses DEBUG and whenever it is set we are building a debug | 15 // V8 only uses DEBUG and whenever it is set we are building a debug |
16 // version of V8. We do not use NDEBUG and simply undef it here for | 16 // version of V8. We do not use NDEBUG and simply undef it here for |
17 // consistency. | 17 // consistency. |
18 #undef NDEBUG | 18 #undef NDEBUG |
19 #endif | 19 #endif |
20 #endif // defined(GOOGLE3) | 20 #endif // defined(GOOGLE3) |
21 | 21 |
22 // V8 only uses DEBUG, but included external files | 22 // V8 only uses DEBUG, but included external files |
23 // may use NDEBUG - make sure they are consistent. | 23 // may use NDEBUG - make sure they are consistent. |
24 #if defined(DEBUG) && defined(NDEBUG) | 24 #if defined(DEBUG) && defined(NDEBUG) |
25 #error both DEBUG and NDEBUG are set | 25 #error both DEBUG and NDEBUG are set |
26 #endif | 26 #endif |
27 | 27 |
28 // Basic includes | 28 // Basic includes |
29 #include "../include/v8.h" | 29 #include "include/v8.h" |
30 #include "../include/v8-platform.h" | 30 #include "include/v8-platform.h" |
31 #include "v8checks.h" | 31 #include "src/v8checks.h" |
32 #include "allocation.h" | 32 #include "src/allocation.h" |
33 #include "assert-scope.h" | 33 #include "src/assert-scope.h" |
34 #include "utils.h" | 34 #include "src/utils.h" |
35 #include "flags.h" | 35 #include "src/flags.h" |
36 #include "globals.h" | 36 #include "src/globals.h" |
37 | 37 |
38 // Objects & heap | 38 // Objects & heap |
39 #include "objects-inl.h" | 39 #include "src/objects-inl.h" |
40 #include "spaces-inl.h" | 40 #include "src/spaces-inl.h" |
41 #include "heap-inl.h" | 41 #include "src/heap-inl.h" |
42 #include "incremental-marking-inl.h" | 42 #include "src/incremental-marking-inl.h" |
43 #include "mark-compact-inl.h" | 43 #include "src/mark-compact-inl.h" |
44 #include "log-inl.h" | 44 #include "src/log-inl.h" |
45 #include "handles-inl.h" | 45 #include "src/handles-inl.h" |
46 #include "types-inl.h" | 46 #include "src/types-inl.h" |
47 #include "zone-inl.h" | 47 #include "src/zone-inl.h" |
48 | 48 |
49 namespace v8 { | 49 namespace v8 { |
50 namespace internal { | 50 namespace internal { |
51 | 51 |
52 class Deserializer; | 52 class Deserializer; |
53 | 53 |
54 class V8 : public AllStatic { | 54 class V8 : public AllStatic { |
55 public: | 55 public: |
56 // Global actions. | 56 // Global actions. |
57 | 57 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 }; | 99 }; |
100 | 100 |
101 | 101 |
102 // JavaScript defines two kinds of 'nil'. | 102 // JavaScript defines two kinds of 'nil'. |
103 enum NilValue { kNullValue, kUndefinedValue }; | 103 enum NilValue { kNullValue, kUndefinedValue }; |
104 | 104 |
105 | 105 |
106 } } // namespace v8::internal | 106 } } // namespace v8::internal |
107 | 107 |
108 #endif // V8_V8_H_ | 108 #endif // V8_V8_H_ |
OLD | NEW |