diff options
Diffstat (limited to 'src/asm/scala/tools/asm/tree/analysis/Frame.java')
-rw-r--r-- | src/asm/scala/tools/asm/tree/analysis/Frame.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/asm/scala/tools/asm/tree/analysis/Frame.java b/src/asm/scala/tools/asm/tree/analysis/Frame.java index 0d92edc4d6..44a07ee27c 100644 --- a/src/asm/scala/tools/asm/tree/analysis/Frame.java +++ b/src/asm/scala/tools/asm/tree/analysis/Frame.java @@ -134,6 +134,15 @@ public class Frame<V extends Value> { } /** + * Returns the maximum stack size of this frame. + * + * @return the maximum stack size of this frame. + */ + public int getMaxStackSize() { + return values.length - locals; + } + + /** * Returns the value of the given local variable. * * @param i |