Mercurial > hg > graal-jvmci-8
changeset 2740:49a8790b85a2
Fixed block map regression.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Fri, 20 May 2011 11:29:55 +0200 |
parents | bdaf31906620 |
children | 55f1db570dfa 45a58c9536de |
files | graal/GraalCompiler/src/com/sun/c1x/graph/BlockMap.java |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/BlockMap.java Fri May 20 10:49:40 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/graph/BlockMap.java Fri May 20 11:29:55 2011 +0200 @@ -329,6 +329,18 @@ } } + public static boolean canTrap(int opcode) { + switch (opcode) { + case INVOKESTATIC: + case INVOKESPECIAL: + case INVOKEVIRTUAL: + case INVOKEINTERFACE: { + return true; + } + } + return false; + } + private Block makeBlock(int startBci) { Block oldBlock = blockMap[startBci]; if (oldBlock == null) {