# HG changeset patch # User Christian Haeubl # Date 1329260496 28800 # Node ID 8bc6f680a88d9bbefb6f3e132822649eacd325b9 # Parent 6845b56f7ce097fcea4644eec9c1e06438a46651 fixed visual studio project files diff -r 6845b56f7ce0 -r 8bc6f680a88d graal/com.oracle.max.graal.hotspot/src/com/oracle/max/graal/hotspot/ri/HotSpotMethodResolvedImpl.java --- a/graal/com.oracle.max.graal.hotspot/src/com/oracle/max/graal/hotspot/ri/HotSpotMethodResolvedImpl.java Tue Feb 14 14:01:37 2012 -0800 +++ b/graal/com.oracle.max.graal.hotspot/src/com/oracle/max/graal/hotspot/ri/HotSpotMethodResolvedImpl.java Tue Feb 14 15:01:36 2012 -0800 @@ -201,13 +201,15 @@ @Override public int compilationComplexity() { - if (compilationComplexity < 0) { + if (compilationComplexity <= 0 && codeSize() > 0) { BytecodeStream s = new BytecodeStream(code()); int result = 0; int currentBC; while ((currentBC = s.currentBC()) != Bytecodes.END) { result += Bytecodes.compilationComplexity(currentBC); + s.next(); } + assert result > 0; compilationComplexity = result; } return compilationComplexity; diff -r 6845b56f7ce0 -r 8bc6f680a88d src/share/tools/ProjectCreator/BuildConfig.java --- a/src/share/tools/ProjectCreator/BuildConfig.java Tue Feb 14 14:01:37 2012 -0800 +++ b/src/share/tools/ProjectCreator/BuildConfig.java Tue Feb 14 15:01:36 2012 -0800 @@ -68,16 +68,13 @@ if (value != null) { outDir = value; } - if(outDir.endsWith("fastdebug")) { - outDir = outDir.substring(0, outDir.lastIndexOf("fastdebug") - 1); - } else if (outDir.endsWith("debug")) { - outDir = outDir.substring(0, outDir.lastIndexOf("debug") - 1); + + int lastDirectorySeparator = Math.max(outDir.lastIndexOf("/"), outDir.lastIndexOf("\\")); + if (lastDirectorySeparator >= 0) { + outDir = outDir.substring(0, lastDirectorySeparator); } - if (!build.equals("product")) { - outDir += Util.sep + build; - } - outDir += Util.sep + "jre" + Util.sep + "bin"; + outDir += Util.sep + build + Util.sep + "bin"; if (flavour.equals("graal")) { outDir += Util.sep + "graal"; } else if (flavour.equals("compiler1")) {