< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/replacements/SHA2Substitutions.java

Print this page




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 
  25 package org.graalvm.compiler.hotspot.replacements;
  26 
  27 import static org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.INJECTED_METAACCESS;
  28 import static org.graalvm.compiler.hotspot.GraalHotSpotVMConfigBase.INJECTED_INTRINSIC_CONTEXT;
  29 import static org.graalvm.compiler.serviceprovider.GraalServices.Java8OrEarlier;
  30 
  31 import org.graalvm.compiler.api.replacements.ClassSubstitution;
  32 import org.graalvm.compiler.api.replacements.Fold;
  33 import org.graalvm.compiler.api.replacements.MethodSubstitution;
  34 import org.graalvm.compiler.hotspot.HotSpotBackend;
  35 import org.graalvm.compiler.nodes.ComputeObjectAddressNode;
  36 import org.graalvm.compiler.nodes.PiNode;
  37 import org.graalvm.compiler.nodes.extended.RawLoadNode;
  38 import org.graalvm.compiler.nodes.graphbuilderconf.IntrinsicContext;
  39 import org.graalvm.compiler.replacements.ReplacementsUtil;
  40 import org.graalvm.compiler.word.Word;
  41 import jdk.internal.vm.compiler.word.LocationIdentity;
  42 import jdk.internal.vm.compiler.word.WordFactory;
  43 
  44 import jdk.vm.ci.meta.JavaKind;
  45 
  46 @ClassSubstitution(className = "sun.security.provider.SHA2", optional = true)
  47 public class SHA2Substitutions {
  48 
  49     public static final String implCompressName = Java8OrEarlier ? "implCompress" : "implCompress0";


   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 
  25 package org.graalvm.compiler.hotspot.replacements;
  26 
  27 import static org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.INJECTED_METAACCESS;
  28 import static org.graalvm.compiler.hotspot.GraalHotSpotVMConfigBase.INJECTED_INTRINSIC_CONTEXT;
  29 import static org.graalvm.compiler.serviceprovider.JavaVersionUtil.Java8OrEarlier;
  30 
  31 import org.graalvm.compiler.api.replacements.ClassSubstitution;
  32 import org.graalvm.compiler.api.replacements.Fold;
  33 import org.graalvm.compiler.api.replacements.MethodSubstitution;
  34 import org.graalvm.compiler.hotspot.HotSpotBackend;
  35 import org.graalvm.compiler.nodes.ComputeObjectAddressNode;
  36 import org.graalvm.compiler.nodes.PiNode;
  37 import org.graalvm.compiler.nodes.extended.RawLoadNode;
  38 import org.graalvm.compiler.nodes.graphbuilderconf.IntrinsicContext;
  39 import org.graalvm.compiler.replacements.ReplacementsUtil;
  40 import org.graalvm.compiler.word.Word;
  41 import jdk.internal.vm.compiler.word.LocationIdentity;
  42 import jdk.internal.vm.compiler.word.WordFactory;
  43 
  44 import jdk.vm.ci.meta.JavaKind;
  45 
  46 @ClassSubstitution(className = "sun.security.provider.SHA2", optional = true)
  47 public class SHA2Substitutions {
  48 
  49     public static final String implCompressName = Java8OrEarlier ? "implCompress" : "implCompress0";
< prev index next >