Bug 471713 - Remove duplicated parens around flags in SpiderMonkey. r=jwalden
authorTooru Fujisawa <arai_a@mac.com>
Sat, 12 Apr 2014 14:44:35 +0900
changeset 179478 f2cfd08ae67744a26bffa2ce7d1675bc56a20598
parent 179477 779b111e77f623c40b32f9bcdc56afa1cc2a14df
child 179479 ad2df996c19b706c1e8b88850bac46fed8cf3515
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersjwalden
bugs471713
milestone31.0a1
Bug 471713 - Remove duplicated parens around flags in SpiderMonkey. r=jwalden
js/src/vm/make_opcode_doc.py
--- a/js/src/vm/make_opcode_doc.py
+++ b/js/src/vm/make_opcode_doc.py
@@ -280,17 +280,17 @@ def override(value, override_value):
 
 def format_flags(flags):
     if flags == '':
         return ''
 
     return ' ({flags})'.format(flags=flags)
 
 def print_opcode(opcode):
-    names_template = '{name} [-{nuses}, +{ndefs}] ({flags})'
+    names_template = '{name} [-{nuses}, +{ndefs}]{flags}'
     names = map(lambda code: names_template.format(name=escape(code.name),
                                                    nuses=override(code.nuses,
                                                                   opcode.nuses_override),
                                                    ndefs=override(code.ndefs,
                                                                   opcode.ndefs_override),
                                                    flags=format_flags(code.flags)),
                 sorted([opcode] + opcode.group,
                        key=lambda opcode: opcode.name))