Mercurial > hg > truffle
annotate src/share/vm/utilities/constantTag.cpp @ 1562:dfe27f03244a
Merge
author | trims |
---|---|
date | Tue, 01 Jun 2010 11:48:33 -0700 |
parents | c18cbe5936b8 |
children | 136b78722a08 |
rev | line source |
---|---|
0 | 1 /* |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
2 * Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved. |
0 | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | |
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 | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
25 # include "incls/_precompiled.incl" | |
26 # include "incls/_constantTag.cpp.incl" | |
27 | |
28 #ifndef PRODUCT | |
29 | |
30 void constantTag::print_on(outputStream* st) const { | |
31 switch (_tag) { | |
32 case JVM_CONSTANT_Class : | |
33 st->print("Class"); | |
34 break; | |
35 case JVM_CONSTANT_Fieldref : | |
36 st->print("Field"); | |
37 break; | |
38 case JVM_CONSTANT_Methodref : | |
39 st->print("Method"); | |
40 break; | |
41 case JVM_CONSTANT_InterfaceMethodref : | |
42 st->print("InterfaceMethod"); | |
43 break; | |
44 case JVM_CONSTANT_String : | |
45 st->print("String"); | |
46 break; | |
47 case JVM_CONSTANT_Integer : | |
48 st->print("Integer"); | |
49 break; | |
50 case JVM_CONSTANT_Float : | |
51 st->print("Float"); | |
52 break; | |
53 case JVM_CONSTANT_Long : | |
54 st->print("Long"); | |
55 break; | |
56 case JVM_CONSTANT_Double : | |
57 st->print("Double"); | |
58 break; | |
59 case JVM_CONSTANT_NameAndType : | |
60 st->print("NameAndType"); | |
61 break; | |
62 case JVM_CONSTANT_Utf8 : | |
63 st->print("Utf8"); | |
64 break; | |
65 case JVM_CONSTANT_UnresolvedClass : | |
66 st->print("Unresolved class"); | |
67 break; | |
68 case JVM_CONSTANT_ClassIndex : | |
69 st->print("Unresolved class index"); | |
70 break; | |
71 case JVM_CONSTANT_UnresolvedString : | |
72 st->print("Unresolved string"); | |
73 break; | |
74 case JVM_CONSTANT_StringIndex : | |
75 st->print("Unresolved string index"); | |
76 break; | |
77 default: | |
78 ShouldNotReachHere(); | |
79 break; | |
80 } | |
81 } | |
82 | |
83 #endif // PRODUCT |