22841
|
1 /*
|
|
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 *
|
|
5 * This code is free software; you can redistribute it and/or modify it
|
|
6 * under the terms of the GNU General Public License version 2 only, as
|
|
7 * published by the Free Software Foundation.
|
|
8 *
|
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
|
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
12 * version 2 for more details (a copy is included in the LICENSE file that
|
|
13 * accompanied this code).
|
|
14 *
|
|
15 * You should have received a copy of the GNU General Public License version
|
|
16 * 2 along with this work; if not, write to the Free Software Foundation,
|
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
18 *
|
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
20 * or visit www.oracle.com if you need additional information or have any
|
|
21 * questions.
|
|
22 *
|
|
23 */
|
|
24
|
|
25 package sun.jvm.hotspot.opto;
|
|
26
|
|
27 //These definitions should be kept in sync with the definitions in the HotSpot code.
|
|
28
|
|
29 public enum CompilerPhaseType {
|
|
30 PHASE_BEFORE_STRINGOPTS ("Before StringOpts"),
|
|
31 PHASE_AFTER_STRINGOPTS ("After StringOpts"),
|
|
32 PHASE_BEFORE_REMOVEUSELESS ("Before RemoveUseless"),
|
|
33 PHASE_AFTER_PARSING ("After Parsing"),
|
|
34 PHASE_ITER_GVN1 ("Iter GVN 1"),
|
|
35 PHASE_PHASEIDEAL_BEFORE_EA ("PhaseIdealLoop before EA"),
|
|
36 PHASE_ITER_GVN_AFTER_EA ("Iter GVN after EA"),
|
|
37 PHASE_ITER_GVN_AFTER_ELIMINATION ("Iter GVN after eliminating allocations and locks"),
|
|
38 PHASE_PHASEIDEALLOOP1 ("PhaseIdealLoop 1"),
|
|
39 PHASE_PHASEIDEALLOOP2 ("PhaseIdealLoop 2"),
|
|
40 PHASE_PHASEIDEALLOOP3 ("PhaseIdealLoop 3"),
|
|
41 PHASE_CPP1 ("PhaseCPP 1"),
|
|
42 PHASE_ITER_GVN2 ("Iter GVN 2"),
|
|
43 PHASE_PHASEIDEALLOOP_ITERATIONS ("PhaseIdealLoop iterations"),
|
|
44 PHASE_OPTIMIZE_FINISHED ("Optimize finished"),
|
|
45 PHASE_GLOBAL_CODE_MOTION ("Global code motion"),
|
|
46 PHASE_FINAL_CODE ("Final Code"),
|
|
47 PHASE_AFTER_EA ("After Escape Analysis"),
|
|
48 PHASE_BEFORE_CLOOPS ("Before CountedLoop"),
|
|
49 PHASE_AFTER_CLOOPS ("After CountedLoop"),
|
|
50 PHASE_BEFORE_BEAUTIFY_LOOPS ("Before beautify loops"),
|
|
51 PHASE_AFTER_BEAUTIFY_LOOPS ("After beautify loops"),
|
|
52 PHASE_BEFORE_MATCHING ("Before Matching"),
|
|
53 PHASE_INCREMENTAL_INLINE ("Incremental Inline"),
|
|
54 PHASE_INCREMENTAL_BOXING_INLINE ("Incremental Boxing Inline"),
|
|
55 PHASE_END ("End"),
|
|
56 PHASE_FAILURE ("Failure"),
|
|
57 PHASE_NUM_TYPES ("Number of Phase Types");
|
|
58
|
|
59 private final String value;
|
|
60
|
|
61 CompilerPhaseType(String val) {
|
|
62 this.value = val;
|
|
63 }
|
|
64 public String value() {
|
|
65 return value;
|
|
66 }
|
|
67 }
|