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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 // initialization. | 1051 // initialization. |
1052 // | 1052 // |
1053 // The following enum specifies a flag that indicates if the binding needs a | 1053 // The following enum specifies a flag that indicates if the binding needs a |
1054 // distinct initialization step (kNeedsInitialization) or if the binding is | 1054 // distinct initialization step (kNeedsInitialization) or if the binding is |
1055 // immediately initialized upon creation (kCreatedInitialized). | 1055 // immediately initialized upon creation (kCreatedInitialized). |
1056 enum InitializationFlag : uint8_t { kNeedsInitialization, kCreatedInitialized }; | 1056 enum InitializationFlag : uint8_t { kNeedsInitialization, kCreatedInitialized }; |
1057 | 1057 |
1058 enum MaybeAssignedFlag : uint8_t { kNotAssigned, kMaybeAssigned }; | 1058 enum MaybeAssignedFlag : uint8_t { kNotAssigned, kMaybeAssigned }; |
1059 | 1059 |
1060 // Serialized in PreparseData, so numeric values should not be changed. | 1060 // Serialized in PreparseData, so numeric values should not be changed. |
1061 enum ParseErrorType { kSyntaxError = 0, kReferenceError = 1 }; | 1061 enum ParseErrorType : uint8_t { kSyntaxError = 0, kReferenceError = 1 }; |
1062 | |
1063 | 1062 |
1064 enum MinusZeroMode { | 1063 enum MinusZeroMode { |
1065 TREAT_MINUS_ZERO_AS_ZERO, | 1064 TREAT_MINUS_ZERO_AS_ZERO, |
1066 FAIL_ON_MINUS_ZERO | 1065 FAIL_ON_MINUS_ZERO |
1067 }; | 1066 }; |
1068 | 1067 |
1069 | 1068 |
1070 enum Signedness { kSigned, kUnsigned }; | 1069 enum Signedness { kSigned, kUnsigned }; |
1071 | 1070 |
1072 enum FunctionKind : uint16_t { | 1071 enum FunctionKind : uint16_t { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1233 LIVE_EDIT_FRAME_DROPPED_IN_RETURN_CALL, | 1232 LIVE_EDIT_FRAME_DROPPED_IN_RETURN_CALL, |
1234 LIVE_EDIT_CURRENTLY_SET_MODE | 1233 LIVE_EDIT_CURRENTLY_SET_MODE |
1235 }; | 1234 }; |
1236 | 1235 |
1237 } // namespace internal | 1236 } // namespace internal |
1238 } // namespace v8 | 1237 } // namespace v8 |
1239 | 1238 |
1240 namespace i = v8::internal; | 1239 namespace i = v8::internal; |
1241 | 1240 |
1242 #endif // V8_GLOBALS_H_ | 1241 #endif // V8_GLOBALS_H_ |
OLD | NEW |