mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/vm/instruction.rb (make_header_analysys): fix last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fe0f6734bf
commit
7e2b837a39
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Aug 6 18:41:12 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* lib/vm/instruction.rb (make_header_analysys): fix last commit.
|
||||
|
||||
Mon Aug 6 18:33:22 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* lib/vm/instruction.rb (make_header_analysys): add to separate
|
||||
|
|
|
@ -794,6 +794,14 @@ module RubyVM
|
|||
ret
|
||||
end
|
||||
|
||||
def make_header_analysys insn
|
||||
ret = " USAGE_ANALYSIS_INSN(BIN(#{insn.name}));\n"
|
||||
insn.opes.each_with_index{|op, i|
|
||||
ret += " USAGE_ANALYSIS_OPERAND(BIN(#{insn.name}), #{i}, #{op[1]});\n"
|
||||
}
|
||||
ret
|
||||
end
|
||||
|
||||
def make_header insn
|
||||
ret = "\nINSN_ENTRY(#{insn.name}){\n"
|
||||
ret += " /* prepare stack status */\n" if verbose?
|
||||
|
|
Loading…
Reference in a new issue