comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedJavaMethod.java @ 9380:ee8cd087a731

Dispatch based on method instead of type if it seems more beneficial.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 28 Apr 2013 02:03:34 +0200
parents 0266549ff6e0
children 16c354398d09
comparison
equal deleted inserted replaced
9379:217e82c93bde 9380:ee8cd087a731
84 public Constant getMetaspaceMethodConstant() { 84 public Constant getMetaspaceMethodConstant() {
85 return Constant.forIntegerKind(graalRuntime().getTarget().wordKind, metaspaceMethod, this); 85 return Constant.forIntegerKind(graalRuntime().getTarget().wordKind, metaspaceMethod, this);
86 } 86 }
87 87
88 @Override 88 @Override
89 public Constant getEncoding() {
90 return getMetaspaceMethodConstant();
91 }
92
93 @Override
89 public int getModifiers() { 94 public int getModifiers() {
90 HotSpotVMConfig config = graalRuntime().getConfig(); 95 HotSpotVMConfig config = graalRuntime().getConfig();
91 return unsafe.getInt(metaspaceMethod + config.methodAccessFlagsOffset) & Modifier.methodModifiers(); 96 return unsafe.getInt(metaspaceMethod + config.methodAccessFlagsOffset) & Modifier.methodModifiers();
92 } 97 }
93 98