| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // builds. On GCC 3.4.5 using __attribute__((always_inline)) causes compilation | 338 // builds. On GCC 3.4.5 using __attribute__((always_inline)) causes compilation |
| 339 // errors in debug build. | 339 // errors in debug build. |
| 340 #if defined(__GNUC__) && !defined(DEBUG) | 340 #if defined(__GNUC__) && !defined(DEBUG) |
| 341 #if (__GNUC__ >= 4) | 341 #if (__GNUC__ >= 4) |
| 342 #define INLINE(header) inline header __attribute__((always_inline)) | 342 #define INLINE(header) inline header __attribute__((always_inline)) |
| 343 #define NO_INLINE(header) header __attribute__((noinline)) | 343 #define NO_INLINE(header) header __attribute__((noinline)) |
| 344 #else | 344 #else |
| 345 #define INLINE(header) inline __attribute__((always_inline)) header | 345 #define INLINE(header) inline __attribute__((always_inline)) header |
| 346 #define NO_INLINE(header) __attribute__((noinline)) header | 346 #define NO_INLINE(header) __attribute__((noinline)) header |
| 347 #endif | 347 #endif |
| 348 #elif defined(_MSC_VER) && !defined(DEBUG) |
| 349 #define INLINE(header) __forceinline header |
| 350 #define NO_INLINE(header) header |
| 348 #else | 351 #else |
| 349 #define INLINE(header) inline header | 352 #define INLINE(header) inline header |
| 350 #define NO_INLINE(header) header | 353 #define NO_INLINE(header) header |
| 351 #endif | 354 #endif |
| 352 | 355 |
| 353 | 356 |
| 354 #if defined(__GNUC__) && __GNUC__ >= 4 | 357 #if defined(__GNUC__) && __GNUC__ >= 4 |
| 355 #define MUST_USE_RESULT __attribute__ ((warn_unused_result)) | 358 #define MUST_USE_RESULT __attribute__ ((warn_unused_result)) |
| 356 #else | 359 #else |
| 357 #define MUST_USE_RESULT | 360 #define MUST_USE_RESULT |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 // the backend, so both modes are represented by the kStrictMode value. | 396 // the backend, so both modes are represented by the kStrictMode value. |
| 394 enum StrictModeFlag { | 397 enum StrictModeFlag { |
| 395 kNonStrictMode, | 398 kNonStrictMode, |
| 396 kStrictMode | 399 kStrictMode |
| 397 }; | 400 }; |
| 398 | 401 |
| 399 | 402 |
| 400 } } // namespace v8::internal | 403 } } // namespace v8::internal |
| 401 | 404 |
| 402 #endif // V8_GLOBALS_H_ | 405 #endif // V8_GLOBALS_H_ |
| OLD | NEW |