summaryrefslogtreecommitdiff
path: root/sources/scalac/Global.java
diff options
context:
space:
mode:
authorschinz <schinz@epfl.ch>2003-07-10 13:23:24 +0000
committerschinz <schinz@epfl.ch>2003-07-10 13:23:24 +0000
commitbdf7315e7f0c8e6da4ab6cdd0da76e15282a4b2f (patch)
treea88e7ac509e6683926921a7b79ea3421e3433c7c /sources/scalac/Global.java
parent61393510099ca97eb702cb47f78138b2fc162854 (diff)
downloadscala-bdf7315e7f0c8e6da4ab6cdd0da76e15282a4b2f.tar.gz
scala-bdf7315e7f0c8e6da4ab6cdd0da76e15282a4b2f.tar.bz2
scala-bdf7315e7f0c8e6da4ab6cdd0da76e15282a4b2f.zip
- introduced the new JVM backend as default, wh...
- introduced the new JVM backend as default, which uses FJBG instead of BCEL to generate bytecode
Diffstat (limited to 'sources/scalac/Global.java')
-rw-r--r--sources/scalac/Global.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java
index 4a7a92e14a..ce18aa3bbe 100644
--- a/sources/scalac/Global.java
+++ b/sources/scalac/Global.java
@@ -113,12 +113,14 @@ public class Global {
*/
public static final String TARGET_INT;
public static final String TARGET_JVM;
+ public static final String TARGET_JVM_BCEL;
public static final String TARGET_MSIL;
public static final String[] TARGETS = new String[] {
- TARGET_INT = "int".intern(),
- TARGET_JVM = "jvm".intern(),
- TARGET_MSIL = "msil".intern(),
+ TARGET_INT = "int".intern(),
+ TARGET_JVM = "jvm".intern(),
+ TARGET_JVM_BCEL = "jvm-bcel".intern(),
+ TARGET_MSIL = "msil".intern(),
};
/** tree printers
@@ -194,11 +196,15 @@ public class Global {
phases.add(PHASE.ADDINTERFACES);
phases.add(PHASE.EXPANDMIXIN);
phases.add(PHASE.ERASURE);
- if (target == TARGET_INT || target == TARGET_MSIL || target == TARGET_JVM) {
+ if (target == TARGET_INT
+ || target == TARGET_MSIL
+ || target == TARGET_JVM
+ || target == TARGET_JVM_BCEL) {
phases.add(PHASE.ADDCONSTRUCTORS);
}
if (target == TARGET_MSIL) phases.add(PHASE.GENMSIL);
if (target == TARGET_JVM) phases.add(PHASE.GENJVM);
+ if (target == TARGET_JVM_BCEL) phases.add(PHASE.GENJVM_BCEL);
phases.add(PHASE.TERMINAL);
this.phases = new PhaseDescriptor[phases.size()];
for (int i = 0; i < phases.size(); i++) {