aboutsummaryrefslogtreecommitdiffstats
path: root/tool/instruction.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-15 11:55:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-15 11:55:52 +0000
commit3a47cf3395dd4c4fe8bdd5df13aab698f2ca314b (patch)
treec4a278220ba8141b829c5c7b0777c1049cfe413c /tool/instruction.rb
parent39da1b63699faf30c86e753e193c29b81b16136d (diff)
downloadruby-3a47cf3395dd4c4fe8bdd5df13aab698f2ca314b.tar.gz
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/instruction.rb')
-rwxr-xr-xtool/instruction.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/tool/instruction.rb b/tool/instruction.rb
index 4fd2127be2..9dc7604170 100755
--- a/tool/instruction.rb
+++ b/tool/instruction.rb
@@ -35,7 +35,7 @@ class RubyVM
@sc << sci
sci.set_sc
end
-
+
attr_reader :name, :opes, :pops, :rets
attr_reader :body, :comm
attr_reader :nextsc, :pushsc
@@ -45,11 +45,11 @@ class RubyVM
attr_reader :is_sc
attr_reader :tvars
attr_reader :sp_inc
-
+
def set_sc
@is_sc = true
end
-
+
def add_unif insns
@unifs << insns
end
@@ -84,7 +84,7 @@ class RubyVM
"return depth + #{rets.size - pops.size};"
end
end
-
+
def inspect
"#<Instruction:#{@name}>"
end
@@ -113,7 +113,7 @@ class RubyVM
attr_reader :vpath
attr_reader :destdir
-
+
%w[use_const verbose].each do |attr|
attr_reader attr
alias_method "#{attr}?", attr
@@ -455,7 +455,7 @@ class RubyVM
rv = rpvars[1]
"#define #{pv[1]} #{rv[1]}"
}.join("\n") +
- "\n" +
+ "\n" +
redef_vars.map{|v, type|
"#define #{v} #{v}_#{i}"
}.join("\n") + "\n" +
@@ -693,7 +693,7 @@ class RubyVM
}
}
end
-
+
def make_header_operands insn
comment " /* declare and get from iseq */"
@@ -718,7 +718,7 @@ class RubyVM
# ops.join
commit ops.reverse
end
-
+
def make_header_default_operands insn
vars = insn.defopes
@@ -907,7 +907,7 @@ class RubyVM
commit " ELABEL_PTR(#{insn.name}),\n"
}
end
-
+
ERB.new(vpath.read('template/vmtc.inc.tmpl')).result(binding)
end
end
@@ -1156,7 +1156,7 @@ class RubyVM
uni_insns.map{|e| "BIN(#{e.name})"}.join(", ") + "};\n"
}
else
-
+
end
if size > 0
unif_insns << "static const int *const UNIFIED_#{insn.name}[] = {(int *)#{size+1}, \n"