| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 // | 28 // |
| 29 // Top include for all V8 .cc files. | 29 // Top include for all V8 .cc files. |
| 30 // | 30 // |
| 31 | 31 |
| 32 #ifndef V8_V8_H_ | 32 #ifndef V8_V8_H_ |
| 33 #define V8_V8_H_ | 33 #define V8_V8_H_ |
| 34 | 34 |
| 35 #if defined(GOOGLE3) | |
| 36 // Google3 special flag handling. | |
| 37 #if defined(DEBUG) && defined(NDEBUG) | 35 #if defined(DEBUG) && defined(NDEBUG) |
| 38 // If both are defined in Google3, then we are building an optimized v8 with | 36 // If both are defined then we are building an optimized v8 with |
| 39 // assertions enabled. | 37 // assertions enabled. |
| 40 #undef NDEBUG | 38 #undef NDEBUG |
| 41 #elif !defined(DEBUG) && !defined(NDEBUG) | 39 #elif !defined(DEBUG) && !defined(NDEBUG) |
| 42 // If neither is defined in Google3, then we are building a debug v8. Mark it | 40 // If neither is defined then we default to building a debug v8. Mark |
| 43 // as such. | 41 // it as such. |
| 44 #define DEBUG | 42 #define DEBUG |
| 45 #endif | 43 #endif |
| 46 #endif // defined(GOOGLE3) | |
| 47 | 44 |
| 48 // V8 only uses DEBUG, but included external files | 45 // V8 only uses DEBUG, but included external files |
| 49 // may use NDEBUG - make sure they are consistent. | 46 // may use NDEBUG - make sure they are consistent. |
| 50 #if defined(DEBUG) && defined(NDEBUG) | 47 #if defined(DEBUG) && defined(NDEBUG) |
| 51 #error both DEBUG and NDEBUG are set | 48 #error both DEBUG and NDEBUG are set |
| 52 #endif | 49 #endif |
| 53 | 50 |
| 54 // Basic includes | 51 // Basic includes |
| 55 #include "../include/v8.h" | 52 #include "../include/v8.h" |
| 56 #include "globals.h" | 53 #include "globals.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // True if engine has been shut down | 107 // True if engine has been shut down |
| 111 // (reset if engine is restarted) | 108 // (reset if engine is restarted) |
| 112 static bool has_been_disposed_; | 109 static bool has_been_disposed_; |
| 113 }; | 110 }; |
| 114 | 111 |
| 115 } } // namespace v8::internal | 112 } } // namespace v8::internal |
| 116 | 113 |
| 117 namespace i = v8::internal; | 114 namespace i = v8::internal; |
| 118 | 115 |
| 119 #endif // V8_V8_H_ | 116 #endif // V8_V8_H_ |
| OLD | NEW |