author | shade |
Tue, 12 Jun 2018 15:03:00 +0200 | |
changeset 50523 | 7b7c75d87f9b |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
24476
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
1 |
/* |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
2 |
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
4 |
* |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
8 |
* |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
13 |
* accompanied this code). |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
14 |
* |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
18 |
* |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
21 |
* questions. |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
22 |
* |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
23 |
*/ |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
24 |
|
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
25 |
package sun.jvm.hotspot.oops; |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
26 |
|
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
27 |
import java.io.*; |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
28 |
import java.util.*; |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
29 |
import sun.jvm.hotspot.debugger.*; |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
30 |
import sun.jvm.hotspot.runtime.*; |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
31 |
import sun.jvm.hotspot.types.*; |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
32 |
import sun.jvm.hotspot.utilities.*; |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
33 |
|
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
34 |
// Type entry used for return from a call. A single cell to record the |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
35 |
// type. |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
36 |
public class ReturnTypeEntry<K,M> extends TypeEntries<K,M> { |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
37 |
static final int cellCount = 1; |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
38 |
|
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
39 |
ReturnTypeEntry(MethodDataInterface<K,M> methodData, ProfileData pd, int baseOff) { |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
40 |
super(methodData, pd, baseOff); |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
41 |
} |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
42 |
|
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
43 |
K type() { |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
44 |
return validKlass(baseOff); |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
45 |
} |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
46 |
|
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
47 |
static int staticCellCount() { |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
48 |
return cellCount; |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
49 |
} |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
50 |
|
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
51 |
int typeIndex() { |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
52 |
return baseOff; |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
53 |
} |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
54 |
|
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
55 |
void printDataOn(PrintStream st) { |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
56 |
pd.tab(st); |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
57 |
printKlass(st, baseOff); |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
58 |
st.println(); |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
59 |
} |
912595db2e75
8026694: New type profiling points break compilation replay
roland
parents:
diff
changeset
|
60 |
} |