summaryrefslogtreecommitdiff
path: root/tool/asm_parse.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/asm_parse.rb')
-rw-r--r--tool/asm_parse.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/tool/asm_parse.rb b/tool/asm_parse.rb
index f3d7f73c99..32882be3ad 100644
--- a/tool/asm_parse.rb
+++ b/tool/asm_parse.rb
@@ -1,3 +1,5 @@
+# YARV tool to parse assembly output.
+
stat = {}
while line = ARGF.gets
@@ -7,7 +9,7 @@ while line = ARGF.gets
puts line
size = 0
len = 0
-
+
while line = ARGF.gets
if /\[start\] (\w+)/ =~ line
puts "\t; # length: #{len}, size: #{size}"
@@ -29,8 +31,8 @@ while line = ARGF.gets
size += 1
end
end
-
-
+
+
if /__NEXT_INSN__/ !~ line && /\[end \] (\w+)/ =~ line
ename = $1
if name != ename