Mercurial > hg > graal-jvmci-8
comparison agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeLoadConstant.java @ 1913:3b2dea75431e
6984311: JSR 292 needs optional bootstrap method parameters
Summary: Allow CONSTANT_InvokeDynamic nodes to have any number of extra operands.
Reviewed-by: twisti
author | jrose |
---|---|
date | Sat, 30 Oct 2010 13:08:23 -0700 |
parents | 136b78722a08 |
children | 3582bf76420e |
comparison
equal
deleted
inserted
replaced
1912:8213b0f5c92d | 1913:3b2dea75431e |
---|---|
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) |