Mercurial > hg > graal-jvmci-8
comparison src/share/vm/utilities/constantTag.cpp @ 8104:f16e75e0cf11
8000797: NPG: is_pseudo_string_at() doesn't work
Summary: Zero Symbol* for constant pool strings to indicate pseudo_strings (objects that aren't strings). Clean up JVM_CONSTANT_Object and unused flags.
Reviewed-by: sspitsyn, jrose
author | coleenp |
---|---|
date | Fri, 22 Feb 2013 08:36:42 -0500 |
parents | da91efe96a93 |
children | 28ca974cc21a |
comparison
equal
deleted
inserted
replaced
8103:5ed317b25e23 | 8104:f16e75e0cf11 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2013, 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. |
50 case JVM_CONSTANT_UnresolvedClassInError : | 50 case JVM_CONSTANT_UnresolvedClassInError : |
51 case JVM_CONSTANT_ClassIndex : | 51 case JVM_CONSTANT_ClassIndex : |
52 case JVM_CONSTANT_StringIndex : | 52 case JVM_CONSTANT_StringIndex : |
53 case JVM_CONSTANT_MethodHandle : | 53 case JVM_CONSTANT_MethodHandle : |
54 case JVM_CONSTANT_MethodType : | 54 case JVM_CONSTANT_MethodType : |
55 case JVM_CONSTANT_Object : | |
56 return T_OBJECT; | 55 return T_OBJECT; |
57 default: | 56 default: |
58 ShouldNotReachHere(); | 57 ShouldNotReachHere(); |
59 return T_ILLEGAL; | 58 return T_ILLEGAL; |
60 } | 59 } |
94 return "MethodType"; | 93 return "MethodType"; |
95 case JVM_CONSTANT_MethodTypeInError : | 94 case JVM_CONSTANT_MethodTypeInError : |
96 return "MethodType Error"; | 95 return "MethodType Error"; |
97 case JVM_CONSTANT_InvokeDynamic : | 96 case JVM_CONSTANT_InvokeDynamic : |
98 return "InvokeDynamic"; | 97 return "InvokeDynamic"; |
99 case JVM_CONSTANT_Object : | |
100 return "Object"; | |
101 case JVM_CONSTANT_Utf8 : | 98 case JVM_CONSTANT_Utf8 : |
102 return "Utf8"; | 99 return "Utf8"; |
103 case JVM_CONSTANT_UnresolvedClass : | 100 case JVM_CONSTANT_UnresolvedClass : |
104 return "Unresolved Class"; | 101 return "Unresolved Class"; |
105 case JVM_CONSTANT_UnresolvedClassInError : | 102 case JVM_CONSTANT_UnresolvedClassInError : |