comparison graal/com.oracle.max.criutils/src/com/oracle/max/criutils/BaseProfilingInfo.java @ 5541:b4c406861c33

More renamings to drop Ri* prefix completely. Deleted graph.BitMap class and replaced with java.util.BitSet.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sat, 09 Jun 2012 16:52:12 +0200
parents 426c605c9d3c
children b6617d13ea44
comparison
equal deleted inserted replaced
5540:a891c53a295b 5541:b4c406861c33
28 28
29 /** 29 /**
30 * Dummy profiling information in case that a method was not executed frequently enough so that 30 * Dummy profiling information in case that a method was not executed frequently enough so that
31 * no profiling information does exist yet, or in case that the profiling information should not be used. 31 * no profiling information does exist yet, or in case that the profiling information should not be used.
32 */ 32 */
33 public final class BaseProfilingInfo implements RiProfilingInfo { 33 public final class BaseProfilingInfo implements ProfilingInfo {
34 private static final RiProfilingInfo[] NO_PROFILING_INFO = new RiProfilingInfo[] { 34 private static final ProfilingInfo[] NO_PROFILING_INFO = new ProfilingInfo[] {
35 new BaseProfilingInfo(RiExceptionSeen.TRUE), 35 new BaseProfilingInfo(ExceptionSeen.TRUE),
36 new BaseProfilingInfo(RiExceptionSeen.FALSE), 36 new BaseProfilingInfo(ExceptionSeen.FALSE),
37 new BaseProfilingInfo(RiExceptionSeen.NOT_SUPPORTED) 37 new BaseProfilingInfo(ExceptionSeen.NOT_SUPPORTED)
38 }; 38 };
39 39
40 private final RiExceptionSeen exceptionSeen; 40 private final ExceptionSeen exceptionSeen;
41 41
42 BaseProfilingInfo(RiExceptionSeen exceptionSeen) { 42 BaseProfilingInfo(ExceptionSeen exceptionSeen) {
43 this.exceptionSeen = exceptionSeen; 43 this.exceptionSeen = exceptionSeen;
44 } 44 }
45 45
46 @Override 46 @Override
47 public int codeSize() { 47 public int codeSize() {
48 return 0; 48 return 0;
49 } 49 }
50 50
51 @Override 51 @Override
52 public RiTypeProfile getTypeProfile(int bci) { 52 public JavaTypeProfile getTypeProfile(int bci) {
53 return null; 53 return null;
54 } 54 }
55 55
56 @Override 56 @Override
57 public double getBranchTakenProbability(int bci) { 57 public double getBranchTakenProbability(int bci) {
62 public double[] getSwitchProbabilities(int bci) { 62 public double[] getSwitchProbabilities(int bci) {
63 return null; 63 return null;
64 } 64 }
65 65
66 @Override 66 @Override
67 public RiExceptionSeen getExceptionSeen(int bci) { 67 public ExceptionSeen getExceptionSeen(int bci) {
68 return exceptionSeen; 68 return exceptionSeen;
69 } 69 }
70 70
71 @Override 71 @Override
72 public int getExecutionCount(int bci) { 72 public int getExecutionCount(int bci) {
73 return -1; 73 return -1;
74 } 74 }
75 75
76 public static RiProfilingInfo get(RiExceptionSeen exceptionSeen) { 76 public static ProfilingInfo get(ExceptionSeen exceptionSeen) {
77 return NO_PROFILING_INFO[exceptionSeen.ordinal()]; 77 return NO_PROFILING_INFO[exceptionSeen.ordinal()];
78 } 78 }
79 79
80 @Override 80 @Override
81 public int getDeoptimizationCount(RiDeoptReason reason) { 81 public int getDeoptimizationCount(DeoptimizationReason reason) {
82 return 0; 82 return 0;
83 } 83 }
84 84
85 @Override 85 @Override
86 public String toString() { 86 public String toString() {