Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/globals.h

Issue 2361013003: Revert of Fix bitfield enums to not trigger upcoming Clang warning (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/base/safe_conversions_impl.h ('k') | src/messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 : uint8_t { kSyntaxError = 0, kReferenceError = 1 }; 1061 enum ParseErrorType { kSyntaxError = 0, kReferenceError = 1 };
1062
1062 1063
1063 enum MinusZeroMode { 1064 enum MinusZeroMode {
1064 TREAT_MINUS_ZERO_AS_ZERO, 1065 TREAT_MINUS_ZERO_AS_ZERO,
1065 FAIL_ON_MINUS_ZERO 1066 FAIL_ON_MINUS_ZERO
1066 }; 1067 };
1067 1068
1068 1069
1069 enum Signedness { kSigned, kUnsigned }; 1070 enum Signedness { kSigned, kUnsigned };
1070 1071
1071 enum FunctionKind : uint16_t { 1072 enum FunctionKind : uint16_t {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 LIVE_EDIT_FRAME_DROPPED_IN_RETURN_CALL, 1233 LIVE_EDIT_FRAME_DROPPED_IN_RETURN_CALL,
1233 LIVE_EDIT_CURRENTLY_SET_MODE 1234 LIVE_EDIT_CURRENTLY_SET_MODE
1234 }; 1235 };
1235 1236
1236 } // namespace internal 1237 } // namespace internal
1237 } // namespace v8 1238 } // namespace v8
1238 1239
1239 namespace i = v8::internal; 1240 namespace i = v8::internal;
1240 1241
1241 #endif // V8_GLOBALS_H_ 1242 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/base/safe_conversions_impl.h ('k') | src/messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698