diff --git a/src/objects.h b/src/objects.h index 96a3800c54..933a07599a 100644 --- a/src/objects.h +++ b/src/objects.h @@ -4299,12 +4299,7 @@ class Code: public HeapObject { public: // Opaque data type for encapsulating code flags like kind, inline // cache state, and arguments count. - // FLAGS_MIN_VALUE and FLAGS_MAX_VALUE are specified to ensure that - // enumeration type has correct value range (see Issue 830 for more details). - enum Flags { - FLAGS_MIN_VALUE = 0, - FLAGS_MAX_VALUE = kMaxUInt32 - }; + typedef uint32_t Flags; #define CODE_KIND_LIST(V) \ V(FUNCTION) \ diff --git a/test/mjsunit/regress/regress-1122.js b/test/mjsunit/regress/regress-1122.js index 294d52a4b5..8f0bfb674b 100644 --- a/test/mjsunit/regress/regress-1122.js +++ b/test/mjsunit/regress/regress-1122.js @@ -62,5 +62,5 @@ assertEquals('prefix 16000 suffix', assertEquals('prefix undefined suffix', function_with_n_params_and_m_args(32000, 10000)); -assertThrows("function_with_n_params_and_m_args(66000, 60000)"); -assertThrows("function_with_n_params_and_m_args(60000, 66000)"); +assertThrows("function_with_n_params_and_m_args(66000, 30000)"); +assertThrows("function_with_n_params_and_m_args(30000, 66000)");