Chromium Code Reviews| Index: src/base/logging.h |
| diff --git a/src/base/logging.h b/src/base/logging.h |
| index e73fac46adc1b771ee44da70143d81cbb8ceae61..d228eb0bf4df9500d881311acabbbf71cd641808 100644 |
| --- a/src/base/logging.h |
| +++ b/src/base/logging.h |
| @@ -76,6 +76,23 @@ inline void CheckEqualsHelper(const char* file, int line, |
| } |
| +// 32-bit AIX defines intptr_t as long int. |
| +#if V8_OS_AIX && V8_HOST_ARCH_32_BIT |
|
Sven Panne
2015/01/27 11:47:05
Can we turn this into something less fragile (e.g.
michael_dawson
2015/01/29 00:08:29
intptr_t - defined as long
int64_t is not the sam
Sven Panne
2015/01/29 09:54:33
The whole Check(Non)EqualsHelper approach in v8 is
|
| +// Helper function used by the CHECK_EQ function when given intptr_t |
| +// arguments. Should not be called directly. |
| +inline void CheckEqualsHelper(const char* file, int line, |
| + const char* expected_source, intptr_t expected, |
| + const char* value_source, intptr_t value) { |
| + if (expected != value) { |
| + V8_Fatal(file, line, |
| + "CHECK_EQ(%s, %s) failed\n#" |
| + " Expected: 0x%lx\n# Found: 0x%lx", |
| + expected_source, value_source, expected, value); |
| + } |
| +} |
| +#endif |
| + |
| + |
| // Helper function used by the CHECK_NE function when given int |
| // arguments. Should not be called directly. |
| inline void CheckNonEqualsHelper(const char* file, |