Beispiel #1
0
 private HotSpotMethodDataAccessor getData(int position) {
   assert position >= 0 : "out of bounds";
   final Tag tag = AbstractMethodData.readTag(this, position);
   HotSpotMethodDataAccessor accessor = PROFILE_DATA_ACCESSORS[tag.getValue()];
   assert accessor == null || accessor.getTag() == tag
       : "wrong data accessor " + accessor + " for tag " + tag;
   return accessor;
 }
Beispiel #2
0
 public static Tag readTag(HotSpotMethodData data, int position) {
   final int tag = data.readUnsignedByte(position, config.dataLayoutTagOffset);
   return Tag.getEnum(tag);
 }