Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java @ 23392:b3a816d3b844
Backed out changeset: a920338dd4d4
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 12 May 2016 11:06:49 +0200 |
parents | a920338dd4d4 |
children | 1d4ce2d19e52 |
comparison
equal
deleted
inserted
replaced
23391:dd9f3badc978 | 23392:b3a816d3b844 |
---|---|
34 import java.lang.reflect.Modifier; | 34 import java.lang.reflect.Modifier; |
35 import java.lang.reflect.Type; | 35 import java.lang.reflect.Type; |
36 import java.util.HashMap; | 36 import java.util.HashMap; |
37 import java.util.Map; | 37 import java.util.Map; |
38 | 38 |
39 import jdk.vm.ci.common.JVMCIError; | |
39 import jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.Option; | 40 import jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.Option; |
40 import jdk.vm.ci.meta.Constant; | 41 import jdk.vm.ci.meta.Constant; |
41 import jdk.vm.ci.meta.ConstantPool; | 42 import jdk.vm.ci.meta.ConstantPool; |
42 import jdk.vm.ci.meta.DefaultProfilingInfo; | 43 import jdk.vm.ci.meta.DefaultProfilingInfo; |
43 import jdk.vm.ci.meta.ExceptionHandler; | 44 import jdk.vm.ci.meta.ExceptionHandler; |
612 * | 613 * |
613 * @return the offset of this method into the v-table | 614 * @return the offset of this method into the v-table |
614 */ | 615 */ |
615 public int vtableEntryOffset(ResolvedJavaType resolved) { | 616 public int vtableEntryOffset(ResolvedJavaType resolved) { |
616 if (!isInVirtualMethodTable(resolved)) { | 617 if (!isInVirtualMethodTable(resolved)) { |
617 throw new InternalError(String.format("%s does not have a vtable entry in type %s", this, resolved)); | 618 throw new JVMCIError("%s does not have a vtable entry in type %s", this, resolved); |
618 } | 619 } |
619 HotSpotVMConfig config = config(); | 620 HotSpotVMConfig config = config(); |
620 final int vtableIndex = getVtableIndex((HotSpotResolvedObjectTypeImpl) resolved); | 621 final int vtableIndex = getVtableIndex((HotSpotResolvedObjectTypeImpl) resolved); |
621 return config.instanceKlassVtableStartOffset + vtableIndex * config.vtableEntrySize + config.vtableEntryMethodOffset; | 622 return config.instanceKlassVtableStartOffset + vtableIndex * config.vtableEntrySize + config.vtableEntryMethodOffset; |
622 } | 623 } |