jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/util/RealType.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.
    31 import com.sun.org.apache.bcel.internal.generic.IFNE;
    30 import com.sun.org.apache.bcel.internal.generic.IFNE;
    32 import com.sun.org.apache.bcel.internal.generic.INVOKESPECIAL;
    31 import com.sun.org.apache.bcel.internal.generic.INVOKESPECIAL;
    33 import com.sun.org.apache.bcel.internal.generic.INVOKESTATIC;
    32 import com.sun.org.apache.bcel.internal.generic.INVOKESTATIC;
    34 import com.sun.org.apache.bcel.internal.generic.INVOKEVIRTUAL;
    33 import com.sun.org.apache.bcel.internal.generic.INVOKEVIRTUAL;
    35 import com.sun.org.apache.bcel.internal.generic.Instruction;
    34 import com.sun.org.apache.bcel.internal.generic.Instruction;
    36 import com.sun.org.apache.bcel.internal.generic.InstructionConstants;
    35 import com.sun.org.apache.bcel.internal.generic.InstructionConst;
    37 import com.sun.org.apache.bcel.internal.generic.InstructionList;
    36 import com.sun.org.apache.bcel.internal.generic.InstructionList;
    38 import com.sun.org.apache.bcel.internal.generic.LocalVariableGen;
    37 import com.sun.org.apache.bcel.internal.generic.LocalVariableGen;
    39 import com.sun.org.apache.bcel.internal.generic.NEW;
    38 import com.sun.org.apache.bcel.internal.generic.NEW;
    40 import com.sun.org.apache.xalan.internal.xsltc.compiler.Constants;
    39 import com.sun.org.apache.xalan.internal.xsltc.compiler.Constants;
    41 import com.sun.org.apache.xalan.internal.xsltc.compiler.FlowList;
    40 import com.sun.org.apache.xalan.internal.xsltc.compiler.FlowList;
   294                                                      DOUBLE_VALUE,
   293                                                      DOUBLE_VALUE,
   295                                                      DOUBLE_VALUE_SIG)));
   294                                                      DOUBLE_VALUE_SIG)));
   296     }
   295     }
   297 
   296 
   298     public Instruction ADD() {
   297     public Instruction ADD() {
   299         return InstructionConstants.DADD;
   298         return InstructionConst.DADD;
   300     }
   299     }
   301 
   300 
   302     public Instruction SUB() {
   301     public Instruction SUB() {
   303         return InstructionConstants.DSUB;
   302         return InstructionConst.DSUB;
   304     }
   303     }
   305 
   304 
   306     public Instruction MUL() {
   305     public Instruction MUL() {
   307         return InstructionConstants.DMUL;
   306         return InstructionConst.DMUL;
   308     }
   307     }
   309 
   308 
   310     public Instruction DIV() {
   309     public Instruction DIV() {
   311         return InstructionConstants.DDIV;
   310         return InstructionConst.DDIV;
   312     }
   311     }
   313 
   312 
   314     public Instruction REM() {
   313     public Instruction REM() {
   315         return InstructionConstants.DREM;
   314         return InstructionConst.DREM;
   316     }
   315     }
   317 
   316 
   318     public Instruction NEG() {
   317     public Instruction NEG() {
   319         return InstructionConstants.DNEG;
   318         return InstructionConst.DNEG;
   320     }
   319     }
   321 
   320 
   322     public Instruction LOAD(int slot) {
   321     public Instruction LOAD(int slot) {
   323         return new DLOAD(slot);
   322         return new DLOAD(slot);
   324     }
   323     }
   330     public Instruction POP() {
   329     public Instruction POP() {
   331         return POP2;
   330         return POP2;
   332     }
   331     }
   333 
   332 
   334     public Instruction CMP(boolean less) {
   333     public Instruction CMP(boolean less) {
   335         return less ? InstructionConstants.DCMPG : InstructionConstants.DCMPL;
   334         return less ? InstructionConst.DCMPG : InstructionConst.DCMPL;
   336     }
   335     }
   337 
   336 
   338     public Instruction DUP() {
   337     public Instruction DUP() {
   339         return DUP2;
   338         return DUP2;
   340     }
   339     }