# HG changeset patch # User Josef Eisl # Date 1399368575 -7200 # Node ID e46312e7ac273c4fd6b515deb56bcebe6fbc3f73 # Parent 667c911b97c465de73f0961166c60bfde5134ba1 BaselineBytecodeParser: add BciBlockMapping debug scope. diff -r 667c911b97c4 -r e46312e7ac27 graal/com.oracle.graal.baseline/src/com/oracle/graal/baseline/BaselineBytecodeParser.java --- a/graal/com.oracle.graal.baseline/src/com/oracle/graal/baseline/BaselineBytecodeParser.java Tue May 06 11:10:24 2014 +0200 +++ b/graal/com.oracle.graal.baseline/src/com/oracle/graal/baseline/BaselineBytecodeParser.java Tue May 06 11:29:35 2014 +0200 @@ -92,8 +92,14 @@ try (Indent indent = Debug.logAndIndent("build graph for %s", method)) { - // compute the block map, setup exception handlers and get the entrypoint(s) - BciBlockMapping blockMap = BciBlockMapping.create(method); + BciBlockMapping blockMap; + try (Scope ds = Debug.scope("BciBlockMapping")) { + // compute the block map, setup exception handlers and get the entrypoint(s) + blockMap = BciBlockMapping.create(method); + } catch (Throwable e) { + throw Debug.handle(e); + } + loopHeaders = blockMap.loopHeaders; liveness = blockMap.liveness; blockVisited = new BciBlockBitMap(blockMap);