servo: Merge #9817 - Stop generating a parser.out file in the source (from Ms2ger:yacc-log); r=nox
authorMs2ger <Ms2ger@gmail.com>
Wed, 02 Mar 2016 00:25:32 +0500
changeset 387161 cc25ad9a5b91c9aae9dc4390894acee84854c808
parent 387160 f012f10889d4acc6366170e38a7c53f068a8d3b6
child 387162 9c3c007cbc7d9e4a1cdeaa0c574a5e2e2b559c29
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnox
servo: Merge #9817 - Stop generating a parser.out file in the source (from Ms2ger:yacc-log); r=nox Source-Repo: https://github.com/servo/servo Source-Revision: b355c0dbcbbbb5155170b4db971e012659081843
servo/.gitignore
servo/components/script/dom/bindings/codegen/parser/WebIDL.py
servo/components/script/dom/bindings/codegen/parser/debug.patch
servo/components/script/dom/bindings/codegen/parser/update.sh
--- a/servo/.gitignore
+++ b/servo/.gitignore
@@ -19,10 +19,9 @@
 *.pyc
 *.swp
 *.swo
 *.csv
 .DS_Store
 servo-test
 Servo.app
 .config.mk.last
-parser.out
 /glfw
--- a/servo/components/script/dom/bindings/codegen/parser/WebIDL.py
+++ b/servo/components/script/dom/bindings/codegen/parser/WebIDL.py
@@ -6433,17 +6433,18 @@ class Parser(Tokenizer):
 
     def __init__(self, outputdir='', lexer=None):
         Tokenizer.__init__(self, outputdir, lexer)
 
         logger = SqueakyCleanLogger()
         self.parser = yacc.yacc(module=self,
                                 outputdir=outputdir,
                                 tabmodule='webidlyacc',
-                                errorlog=logger
+                                errorlog=logger,
+                                debug=False
                                 # Pickling the grammar is a speedup in
                                 # some cases (older Python?) but a
                                 # significant slowdown in others.
                                 # We're not pickling for now, until it
                                 # becomes a speedup again.
                                 # , picklefile='WebIDLGrammar.pkl'
                                 )
         logger.reportGrammarErrors()
new file mode 100644
--- /dev/null
+++ b/servo/components/script/dom/bindings/codegen/parser/debug.patch
@@ -0,0 +1,12 @@
+--- WebIDL.py
++++ WebIDL.py
+@@ -6438,7 +6438,8 @@ class Parser(Tokenizer):
+         self.parser = yacc.yacc(module=self,
+                                 outputdir=outputdir,
+                                 tabmodule='webidlyacc',
+-                                errorlog=logger
++                                errorlog=logger,
++                                debug=False
+                                 # Pickling the grammar is a speedup in
+                                 # some cases (older Python?) but a
+                                 # significant slowdown in others.
--- a/servo/components/script/dom/bindings/codegen/parser/update.sh
+++ b/servo/components/script/dom/bindings/codegen/parser/update.sh
@@ -1,5 +1,6 @@
 wget https://mxr.mozilla.org/mozilla-central/source/dom/bindings/parser/WebIDL.py?raw=1 -O WebIDL.py
 patch < abstract.patch
+patch < debug.patch
 patch < legacy-unenumerable-named-properties.patch
 
 # TODO: update test files from https://dxr.mozilla.org/mozilla-central/source/dom/bindings/parser/tests