Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/oops/Method.java @ 6213:8150fa46d2ed
7178145: Change constMethodOop::_exception_table to optionally inlined u2 table.
Summary: Change constMethodOop::_exception_table to optionally inlined u2 table.
Reviewed-by: bdelsart, coleenp, kamg
author | jiangli |
---|---|
date | Tue, 26 Jun 2012 19:08:44 -0400 |
parents | 2fe087c3e814 |
children | da91efe96a93 |
comparison
equal
deleted
inserted
replaced
6177:06320b1578cb | 6213:8150fa46d2ed |
---|---|
125 public ConstMethod getConstMethod() { return (ConstMethod) constMethod.getValue(this); } | 125 public ConstMethod getConstMethod() { return (ConstMethod) constMethod.getValue(this); } |
126 public ConstantPool getConstants() { | 126 public ConstantPool getConstants() { |
127 return getConstMethod().getConstants(); | 127 return getConstMethod().getConstants(); |
128 } | 128 } |
129 public MethodData getMethodData() { return (MethodData) methodData.getValue(this); } | 129 public MethodData getMethodData() { return (MethodData) methodData.getValue(this); } |
130 public TypeArray getExceptionTable() { return getConstMethod().getExceptionTable(); } | |
131 /** WARNING: this is in words, not useful in this system; use getObjectSize() instead */ | 130 /** WARNING: this is in words, not useful in this system; use getObjectSize() instead */ |
132 public long getMethodSize() { return methodSize.getValue(this); } | 131 public long getMethodSize() { return methodSize.getValue(this); } |
133 public long getMaxStack() { return maxStack.getValue(this); } | 132 public long getMaxStack() { return maxStack.getValue(this); } |
134 public long getMaxLocals() { return maxLocals.getValue(this); } | 133 public long getMaxLocals() { return maxLocals.getValue(this); } |
135 public long getSizeOfParameters() { return sizeOfParameters.getValue(this); } | 134 public long getSizeOfParameters() { return sizeOfParameters.getValue(this); } |
326 } | 325 } |
327 | 326 |
328 return null; | 327 return null; |
329 } | 328 } |
330 | 329 |
330 public boolean hasExceptionTable() { | |
331 return getConstMethod().hasExceptionTable(); | |
332 } | |
333 | |
334 public ExceptionTableElement[] getExceptionTable() { | |
335 return getConstMethod().getExceptionTable(); | |
336 } | |
337 | |
331 public boolean hasCheckedExceptions() { | 338 public boolean hasCheckedExceptions() { |
332 return getConstMethod().hasCheckedExceptions(); | 339 return getConstMethod().hasCheckedExceptions(); |
333 } | 340 } |
334 | 341 |
335 /** Should only be called if table is present */ | 342 /** Should only be called if table is present */ |