Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/oops/ConstantPool.java @ 20456:64156d22e49d
8032247: SA: Constantpool lookup for invokedynamic is not implemented
Summary: implement constant pool lookup for invokedynamic
Reviewed-by: sla, sspitsyn
author | dsamersoff |
---|---|
date | Thu, 11 Sep 2014 11:55:30 -0700 |
parents | f16e75e0cf11 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20455:07f629123254 | 20456:64156d22e49d |
---|---|
150 return elementSize; | 150 return elementSize; |
151 } | 151 } |
152 | 152 |
153 private long indexOffset(long index) { | 153 private long indexOffset(long index) { |
154 if (Assert.ASSERTS_ENABLED) { | 154 if (Assert.ASSERTS_ENABLED) { |
155 Assert.that(index > 0 && index < getLength(), "invalid cp index " + index + " " + getLength()); | 155 Assert.that(index >= 0 && index < getLength(), "invalid cp index " + index + " " + getLength()); |
156 } | 156 } |
157 return (index * getElementSize()) + headerSize; | 157 return (index * getElementSize()) + headerSize; |
158 } | 158 } |
159 | 159 |
160 public ConstantTag getTagAt(long index) { | 160 public ConstantTag getTagAt(long index) { |