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.

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: http://svn.webkit.org/repository/webkit/trunk@160325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6f2ed0b4
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.
......
......@@ -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
......
#!/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";
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment