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

Side by Side Diff: src/globals.h

Issue 2257133002: Revert of There are only 2 language modes, not 3 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/code-stubs.h ('k') | src/ic/ic-state.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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // (sorted alphabetically) 265 // (sorted alphabetically)
266 266
267 class FreeStoreAllocationPolicy; 267 class FreeStoreAllocationPolicy;
268 template <typename T, class P = FreeStoreAllocationPolicy> class List; 268 template <typename T, class P = FreeStoreAllocationPolicy> class List;
269 269
270 // ----------------------------------------------------------------------------- 270 // -----------------------------------------------------------------------------
271 // Declarations for use in both the preparser and the rest of V8. 271 // Declarations for use in both the preparser and the rest of V8.
272 272
273 // The Strict Mode (ECMA-262 5th edition, 4.2.2). 273 // The Strict Mode (ECMA-262 5th edition, 4.2.2).
274 274
275 enum LanguageMode : uint32_t { SLOPPY, STRICT, LANGUAGE_END }; 275 enum LanguageMode { SLOPPY, STRICT, LANGUAGE_END = 3 };
276
276 277
277 inline std::ostream& operator<<(std::ostream& os, const LanguageMode& mode) { 278 inline std::ostream& operator<<(std::ostream& os, const LanguageMode& mode) {
278 switch (mode) { 279 switch (mode) {
279 case SLOPPY: return os << "sloppy"; 280 case SLOPPY: return os << "sloppy";
280 case STRICT: return os << "strict"; 281 case STRICT: return os << "strict";
281 default: UNREACHABLE(); 282 default: UNREACHABLE();
282 } 283 }
283 return os; 284 return os;
284 } 285 }
285 286
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 public: 1156 public:
1156 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 }; 1157 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 };
1157 }; 1158 };
1158 1159
1159 } // namespace internal 1160 } // namespace internal
1160 } // namespace v8 1161 } // namespace v8
1161 1162
1162 namespace i = v8::internal; 1163 namespace i = v8::internal;
1163 1164
1164 #endif // V8_GLOBALS_H_ 1165 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ic/ic-state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698