rossberg@chromium.org | fab1498 | 2012-01-05 15:02:15 +0000 | [diff] [blame] | 1 | // Copyright 2012 the V8 project authors. All rights reserved. |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 2 | // Redistribution and use in source and binary forms, with or without |
| 3 | // modification, are permitted provided that the following conditions are |
| 4 | // met: |
| 5 | // |
| 6 | // * Redistributions of source code must retain the above copyright |
| 7 | // notice, this list of conditions and the following disclaimer. |
| 8 | // * Redistributions in binary form must reproduce the above |
| 9 | // copyright notice, this list of conditions and the following |
| 10 | // disclaimer in the documentation and/or other materials provided |
| 11 | // with the distribution. |
| 12 | // * Neither the name of Google Inc. nor the names of its |
| 13 | // contributors may be used to endorse or promote products derived |
| 14 | // from this software without specific prior written permission. |
| 15 | // |
| 16 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 20 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 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. |
| 27 | |
| 28 | #ifndef V8_CHECKS_H_ |
| 29 | #define V8_CHECKS_H_ |
| 30 | |
| 31 | #include <string.h> |
| 32 | |
rossberg@chromium.org | 9259716 | 2013-08-23 13:28:00 +0000 | [diff] [blame] | 33 | #include "../include/v8stdint.h" |
verwaest@chromium.org | 32cb9b2 | 2013-08-21 11:18:12 +0000 | [diff] [blame] | 34 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 35 | extern "C" void V8_Fatal(const char* file, int line, const char* format, ...); |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 36 | |
| 37 | // The FATAL, UNREACHABLE and UNIMPLEMENTED macros are useful during |
| 38 | // development, but they should not be relied on in the final product. |
ager@chromium.org | 236ad96 | 2008-09-25 09:45:57 +0000 | [diff] [blame] | 39 | #ifdef DEBUG |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 40 | #define FATAL(msg) \ |
| 41 | V8_Fatal(__FILE__, __LINE__, "%s", (msg)) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 42 | #define UNIMPLEMENTED() \ |
| 43 | V8_Fatal(__FILE__, __LINE__, "unimplemented code") |
ager@chromium.org | 236ad96 | 2008-09-25 09:45:57 +0000 | [diff] [blame] | 44 | #define UNREACHABLE() \ |
| 45 | V8_Fatal(__FILE__, __LINE__, "unreachable code") |
| 46 | #else |
| 47 | #define FATAL(msg) \ |
| 48 | V8_Fatal("", 0, "%s", (msg)) |
| 49 | #define UNIMPLEMENTED() \ |
| 50 | V8_Fatal("", 0, "unimplemented code") |
| 51 | #define UNREACHABLE() ((void) 0) |
| 52 | #endif |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 53 | |
| 54 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 55 | // The CHECK macro checks that the given condition is true; if not, it |
| 56 | // prints a message to stderr and aborts. |
danno@chromium.org | fa458e4 | 2012-02-01 10:48:36 +0000 | [diff] [blame] | 57 | #define CHECK(condition) do { \ |
| 58 | if (!(condition)) { \ |
| 59 | V8_Fatal(__FILE__, __LINE__, "CHECK(%s) failed", #condition); \ |
| 60 | } \ |
erik.corry@gmail.com | 394dbcf | 2011-10-27 07:38:48 +0000 | [diff] [blame] | 61 | } while (0) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 62 | |
| 63 | |
| 64 | // Helper function used by the CHECK_EQ function when given int |
| 65 | // arguments. Should not be called directly. |
mstarzinger@chromium.org | 1b3afd1 | 2011-11-29 14:28:56 +0000 | [diff] [blame] | 66 | inline void CheckEqualsHelper(const char* file, int line, |
| 67 | const char* expected_source, int expected, |
| 68 | const char* value_source, int value) { |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 69 | if (expected != value) { |
| 70 | V8_Fatal(file, line, |
| 71 | "CHECK_EQ(%s, %s) failed\n# Expected: %i\n# Found: %i", |
| 72 | expected_source, value_source, expected, value); |
| 73 | } |
| 74 | } |
| 75 | |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 76 | |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 77 | // Helper function used by the CHECK_EQ function when given int64_t |
| 78 | // arguments. Should not be called directly. |
mstarzinger@chromium.org | 1b3afd1 | 2011-11-29 14:28:56 +0000 | [diff] [blame] | 79 | inline void CheckEqualsHelper(const char* file, int line, |
| 80 | const char* expected_source, |
| 81 | int64_t expected, |
| 82 | const char* value_source, |
| 83 | int64_t value) { |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 84 | if (expected != value) { |
| 85 | // Print int64_t values in hex, as two int32s, |
| 86 | // to avoid platform-dependencies. |
| 87 | V8_Fatal(file, line, |
| 88 | "CHECK_EQ(%s, %s) failed\n#" |
| 89 | " Expected: 0x%08x%08x\n# Found: 0x%08x%08x", |
| 90 | expected_source, value_source, |
| 91 | static_cast<uint32_t>(expected >> 32), |
| 92 | static_cast<uint32_t>(expected), |
| 93 | static_cast<uint32_t>(value >> 32), |
| 94 | static_cast<uint32_t>(value)); |
| 95 | } |
| 96 | } |
| 97 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 98 | |
| 99 | // Helper function used by the CHECK_NE function when given int |
| 100 | // arguments. Should not be called directly. |
mstarzinger@chromium.org | 1b3afd1 | 2011-11-29 14:28:56 +0000 | [diff] [blame] | 101 | inline void CheckNonEqualsHelper(const char* file, |
| 102 | int line, |
| 103 | const char* unexpected_source, |
| 104 | int unexpected, |
| 105 | const char* value_source, |
| 106 | int value) { |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 107 | if (unexpected == value) { |
| 108 | V8_Fatal(file, line, "CHECK_NE(%s, %s) failed\n# Value: %i", |
| 109 | unexpected_source, value_source, value); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | |
| 114 | // Helper function used by the CHECK function when given string |
| 115 | // arguments. Should not be called directly. |
mstarzinger@chromium.org | 1b3afd1 | 2011-11-29 14:28:56 +0000 | [diff] [blame] | 116 | inline void CheckEqualsHelper(const char* file, |
| 117 | int line, |
| 118 | const char* expected_source, |
| 119 | const char* expected, |
| 120 | const char* value_source, |
| 121 | const char* value) { |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 122 | if ((expected == NULL && value != NULL) || |
| 123 | (expected != NULL && value == NULL) || |
| 124 | (expected != NULL && value != NULL && strcmp(expected, value) != 0)) { |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 125 | V8_Fatal(file, line, |
| 126 | "CHECK_EQ(%s, %s) failed\n# Expected: %s\n# Found: %s", |
| 127 | expected_source, value_source, expected, value); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | |
mstarzinger@chromium.org | 1b3afd1 | 2011-11-29 14:28:56 +0000 | [diff] [blame] | 132 | inline void CheckNonEqualsHelper(const char* file, |
| 133 | int line, |
| 134 | const char* expected_source, |
| 135 | const char* expected, |
| 136 | const char* value_source, |
| 137 | const char* value) { |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 138 | if (expected == value || |
| 139 | (expected != NULL && value != NULL && strcmp(expected, value) == 0)) { |
| 140 | V8_Fatal(file, line, "CHECK_NE(%s, %s) failed\n# Value: %s", |
| 141 | expected_source, value_source, value); |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | |
| 146 | // Helper function used by the CHECK function when given pointer |
| 147 | // arguments. Should not be called directly. |
mstarzinger@chromium.org | 1b3afd1 | 2011-11-29 14:28:56 +0000 | [diff] [blame] | 148 | inline void CheckEqualsHelper(const char* file, |
| 149 | int line, |
| 150 | const char* expected_source, |
| 151 | const void* expected, |
| 152 | const char* value_source, |
| 153 | const void* value) { |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 154 | if (expected != value) { |
| 155 | V8_Fatal(file, line, |
ager@chromium.org | ddb913d | 2009-01-27 10:01:48 +0000 | [diff] [blame] | 156 | "CHECK_EQ(%s, %s) failed\n# Expected: %p\n# Found: %p", |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 157 | expected_source, value_source, |
ager@chromium.org | ddb913d | 2009-01-27 10:01:48 +0000 | [diff] [blame] | 158 | expected, value); |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 159 | } |
| 160 | } |
| 161 | |
| 162 | |
mstarzinger@chromium.org | 1b3afd1 | 2011-11-29 14:28:56 +0000 | [diff] [blame] | 163 | inline void CheckNonEqualsHelper(const char* file, |
| 164 | int line, |
| 165 | const char* expected_source, |
| 166 | const void* expected, |
| 167 | const char* value_source, |
| 168 | const void* value) { |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 169 | if (expected == value) { |
ager@chromium.org | ddb913d | 2009-01-27 10:01:48 +0000 | [diff] [blame] | 170 | V8_Fatal(file, line, "CHECK_NE(%s, %s) failed\n# Value: %p", |
| 171 | expected_source, value_source, value); |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 172 | } |
| 173 | } |
| 174 | |
| 175 | |
| 176 | // Helper function used by the CHECK function when given floating |
| 177 | // point arguments. Should not be called directly. |
mstarzinger@chromium.org | 1b3afd1 | 2011-11-29 14:28:56 +0000 | [diff] [blame] | 178 | inline void CheckEqualsHelper(const char* file, |
| 179 | int line, |
| 180 | const char* expected_source, |
| 181 | double expected, |
| 182 | const char* value_source, |
| 183 | double value) { |
kasperl@chromium.org | 41044eb | 2008-10-06 08:24:46 +0000 | [diff] [blame] | 184 | // Force values to 64 bit memory to truncate 80 bit precision on IA32. |
| 185 | volatile double* exp = new double[1]; |
| 186 | *exp = expected; |
| 187 | volatile double* val = new double[1]; |
| 188 | *val = value; |
| 189 | if (*exp != *val) { |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 190 | V8_Fatal(file, line, |
| 191 | "CHECK_EQ(%s, %s) failed\n# Expected: %f\n# Found: %f", |
kasperl@chromium.org | 41044eb | 2008-10-06 08:24:46 +0000 | [diff] [blame] | 192 | expected_source, value_source, *exp, *val); |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 193 | } |
kasperl@chromium.org | 41044eb | 2008-10-06 08:24:46 +0000 | [diff] [blame] | 194 | delete[] exp; |
| 195 | delete[] val; |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 196 | } |
| 197 | |
| 198 | |
mstarzinger@chromium.org | 1b3afd1 | 2011-11-29 14:28:56 +0000 | [diff] [blame] | 199 | inline void CheckNonEqualsHelper(const char* file, |
dslomov@chromium.org | 4a35c5a | 2013-09-13 07:28:52 +0000 | [diff] [blame] | 200 | int line, |
| 201 | const char* expected_source, |
| 202 | int64_t expected, |
| 203 | const char* value_source, |
| 204 | int64_t value) { |
| 205 | if (expected == value) { |
| 206 | V8_Fatal(file, line, |
| 207 | "CHECK_EQ(%s, %s) failed\n# Expected: %f\n# Found: %f", |
| 208 | expected_source, value_source, expected, value); |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | |
| 213 | inline void CheckNonEqualsHelper(const char* file, |
mstarzinger@chromium.org | 1b3afd1 | 2011-11-29 14:28:56 +0000 | [diff] [blame] | 214 | int line, |
| 215 | const char* expected_source, |
| 216 | double expected, |
| 217 | const char* value_source, |
| 218 | double value) { |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 219 | // Force values to 64 bit memory to truncate 80 bit precision on IA32. |
| 220 | volatile double* exp = new double[1]; |
| 221 | *exp = expected; |
| 222 | volatile double* val = new double[1]; |
| 223 | *val = value; |
| 224 | if (*exp == *val) { |
| 225 | V8_Fatal(file, line, |
| 226 | "CHECK_NE(%s, %s) failed\n# Value: %f", |
| 227 | expected_source, value_source, *val); |
| 228 | } |
| 229 | delete[] exp; |
| 230 | delete[] val; |
| 231 | } |
| 232 | |
| 233 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 234 | #define CHECK_EQ(expected, value) CheckEqualsHelper(__FILE__, __LINE__, \ |
| 235 | #expected, expected, #value, value) |
| 236 | |
| 237 | |
| 238 | #define CHECK_NE(unexpected, value) CheckNonEqualsHelper(__FILE__, __LINE__, \ |
| 239 | #unexpected, unexpected, #value, value) |
| 240 | |
| 241 | |
| 242 | #define CHECK_GT(a, b) CHECK((a) > (b)) |
| 243 | #define CHECK_GE(a, b) CHECK((a) >= (b)) |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 244 | #define CHECK_LT(a, b) CHECK((a) < (b)) |
| 245 | #define CHECK_LE(a, b) CHECK((a) <= (b)) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 246 | |
| 247 | |
jkummerow@chromium.org | ba72ec8 | 2013-07-22 09:21:20 +0000 | [diff] [blame] | 248 | // Use C++11 static_assert if possible, which gives error |
| 249 | // messages that are easier to understand on first sight. |
rossberg@chromium.org | 9259716 | 2013-08-23 13:28:00 +0000 | [diff] [blame] | 250 | #if V8_HAS_CXX11_STATIC_ASSERT |
jkummerow@chromium.org | ba72ec8 | 2013-07-22 09:21:20 +0000 | [diff] [blame] | 251 | #define STATIC_CHECK(test) static_assert(test, #test) |
| 252 | #else |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 253 | // This is inspired by the static assertion facility in boost. This |
| 254 | // is pretty magical. If it causes you trouble on a platform you may |
| 255 | // find a fix in the boost code. |
| 256 | template <bool> class StaticAssertion; |
| 257 | template <> class StaticAssertion<true> { }; |
| 258 | // This macro joins two tokens. If one of the tokens is a macro the |
| 259 | // helper call causes it to be resolved before joining. |
| 260 | #define SEMI_STATIC_JOIN(a, b) SEMI_STATIC_JOIN_HELPER(a, b) |
| 261 | #define SEMI_STATIC_JOIN_HELPER(a, b) a##b |
| 262 | // Causes an error during compilation of the condition is not |
| 263 | // statically known to be true. It is formulated as a typedef so that |
| 264 | // it can be used wherever a typedef can be used. Beware that this |
| 265 | // actually causes each use to introduce a new defined type with a |
| 266 | // name depending on the source line. |
| 267 | template <int> class StaticAssertionHelper { }; |
yangguo@chromium.org | 80c42ed | 2011-08-31 09:03:56 +0000 | [diff] [blame] | 268 | #define STATIC_CHECK(test) \ |
| 269 | typedef \ |
| 270 | StaticAssertionHelper<sizeof(StaticAssertion<static_cast<bool>((test))>)> \ |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 271 | SEMI_STATIC_JOIN(__StaticAssertTypedef__, __LINE__) |
danno@chromium.org | c22f2d8 | 2013-07-31 07:47:18 +0000 | [diff] [blame] | 272 | #endif |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 273 | |
| 274 | |
erik.corry@gmail.com | 394dbcf | 2011-10-27 07:38:48 +0000 | [diff] [blame] | 275 | extern bool FLAG_enable_slow_asserts; |
whesse@chromium.org | f0ac72d | 2010-11-08 12:47:26 +0000 | [diff] [blame] | 276 | |
whesse@chromium.org | f0ac72d | 2010-11-08 12:47:26 +0000 | [diff] [blame] | 277 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 278 | // The ASSERT macro is equivalent to CHECK except that it only |
vegorov@chromium.org | 26c16f8 | 2010-08-11 13:41:03 +0000 | [diff] [blame] | 279 | // generates code in debug builds. |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 280 | #ifdef DEBUG |
rossberg@chromium.org | fab1498 | 2012-01-05 15:02:15 +0000 | [diff] [blame] | 281 | #define ASSERT_RESULT(expr) CHECK(expr) |
| 282 | #define ASSERT(condition) CHECK(condition) |
| 283 | #define ASSERT_EQ(v1, v2) CHECK_EQ(v1, v2) |
| 284 | #define ASSERT_NE(v1, v2) CHECK_NE(v1, v2) |
| 285 | #define ASSERT_GE(v1, v2) CHECK_GE(v1, v2) |
| 286 | #define ASSERT_LT(v1, v2) CHECK_LT(v1, v2) |
| 287 | #define ASSERT_LE(v1, v2) CHECK_LE(v1, v2) |
| 288 | #define SLOW_ASSERT(condition) CHECK(!FLAG_enable_slow_asserts || (condition)) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 289 | #else |
rossberg@chromium.org | fab1498 | 2012-01-05 15:02:15 +0000 | [diff] [blame] | 290 | #define ASSERT_RESULT(expr) (expr) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 291 | #define ASSERT(condition) ((void) 0) |
| 292 | #define ASSERT_EQ(v1, v2) ((void) 0) |
vegorov@chromium.org | 2356e6f | 2010-06-09 09:38:56 +0000 | [diff] [blame] | 293 | #define ASSERT_NE(v1, v2) ((void) 0) |
| 294 | #define ASSERT_GE(v1, v2) ((void) 0) |
kmillikin@chromium.org | c36ce6e | 2011-04-04 08:25:31 +0000 | [diff] [blame] | 295 | #define ASSERT_LT(v1, v2) ((void) 0) |
| 296 | #define ASSERT_LE(v1, v2) ((void) 0) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 297 | #define SLOW_ASSERT(condition) ((void) 0) |
| 298 | #endif |
vegorov@chromium.org | 26c16f8 | 2010-08-11 13:41:03 +0000 | [diff] [blame] | 299 | // Static asserts has no impact on runtime performance, so they can be |
| 300 | // safely enabled in release mode. Moreover, the ((void) 0) expression |
| 301 | // obeys different syntax rules than typedef's, e.g. it can't appear |
| 302 | // inside class declaration, this leads to inconsistency between debug |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 303 | // and release compilation modes behavior. |
vegorov@chromium.org | 26c16f8 | 2010-08-11 13:41:03 +0000 | [diff] [blame] | 304 | #define STATIC_ASSERT(test) STATIC_CHECK(test) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 305 | |
ager@chromium.org | a74f0da | 2008-12-03 16:05:52 +0000 | [diff] [blame] | 306 | #define ASSERT_NOT_NULL(p) ASSERT_NE(NULL, p) |
| 307 | |
jkummerow@chromium.org | 67255be | 2012-09-05 16:44:50 +0000 | [diff] [blame] | 308 | // "Extra checks" are lightweight checks that are enabled in some release |
| 309 | // builds. |
| 310 | #ifdef ENABLE_EXTRA_CHECKS |
| 311 | #define EXTRA_CHECK(condition) CHECK(condition) |
| 312 | #else |
| 313 | #define EXTRA_CHECK(condition) ((void) 0) |
| 314 | #endif |
| 315 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 316 | #endif // V8_CHECKS_H_ |