blob: 26e89581ef9758b5af574e4a9ebd0ecf5a544cc2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* ____ ____ ____ ____ ______ *\
** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala **
** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL **
** /_____/\____/\___/\____/____/ **
\* */
// $OldId: GenJVMPhase.java,v 1.1 2002/09/03 12:13:08 schinz Exp $
// $Id$
package scalac.backend.jvm;
import scalac.Global;
import scalac.Unit;
import scalac.PhaseDescriptor;
import scalac.ApplicationError;
public class GenJVMPhase extends PhaseDescriptor {
public String name () {
return "genjvm";
}
public String description () {
return "generate JVM bytecodes";
}
public String taskDescription() {
return "generated JVM code";
}
public void apply(Global global) {
for (int i = 0; i < global.units.length; i++) {
new GenJVM(global).translate(global.units[i]);
}
}
}
|