Mercurial > hg > graal-compiler
changeset 21185:2d9735b5a373
GraalCompilerTest: add breakpoint(int).
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Tue, 28 Apr 2015 11:54:06 +0200 |
parents | dd6cc861f7e2 |
children | cdb65346129d |
files | graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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<BasePhase<? super HighTierContext>> 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; }