jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/util/IntType.java
changeset 46174 5611d2529b49
parent 44797 8b3b3b911b8a
equal deleted inserted replaced
46173:5546b5710844 46174:5611d2529b49
     1 /*
     1 /*
     2  * reserved comment block
     2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT REMOVE OR ALTER!
       
     4  */
     3  */
     5 /*
     4 /*
     6  * Licensed to the Apache Software Foundation (ASF) under one or more
     5  * Licensed to the Apache Software Foundation (ASF) under one or more
     7  * contributor license agreements.  See the NOTICE file distributed with
     6  * contributor license agreements.  See the NOTICE file distributed with
     8  * this work for additional information regarding copyright ownership.
     7  * this work for additional information regarding copyright ownership.
    39 import com.sun.org.apache.bcel.internal.generic.INVOKESPECIAL;
    38 import com.sun.org.apache.bcel.internal.generic.INVOKESPECIAL;
    40 import com.sun.org.apache.bcel.internal.generic.INVOKESTATIC;
    39 import com.sun.org.apache.bcel.internal.generic.INVOKESTATIC;
    41 import com.sun.org.apache.bcel.internal.generic.INVOKEVIRTUAL;
    40 import com.sun.org.apache.bcel.internal.generic.INVOKEVIRTUAL;
    42 import com.sun.org.apache.bcel.internal.generic.ISTORE;
    41 import com.sun.org.apache.bcel.internal.generic.ISTORE;
    43 import com.sun.org.apache.bcel.internal.generic.Instruction;
    42 import com.sun.org.apache.bcel.internal.generic.Instruction;
    44 import com.sun.org.apache.bcel.internal.generic.InstructionConstants;
    43 import com.sun.org.apache.bcel.internal.generic.InstructionConst;
    45 import com.sun.org.apache.bcel.internal.generic.InstructionList;
    44 import com.sun.org.apache.bcel.internal.generic.InstructionList;
    46 import com.sun.org.apache.bcel.internal.generic.NEW;
    45 import com.sun.org.apache.bcel.internal.generic.NEW;
    47 import com.sun.org.apache.xalan.internal.xsltc.compiler.Constants;
    46 import com.sun.org.apache.xalan.internal.xsltc.compiler.Constants;
    48 import com.sun.org.apache.xalan.internal.xsltc.compiler.FlowList;
    47 import com.sun.org.apache.xalan.internal.xsltc.compiler.FlowList;
    49 
    48 
   245                                            INT_VALUE_SIG);
   244                                            INT_VALUE_SIG);
   246         il.append(new INVOKEVIRTUAL(index));
   245         il.append(new INVOKEVIRTUAL(index));
   247     }
   246     }
   248 
   247 
   249     public Instruction ADD() {
   248     public Instruction ADD() {
   250         return InstructionConstants.IADD;
   249         return InstructionConst.IADD;
   251     }
   250     }
   252 
   251 
   253     public Instruction SUB() {
   252     public Instruction SUB() {
   254         return InstructionConstants.ISUB;
   253         return InstructionConst.ISUB;
   255     }
   254     }
   256 
   255 
   257     public Instruction MUL() {
   256     public Instruction MUL() {
   258         return InstructionConstants.IMUL;
   257         return InstructionConst.IMUL;
   259     }
   258     }
   260 
   259 
   261     public Instruction DIV() {
   260     public Instruction DIV() {
   262         return InstructionConstants.IDIV;
   261         return InstructionConst.IDIV;
   263     }
   262     }
   264 
   263 
   265     public Instruction REM() {
   264     public Instruction REM() {
   266         return InstructionConstants.IREM;
   265         return InstructionConst.IREM;
   267     }
   266     }
   268 
   267 
   269     public Instruction NEG() {
   268     public Instruction NEG() {
   270         return InstructionConstants.INEG;
   269         return InstructionConst.INEG;
   271     }
   270     }
   272 
   271 
   273     public Instruction LOAD(int slot) {
   272     public Instruction LOAD(int slot) {
   274         return new ILOAD(slot);
   273         return new ILOAD(slot);
   275     }
   274     }