--- old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/GraalCompilerTest.java 2017-11-03 23:56:00.364384979 -0700 +++ new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/GraalCompilerTest.java 2017-11-03 23:55:59.893363901 -0700 @@ -389,7 +389,7 @@ * {@link DebugDumpHandler}s closed in {@link #afterTest()}. */ protected DebugContext getDebugContext() { - return getDebugContext(getInitialOptions()); + return getDebugContext(getInitialOptions(), null, null); } @Override @@ -862,7 +862,7 @@ Result actual = executeActual(options, method, receiver, args); profile = method.getProfilingInfo(); // profile can change after execution for (DeoptimizationReason reason : shouldNotDeopt) { - Assert.assertEquals((int) deoptCounts.get(reason), profile.getDeoptimizationCount(reason)); + Assert.assertEquals("wrong number of deopt counts for " + reason, (int) deoptCounts.get(reason), profile.getDeoptimizationCount(reason)); } return actual; } @@ -1216,15 +1216,15 @@ protected final Builder builder(ResolvedJavaMethod method, AllowAssumptions allowAssumptions) { OptionValues options = getInitialOptions(); - return new Builder(options, getDebugContext(options), allowAssumptions).method(method).compilationId(getCompilationId(method)); + return new Builder(options, getDebugContext(options, null, method), allowAssumptions).method(method).compilationId(getCompilationId(method)); } protected final Builder builder(ResolvedJavaMethod method, AllowAssumptions allowAssumptions, CompilationIdentifier compilationId, OptionValues options) { - return new Builder(options, getDebugContext(options), allowAssumptions).method(method).compilationId(compilationId); + return new Builder(options, getDebugContext(options, compilationId.toString(CompilationIdentifier.Verbosity.ID), method), allowAssumptions).method(method).compilationId(compilationId); } protected final Builder builder(ResolvedJavaMethod method, AllowAssumptions allowAssumptions, OptionValues options) { - return new Builder(options, getDebugContext(options), allowAssumptions).method(method).compilationId(getCompilationId(method)); + return new Builder(options, getDebugContext(options, null, method), allowAssumptions).method(method).compilationId(getCompilationId(method)); } protected PhaseSuite getDebugGraphBuilderSuite() { @@ -1234,6 +1234,7 @@ @SuppressWarnings("try") protected StructuredGraph parse(StructuredGraph.Builder builder, PhaseSuite graphBuilderSuite) { ResolvedJavaMethod javaMethod = builder.getMethod(); + builder.speculationLog(getSpeculationLog()); if (builder.getCancellable() == null) { builder.cancellable(getCancellable(javaMethod)); }