equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
54 case JVM_CONSTANT_MethodHandle : |
54 case JVM_CONSTANT_MethodHandle : |
55 case JVM_CONSTANT_MethodHandleInError : |
55 case JVM_CONSTANT_MethodHandleInError : |
56 case JVM_CONSTANT_MethodType : |
56 case JVM_CONSTANT_MethodType : |
57 case JVM_CONSTANT_MethodTypeInError : |
57 case JVM_CONSTANT_MethodTypeInError : |
58 return T_OBJECT; |
58 return T_OBJECT; |
|
59 |
|
60 case JVM_CONSTANT_Dynamic : |
|
61 case JVM_CONSTANT_DynamicInError : |
|
62 assert(false, "Dynamic constant has no fixed basic type"); |
|
63 |
59 default: |
64 default: |
60 ShouldNotReachHere(); |
65 ShouldNotReachHere(); |
61 return T_ILLEGAL; |
66 return T_ILLEGAL; |
62 } |
67 } |
63 } |
68 } |
69 return JVM_CONSTANT_UnresolvedClass; |
74 return JVM_CONSTANT_UnresolvedClass; |
70 case JVM_CONSTANT_MethodHandleInError: |
75 case JVM_CONSTANT_MethodHandleInError: |
71 return JVM_CONSTANT_MethodHandle; |
76 return JVM_CONSTANT_MethodHandle; |
72 case JVM_CONSTANT_MethodTypeInError: |
77 case JVM_CONSTANT_MethodTypeInError: |
73 return JVM_CONSTANT_MethodType; |
78 return JVM_CONSTANT_MethodType; |
|
79 case JVM_CONSTANT_DynamicInError: |
|
80 return JVM_CONSTANT_Dynamic; |
74 default: |
81 default: |
75 return _tag; |
82 return _tag; |
76 } |
83 } |
77 } |
84 } |
78 |
85 |
83 return JVM_CONSTANT_UnresolvedClassInError; |
90 return JVM_CONSTANT_UnresolvedClassInError; |
84 case JVM_CONSTANT_MethodHandle: |
91 case JVM_CONSTANT_MethodHandle: |
85 return JVM_CONSTANT_MethodHandleInError; |
92 return JVM_CONSTANT_MethodHandleInError; |
86 case JVM_CONSTANT_MethodType: |
93 case JVM_CONSTANT_MethodType: |
87 return JVM_CONSTANT_MethodTypeInError; |
94 return JVM_CONSTANT_MethodTypeInError; |
|
95 case JVM_CONSTANT_Dynamic: |
|
96 return JVM_CONSTANT_DynamicInError; |
88 default: |
97 default: |
89 ShouldNotReachHere(); |
98 ShouldNotReachHere(); |
90 return JVM_CONSTANT_Invalid; |
99 return JVM_CONSTANT_Invalid; |
91 } |
100 } |
92 } |
101 } |
121 return "MethodHandle Error"; |
130 return "MethodHandle Error"; |
122 case JVM_CONSTANT_MethodType : |
131 case JVM_CONSTANT_MethodType : |
123 return "MethodType"; |
132 return "MethodType"; |
124 case JVM_CONSTANT_MethodTypeInError : |
133 case JVM_CONSTANT_MethodTypeInError : |
125 return "MethodType Error"; |
134 return "MethodType Error"; |
|
135 case JVM_CONSTANT_Dynamic : |
|
136 return "Dynamic"; |
|
137 case JVM_CONSTANT_DynamicInError : |
|
138 return "Dynamic Error"; |
126 case JVM_CONSTANT_InvokeDynamic : |
139 case JVM_CONSTANT_InvokeDynamic : |
127 return "InvokeDynamic"; |
140 return "InvokeDynamic"; |
128 case JVM_CONSTANT_Utf8 : |
141 case JVM_CONSTANT_Utf8 : |
129 return "Utf8"; |
142 return "Utf8"; |
130 case JVM_CONSTANT_UnresolvedClass : |
143 case JVM_CONSTANT_UnresolvedClass : |