Sha256: e4e014df9a2cefce7fa2a30a6e324d114883664d264635518e33be9770a3eb6d
Contents?: true
Size: 773 Bytes
Versions: 135
Compression:
Stored size: 773 Bytes
Contents
/** * Copyright 2007 Ye Zheng * Distributed under the BSD License */ package com.xruby.runtime.lang.util; import org.objectweb.asm.commons.GeneratorAdapter; import org.objectweb.asm.commons.Method; import com.xruby.compiler.codegen.CgUtil; import com.xruby.compiler.codegen.Types; public class VarArgRunMethodHelper extends RunMethodHelper { private static final Method VarArgRunMethod = CgUtil.getMethod("run", Types.RUBY_VALUE_TYPE, Types.RUBY_VALUE_TYPE, Types.RUBY_ARRAY_TYPE, Types.RUBY_BLOCK_TYPE); protected Method getRunMethod() { return VarArgRunMethod; } protected void loadBlock(GeneratorAdapter mg) { mg.loadArg(2); } protected int rubyArgSize() { return -1; } protected void loadArgs(GeneratorAdapter mg) { mg.loadArg(1); } }
Version data entries
135 entries across 135 versions & 2 rubygems