Chromium Code Reviews| Index: src/globals.h |
| diff --git a/src/globals.h b/src/globals.h |
| index cbe7abdf664bff14ed4d9d048027b424017dba87..26a0e5f655fe6fe06fcea278f1418f4bc6bb0f1f 100644 |
| --- a/src/globals.h |
| +++ b/src/globals.h |
| @@ -358,6 +358,20 @@ F FUNCTION_CAST(Address addr) { |
| class FreeStoreAllocationPolicy; |
| template <typename T, class P = FreeStoreAllocationPolicy> class List; |
| +// ----------------------------------------------------------------------------- |
| +// Declarations for use in both the preparser and the rest of V8. |
| + |
| +// The Strict Mode (ECMA-262 5th edition, 4.2.2). |
| +enum StrictModeFlag { |
| + kNonStrictMode, |
| + kStrictMode, |
| + // This value is never used, but is needed to prevent GCC 4.5 from failing |
| + // to compile when we assert that a flag is either kNonStrictMode or |
| + // kStrictMode. |
| + kInvalidStrictFlag |
|
Lasse Reichstein
2011/10/27 07:27:46
If possible, get rid of kInvalidStrictFlag.
If the
|
| +}; |
| + |
| + |
| } } // namespace v8::internal |
| #endif // V8_GLOBALS_H_ |