summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/docs/make-bytecode-docs.pl
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-05-06 11:45:16 +0100
committerSteve Block <steveblock@google.com>2011-05-12 13:44:10 +0100
commitcad810f21b803229eb11403f9209855525a25d57 (patch)
tree29a6fd0279be608e0fe9ffe9841f722f0f4e4269 /JavaScriptCore/docs/make-bytecode-docs.pl
parent121b0cf4517156d0ac5111caf9830c51b69bae8f (diff)
downloadexternal_webkit-cad810f21b803229eb11403f9209855525a25d57.zip
external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.gz
external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.bz2
Merge WebKit at r75315: Initial merge by git.
Change-Id: I570314b346ce101c935ed22a626b48c2af266b84
Diffstat (limited to 'JavaScriptCore/docs/make-bytecode-docs.pl')
-rwxr-xr-xJavaScriptCore/docs/make-bytecode-docs.pl43
1 files changed, 0 insertions, 43 deletions
diff --git a/JavaScriptCore/docs/make-bytecode-docs.pl b/JavaScriptCore/docs/make-bytecode-docs.pl
deleted file mode 100755
index 5a95195..0000000
--- a/JavaScriptCore/docs/make-bytecode-docs.pl
+++ /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";
-}