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

Version Path
rhodes-3.2.2 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.2.2.beta platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.2.1 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.2.0 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.2.0.beta.9 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.2.0.beta.8 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.2.0.beta.7 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.2.0.beta.6 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.2.0.beta.5 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.2.0.beta.4 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.2.0.beta.2 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.2.0.beta.1 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.1.1 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.1.1.beta platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.1.0 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.1.0.beta.5 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.1.0.beta.4 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.1.0.beta.3 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.1.0.beta.2 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java
rhodes-3.1.0.beta.1 platform/shared/xruby/src/com/xruby/runtime/lang/util/VarArgRunMethodHelper.java