зеркало из https://github.com/github/ruby.git
* 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:
Родитель
fe0f6734bf
Коммит
7e2b837a39
|
@ -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?
|
||||
|
|
Загрузка…
Ссылка в новой задаче