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