Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotGraphBuilderPlugins.java @ 20860:dc795777f789
converted @MethodSubstitutions for java.lang.Object to MethodSubstitutionPlugins
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 09 Apr 2015 08:54:09 +0200 |
parents | 74f8a2ec0844 |
children | 56ff43bb250a |
comparison
equal
deleted
inserted
replaced
20859:619c0e8bb728 | 20860:dc795777f789 |
---|---|
98 ValueNode object = receiver.get(); | 98 ValueNode object = receiver.get(); |
99 b.addPush(Kind.Object, new ObjectCloneNode(b.getInvokeKind(), targetMethod, b.bci(), b.getInvokeReturnType(), object)); | 99 b.addPush(Kind.Object, new ObjectCloneNode(b.getInvokeKind(), targetMethod, b.bci(), b.getInvokeReturnType(), object)); |
100 return true; | 100 return true; |
101 } | 101 } |
102 }); | 102 }); |
103 r.registerMethodSubstitution(ObjectSubstitutions.class, "hashCode", Receiver.class); | |
103 } | 104 } |
104 | 105 |
105 private static void registerClassPlugins(InvocationPlugins plugins) { | 106 private static void registerClassPlugins(InvocationPlugins plugins) { |
106 Registration r = new Registration(plugins, Class.class); | 107 Registration r = new Registration(plugins, Class.class); |
107 | 108 |