ParserError can be shrunk by 8 bytes
authorrmorisset@apple.com <rmorisset@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 17 Mar 2019 23:45:23 +0000 (23:45 +0000)
committerrmorisset@apple.com <rmorisset@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 17 Mar 2019 23:45:23 +0000 (23:45 +0000)
https://bugs.webkit.org/show_bug.cgi?id=195496

Reviewed by Mark Lam.

* parser/ParserError.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243053 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/parser/ParserError.h

index 9687b92..427f640 100644 (file)
@@ -1,3 +1,12 @@
+2019-03-17  Robin Morisset  <rmorisset@apple.com>
+
+        ParserError can be shrunk by 8 bytes
+        https://bugs.webkit.org/show_bug.cgi?id=195496
+
+        Reviewed by Mark Lam.
+
+        * parser/ParserError.h:
+
 2019-03-17  Diego Pino Garcia  <dpino@igalia.com>
 
         Fix WPE and GTK Debug builds after r243049
index e245f94..598cf64 100644 (file)
@@ -35,14 +35,14 @@ namespace JSC {
 
 class ParserError {
 public:
-    enum SyntaxErrorType {
+    enum SyntaxErrorType : uint8_t {
         SyntaxErrorNone,
         SyntaxErrorIrrecoverable,
         SyntaxErrorUnterminatedLiteral,
         SyntaxErrorRecoverable
     };
 
-    enum ErrorType {
+    enum ErrorType : uint8_t {
         ErrorNone,
         StackOverflow,
         EvalError,