Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Jamie Mansfield
asm
Commits
416c88f6
Commit
416c88f6
authored
Jun 13, 2018
by
Eric Bruneton
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'retronymm/asm-unfork/set-stack'
parents
c2d59677
638dca4f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
asm-analysis/src/main/java/org/objectweb/asm/tree/analysis/Frame.java
.../src/main/java/org/objectweb/asm/tree/analysis/Frame.java
+11
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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