From 94a62340771c0eb4820d7608fc7d42960dded96d Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 6 Aug 2007 09:43:31 +0000 Subject: * lib/vm/instruction.rb (make_header_analysys): fix last commit. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/vm/instruction.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') diff --git a/lib/vm/instruction.rb b/lib/vm/instruction.rb index af8f0ac64..183d6b4b1 100644 --- a/lib/vm/instruction.rb +++ b/lib/vm/instruction.rb @@ -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? -- cgit