From: <th...@us...> - 2009-04-01 04:28:24
|
Revision: 6146 http://jython.svn.sourceforge.net/jython/?rev=6146&view=rev Author: thobes Date: 2009-04-01 04:28:21 +0000 (Wed, 01 Apr 2009) Log Message: ----------- Moved the code for exercising the SSA graph to the Kenai project. Modified Paths: -------------- trunk/sandbox/tobias/.classpath Removed Paths: ------------- trunk/sandbox/tobias/compiler/test/org/python/compiler/sea/output/BuildGraph.java Modified: trunk/sandbox/tobias/.classpath =================================================================== --- trunk/sandbox/tobias/.classpath 2009-04-01 01:45:35 UTC (rev 6145) +++ trunk/sandbox/tobias/.classpath 2009-04-01 04:28:21 UTC (rev 6146) @@ -11,6 +11,7 @@ <classpathentry kind="src" path="jython/build/gensrc"/> <classpathentry kind="src" path="jython/tests/java"/> <classpathentry kind="src" path="compiler/test"/> + <classpathentry kind="src" path="ssa/test"/> <classpathentry kind="lib" path="jython/Demo/jreload/example.jar"/> <classpathentry kind="lib" path="jython/extlibs/antlr-2.7.7.jar"/> <classpathentry kind="lib" path="jython/extlibs/asm-3.1.jar"/> Deleted: trunk/sandbox/tobias/compiler/test/org/python/compiler/sea/output/BuildGraph.java =================================================================== --- trunk/sandbox/tobias/compiler/test/org/python/compiler/sea/output/BuildGraph.java 2009-04-01 01:45:35 UTC (rev 6145) +++ trunk/sandbox/tobias/compiler/test/org/python/compiler/sea/output/BuildGraph.java 2009-04-01 04:28:21 UTC (rev 6146) @@ -1,34 +0,0 @@ -package org.python.compiler.sea.output; - -import org.python.compiler.sea.PythonOperation; -import org.thobe.compiler.sea.GraphBuilder; -import org.thobe.compiler.sea.GraphVisitor; -import org.thobe.compiler.sea.NamespacePopulator; -import org.thobe.compiler.sea.Node; -import org.thobe.compiler.sea.ValueNode; -import org.thobe.compiler.sea.VariableFactory; - -public final class BuildGraph extends GraphBuilder { - protected BuildGraph(NamespacePopulator populator) { - super(populator); - } - - public static void main(String[] args) { - BuildGraph builder = new BuildGraph(new NamespacePopulator() { - public void populate(VariableFactory factory) { - factory.createLocalVariable("x"); - factory.createLocalVariable("y"); - } - }); - ValueNode load_x = builder.loadVariable(builder.variable("x")); - ValueNode load_y = builder.loadVariable(builder.variable("y")); - ValueNode add = builder.schedule(builder.invoke( - PythonOperation.BINARY_ADD, load_x.result(), load_y.result())); - builder.schedule(builder.returnValue(add.result())); - builder.build().serialize(new GraphVisitor() { - public void node(Node node) { - System.out.println(node); - } - }); - } -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |