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; |