final int translateLocal(final int localIndex) { int index = localIndex; if (methodBuilder != null) { if (!methodBuilder.isStatic()) { ++index; } index += methodBuilder.getParameterTypes().size(); } return index; }
final int translateLocal(final int localIndex) { int index = localIndex; if (methodBuilder != null) { if (!methodBuilder.isStatic()) { ++index; } index += methodBuilder.getParameterTypes().size(); } return index; }
public void emitThis() { if (methodBuilder == null) { throw Error.bytecodeGeneratorNotOwnedByMethodBuilder(); } if (methodBuilder.isStatic()) { throw Error.cannotLoadThisForStaticMethod(); } emitLoad(methodBuilder.getDeclaringType(), 0); }
public void emitThis() { if (methodBuilder == null) { throw Error.bytecodeGeneratorNotOwnedByMethodBuilder(); } if (methodBuilder.isStatic()) { throw Error.cannotLoadThisForStaticMethod(); } emitLoad(methodBuilder.getDeclaringType(), 0); }
public void emitThis() { if (methodBuilder == null) { throw Error.bytecodeGeneratorNotOwnedByMethodBuilder(); } if (methodBuilder.isStatic()) { throw Error.cannotLoadThisForStaticMethod(); } emitLoad(methodBuilder.getDeclaringType(), 0); }
final int translateParameter(final int localIndex) { int index = localIndex; if (methodBuilder != null) { if (!methodBuilder.isStatic()) { ++index; } final TypeList parameterTypes = methodBuilder.getParameterTypes(); for (int i = 0, n = parameterTypes.size(); i < localIndex && i < n; i++) { final TypeKind kind = parameterTypes.get(i).getKind(); if (kind == TypeKind.LONG || kind == TypeKind.DOUBLE) { ++index; } } } return index; }
final int translateParameter(final int localIndex) { int index = localIndex; if (methodBuilder != null) { if (!methodBuilder.isStatic()) { ++index; } final TypeList parameterTypes = methodBuilder.getParameterTypes(); for (int i = 0, n = parameterTypes.size(); i < localIndex && i < n; i++) { final TypeKind kind = parameterTypes.get(i).getKind(); if (kind == TypeKind.LONG || kind == TypeKind.DOUBLE) { ++index; } } } return index; }
final int translateParameter(final int localIndex) { int index = localIndex; if (methodBuilder != null) { if (!methodBuilder.isStatic()) { ++index; } final TypeList parameterTypes = methodBuilder.getParameterTypes(); for (int i = 0, n = parameterTypes.size(); i < localIndex && i < n; i++) { final TypeKind kind = parameterTypes.get(i).getKind(); if (kind == TypeKind.LONG || kind == TypeKind.DOUBLE) { ++index; } } } return index; }
private List<LocalInfo> getLocalInfo(final MethodBuilder builder) { final boolean hasThis = !builder.isStatic();
private List<LocalInfo> getLocalInfo(final MethodBuilder builder) { final boolean hasThis = !builder.isStatic();
private List<LocalInfo> getLocalInfo(final MethodBuilder builder) { final boolean hasThis = !builder.isStatic();
if (!method.isStatic()) { maxLocals += 1;
if (!method.isStatic()) { maxLocals += 1;