Skip to content

Commit 3188f10

Browse files
author
Matthias Güdemann
authored
Merge pull request #1795 from thk123/bugfix/TG-1358/local-variables
[TG-1358] Fix support for functions containing more than 255 local variables
2 parents 06483f3 + 004626c commit 3188f10

File tree

7 files changed

+584
-4
lines changed

7 files changed

+584
-4
lines changed
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
; This generates a class file that attempts to access local variables indexed
2+
; at 255, 256 and 65534
3+
; The class file is generated from this file using the following command:
4+
; java -jar jasmin.jar ManyLocalVariables.j
5+
; The jasmin jar file can be obtained from: http://jasmin.sourceforge.net/
6+
7+
.class public ManyLocalVariables
8+
.super java/lang/Object
9+
10+
.method public static test()I
11+
.limit stack 10
12+
.limit locals 65535
13+
.line 1
14+
iconst_1
15+
istore 1
16+
17+
iconst_1
18+
istore 255
19+
20+
iconst_1
21+
istore_w 256
22+
23+
iconst_1
24+
istore_w 65534
25+
26+
iload 1
27+
iload 255
28+
iload_w 256
29+
iload_w 65534
30+
31+
iadd
32+
iadd
33+
iadd
34+
35+
ireturn
36+
.end method
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CORE
2+
ManyLocalVariables.class
3+
--function ManyLocalVariables.test
4+
VERIFICATION SUCCESSFUL
Binary file not shown.

0 commit comments

Comments
 (0)