annotate graal/com.oracle.max.graal.hotspot/src/com/oracle/max/graal/hotspot/ri/HotSpotNoProfilingInfo.java @ 4457:5acf4a974e4a

fixed framestate for inlining multiple methods
author Christian Haeubl <christian.haeubl@oracle.com>
date Tue, 31 Jan 2012 17:09:11 -0800
parents 00a04b57a046
children a0cca63cd366
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 */
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
23 package com.oracle.max.graal.hotspot.ri;
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.*;
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
26 import com.oracle.max.graal.hotspot.*;
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
27 import com.oracle.max.graal.hotspot.Compiler;
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
28
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
29
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
30 public final class HotSpotNoProfilingInfo extends CompilerObject implements RiProfilingInfo {
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
31 /**
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
32 *
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
33 */
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
34 private static final long serialVersionUID = 4357945025049704109L;
4447
Christian Haeubl <christian.haeubl@oracle.com>
parents: 4446
diff changeset
35 private static final HotSpotMethodDataAccessor noData = HotSpotMethodData.getNoMethodData();
4446
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
36
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
37 public HotSpotNoProfilingInfo(Compiler compiler) {
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
38 super(compiler);
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
39 }
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
40
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
41 @Override
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
42 public RiTypeProfile getTypeProfile(int bci) {
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
43 return noData.getTypeProfile(null, -1);
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
44 }
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
45
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
46 @Override
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
47 public double getBranchTakenProbability(int bci) {
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
48 return noData.getBranchTakenProbability(null, -1);
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
49 }
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
50
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
51 @Override
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
52 public double[] getSwitchProbabilities(int bci) {
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
53 return noData.getSwitchProbabilities(null, -1);
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
54 }
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
55
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
56 @Override
4457
5acf4a974e4a fixed framestate for inlining multiple methods
Christian Haeubl <christian.haeubl@oracle.com>
parents: 4447
diff changeset
57 public boolean getExceptionSeen(int bci) {
5acf4a974e4a fixed framestate for inlining multiple methods
Christian Haeubl <christian.haeubl@oracle.com>
parents: 4447
diff changeset
58 return noData.getExceptionSeen(null, -1);
4446
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
59 }
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
60
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
61 @Override
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
62 public int getExecutionCount(int bci) {
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
63 return noData.getExecutionCount(null, -1);
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
64 }
48756b901156 bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
diff changeset
65 }