Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jamie Mansfield
asm
Commits
416c88f6
Commit
416c88f6
authored
Jun 13, 2018
by
Eric Bruneton
Browse files
Merge branch 'retronymm/asm-unfork/set-stack'
parents
c2d59677
638dca4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
asm-analysis/src/main/java/org/objectweb/asm/tree/analysis/Frame.java
View file @
416c88f6
...
...
@@ -178,6 +178,17 @@ public class Frame<V extends Value> {
return
values
[
nLocals
+
index
];
}
/**
* Sets the value of the given stack slot.
*
* @param index the index of an operand stack slot.
* @param value the new value of the stack slot.
* @throws IndexOutOfBoundsException if the stack slot does not exist.
*/
public
void
setStack
(
final
int
index
,
final
V
value
)
throws
IndexOutOfBoundsException
{
values
[
nLocals
+
index
]
=
value
;
}
/** Clears the operand stack of this frame. */
public
void
clearStack
()
{
nStack
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment