Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/CipherBlockChainingSubstitutions.java @ 21543:93c50cefb9e8
moved GraalInternalError to com.oracle.jvmci.common and renamed it to JVMCIError (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 25 May 2015 23:30:34 +0200 |
parents | 5e868236654f |
children | 48c1ebd24120 |
comparison
equal
deleted
inserted
replaced
21542:543957c1c6a6 | 21543:93c50cefb9e8 |
---|---|
26 import static com.oracle.graal.hotspot.replacements.HotSpotReplacementsUtil.*; | 26 import static com.oracle.graal.hotspot.replacements.HotSpotReplacementsUtil.*; |
27 import sun.misc.*; | 27 import sun.misc.*; |
28 | 28 |
29 import com.oracle.graal.api.meta.*; | 29 import com.oracle.graal.api.meta.*; |
30 import com.oracle.graal.api.replacements.*; | 30 import com.oracle.graal.api.replacements.*; |
31 import com.oracle.graal.compiler.common.*; | |
32 import com.oracle.graal.graph.Node.ConstantNodeParameter; | 31 import com.oracle.graal.graph.Node.ConstantNodeParameter; |
33 import com.oracle.graal.graph.Node.NodeIntrinsic; | 32 import com.oracle.graal.graph.Node.NodeIntrinsic; |
34 import com.oracle.graal.hotspot.nodes.*; | 33 import com.oracle.graal.hotspot.nodes.*; |
35 import com.oracle.graal.nodes.*; | 34 import com.oracle.graal.nodes.*; |
36 import com.oracle.graal.nodes.extended.*; | 35 import com.oracle.graal.nodes.extended.*; |
58 embeddedCipherOffset = UnsafeAccess.unsafe.objectFieldOffset(feedbackCipherClass.getDeclaredField("embeddedCipher")); | 57 embeddedCipherOffset = UnsafeAccess.unsafe.objectFieldOffset(feedbackCipherClass.getDeclaredField("embeddedCipher")); |
59 | 58 |
60 cipherBlockChainingClass = Class.forName("com.sun.crypto.provider.CipherBlockChaining", true, cl); | 59 cipherBlockChainingClass = Class.forName("com.sun.crypto.provider.CipherBlockChaining", true, cl); |
61 rOffset = UnsafeAccess.unsafe.objectFieldOffset(cipherBlockChainingClass.getDeclaredField("r")); | 60 rOffset = UnsafeAccess.unsafe.objectFieldOffset(cipherBlockChainingClass.getDeclaredField("r")); |
62 } catch (Exception ex) { | 61 } catch (Exception ex) { |
63 throw new GraalInternalError(ex); | 62 throw new JVMCIError(ex); |
64 } | 63 } |
65 } | 64 } |
66 | 65 |
67 @Fold | 66 @Fold |
68 private static Class<?> getAESCryptClass() { | 67 private static Class<?> getAESCryptClass() { |