Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
asm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
asm
asm
Commits
4d61dd15
Commit
4d61dd15
authored
Feb 18, 2018
by
Eric Bruneton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert bug fix.
parent
648c512e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
asm-commons/src/main/java/org/objectweb/asm/commons/LocalVariablesSorter.java
.../java/org/objectweb/asm/commons/LocalVariablesSorter.java
+10
-0
No files found.
asm-commons/src/main/java/org/objectweb/asm/commons/LocalVariablesSorter.java
View file @
4d61dd15
...
...
@@ -65,6 +65,8 @@ public class LocalVariablesSorter extends MethodVisitor {
/** Index of the next local variable to be created by {@link #newLocal}. */
protected
int
nextLocal
;
private
boolean
changed
;
/**
* Constructs a new {@link LocalVariablesSorter}. <i>Subclasses must not use this constructor</i>.
* Instead, they must use the {@link #LocalVariablesSorter(int, int, String, MethodVisitor)}
...
...
@@ -186,6 +188,10 @@ public class LocalVariablesSorter extends MethodVisitor {
throw
new
IllegalStateException
(
"ClassReader.accept() should be called with EXPAND_FRAMES flag"
);
}
if
(!
changed
)
{
// optimization for the case where mapping = identity
mv
.
visitFrame
(
type
,
nLocal
,
local
,
nStack
,
stack
);
return
;
}
// creates a copy of newLocals
Object
[]
oldLocals
=
new
Object
[
newLocals
.
length
];
...
...
@@ -281,6 +287,7 @@ public class LocalVariablesSorter extends MethodVisitor {
int
local
=
newLocalMapping
(
type
);
setLocalType
(
local
,
type
);
setFrameLocal
(
local
,
t
);
changed
=
true
;
return
local
;
}
...
...
@@ -338,6 +345,9 @@ public class LocalVariablesSorter extends MethodVisitor {
}
else
{
value
--;
}
if
(
value
!=
var
)
{
changed
=
true
;
}
return
value
;
}
...
...
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