From a274f949c3aa9db16bd5addd0eed4f85388e74ed Mon Sep 17 00:00:00 2001 From: schinz Date: Sat, 26 Mar 2005 17:50:46 +0000 Subject: - introduced isInstanceOf$erased and asInstance... - introduced isInstanceOf$erased and asInstanceOf$erased methods, which work on the erased types; things to note: * before TypesAsValues phase, either variant can be used, although the erased ones need to be used with caution, when speed matters; * after TypesAsValues phase, only the erased variants should be used (done automatically by TreeGen); * when run time types are disabled, the TypesAsValues phase is not skipped anymore: it is turned into a trivial phase which rewrites all non-erased instanceof/casts into erased ones. --- sources/scalac/Global.java | 1 - 1 file changed, 1 deletion(-) (limited to 'sources/scalac/Global.java') diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java index ead3469865..6c2b9ac200 100644 --- a/sources/scalac/Global.java +++ b/sources/scalac/Global.java @@ -276,7 +276,6 @@ public abstract class Global { args.phases.WHOLEPROG.addSkipFlag(); // !!! // if (!optimize) PHASE.remove(args.phases.OPTIMIZE); // TODO: Enable TailCall for other backends when they handle LabelDefs - if (!runTimeTypes) args.phases.TYPESASVALUES.addSkipFlag(); if (target != TARGET_JVMFROMICODE) args.phases.ICODE.addSkipFlag(); PHASE.freeze(); PhaseDescriptor[] descriptors = PHASE.phases(); -- cgit v1.2.3