comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/SystemSubstitutions.java @ 9316:5e1465ec46d6

Change the way branch probabilities are injected. Update all snippets.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 25 Apr 2013 21:34:00 +0200
parents ce5750014c3d
children 659bb6cf930c
comparison
equal deleted inserted replaced
9315:9fde96e0c96b 9316:5e1465ec46d6
54 return callLong(JAVA_TIME_NANOS); 54 return callLong(JAVA_TIME_NANOS);
55 } 55 }
56 56
57 @MethodSubstitution 57 @MethodSubstitution
58 public static int identityHashCode(Object x) { 58 public static int identityHashCode(Object x) {
59 if (x == null) { 59 if (probability(NOT_FREQUENT_PROBABILITY, x == null)) {
60 probability(NOT_FREQUENT_PROBABILITY);
61 return 0; 60 return 0;
62 } 61 }
63 62
64 return computeHashCode(x); 63 return computeHashCode(x);
65 } 64 }