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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 # endif | 353 # endif |
354 # else | 354 # else |
355 // '__final' is a non-C++11 GCC synonym for 'final', per GCC r176655. | 355 // '__final' is a non-C++11 GCC synonym for 'final', per GCC r176655. |
356 # if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7) | 356 # if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7) |
357 # define V8_HAVE_GXX_FINAL | 357 # define V8_HAVE_GXX_FINAL |
358 # endif | 358 # endif |
359 # endif | 359 # endif |
360 | 360 |
361 #elif defined(_MSC_VER) | 361 #elif defined(_MSC_VER) |
362 | 362 |
| 363 // Override control was added with Visual Studio 2005. |
363 # if _MSC_VER >= 1400 | 364 # if _MSC_VER >= 1400 |
| 365 # if _MSC_VER >= 1700 |
| 366 # define V8_HAVE_CXX11_FINAL |
| 367 # else |
| 368 // Visual Studio 2010 and earlier spell "final" as "sealed". |
| 369 # define V8_HAVE_MSVC_SEALED |
| 370 # endif |
364 # define V8_HAVE_CXX11_OVERRIDE | 371 # define V8_HAVE_CXX11_OVERRIDE |
365 // MSVC currently spells "final" as "sealed". | |
366 # define V8_HAVE_MSVC_SEALED | |
367 # endif | 372 # endif |
368 | 373 |
369 #endif | 374 #endif |
370 | 375 |
371 | 376 |
372 #if __cplusplus >= 201103L | 377 #if __cplusplus >= 201103L |
373 #define DISALLOW_BY_DELETE = delete | 378 #define DISALLOW_BY_DELETE = delete |
374 #else | 379 #else |
375 #define DISALLOW_BY_DELETE | 380 #define DISALLOW_BY_DELETE |
376 #endif | 381 #endif |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 // the backend, so both modes are represented by the kStrictMode value. | 514 // the backend, so both modes are represented by the kStrictMode value. |
510 enum StrictModeFlag { | 515 enum StrictModeFlag { |
511 kNonStrictMode, | 516 kNonStrictMode, |
512 kStrictMode | 517 kStrictMode |
513 }; | 518 }; |
514 | 519 |
515 | 520 |
516 } } // namespace v8::internal | 521 } } // namespace v8::internal |
517 | 522 |
518 #endif // V8_GLOBALS_H_ | 523 #endif // V8_GLOBALS_H_ |
OLD | NEW |