本文整理匯總了Java中jdk.vm.ci.meta.ResolvedJavaMethod.equals方法的典型用法代碼示例。如果您正苦於以下問題:Java ResolvedJavaMethod.equals方法的具體用法?Java ResolvedJavaMethod.equals怎麽用?Java ResolvedJavaMethod.equals使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類jdk.vm.ci.meta.ResolvedJavaMethod
的用法示例。
在下文中一共展示了ResolvedJavaMethod.equals方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: assertEqualMethods
import jdk.vm.ci.meta.ResolvedJavaMethod; //導入方法依賴的package包/類
static void assertEqualMethods(ResolvedJavaMethod e, ResolvedJavaMethod a) {
if (a != null) {
if (!e.equals(a)) {
if (!e.equals(a)) {
if (!e.getDeclaringClass().equals(a.getDeclaringClass())) {
if (!typesAreRelated(e, a)) {
throw new AssertionError(String.format("%s and %s are unrelated", a.getDeclaringClass().toJavaName(), e.getDeclaringClass().toJavaName()));
}
}
Assert.assertEquals(e.getName(), a.getName());
Assert.assertEquals(e.getSignature(), a.getSignature());
} else {
Assert.assertEquals(e, a);
}
}
}
}
示例2: printInlining
import jdk.vm.ci.meta.ResolvedJavaMethod; //導入方法依賴的package包/類
private void printInlining(ResolvedJavaMethod targetMethod, ResolvedJavaMethod inlinedMethod, boolean success, String msg) {
if (success) {
if (TraceInlineDuringParsing.getValue(options) || TraceParserPlugins.getValue(options)) {
if (targetMethod.equals(inlinedMethod)) {
traceWithContext("inlining call to %s", inlinedMethod.format("%h.%n(%p)"));
} else {
traceWithContext("inlining call to %s as intrinsic for %s", inlinedMethod.format("%h.%n(%p)"), targetMethod.format("%h.%n(%p)"));
}
}
}
if (HotSpotPrintInlining.getValue(options)) {
if (targetMethod.equals(inlinedMethod)) {
Util.printInlining(inlinedMethod, bci(), getDepth(), success, "%s", msg);
} else {
Util.printInlining(inlinedMethod, bci(), getDepth(), success, "%s intrinsic for %s", msg, targetMethod.format("%h.%n(%p)"));
}
}
}
示例3: countRecursiveInlining
import jdk.vm.ci.meta.ResolvedJavaMethod; //導入方法依賴的package包/類
public int countRecursiveInlining(ResolvedJavaMethod method) {
int count = 0;
for (CallsiteHolder callsiteHolder : graphQueue) {
if (method.equals(callsiteHolder.method())) {
count++;
}
}
return count;
}
示例4: assignInlineeInvokeFrequencies
import jdk.vm.ci.meta.ResolvedJavaMethod; //導入方法依賴的package包/類
private void assignInlineeInvokeFrequencies(StructuredGraph graph) {
for (ProfileInvokeNode node : getProfileInvokeNodes(graph)) {
ResolvedJavaMethod profiledMethod = node.getProfiledMethod();
if (!profiledMethod.equals(graph.method())) {
// Some inlinee, reassign the inlinee frequency
node.setNotificationFreqLog(inlineeInvokeNotificationFreqLog);
}
}
}