Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/MonitorSnippets.java @ 13690:08f58bfde0dd
add IterableNodeType to ReturnNode
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Wed, 15 Jan 2014 16:07:01 +0100 |
parents | 83fd2094ff66 |
children | 3e13ec261278 |
comparison
equal
deleted
inserted
replaced
13689:04615309d018 | 13690:08f58bfde0dd |
---|---|
519 graph.addAfterFixed(graph.start(), invoke); | 519 graph.addAfterFixed(graph.start(), invoke); |
520 | 520 |
521 StructuredGraph inlineeGraph = providers.getReplacements().getSnippet(initCounter.getMethod()); | 521 StructuredGraph inlineeGraph = providers.getReplacements().getSnippet(initCounter.getMethod()); |
522 InliningUtil.inline(invoke, inlineeGraph, false); | 522 InliningUtil.inline(invoke, inlineeGraph, false); |
523 | 523 |
524 List<ReturnNode> rets = graph.getNodes().filter(ReturnNode.class).snapshot(); | 524 List<ReturnNode> rets = graph.getNodes(ReturnNode.class).snapshot(); |
525 for (ReturnNode ret : rets) { | 525 for (ReturnNode ret : rets) { |
526 returnType = checkCounter.getMethod().getSignature().getReturnType(checkCounter.getMethod().getDeclaringClass()); | 526 returnType = checkCounter.getMethod().getSignature().getReturnType(checkCounter.getMethod().getDeclaringClass()); |
527 String msg = "unbalanced monitors in " + MetaUtil.format("%H.%n(%p)", graph.method()) + ", count = %d"; | 527 String msg = "unbalanced monitors in " + MetaUtil.format("%H.%n(%p)", graph.method()) + ", count = %d"; |
528 ConstantNode errMsg = ConstantNode.forObject(msg, providers.getMetaAccess(), graph); | 528 ConstantNode errMsg = ConstantNode.forObject(msg, providers.getMetaAccess(), graph); |
529 callTarget = graph.add(new MethodCallTargetNode(InvokeKind.Static, checkCounter.getMethod(), new ValueNode[]{errMsg}, returnType)); | 529 callTarget = graph.add(new MethodCallTargetNode(InvokeKind.Static, checkCounter.getMethod(), new ValueNode[]{errMsg}, returnType)); |