# HG changeset patch # User Josef Eisl # Date 1430214846 -7200 # Node ID 2d9735b5a3734ac6e461aa180745ae0bab1707ef # Parent dd6cc861f7e28f87727a382c16b65bf115761153 GraalCompilerTest: add breakpoint(int). diff -r dd6cc861f7e2 -r 2d9735b5a373 graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Mon Apr 20 12:09:44 2015 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Tue Apr 28 11:54:06 2015 +0200 @@ -127,6 +127,10 @@ protected static void breakpoint() { } + @SuppressWarnings("unused") + protected static void breakpoint(int arg0) { + } + protected Suites createSuites() { Suites ret = backend.getSuites().createSuites(); ListIterator> iter = ret.getHighTier().findPhase(CleanTypeProfileProxyPhase.class); @@ -852,6 +856,12 @@ return true; } }, GraalCompilerTest.class, "breakpoint"); + invocationPlugins.register(new InvocationPlugin() { + public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Receiver receiver, ValueNode arg0) { + b.add(new BreakpointNode(arg0)); + return true; + } + }, GraalCompilerTest.class, "breakpoint", int.class); return conf; }