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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 # define V8_CC_MINGW64 1 | 109 # define V8_CC_MINGW64 1 |
110 # elif defined(__MINGW32__) | 110 # elif defined(__MINGW32__) |
111 # define V8_CC_MINGW 1 | 111 # define V8_CC_MINGW 1 |
112 # define V8_CC_MINGW32 1 | 112 # define V8_CC_MINGW32 1 |
113 # elif defined(__ARMCC__) || defined(__CC_ARM) | 113 # elif defined(__ARMCC__) || defined(__CC_ARM) |
114 # define V8_CC_RVCT 1 // ARM Realview Compiler Suite also masquerades as GCC | 114 # define V8_CC_RVCT 1 // ARM Realview Compiler Suite also masquerades as GCC |
115 # elif defined(__INTEL_COMPILER) | 115 # elif defined(__INTEL_COMPILER) |
116 # define V8_CC_INTEL 1 // Intel C++ also masquerades as GCC 3.2.0 | 116 # define V8_CC_INTEL 1 // Intel C++ also masquerades as GCC 3.2.0 |
117 # elif defined(__clang__) | 117 # elif defined(__clang__) |
118 # define V8_CC_CLANG 1 // Clang also masquerades as GCC 4.2.1 | 118 # define V8_CC_CLANG 1 // Clang also masquerades as GCC 4.2.1 |
| 119 # ifndef __has_extension |
| 120 # define __has_extension __has_feature // Compatibility with older releases |
| 121 # endif |
119 # endif | 122 # endif |
120 #elif defined(__ARMCC__) || defined(__CC_ARM) | 123 #elif defined(__ARMCC__) || defined(__CC_ARM) |
121 # define V8_CC_RVCT 1 | 124 # define V8_CC_RVCT 1 |
122 #elif defined(__INTEL_COMPILER) | 125 #elif defined(__INTEL_COMPILER) |
123 # define V8_CC_INTEL 1 | 126 # define V8_CC_INTEL 1 |
124 #elif defined(__SUNPRO_CC) || defined(__SUNPRO_C) | 127 #elif defined(__SUNPRO_CC) || defined(__SUNPRO_C) |
125 # define V8_CC_SUN 1 | 128 # define V8_CC_SUN 1 |
126 #else | 129 #else |
127 # error Compiler was not detected as supported by v8 | 130 # error Compiler was not detected as supported by v8 |
128 #endif | 131 #endif |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 // the backend, so both modes are represented by the kStrictMode value. | 556 // the backend, so both modes are represented by the kStrictMode value. |
554 enum StrictModeFlag { | 557 enum StrictModeFlag { |
555 kNonStrictMode, | 558 kNonStrictMode, |
556 kStrictMode | 559 kStrictMode |
557 }; | 560 }; |
558 | 561 |
559 | 562 |
560 } } // namespace v8::internal | 563 } } // namespace v8::internal |
561 | 564 |
562 #endif // V8_GLOBALS_H_ | 565 #endif // V8_GLOBALS_H_ |
OLD | NEW |