Revision: 7147
Author: [email protected]
Date: Fri Mar 11 03:02:27 2011
Log: Fix compile failure with GCC 4.5.0 (issue 1244)
GCC apparently assumes that given that we do a static cast in the next
line the value must actually be in StrictModeFlag enum range (even
though this is actually what we are asserting)
Review URL: http://codereview.chromium.org/6670031
http://code.google.com/p/v8/source/detail?r=7147
Modified:
/branches/bleeding_edge/src/v8globals.h
=======================================
--- /branches/bleeding_edge/src/v8globals.h Wed Feb 9 04:35:18 2011
+++ /branches/bleeding_edge/src/v8globals.h Fri Mar 11 03:02:27 2011
@@ -472,7 +472,11 @@
// The Strict Mode (ECMA-262 5th edition, 4.2.2).
enum StrictModeFlag {
kNonStrictMode,
- kStrictMode
+ 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
};
} } // namespace v8::internal
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev