| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 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) | 35 #if defined(GOOGLE3) |
| 36 // Google3 special flag handling. | 36 // Google3 special flag handling. |
| 37 #if defined(DEBUG) && defined(NDEBUG) | 37 #if defined(DEBUG) && defined(NDEBUG) |
| 38 // If both are defined in Google3, then we are building an optimized v8 with | 38 // V8 only uses DEBUG and whenever it is set we are building a debug |
| 39 // assertions enabled. | 39 // version of V8. We do not use NDEBUG and simply undef it here for |
| 40 // consistency. |
| 40 #undef NDEBUG | 41 #undef NDEBUG |
| 41 #elif !defined(DEBUG) && !defined(NDEBUG) | |
| 42 // If neither is defined in Google3, then we are building a debug v8. Mark it | |
| 43 // as such. | |
| 44 #define DEBUG | |
| 45 #endif | 42 #endif |
| 46 #endif // defined(GOOGLE3) | 43 #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 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 static bool has_been_disposed_; | 119 static bool has_been_disposed_; |
| 123 // True if we are using the crankshaft optimizing compiler. | 120 // True if we are using the crankshaft optimizing compiler. |
| 124 static bool use_crankshaft_; | 121 static bool use_crankshaft_; |
| 125 }; | 122 }; |
| 126 | 123 |
| 127 } } // namespace v8::internal | 124 } } // namespace v8::internal |
| 128 | 125 |
| 129 namespace i = v8::internal; | 126 namespace i = v8::internal; |
| 130 | 127 |
| 131 #endif // V8_V8_H_ | 128 #endif // V8_V8_H_ |
| OLD | NEW |