Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove old string compilejast opcodes.
  • Loading branch information
donaldh committed Sep 25, 2013
1 parent c8351fe commit 14028a1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
2 changes: 0 additions & 2 deletions src/vm/jvm/QAST/Compiler.nqp
Expand Up @@ -2448,8 +2448,6 @@ QAST::OperationsJAST.map_classlib_core_op('jvmgetproperties', $TYPE_OPS, 'jvmget
# JVM-specific ops for compilation unit handling
QAST::OperationsJAST.map_classlib_core_op('compilejastlines', $TYPE_OPS, 'compilejastlines', [$RT_OBJ], $RT_OBJ, :tc);
QAST::OperationsJAST.map_classlib_core_op('compilejastlinestofile', $TYPE_OPS, 'compilejastlinestofile', [$RT_OBJ, $RT_STR], $RT_OBJ, :tc);
QAST::OperationsJAST.map_classlib_core_op('compilejast', $TYPE_OPS, 'compilejast', [$RT_STR], $RT_OBJ, :tc);
QAST::OperationsJAST.map_classlib_core_op('compilejasttofile', $TYPE_OPS, 'compilejasttofile', [$RT_STR, $RT_STR], $RT_STR, :tc);
QAST::OperationsJAST.map_classlib_core_op('loadcompunit', $TYPE_OPS, 'loadcompunit', [$RT_OBJ, $RT_INT], $RT_OBJ, :tc);
QAST::OperationsJAST.map_classlib_core_op('iscompunit', $TYPE_OPS, 'iscompunit', [$RT_OBJ], $RT_INT, :tc);
QAST::OperationsJAST.map_classlib_core_op('compunitmainline', $TYPE_OPS, 'compunitmainline', [$RT_OBJ], $RT_OBJ, :tc);
Expand Down
11 changes: 0 additions & 11 deletions src/vm/jvm/runtime/org/perl6/nqp/jast2bc/JASTToJVMBytecode.java
Expand Up @@ -9,7 +9,6 @@
import java.lang.invoke.MethodType;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
Expand Down Expand Up @@ -59,11 +58,6 @@ public static void main(String[] argv)

}

public static JavaClass buildClassFromString(String in, boolean split) {
List<String> lines = Arrays.asList(in.split("\n"));
return buildClassFromString(lines, split);
}

public static JavaClass buildClassFromString(List<String> lines, boolean split) {
try {
JavaClass c = buildClassFrom(lines, split);
Expand All @@ -76,11 +70,6 @@ public static JavaClass buildClassFromString(List<String> lines, boolean split)
}
}

public static void writeClassFromString(String in, String filename) {
List<String> lines = Arrays.asList(in.split("\n"));
writeClassFromString(lines, filename);
}

public static void writeClassFromString(List<String> lines, String filename) {
JavaClass c = buildClassFromString(lines, false);
try {
Expand Down
9 changes: 0 additions & 9 deletions src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -5110,11 +5110,6 @@ public static SixModelObject compilejastlines(SixModelObject dump, ThreadContext
"compilejastlines requires an array with the VMArrayInstance REPR");
}
}
public static SixModelObject compilejast(String dump, ThreadContext tc) {
EvalResult res = new EvalResult();
res.jc = JASTToJVMBytecode.buildClassFromString(dump, false);
return res;
}
public static SixModelObject compilejastlinestofile(SixModelObject dump, String filename, ThreadContext tc) {
if (dump instanceof VMArrayInstance) {
VMArrayInstance array = (VMArrayInstance) dump;
Expand All @@ -5129,10 +5124,6 @@ public static SixModelObject compilejastlinestofile(SixModelObject dump, String
"compilejastlines requires an array with the VMArrayInstance REPR");
}
}
public static String compilejasttofile(String dump, String filename, ThreadContext tc) {
JASTToJVMBytecode.writeClassFromString(dump, filename);
return dump;
}
public static SixModelObject loadcompunit(SixModelObject obj, long compileeHLL, ThreadContext tc) {
try {
EvalResult res = (EvalResult)obj;
Expand Down

0 comments on commit 14028a1

Please sign in to comment.