hotspot/agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeLoadConstant.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2003, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2010, 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. |
186 Symbol sym = (Symbol) obj; |
186 Symbol sym = (Symbol) obj; |
187 return "<Class " + sym.asString() + ">"; |
187 return "<Class " + sym.asString() + ">"; |
188 } else { |
188 } else { |
189 throw new RuntimeException("should not reach here"); |
189 throw new RuntimeException("should not reach here"); |
190 } |
190 } |
191 } else if (ctag.isMethodHandle() || ctag.isMethodType()) { |
191 } else if (ctag.isMethodHandle()) { |
192 Oop x = getCachedConstant(); |
192 Oop x = getCachedConstant(); |
193 int refidx = cpool.getMethodHandleIndexAt(cpIndex); |
193 int refidx = cpool.getMethodHandleIndexAt(cpIndex); |
194 int refkind = cpool.getMethodHandleRefKindAt(cpIndex); |
194 int refkind = cpool.getMethodHandleRefKindAt(cpIndex); |
195 return "<MethodHandle kind=" + Integer.toString(refkind) + |
195 return "<MethodHandle kind=" + Integer.toString(refkind) + |
196 " ref=" + Integer.toString(refidx) |
196 " ref=" + Integer.toString(refidx) |