JSC generator scripts shouldn't have verbose output
authorossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jan 2016 16:09:15 +0000 (16:09 +0000)
committerossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jan 2016 16:09:15 +0000 (16:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=152382

Reviewed by Michael Catanzaro.

* b3/air/opcode_generator.rb:
* generate-bytecode-files:
* offlineasm/asm.rb:
* offlineasm/generate_offset_extractor.rb:
* offlineasm/parser.rb:

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/b3/air/opcode_generator.rb
Source/JavaScriptCore/generate-bytecode-files
Source/JavaScriptCore/offlineasm/asm.rb
Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb
Source/JavaScriptCore/offlineasm/parser.rb

index a9c936e..c301dfc 100644 (file)
@@ -1,3 +1,16 @@
+2016-01-04  Csaba Osztrogon√°c  <ossy@webkit.org>
+
+        JSC generator scripts shouldn't have verbose output
+        https://bugs.webkit.org/show_bug.cgi?id=152382
+
+        Reviewed by Michael Catanzaro.
+
+        * b3/air/opcode_generator.rb:
+        * generate-bytecode-files:
+        * offlineasm/asm.rb:
+        * offlineasm/generate_offset_extractor.rb:
+        * offlineasm/parser.rb:
+
 2016-01-04  Benjamin Poulain  <bpoulain@apple.com>
 
         [JSC] Build B3 by default on iOS ARM64
index f438aaf..d37c41f 100644 (file)
@@ -456,8 +456,6 @@ $fileName = ARGV[0]
 parser = Parser.new(IO::read($fileName), $fileName)
 $opcodes = parser.parse
 
-$stderr.puts "Generating code for #{$fileName}."
-
 def writeH(filename)
     File.open("Air#{filename}.h", "w") {
         | outp |
index 8e1ada0..5666a3f 100644 (file)
@@ -154,23 +154,13 @@ if __name__ == "__main__":
             initBytecodesReadFile.close()
 
     if not needToGenerate:
-        print "Nothing changed.\n"
         exit(0)
 
-    genString = "Generating "
-
     if bytecodeHFilename:
         bytecodeHFile = openOrExit(bytecodeHFilename, "wb")
-        genString = genString + "{0} ".format(bytecodeHFilename)
 
     if initASMFileName:
         initBytecodesFile = openOrExit(initASMFileName, "wb")
-        if bytecodeHFilename:
-            genString = genString + "and "
-        genString = genString + "{0} ".format(initASMFileName)
-
-    print "{0}from {1}\n".format(genString, bytecodeJSONFile)
-
 
     try:
         bytecodeSections = json.load(bytecodeFile, encoding = "utf-8")
index 88c7d7a..1894574 100644 (file)
@@ -282,8 +282,6 @@ asmFile = ARGV.shift
 offsetsFile = ARGV.shift
 outputFlnm = ARGV.shift
 
-$stderr.puts "offlineasm: Parsing #{asmFile} and #{offsetsFile} and creating assembly file #{outputFlnm}."
-
 begin
     configurationList = offsetsAndConfigurationIndex(offsetsFile)
 rescue MissingMagicValuesException
@@ -335,6 +333,3 @@ File.open(outputFlnm, "w") {
         }
     }
 }
-
-$stderr.puts "offlineasm: Assembly file #{outputFlnm} successfully generated."
-
index fc4579c..aafa934 100644 (file)
@@ -45,8 +45,6 @@ if validBackends
     includeOnlyBackends(validBackends.split(","))
 end
 
-$stderr.puts "offlineasm: Parsing #{inputFlnm} and creating offset extractor #{outputFlnm}."
-
 def emitMagicNumber
     OFFSET_MAGIC_NUMBERS.each {
         | number |
@@ -149,6 +147,3 @@ File.open(outputFlnm, "w") {
     }
     outp.puts "};"
 }
-
-$stderr.puts "offlineasm: offset extractor #{outputFlnm} successfully generated."
-
index a122a68..b0cad18 100644 (file)
@@ -744,7 +744,6 @@ class Parser
                 moduleName = @tokens[@idx].string
                 fileName = IncludeFile.new(moduleName, @tokens[@idx].codeOrigin.fileName.dirname).fileName
                 @idx += 1
-                $stderr.puts "offlineasm: Including file #{fileName}"
                 list << parse(fileName)
             else
                 parseError "Expecting terminal #{final} #{comment}"