annotate graal/com.oracle.max.graal.hotspot/src/com/oracle/graal/hotspot/ri/HotSpotNoProfilingInfo.java @ 5060:4ed4295ce15f

Update import statements.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 08 Mar 2012 19:11:12 +0100
parents ed559a528128
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4446
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
1 /*
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
4 *
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
7 * published by the Free Software Foundation.
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
8 *
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
13 * accompanied this code).
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
14 *
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
18 *
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
21 * questions.
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
22 */
5060
4ed4295ce15f Update import statements.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 5059
diff changeset
23 package com.oracle.graal.hotspot.ri;
4446
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
24
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
25 import com.oracle.max.cri.ri.*;
5060
4ed4295ce15f Update import statements.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 5059
diff changeset
26 import com.oracle.graal.hotspot.*;
4ed4295ce15f Update import statements.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 5059
diff changeset
27 import com.oracle.graal.hotspot.Compiler;
4446
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
28
4551
a7a16015e47f changed profiling maturity so that profiling information is used more likely
Christian Haeubl <christian.haeubl@oracle.com>
parents: 4527
diff changeset
29 /**
a7a16015e47f changed profiling maturity so that profiling information is used more likely
Christian Haeubl <christian.haeubl@oracle.com>
parents: 4527
diff changeset
30 * Dummy profiling information in case that a method was not executed frequently enough so that
a7a16015e47f changed profiling maturity so that profiling information is used more likely
Christian Haeubl <christian.haeubl@oracle.com>
parents: 4527
diff changeset
31 * no profiling information does exist yet.
a7a16015e47f changed profiling maturity so that profiling information is used more likely
Christian Haeubl <christian.haeubl@oracle.com>
parents: 4527
diff changeset
32 */
4446
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
33 public final class HotSpotNoProfilingInfo extends CompilerObject implements RiProfilingInfo {
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
34 /**
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
35 *
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
36 */
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
37 private static final long serialVersionUID = 4357945025049704109L;
4551
a7a16015e47f changed profiling maturity so that profiling information is used more likely
Christian Haeubl <christian.haeubl@oracle.com>
parents: 4527
diff changeset
38 // Be optimistic and return false for exceptionSeen. A methodDataOop is allocated in case of a deoptimization.
4564
8fc6920e064b avoid recursive inlining, escape analysis does no longer restart inlining with level 0, bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents: 4551
diff changeset
39 private static final HotSpotMethodDataAccessor noData = HotSpotMethodData.getNoDataAccessor(false);
4446
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
40
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
41 public HotSpotNoProfilingInfo(Compiler compiler) {
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
42 super(compiler);
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
43 }
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
44
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
45 @Override
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
46 public RiTypeProfile getTypeProfile(int bci) {
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
47 return noData.getTypeProfile(null, -1);
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
48 }
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
49
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
50 @Override
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
51 public double getBranchTakenProbability(int bci) {
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
52 return noData.getBranchTakenProbability(null, -1);
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
53 }
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
54
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
55 @Override
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
56 public double[] getSwitchProbabilities(int bci) {
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
57 return noData.getSwitchProbabilities(null, -1);
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
58 }
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
59
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
60 @Override
4527
a0cca63cd366 fixed exceptionSeen profiling information
Christian Haeubl <christian.haeubl@oracle.com>
parents: 4457
diff changeset
61 public RiExceptionSeen getExceptionSeen(int bci) {
4457
5acf4a974e4a fixed framestate for inlining multiple methods
Christian Haeubl <christian.haeubl@oracle.com>
parents: 4447
diff changeset
62 return noData.getExceptionSeen(null, -1);
4446
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
63 }
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
64
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
65 @Override
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
66 public int getExecutionCount(int bci) {
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
67 return noData.getExecutionCount(null, -1);
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
68 }
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
69 }