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

Unified Diff: src/globals.h

Issue 894683003: Introduce LanguageMode, drop StrictMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: . Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/full-codegen.cc ('k') | src/hydrogen.h » ('j') | src/objects.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/globals.h
diff --git a/src/globals.h b/src/globals.h
index 1eb12953035604b4811d00075b782687a3470bc9..508b700a2b1f64cec4e266f0e9c3cf5eb3e3134a 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -225,8 +225,13 @@ template <typename T, class P = FreeStoreAllocationPolicy> class List;
// The Strict Mode (ECMA-262 5th edition, 4.2.2).
-enum StrictMode { SLOPPY, STRICT };
+enum LanguageMode {
+ SLOPPY,
+ STRICT = 1 << 0,
+ LANGUAGE_END
+};
+#define is_strict(language_mode) ((language_mode) & STRICT)
rossberg 2015/02/03 12:26:20 Why a macro instead of an inline funciton?
marja 2015/02/03 14:45:02 Made this inline; added is_sloppy and is_valid_lan
// Mask for the sign bit in a smi.
const intptr_t kSmiSignMask = kIntptrSignBit;
« no previous file with comments | « src/full-codegen.cc ('k') | src/hydrogen.h » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698