OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_GLOBALS_H_ | 5 #ifndef V8_GLOBALS_H_ |
6 #define V8_GLOBALS_H_ | 6 #define V8_GLOBALS_H_ |
7 | 7 |
8 #include "include/v8stdint.h" | 8 #include <stddef.h> |
| 9 #include <stdint.h> |
9 | 10 |
10 #include "src/base/build_config.h" | 11 #include "src/base/build_config.h" |
11 #include "src/base/logging.h" | 12 #include "src/base/logging.h" |
12 #include "src/base/macros.h" | 13 #include "src/base/macros.h" |
13 | 14 |
14 // Unfortunately, the INFINITY macro cannot be used with the '-pedantic' | 15 // Unfortunately, the INFINITY macro cannot be used with the '-pedantic' |
15 // warning flag and certain versions of GCC due to a bug: | 16 // warning flag and certain versions of GCC due to a bug: |
16 // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11931 | 17 // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11931 |
17 // For now, we use the more involved template-based version from <limits>, but | 18 // For now, we use the more involved template-based version from <limits>, but |
18 // only when compiling with GCC versions affected by the bug (2.96.x - 4.0.x) | 19 // only when compiling with GCC versions affected by the bug (2.96.x - 4.0.x) |
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 | 805 |
805 inline bool IsConciseMethod(FunctionKind kind) { | 806 inline bool IsConciseMethod(FunctionKind kind) { |
806 DCHECK(IsValidFunctionKind(kind)); | 807 DCHECK(IsValidFunctionKind(kind)); |
807 return kind & FunctionKind::kConciseMethod; | 808 return kind & FunctionKind::kConciseMethod; |
808 } | 809 } |
809 } } // namespace v8::internal | 810 } } // namespace v8::internal |
810 | 811 |
811 namespace i = v8::internal; | 812 namespace i = v8::internal; |
812 | 813 |
813 #endif // V8_GLOBALS_H_ | 814 #endif // V8_GLOBALS_H_ |
OLD | NEW |