From 1fd3a2beb28090619beaf675bdbdf1189a5fa312 Mon Sep 17 00:00:00 2001 From: stenman Date: Wed, 20 Aug 2003 11:58:49 +0000 Subject: TailCall optimization for jvm. --- sources/scalac/Global.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sources/scalac/Global.java') diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java index 6fc72587a5..c9f8452c42 100644 --- a/sources/scalac/Global.java +++ b/sources/scalac/Global.java @@ -196,6 +196,8 @@ public class Global { this.make = new DefaultTreeFactory(); this.PHASE = args.phases; // if (!optimize) PHASE.remove(args.phases.OPTIMIZE); + // TODO: Enable TailCall for other backends when they handle LabelDefs + if (target != TARGET_JVM) PHASE.remove(args.phases.TAILCALL); if (target != TARGET_MSIL) PHASE.remove(args.phases.GENMSIL); if (target != TARGET_JVM) PHASE.remove(args.phases.GENJVM); if (target != TARGET_JVM_BCEL) PHASE.remove(args.phases.GENJVM_BCEL); -- cgit v1.2.3