Remove docs/make-bytecode-docs.pl
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Dec 2013 20:20:11 +0000 (20:20 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Dec 2013 20:20:11 +0000 (20:20 +0000)
https://bugs.webkit.org/show_bug.cgi?id=125462

This sript is very old and no longer outputs useful data since the
op code definitions have moved from Interpreter.cpp.

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-12-09
Reviewed by Darin Adler.

* DerivedSources.make:
* docs/make-bytecode-docs.pl: Removed.

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/DerivedSources.make
Source/JavaScriptCore/docs/make-bytecode-docs.pl [deleted file]

index a63517c..161c8da 100644 (file)
@@ -1,3 +1,16 @@
+2013-12-09  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Remove docs/make-bytecode-docs.pl
+        https://bugs.webkit.org/show_bug.cgi?id=125462
+
+        This sript is very old and no longer outputs useful data since the
+        op code definitions have moved from Interpreter.cpp.
+
+        Reviewed by Darin Adler.
+
+        * DerivedSources.make:
+        * docs/make-bytecode-docs.pl: Removed.
+
 2013-12-09  Julien Brianceau  <jbriance@cisco.com>
 
         Fix sh4 LLINT build.
index b66fbcb..bd0ce1f 100644 (file)
@@ -58,7 +58,6 @@ all : \
     RegExpJitTables.h \
     RegExpObject.lut.h \
     StringConstructor.lut.h \
-    docs/bytecode.html \
     udis86_itab.h \
 #
 
@@ -69,9 +68,6 @@ all : \
 Lexer.lut.h: create_hash_table Keywords.table
        $^ > $@
 
-docs/bytecode.html: make-bytecode-docs.pl Interpreter.cpp 
-       perl $^ $@
-
 # character tables for Yarr
 
 RegExpJitTables.h: create_regex_tables
diff --git a/Source/JavaScriptCore/docs/make-bytecode-docs.pl b/Source/JavaScriptCore/docs/make-bytecode-docs.pl
deleted file mode 100755 (executable)
index 5a95195..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/usr/bin/perl -w
-
-use strict;
-
-open MACHINE, "<" . $ARGV[0];
-open OUTPUT, ">" . $ARGV[1];
-
-my @undocumented = ();
-
-print OUTPUT "<!-- Generated from Interpreter.cpp by make-bytecode-docs.pl. -->\n";
-print OUTPUT "<style>p code \{ font-size: 14px; \}</style>\n";
-
-while (<MACHINE>) {
-    if (/^ *DEFINE_OPCODE/) {
-        chomp;
-        s/^ *DEFINE_OPCODE\(op_//;
-        s/\).*$//;
-        my $opcode = $_;
-        $_ = <MACHINE>;
-        chomp;
-        if (m|/\* |) {
-            my $format = $_;
-            $format =~ s|.* /\* ||;
-            my $doc = "";
-            while (<MACHINE>) {
-                if (m|\*/|) {
-                    last;
-                }
-                $doc .= $_ . " ";
-            }
-
-            print OUTPUT "<h2><code>${opcode}</code></h2>\n<p><b>Format: </b><code>\n${format}\n</code></p>\n<p>\n${doc}\n</p>\n";
-        } else {
-            push @undocumented, $opcode;
-        }
-    }
-}
-
-close OUTPUT;
-
-for my $undoc (@undocumented) {
-    print "UNDOCUMENTED: ${undoc}\n";
-}