| 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 #ifndef V8_V8_H_ | 5 #ifndef V8_V8_H_ |
| 6 #define V8_V8_H_ | 6 #define V8_V8_H_ |
| 7 | 7 |
| 8 #include "include/v8.h" | 8 #include "include/v8.h" |
| 9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
| 10 | 10 |
| 11 #if defined(GOOGLE3) || defined(DCHECK_ALWAYS_ON) | |
| 12 // Google3 and Chromium special flag handling. | |
| 13 #if defined(DEBUG) && defined(NDEBUG) | |
| 14 // V8 only uses DEBUG and whenever it is set we are building a debug | |
| 15 // version of V8. We do not use NDEBUG and simply undef it here for | |
| 16 // consistency. | |
| 17 #undef NDEBUG | |
| 18 #endif | |
| 19 #endif // defined(GOOGLE3) | |
| 20 | |
| 21 // V8 only uses DEBUG, but included external files | |
| 22 // may use NDEBUG - make sure they are consistent. | |
| 23 #if defined(DEBUG) && defined(NDEBUG) | |
| 24 #error both DEBUG and NDEBUG are set | |
| 25 #endif | |
| 26 | |
| 27 namespace v8 { | 11 namespace v8 { |
| 28 namespace internal { | 12 namespace internal { |
| 29 | 13 |
| 30 class V8 : public AllStatic { | 14 class V8 : public AllStatic { |
| 31 public: | 15 public: |
| 32 // Global actions. | 16 // Global actions. |
| 33 | 17 |
| 34 static bool Initialize(); | 18 static bool Initialize(); |
| 35 static void TearDown(); | 19 static void TearDown(); |
| 36 | 20 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 50 static void InitializeOncePerProcessImpl(); | 34 static void InitializeOncePerProcessImpl(); |
| 51 static void InitializeOncePerProcess(); | 35 static void InitializeOncePerProcess(); |
| 52 | 36 |
| 53 // v8::Platform to use. | 37 // v8::Platform to use. |
| 54 static v8::Platform* platform_; | 38 static v8::Platform* platform_; |
| 55 }; | 39 }; |
| 56 | 40 |
| 57 } } // namespace v8::internal | 41 } } // namespace v8::internal |
| 58 | 42 |
| 59 #endif // V8_V8_H_ | 43 #endif // V8_V8_H_ |
| OLD | NEW |