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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // RVCT - ARM Realview Compiler Suite | 98 // RVCT - ARM Realview Compiler Suite |
99 | 99 |
100 #if defined(_MSC_VER) | 100 #if defined(_MSC_VER) |
101 # define V8_CC_MSVC 1 | 101 # define V8_CC_MSVC 1 |
102 # if defined(__INTEL_COMPILER) | 102 # if defined(__INTEL_COMPILER) |
103 # define V8_CC_INTEL 1 | 103 # define V8_CC_INTEL 1 |
104 # endif | 104 # endif |
105 #elif defined(__GNUC__) | 105 #elif defined(__GNUC__) |
106 # define V8_CC_GNU 1 | 106 # define V8_CC_GNU 1 |
107 # define V8_GNUC_PREREQ(major, minor) \ | 107 # define V8_GNUC_PREREQ(major, minor) \ |
108 ((major) > __GNUC__ || ((major) == __GNUC__ && (minor) >= __GNUC_MINOR__)) | 108 (__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))) |
109 # if defined(__MINGW64__) | 109 # if defined(__MINGW64__) |
110 # define V8_CC_MINGW 1 | 110 # define V8_CC_MINGW 1 |
111 # define V8_CC_MINGW64 1 | 111 # define V8_CC_MINGW64 1 |
112 # elif defined(__MINGW32__) | 112 # elif defined(__MINGW32__) |
113 # define V8_CC_MINGW 1 | 113 # define V8_CC_MINGW 1 |
114 # define V8_CC_MINGW32 1 | 114 # define V8_CC_MINGW32 1 |
115 # elif defined(__ARMCC__) || defined(__CC_ARM) | 115 # elif defined(__ARMCC__) || defined(__CC_ARM) |
116 # define V8_CC_RVCT 1 // ARM Realview Compiler Suite also masquerades as GCC | 116 # define V8_CC_RVCT 1 // ARM Realview Compiler Suite also masquerades as GCC |
117 # elif defined(__INTEL_COMPILER) | 117 # elif defined(__INTEL_COMPILER) |
118 # define V8_CC_INTEL 1 // Intel C++ also masquerades as GCC 3.2.0 | 118 # define V8_CC_INTEL 1 // Intel C++ also masquerades as GCC 3.2.0 |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 // the backend, so both modes are represented by the kStrictMode value. | 533 // the backend, so both modes are represented by the kStrictMode value. |
534 enum StrictModeFlag { | 534 enum StrictModeFlag { |
535 kNonStrictMode, | 535 kNonStrictMode, |
536 kStrictMode | 536 kStrictMode |
537 }; | 537 }; |
538 | 538 |
539 | 539 |
540 } } // namespace v8::internal | 540 } } // namespace v8::internal |
541 | 541 |
542 #endif // V8_GLOBALS_H_ | 542 #endif // V8_GLOBALS_H_ |
OLD | NEW |