LUCENE-5207: Thanks Robert for help with this opcode

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523360 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2013-09-14 23:45:43 +00:00
parent 4304e0b484
commit f676e3df79
1 changed files with 1 additions and 2 deletions

View File

@ -34,7 +34,6 @@ import static org.objectweb.asm.Opcodes.IFGT;
import static org.objectweb.asm.Opcodes.IFLE; import static org.objectweb.asm.Opcodes.IFLE;
import static org.objectweb.asm.Opcodes.IFLT; import static org.objectweb.asm.Opcodes.IFLT;
import static org.objectweb.asm.Opcodes.IFNE; import static org.objectweb.asm.Opcodes.IFNE;
import static org.objectweb.asm.Opcodes.ILOAD;
import static org.objectweb.asm.Opcodes.LAND; import static org.objectweb.asm.Opcodes.LAND;
import static org.objectweb.asm.Opcodes.LOR; import static org.objectweb.asm.Opcodes.LOR;
import static org.objectweb.asm.Opcodes.LSHL; import static org.objectweb.asm.Opcodes.LSHL;
@ -273,7 +272,7 @@ public class JavascriptCompiler {
methodVisitor.loadArg(1); methodVisitor.loadArg(1);
methodVisitor.push(index); methodVisitor.push(index);
methodVisitor.arrayLoad(FUNCTION_VALUES_TYPE); methodVisitor.arrayLoad(FUNCTION_VALUES_TYPE);
methodVisitor.visitVarInsn(ILOAD, 1); methodVisitor.loadArg(0);
methodVisitor.invokeVirtual(FUNCTION_VALUES_TYPE, DOUBLE_VAL_METHOD); methodVisitor.invokeVirtual(FUNCTION_VALUES_TYPE, DOUBLE_VAL_METHOD);
methodVisitor.cast(Type.DOUBLE_TYPE, expected); methodVisitor.cast(Type.DOUBLE_TYPE, expected);