vm/codegen/instructions_gen.rb
# Generate a C signature for the implementation code, to be used as a
# function.
#
Generate a C signature for the implementation code, to be used as a
function.
Generate a C signature for the implementation code to be used as a function .
def signature
      av = args.map { |name| "int #{name}" }.join(", ")
      av = ", #{av}" unless av.empty?
      "Object* op_#{name.opcode}(rubinius::VM* state, rubinius::VMMethod* vmm, rubinius::CallFrame* const call_frame, rubinius::VMMethod::InterpreterState& is #{av})"
    end
def signature av = args . map { | name | "int #{name}" } . join ( ", " ) av = ", #{av}" unless av . empty? "Object* op_#{name.opcode}(rubinius::VM* state, rubinius::VMMethod* vmm, rubinius::CallFrame* const call_frame, rubinius::VMMethod::InterpreterState& is #{av})" end
Generate a C signature for the implementation code, to be used as a
function.
Generate a C signature for the implementation code to be used as a function .