author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 29 Jul 2016 10:54:57 +0100 | |
changeset 3605 | da57f13e6a23 |
parent 3586 | 27ad5c699e3f |
permissions | -rw-r--r-- |
3605
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1 |
"{ Encoding: utf8 }" |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2 |
|
749 | 3 |
" |
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3196
diff
changeset
|
4 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
5 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
6 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
7 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3196
diff
changeset
|
8 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
749 | 9 |
SWING Research Group, Czech Technical University in Prague |
10 |
||
11 |
This software is furnished under a license and may be used |
|
12 |
only in accordance with the terms of that license and with the |
|
13 |
inclusion of the above copyright notice. This software may not |
|
14 |
be provided or otherwise made available to, or used by, any |
|
15 |
other person. No title to or ownership of the software is |
|
16 |
hereby transferred. |
|
17 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
18 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
19 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
20 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
21 |
as of 1.9.2010 |
749 | 22 |
" |
23 |
"{ Package: 'stx:libjava' }" |
|
24 |
||
3383
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
25 |
"{ NameSpace: Smalltalk }" |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
26 |
|
749 | 27 |
Object subclass:#JavaByteCodeProcessor |
28 |
instanceVariableNames:'byteCode pc method constantPool context receiver sp retVal |
|
29 |
instrPointer op wide numArgs numVars leaveProcessor' |
|
30 |
classVariableNames:'OpSwitchTable Verbose' |
|
31 |
poolDictionaries:'' |
|
32 |
category:'Languages-Java-Bytecode' |
|
33 |
! |
|
34 |
||
35 |
!JavaByteCodeProcessor class methodsFor:'documentation'! |
|
36 |
||
37 |
copyright |
|
38 |
" |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3196
diff
changeset
|
39 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
40 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
41 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
42 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3196
diff
changeset
|
43 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
749 | 44 |
SWING Research Group, Czech Technical University in Prague |
45 |
||
46 |
This software is furnished under a license and may be used |
|
47 |
only in accordance with the terms of that license and with the |
|
48 |
inclusion of the above copyright notice. This software may not |
|
49 |
be provided or otherwise made available to, or used by, any |
|
50 |
other person. No title to or ownership of the software is |
|
51 |
hereby transferred. |
|
52 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
53 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
54 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
55 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
56 |
as of 1.9.2010 |
749 | 57 |
|
58 |
" |
|
2678
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
59 |
! |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
60 |
|
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
61 |
documentation |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
62 |
" |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
63 |
Basic class to process Java bytecode. Subclasses must implement |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
64 |
all callback methods that handle individual instructions. |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
65 |
|
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
66 |
Subclass `JavaByteCodeProcessorAdaptor` if you want to so somethinf |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
67 |
special for some instructions and don't need to bother with rest |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
68 |
of them. |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
69 |
|
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
70 |
[author:] |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
71 |
Jan Vrany <jan.vrany@fit.cvut.cz> |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
72 |
|
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
73 |
[instance variables:] |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
74 |
|
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
75 |
[class variables:] |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
76 |
|
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
77 |
[see also:] |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
78 |
JavaByteCodeProcessorAdaptor |
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
79 |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
80 |
[see also:] |
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
81 |
JavaByteCodeProcessorAdaptor |
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
82 |
|
2678
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
83 |
|
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
84 |
" |
749 | 85 |
! ! |
86 |
||
87 |
!JavaByteCodeProcessor class methodsFor:'initialization'! |
|
88 |
||
89 |
initialize |
|
90 |
OpSwitchTable := Array new: 256. |
|
91 |
OpSwitchTable at: 1 + 0 put: #nop. |
|
92 |
OpSwitchTable at: 1 + 1 put: #'aconst_null'. |
|
93 |
OpSwitchTable at: 1 + 2 put: #'iconst_m1'. |
|
94 |
OpSwitchTable at: 1 + 3 put: #'iconst_0'. |
|
95 |
OpSwitchTable at: 1 + 4 put: #'iconst_1'. |
|
96 |
OpSwitchTable at: 1 + 5 put: #'iconst_2'. |
|
97 |
OpSwitchTable at: 1 + 6 put: #'iconst_3'. |
|
98 |
OpSwitchTable at: 1 + 7 put: #'iconst_4'. |
|
99 |
OpSwitchTable at: 1 + 8 put: #'iconst_5'. |
|
100 |
OpSwitchTable at: 1 + 9 put: #'lconst_0'. |
|
101 |
OpSwitchTable at: 1 + 10 put: #'lconst_1'. |
|
102 |
OpSwitchTable at: 1 + 11 put: #'fconst_0'. |
|
103 |
OpSwitchTable at: 1 + 12 put: #'fconst_1'. |
|
104 |
OpSwitchTable at: 1 + 13 put: #'fconst_2'. |
|
105 |
OpSwitchTable at: 1 + 14 put: #'dconst_0'. |
|
106 |
OpSwitchTable at: 1 + 15 put: #'dconst_1'. |
|
107 |
OpSwitchTable at: 1 + 16 put: #bipush. |
|
108 |
OpSwitchTable at: 1 + 17 put: #sipush. |
|
109 |
OpSwitchTable at: 1 + 18 put: #ldc1. |
|
110 |
OpSwitchTable at: 1 + 19 put: #ldc2. |
|
111 |
OpSwitchTable at: 1 + 20 put: #ldc2w. |
|
112 |
OpSwitchTable at: 1 + 21 put: #iload. |
|
113 |
OpSwitchTable at: 1 + 22 put: #lload. |
|
114 |
OpSwitchTable at: 1 + 23 put: #fload. |
|
115 |
OpSwitchTable at: 1 + 24 put: #dload. |
|
116 |
OpSwitchTable at: 1 + 25 put: #aload. |
|
117 |
OpSwitchTable at: 1 + 26 put: #'iload_0'. |
|
118 |
OpSwitchTable at: 1 + 27 put: #'iload_1'. |
|
119 |
OpSwitchTable at: 1 + 28 put: #'iload_2'. |
|
120 |
OpSwitchTable at: 1 + 29 put: #'iload_3'. |
|
121 |
OpSwitchTable at: 1 + 30 put: #'lload_0'. |
|
122 |
OpSwitchTable at: 1 + 31 put: #'lload_1'. |
|
123 |
OpSwitchTable at: 1 + 32 put: #'lload_2'. |
|
124 |
OpSwitchTable at: 1 + 33 put: #'lload_3'. |
|
125 |
OpSwitchTable at: 1 + 34 put: #'fload_0'. |
|
126 |
OpSwitchTable at: 1 + 35 put: #'fload_1'. |
|
127 |
OpSwitchTable at: 1 + 36 put: #'fload_2'. |
|
128 |
OpSwitchTable at: 1 + 37 put: #'fload_3'. |
|
129 |
OpSwitchTable at: 1 + 38 put: #'dload_0'. |
|
130 |
OpSwitchTable at: 1 + 39 put: #'dload_1'. |
|
131 |
OpSwitchTable at: 1 + 40 put: #'dload_2'. |
|
132 |
OpSwitchTable at: 1 + 41 put: #'dload_3'. |
|
133 |
OpSwitchTable at: 1 + 42 put: #'aload_0'. |
|
134 |
OpSwitchTable at: 1 + 43 put: #'aload_1'. |
|
135 |
OpSwitchTable at: 1 + 44 put: #'aload_2'. |
|
136 |
OpSwitchTable at: 1 + 45 put: #'aload_3'. |
|
137 |
OpSwitchTable at: 1 + 46 put: #iaload. |
|
138 |
OpSwitchTable at: 1 + 47 put: #laload. |
|
139 |
OpSwitchTable at: 1 + 48 put: #faload. |
|
140 |
OpSwitchTable at: 1 + 49 put: #daload. |
|
141 |
OpSwitchTable at: 1 + 50 put: #aaload. |
|
142 |
OpSwitchTable at: 1 + 51 put: #baload. |
|
143 |
OpSwitchTable at: 1 + 52 put: #caload. |
|
144 |
OpSwitchTable at: 1 + 53 put: #saload. |
|
145 |
OpSwitchTable at: 1 + 54 put: #istore. |
|
146 |
OpSwitchTable at: 1 + 55 put: #lstore. |
|
147 |
OpSwitchTable at: 1 + 56 put: #fstore. |
|
148 |
OpSwitchTable at: 1 + 57 put: #dstore. |
|
149 |
OpSwitchTable at: 1 + 58 put: #astore. |
|
150 |
OpSwitchTable at: 1 + 59 put: #'istore_0'. |
|
151 |
OpSwitchTable at: 1 + 60 put: #'istore_1'. |
|
152 |
OpSwitchTable at: 1 + 61 put: #'istore_2'. |
|
153 |
OpSwitchTable at: 1 + 62 put: #'istore_3'. |
|
154 |
OpSwitchTable at: 1 + 63 put: #'lstore_0'. |
|
155 |
OpSwitchTable at: 1 + 64 put: #'lstore_1'. |
|
156 |
OpSwitchTable at: 1 + 65 put: #'lstore_2'. |
|
157 |
OpSwitchTable at: 1 + 66 put: #'lstore_3'. |
|
158 |
OpSwitchTable at: 1 + 67 put: #'fstore_0'. |
|
159 |
OpSwitchTable at: 1 + 68 put: #'fstore_1'. |
|
160 |
OpSwitchTable at: 1 + 69 put: #'fstore_2'. |
|
161 |
OpSwitchTable at: 1 + 70 put: #'fstore_3'. |
|
162 |
OpSwitchTable at: 1 + 71 put: #'dstore_0'. |
|
163 |
OpSwitchTable at: 1 + 72 put: #'dstore_1'. |
|
164 |
OpSwitchTable at: 1 + 73 put: #'dstore_2'. |
|
165 |
OpSwitchTable at: 1 + 74 put: #'dstore_3'. |
|
166 |
OpSwitchTable at: 1 + 75 put: #'astore_0'. |
|
167 |
OpSwitchTable at: 1 + 76 put: #'astore_1'. |
|
168 |
OpSwitchTable at: 1 + 77 put: #'astore_2'. |
|
169 |
OpSwitchTable at: 1 + 78 put: #'astore_3'. |
|
170 |
OpSwitchTable at: 1 + 79 put: #iastore. |
|
171 |
OpSwitchTable at: 1 + 80 put: #lastore. |
|
172 |
OpSwitchTable at: 1 + 81 put: #fastore. |
|
173 |
OpSwitchTable at: 1 + 82 put: #dastore. |
|
174 |
OpSwitchTable at: 1 + 83 put: #aastore. |
|
175 |
OpSwitchTable at: 1 + 84 put: #bastore. |
|
176 |
OpSwitchTable at: 1 + 85 put: #castore. |
|
177 |
OpSwitchTable at: 1 + 86 put: #sastore. |
|
178 |
OpSwitchTable at: 1 + 87 put: #pop1. |
|
179 |
OpSwitchTable at: 1 + 88 put: #pop2. |
|
180 |
OpSwitchTable at: 1 + 89 put: #dup. |
|
181 |
OpSwitchTable at: 1 + 90 put: #'dup_x1'. |
|
182 |
OpSwitchTable at: 1 + 91 put: #'dup_x2'. |
|
183 |
OpSwitchTable at: 1 + 92 put: #dup2. |
|
184 |
OpSwitchTable at: 1 + 93 put: #'dup2_x1'. |
|
185 |
OpSwitchTable at: 1 + 94 put: #'dup2_x2'. |
|
186 |
OpSwitchTable at: 1 + 95 put: #swap. |
|
187 |
OpSwitchTable at: 1 + 96 put: #iadd. |
|
188 |
OpSwitchTable at: 1 + 97 put: #ladd. |
|
189 |
OpSwitchTable at: 1 + 98 put: #fadd. |
|
190 |
OpSwitchTable at: 1 + 99 put: #dadd. |
|
191 |
OpSwitchTable at: 1 + 100 put: #isub. |
|
192 |
OpSwitchTable at: 1 + 101 put: #lsub. |
|
193 |
OpSwitchTable at: 1 + 102 put: #fsub. |
|
194 |
OpSwitchTable at: 1 + 103 put: #dsub. |
|
195 |
OpSwitchTable at: 1 + 104 put: #imul. |
|
196 |
OpSwitchTable at: 1 + 105 put: #lmul. |
|
197 |
OpSwitchTable at: 1 + 106 put: #fmul. |
|
198 |
OpSwitchTable at: 1 + 107 put: #dmul. |
|
199 |
OpSwitchTable at: 1 + 108 put: #idiv. |
|
200 |
OpSwitchTable at: 1 + 109 put: #ldiv. |
|
201 |
OpSwitchTable at: 1 + 110 put: #fdiv. |
|
202 |
OpSwitchTable at: 1 + 111 put: #ddiv. |
|
203 |
OpSwitchTable at: 1 + 112 put: #irem. |
|
204 |
OpSwitchTable at: 1 + 113 put: #lrem. |
|
205 |
OpSwitchTable at: 1 + 114 put: #frem. |
|
206 |
OpSwitchTable at: 1 + 115 put: #drem. |
|
207 |
OpSwitchTable at: 1 + 116 put: #ineg. |
|
208 |
OpSwitchTable at: 1 + 117 put: #lneg. |
|
209 |
OpSwitchTable at: 1 + 118 put: #fneg. |
|
210 |
OpSwitchTable at: 1 + 119 put: #dneg. |
|
211 |
OpSwitchTable at: 1 + 120 put: #ishl. |
|
212 |
OpSwitchTable at: 1 + 121 put: #lshl. |
|
213 |
OpSwitchTable at: 1 + 122 put: #ishr. |
|
214 |
OpSwitchTable at: 1 + 123 put: #lshr. |
|
215 |
OpSwitchTable at: 1 + 124 put: #iushr. |
|
216 |
OpSwitchTable at: 1 + 125 put: #lushr. |
|
217 |
OpSwitchTable at: 1 + 126 put: #iand. |
|
218 |
OpSwitchTable at: 1 + 127 put: #land. |
|
219 |
OpSwitchTable at: 1 + 128 put: #ior. |
|
220 |
OpSwitchTable at: 1 + 129 put: #lor. |
|
221 |
OpSwitchTable at: 1 + 130 put: #ixor. |
|
222 |
OpSwitchTable at: 1 + 131 put: #lxor. |
|
223 |
OpSwitchTable at: 1 + 132 put: #iinc. |
|
224 |
OpSwitchTable at: 1 + 133 put: #i2l. |
|
225 |
OpSwitchTable at: 1 + 134 put: #i2f. |
|
226 |
OpSwitchTable at: 1 + 135 put: #i2d. |
|
227 |
OpSwitchTable at: 1 + 136 put: #l2i. |
|
228 |
OpSwitchTable at: 1 + 137 put: #l2f. |
|
229 |
OpSwitchTable at: 1 + 138 put: #l2d. |
|
230 |
OpSwitchTable at: 1 + 139 put: #f2i. |
|
231 |
OpSwitchTable at: 1 + 140 put: #f2l. |
|
232 |
OpSwitchTable at: 1 + 141 put: #f2d. |
|
233 |
OpSwitchTable at: 1 + 142 put: #d2i. |
|
234 |
OpSwitchTable at: 1 + 143 put: #d2l. |
|
235 |
OpSwitchTable at: 1 + 144 put: #d2f. |
|
236 |
OpSwitchTable at: 1 + 145 put: #int2byte. |
|
237 |
OpSwitchTable at: 1 + 146 put: #int2char. |
|
238 |
OpSwitchTable at: 1 + 147 put: #int2short. |
|
239 |
OpSwitchTable at: 1 + 148 put: #lcmp. |
|
240 |
OpSwitchTable at: 1 + 149 put: #fcmpl. |
|
241 |
OpSwitchTable at: 1 + 150 put: #fcmpg. |
|
242 |
OpSwitchTable at: 1 + 151 put: #dcmpl. |
|
243 |
OpSwitchTable at: 1 + 152 put: #dcmpg. |
|
244 |
OpSwitchTable at: 1 + 153 put: #ifeq. |
|
245 |
OpSwitchTable at: 1 + 154 put: #ifne. |
|
246 |
OpSwitchTable at: 1 + 155 put: #iflt. |
|
247 |
OpSwitchTable at: 1 + 156 put: #ifge. |
|
248 |
OpSwitchTable at: 1 + 157 put: #ifgt. |
|
249 |
OpSwitchTable at: 1 + 158 put: #ifle. |
|
250 |
OpSwitchTable at: 1 + 159 put: #ificmpeq. |
|
251 |
OpSwitchTable at: 1 + 160 put: #ificmpne. |
|
252 |
OpSwitchTable at: 1 + 161 put: #ificmplt. |
|
253 |
OpSwitchTable at: 1 + 162 put: #ificmpge. |
|
254 |
OpSwitchTable at: 1 + 163 put: #ificmpgt. |
|
255 |
OpSwitchTable at: 1 + 164 put: #ificmple. |
|
256 |
OpSwitchTable at: 1 + 165 put: #ifacmpeq. |
|
257 |
OpSwitchTable at: 1 + 166 put: #ifacmpne. |
|
258 |
OpSwitchTable at: 1 + 167 put: #goto. |
|
259 |
OpSwitchTable at: 1 + 168 put: #jsr. |
|
260 |
OpSwitchTable at: 1 + 169 put: #ret. |
|
261 |
OpSwitchTable at: 1 + 170 put: #tableswtch. |
|
262 |
OpSwitchTable at: 1 + 171 put: #lookupswtch. |
|
263 |
OpSwitchTable at: 1 + 172 put: #ireturn. |
|
264 |
OpSwitchTable at: 1 + 173 put: #lreturn. |
|
265 |
OpSwitchTable at: 1 + 174 put: #freturn. |
|
266 |
OpSwitchTable at: 1 + 175 put: #dreturn. |
|
267 |
OpSwitchTable at: 1 + 176 put: #areturn. |
|
268 |
OpSwitchTable at: 1 + 177 put: #return. |
|
269 |
OpSwitchTable at: 1 + 178 put: #getstatic. |
|
270 |
OpSwitchTable at: 1 + 179 put: #putstatic. |
|
271 |
OpSwitchTable at: 1 + 180 put: #getfield. |
|
272 |
OpSwitchTable at: 1 + 181 put: #putfield. |
|
273 |
OpSwitchTable at: 1 + 182 put: #invvirt. |
|
274 |
OpSwitchTable at: 1 + 183 put: #invnonvirt. |
|
275 |
OpSwitchTable at: 1 + 184 put: #invstatic. |
|
276 |
OpSwitchTable at: 1 + 185 put: #invinterface. |
|
3383
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
277 |
OpSwitchTable at: 1 + 186 put: #invdynamic. |
749 | 278 |
OpSwitchTable at: 1 + 187 put: #new. |
279 |
OpSwitchTable at: 1 + 188 put: #newarray. |
|
280 |
OpSwitchTable at: 1 + 189 put: #anewarray. |
|
281 |
OpSwitchTable at: 1 + 190 put: #arraylength. |
|
282 |
OpSwitchTable at: 1 + 191 put: #athrow. |
|
283 |
OpSwitchTable at: 1 + 192 put: #checkcast. |
|
284 |
OpSwitchTable at: 1 + 193 put: #instanceof. |
|
285 |
OpSwitchTable at: 1 + 194 put: #monenter. |
|
286 |
OpSwitchTable at: 1 + 195 put: #monexit. |
|
287 |
OpSwitchTable at: 1 + 196 put: #wide. |
|
288 |
OpSwitchTable at: 1 + 197 put: #multianewarray. |
|
289 |
OpSwitchTable at: 1 + 198 put: #ifnull. |
|
290 |
OpSwitchTable at: 1 + 199 put: #ifnonnull. |
|
291 |
OpSwitchTable at: 1 + 200 put: #'goto_w'. |
|
292 |
OpSwitchTable at: 1 + 201 put: #'jsr_w'. |
|
293 |
OpSwitchTable at: 1 + 202 put: #breakpoint. |
|
294 |
OpSwitchTable at: 1 + 203 put: #'ret_w'. |
|
295 |
||
296 |
Verbose := false. |
|
297 |
" |
|
298 |
self initialize" |
|
299 |
||
300 |
"Created: / 17-03-2011 / 14:56:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
301 |
"Modified: / 17-03-2011 / 16:43:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
3383
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
302 |
"Modified: / 25-02-2015 / 19:35:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 303 |
! ! |
304 |
||
305 |
!JavaByteCodeProcessor class methodsFor:'accessing'! |
|
306 |
||
307 |
verbose: bool |
|
308 |
Verbose := bool. |
|
309 |
||
310 |
"Created: / 21-03-2011 / 18:32:37 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
311 |
! ! |
|
312 |
||
313 |
!JavaByteCodeProcessor class methodsFor:'private-logging'! |
|
314 |
||
3385
58d72cc6d5f6
Replaced old-style `'string' infoPrintCR` logging with new-style `Logger log:'string'` logging
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3383
diff
changeset
|
315 |
log: aString |
58d72cc6d5f6
Replaced old-style `'string' infoPrintCR` logging with new-style `Logger log:'string'` logging
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3383
diff
changeset
|
316 |
Verbose ifTrue: [ |
58d72cc6d5f6
Replaced old-style `'string' infoPrintCR` logging with new-style `Logger log:'string'` logging
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3383
diff
changeset
|
317 |
Logger log: aString severity: Logger severityDEBUG facility: #JVM |
58d72cc6d5f6
Replaced old-style `'string' infoPrintCR` logging with new-style `Logger log:'string'` logging
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3383
diff
changeset
|
318 |
] |
749 | 319 |
|
320 |
"Created: / 17-03-2011 / 14:59:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
321 |
! ! |
|
322 |
||
323 |
!JavaByteCodeProcessor methodsFor:'initialization'! |
|
324 |
||
325 |
reset |
|
326 |
pc := method startPC. |
|
327 |
byteCode := method byteCode. |
|
328 |
constantPool := method javaClass constantPool. |
|
329 |
||
330 |
"Modified: / 17-03-2011 / 14:53:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
331 |
! ! |
|
332 |
||
333 |
!JavaByteCodeProcessor methodsFor:'instructions'! |
|
334 |
||
335 |
aaload |
|
336 |
"raise an error: must be redefined in concrete subclass(es)" |
|
337 |
||
338 |
^ self subclassResponsibility |
|
339 |
! |
|
340 |
||
341 |
aastore |
|
342 |
"raise an error: must be redefined in concrete subclass(es)" |
|
343 |
||
344 |
^ self subclassResponsibility |
|
345 |
! |
|
346 |
||
347 |
aconst_null |
|
348 |
"raise an error: must be redefined in concrete subclass(es)" |
|
349 |
||
350 |
^ self subclassResponsibility |
|
351 |
! |
|
352 |
||
353 |
aload |
|
354 |
"raise an error: must be redefined in concrete subclass(es)" |
|
355 |
||
356 |
^ self subclassResponsibility |
|
357 |
||
358 |
"Created: / 17-03-2011 / 15:07:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
359 |
! |
|
360 |
||
361 |
aload: arg |
|
362 |
" |
|
363 |
Load reference from local variable 0 |
|
364 |
nothing -> objectRef" |
|
365 |
"raise an error: must be redefined in concrete subclass(es)" |
|
366 |
||
367 |
^ self subclassResponsibility |
|
368 |
" |
|
369 |
Description |
|
370 |
The <n> must be an index into the local variable array of the |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
371 |
current frame (3.6). The local variable at <n> must contain a |
749 | 372 |
reference. The objectref in the local variable at index is pushed |
373 |
onto the operand stack. |
|
374 |
||
375 |
Notes |
|
376 |
An aload_<n> instruction cannot be used to load a value of type |
|
377 |
returnAddress from a local variable onto the operand stack. This |
|
378 |
asymmetry with the corresponding astore_<n> instruction is intentional. |
|
379 |
Each of the aload_<n> instructions is the same as aload with an index |
|
380 |
of <n>, except that the operand <n> is implicit." |
|
381 |
||
382 |
"Modified: / 17-03-2011 / 15:26:53 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
383 |
! |
|
384 |
||
385 |
aload_0 |
|
386 |
" |
|
387 |
Load reference from local variable 0 |
|
388 |
nothing -> objectRef" |
|
389 |
||
390 |
self aload: 0. |
|
391 |
||
392 |
" |
|
393 |
Description |
|
394 |
The <n> must be an index into the local variable array of the |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
395 |
current frame (3.6). The local variable at <n> must contain a |
749 | 396 |
reference. The objectref in the local variable at index is pushed |
397 |
onto the operand stack. |
|
398 |
||
399 |
Notes |
|
400 |
An aload_<n> instruction cannot be used to load a value of type |
|
401 |
returnAddress from a local variable onto the operand stack. This |
|
402 |
asymmetry with the corresponding astore_<n> instruction is intentional. |
|
403 |
Each of the aload_<n> instructions is the same as aload with an index |
|
404 |
of <n>, except that the operand <n> is implicit." |
|
405 |
||
406 |
"Created: / 10-03-2011 / 21:42:22 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
407 |
"Modified: / 13-03-2011 / 16:56:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
408 |
! |
|
409 |
||
410 |
aload_1 |
|
411 |
self aload: 1. |
|
412 |
||
413 |
"Created: / 10-03-2011 / 21:42:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
414 |
"Modified: / 13-03-2011 / 16:56:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
415 |
! |
|
416 |
||
417 |
aload_2 |
|
418 |
self aload: 2. |
|
419 |
||
420 |
"Created: / 10-03-2011 / 21:42:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
421 |
"Modified: / 13-03-2011 / 16:56:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
422 |
! |
|
423 |
||
424 |
aload_3 |
|
425 |
self aload: 3. |
|
426 |
||
427 |
"Created: / 10-03-2011 / 21:43:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
428 |
"Modified: / 13-03-2011 / 16:56:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
429 |
! |
|
430 |
||
431 |
anewarray |
|
432 |
"raise an error: must be redefined in concrete subclass(es)" |
|
433 |
||
434 |
^ self subclassResponsibility |
|
435 |
||
436 |
"Created: / 17-03-2011 / 16:57:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
437 |
! |
|
438 |
||
439 |
areturn |
|
440 |
"raise an error: must be redefined in concrete subclass(es)" |
|
441 |
||
442 |
^ self subclassResponsibility |
|
443 |
! |
|
444 |
||
445 |
arraylength |
|
446 |
"raise an error: must be redefined in concrete subclass(es)" |
|
447 |
||
448 |
^ self subclassResponsibility |
|
449 |
! |
|
450 |
||
451 |
astore |
|
452 |
"raise an error: must be redefined in concrete subclass(es)" |
|
453 |
||
454 |
^ self subclassResponsibility |
|
455 |
||
456 |
"Created: / 17-03-2011 / 16:37:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
457 |
! |
|
458 |
||
459 |
astore:arg |
|
460 |
"raise an error: must be redefined in concrete subclass(es)" |
|
461 |
||
462 |
^ self subclassResponsibility |
|
463 |
! |
|
464 |
||
465 |
astore_0 |
|
466 |
||
467 |
||
468 |
^self astore: 0. |
|
469 |
||
470 |
"Created: / 17-03-2011 / 16:39:06 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
471 |
! |
|
472 |
||
473 |
astore_1 |
|
474 |
^ self astore: 1. |
|
475 |
||
476 |
"Created: / 17-03-2011 / 16:39:10 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
477 |
! |
|
478 |
||
479 |
astore_2 |
|
480 |
^ self astore: 2. |
|
481 |
||
482 |
"Created: / 17-03-2011 / 16:39:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
483 |
! |
|
484 |
||
485 |
astore_3 |
|
486 |
^ self astore: 3. |
|
487 |
||
488 |
"Created: / 17-03-2011 / 16:39:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
489 |
! |
|
490 |
||
491 |
athrow |
|
492 |
"raise an error: must be redefined in concrete subclass(es)" |
|
493 |
||
494 |
^ self subclassResponsibility |
|
495 |
||
496 |
"Created: / 17-03-2011 / 16:57:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
497 |
! |
|
498 |
||
499 |
baload |
|
500 |
"raise an error: must be redefined in concrete subclass(es)" |
|
501 |
||
502 |
^ self subclassResponsibility |
|
503 |
! |
|
504 |
||
505 |
bastore |
|
506 |
"raise an error: must be redefined in concrete subclass(es)" |
|
507 |
||
508 |
^ self subclassResponsibility |
|
509 |
! |
|
510 |
||
511 |
bipush |
|
512 |
"raise an error: must be redefined in concrete subclass(es)" |
|
513 |
||
514 |
^ self subclassResponsibility |
|
515 |
! |
|
516 |
||
517 |
breakpoint |
|
518 |
"raise an error: must be redefined in concrete subclass(es)" |
|
519 |
||
520 |
^ self subclassResponsibility |
|
521 |
||
522 |
"Created: / 17-03-2011 / 16:59:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
523 |
! |
|
524 |
||
525 |
caload |
|
526 |
"raise an error: must be redefined in concrete subclass(es)" |
|
527 |
||
528 |
^ self subclassResponsibility |
|
529 |
! |
|
530 |
||
531 |
castore |
|
532 |
"raise an error: must be redefined in concrete subclass(es)" |
|
533 |
||
534 |
^ self subclassResponsibility |
|
535 |
! |
|
536 |
||
537 |
checkcast |
|
538 |
"raise an error: must be redefined in concrete subclass(es)" |
|
539 |
||
540 |
^ self subclassResponsibility |
|
541 |
||
542 |
"Created: / 17-03-2011 / 16:57:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
543 |
! |
|
544 |
||
545 |
d2f |
|
546 |
"raise an error: must be redefined in concrete subclass(es)" |
|
547 |
||
548 |
^ self subclassResponsibility |
|
549 |
||
550 |
"Created: / 17-03-2011 / 16:50:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
551 |
! |
|
552 |
||
553 |
d2i |
|
554 |
"raise an error: must be redefined in concrete subclass(es)" |
|
555 |
||
556 |
^ self subclassResponsibility |
|
557 |
||
558 |
"Created: / 17-03-2011 / 16:50:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
559 |
! |
|
560 |
||
561 |
d2l |
|
562 |
"raise an error: must be redefined in concrete subclass(es)" |
|
563 |
||
564 |
^ self subclassResponsibility |
|
565 |
||
566 |
"Created: / 17-03-2011 / 16:50:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
567 |
! |
|
568 |
||
569 |
dadd |
|
570 |
"raise an error: must be redefined in concrete subclass(es)" |
|
571 |
||
572 |
^ self subclassResponsibility |
|
573 |
! |
|
574 |
||
575 |
daload |
|
576 |
"raise an error: must be redefined in concrete subclass(es)" |
|
577 |
||
578 |
^ self subclassResponsibility |
|
579 |
! |
|
580 |
||
581 |
dastore |
|
582 |
"raise an error: must be redefined in concrete subclass(es)" |
|
583 |
||
584 |
^ self subclassResponsibility |
|
585 |
! |
|
586 |
||
587 |
dcmpg |
|
588 |
"raise an error: must be redefined in concrete subclass(es)" |
|
589 |
||
590 |
^ self subclassResponsibility |
|
591 |
||
592 |
"Created: / 17-03-2011 / 16:52:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
593 |
! |
|
594 |
||
595 |
dcmpl |
|
596 |
"raise an error: must be redefined in concrete subclass(es)" |
|
597 |
||
598 |
^ self subclassResponsibility |
|
599 |
||
600 |
"Created: / 17-03-2011 / 16:52:11 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
601 |
! |
|
602 |
||
603 |
dconst: arg |
|
604 |
"Push the double constant <d> (0.0 or 1.0) onto the operand stack. |
|
605 |
stack: nothing -> const |
|
606 |
args: nothing" |
|
607 |
"raise an error: must be redefined in concrete subclass(es)" |
|
608 |
||
609 |
^ self subclassResponsibility |
|
610 |
||
611 |
"Modified: / 17-03-2011 / 15:27:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
612 |
! |
|
613 |
||
614 |
dconst_0 |
|
615 |
" |
|
616 |
Push the double constant <d> (0.0 or 1.0) onto the operand stack. |
|
617 |
stack: nothing -> const |
|
618 |
args: nothing |
|
619 |
" |
|
620 |
self dconst: 0. |
|
621 |
||
622 |
"Created: / 14-03-2011 / 18:02:36 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
623 |
! |
|
624 |
||
625 |
dconst_1 |
|
626 |
" |
|
627 |
Push the double constant <d> (0.0 or 1.0) onto the operand stack. |
|
628 |
stack: nothing -> const |
|
629 |
args: nothing" |
|
630 |
||
631 |
self dconst: 1. |
|
632 |
||
633 |
"Created: / 14-03-2011 / 18:03:26 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
634 |
! |
|
635 |
||
636 |
ddiv |
|
637 |
"raise an error: must be redefined in concrete subclass(es)" |
|
638 |
||
639 |
^ self subclassResponsibility |
|
640 |
||
641 |
"Created: / 17-03-2011 / 16:46:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
642 |
! |
|
643 |
||
644 |
dload |
|
645 |
"raise an error: must be redefined in concrete subclass(es)" |
|
646 |
||
647 |
^ self subclassResponsibility |
|
648 |
||
649 |
"Created: / 17-03-2011 / 15:07:14 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
650 |
! |
|
651 |
||
652 |
dload: arg |
|
653 |
" |
|
654 |
Load double from local variable |
|
655 |
stack: nothing -> value |
|
656 |
args: nothing" |
|
657 |
"raise an error: must be redefined in concrete subclass(es)" |
|
658 |
||
659 |
^ self subclassResponsibility |
|
660 |
" |
|
661 |
Description |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
662 |
Both <n> and <n> + 1 must be indices into the local variable array of the current frame (3.6). |
749 | 663 |
The local variable at <n> must contain a double. The value of the local variable at <n> is pushed |
664 |
onto the operand stack. |
|
665 |
||
666 |
Notes |
|
667 |
Each of the dload_<n> instructions is the same as dload with an index of <n>, except that the |
|
668 |
operand <n> is implicit." |
|
669 |
||
670 |
"Modified: / 17-03-2011 / 15:26:26 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
671 |
! |
|
672 |
||
673 |
dload_0 |
|
674 |
" |
|
675 |
Load double from local variable |
|
676 |
stack: nothing -> value |
|
677 |
args: nothing" |
|
678 |
||
679 |
self dload: 0. |
|
680 |
||
681 |
" |
|
682 |
Description |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
683 |
Both <n> and <n> + 1 must be indices into the local variable array of the current frame (3.6). |
749 | 684 |
The local variable at <n> must contain a double. The value of the local variable at <n> is pushed |
685 |
onto the operand stack. |
|
686 |
||
687 |
Notes |
|
688 |
Each of the dload_<n> instructions is the same as dload with an index of <n>, except that the |
|
689 |
operand <n> is implicit." |
|
690 |
||
691 |
"Created: / 13-03-2011 / 17:55:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
692 |
! |
|
693 |
||
694 |
dload_1 |
|
695 |
self dload: 1. |
|
696 |
||
697 |
"Created: / 13-03-2011 / 17:55:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
698 |
! |
|
699 |
||
700 |
dload_2 |
|
701 |
self dload: 2. |
|
702 |
||
703 |
"Created: / 13-03-2011 / 17:55:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
704 |
! |
|
705 |
||
706 |
dload_3 |
|
707 |
self dload: 3. |
|
708 |
||
709 |
"Created: / 13-03-2011 / 17:55:45 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
710 |
! |
|
711 |
||
712 |
dmul |
|
713 |
"raise an error: must be redefined in concrete subclass(es)" |
|
714 |
||
715 |
^ self subclassResponsibility |
|
716 |
||
717 |
"Created: / 17-03-2011 / 16:46:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
718 |
! |
|
719 |
||
720 |
dneg |
|
721 |
"raise an error: must be redefined in concrete subclass(es)" |
|
722 |
||
723 |
^ self subclassResponsibility |
|
724 |
||
725 |
"Created: / 17-03-2011 / 16:47:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
726 |
! |
|
727 |
||
728 |
drem |
|
729 |
"raise an error: must be redefined in concrete subclass(es)" |
|
730 |
||
731 |
^ self subclassResponsibility |
|
732 |
||
733 |
"Created: / 17-03-2011 / 16:47:05 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
734 |
! |
|
735 |
||
736 |
dreturn |
|
737 |
"raise an error: must be redefined in concrete subclass(es)" |
|
738 |
||
739 |
^ self subclassResponsibility |
|
740 |
! |
|
741 |
||
742 |
dstore |
|
743 |
"raise an error: must be redefined in concrete subclass(es)" |
|
744 |
||
745 |
^ self subclassResponsibility |
|
746 |
! |
|
747 |
||
748 |
dstore: arg |
|
749 |
" |
|
750 |
Store double into local variable |
|
751 |
stack: value -> nothing |
|
752 |
args: nothing" |
|
753 |
"raise an error: must be redefined in concrete subclass(es)" |
|
754 |
||
755 |
^ self subclassResponsibility |
|
756 |
" |
|
757 |
Description |
|
758 |
Both <n> and <n> + 1 must be indices into the local variable array of the |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
759 |
current frame (3.6). The value on the top of the operand stack must be of |
749 | 760 |
type double. It is popped from the operand stack and undergoes value set |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
761 |
conversion (3.8.3), resulting in value'. The local variables at <n> and |
749 | 762 |
<n> + 1 are set to value'. |
763 |
||
764 |
Notes |
|
765 |
Each of the dstore_<n> instructions is the same as dstore with an index |
|
766 |
of <n>, except that the operand <n> is implicit." |
|
767 |
||
768 |
"Modified: / 17-03-2011 / 15:28:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
769 |
! |
|
770 |
||
771 |
dstore_0 |
|
772 |
" |
|
773 |
Store double into local variable |
|
774 |
stack: value -> nothing |
|
775 |
args: nothing" |
|
776 |
||
777 |
self dstore: 0. |
|
778 |
||
779 |
" |
|
780 |
Description |
|
781 |
Both <n> and <n> + 1 must be indices into the local variable array of the |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
782 |
current frame (3.6). The value on the top of the operand stack must be of |
749 | 783 |
type double. It is popped from the operand stack and undergoes value set |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
784 |
conversion (3.8.3), resulting in value'. The local variables at <n> and |
749 | 785 |
<n> + 1 are set to value'. |
786 |
||
787 |
Notes |
|
788 |
Each of the dstore_<n> instructions is the same as dstore with an index |
|
789 |
of <n>, except that the operand <n> is implicit." |
|
790 |
||
791 |
"Created: / 14-03-2011 / 19:04:44 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
792 |
! |
|
793 |
||
794 |
dstore_1 |
|
795 |
" |
|
796 |
Store double into local variable |
|
797 |
stack: value -> nothing |
|
798 |
args: nothing |
|
799 |
" |
|
800 |
||
801 |
self dstore: 1. |
|
802 |
" |
|
803 |
Description |
|
804 |
Both <n> and <n> + 1 must be indices into the local variable array of the |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
805 |
current frame (3.6). The value on the top of the operand stack must be of |
749 | 806 |
type double. It is popped from the operand stack and undergoes value set |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
807 |
conversion (3.8.3), resulting in value'. The local variables at <n> and |
749 | 808 |
<n> + 1 are set to value'. |
809 |
||
810 |
Notes |
|
811 |
Each of the dstore_<n> instructions is the same as dstore with an index |
|
812 |
of <n>, except that the operand <n> is implicit. |
|
813 |
" |
|
814 |
||
815 |
"Created: / 14-03-2011 / 19:04:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
816 |
! |
|
817 |
||
818 |
dstore_2 |
|
819 |
" |
|
820 |
Store double into local variable |
|
821 |
stack: value -> nothing |
|
822 |
args: nothing" |
|
823 |
||
824 |
self dstore: 2. |
|
825 |
||
826 |
" |
|
827 |
Description |
|
828 |
Both <n> and <n> + 1 must be indices into the local variable array of the |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
829 |
current frame (3.6). The value on the top of the operand stack must be of |
749 | 830 |
type double. It is popped from the operand stack and undergoes value set |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
831 |
conversion (3.8.3), resulting in value'. The local variables at <n> and |
749 | 832 |
<n> + 1 are set to value'. |
833 |
||
834 |
Notes |
|
835 |
Each of the dstore_<n> instructions is the same as dstore with an index |
|
836 |
of <n>, except that the operand <n> is implicit." |
|
837 |
||
838 |
"Created: / 14-03-2011 / 19:04:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
839 |
! |
|
840 |
||
841 |
dstore_3 |
|
842 |
" |
|
843 |
Store double into local variable |
|
844 |
stack: value -> nothing |
|
845 |
args: nothing" |
|
846 |
||
847 |
self dstore: 3. |
|
848 |
||
849 |
" |
|
850 |
Description |
|
851 |
Both <n> and <n> + 1 must be indices into the local variable array of the |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
852 |
current frame (3.6). The value on the top of the operand stack must be of |
749 | 853 |
type double. It is popped from the operand stack and undergoes value set |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
854 |
conversion (3.8.3), resulting in value'. The local variables at <n> and |
749 | 855 |
<n> + 1 are set to value'. |
856 |
||
857 |
Notes |
|
858 |
Each of the dstore_<n> instructions is the same as dstore with an index |
|
859 |
of <n>, except that the operand <n> is implicit." |
|
860 |
||
861 |
"Created: / 14-03-2011 / 19:04:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
862 |
! |
|
863 |
||
864 |
dsub |
|
865 |
"raise an error: must be redefined in concrete subclass(es)" |
|
866 |
||
867 |
^ self subclassResponsibility |
|
868 |
||
869 |
"Created: / 17-03-2011 / 16:45:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
870 |
! |
|
871 |
||
872 |
dup |
|
873 |
"raise an error: must be redefined in concrete subclass(es)" |
|
874 |
||
875 |
^ self subclassResponsibility |
|
876 |
||
877 |
"Created: / 17-03-2011 / 16:44:08 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
878 |
! |
|
879 |
||
880 |
dup2 |
|
881 |
"raise an error: must be redefined in concrete subclass(es)" |
|
882 |
||
883 |
^ self subclassResponsibility |
|
884 |
! |
|
885 |
||
886 |
dup2_x1 |
|
887 |
"raise an error: must be redefined in concrete subclass(es)" |
|
888 |
||
889 |
^ self subclassResponsibility |
|
890 |
! |
|
891 |
||
892 |
dup2_x2 |
|
893 |
"raise an error: must be redefined in concrete subclass(es)" |
|
894 |
||
895 |
^ self subclassResponsibility |
|
896 |
! |
|
897 |
||
898 |
dup_x1 |
|
899 |
"raise an error: must be redefined in concrete subclass(es)" |
|
900 |
||
901 |
^ self subclassResponsibility |
|
902 |
! |
|
903 |
||
904 |
dup_x2 |
|
905 |
"raise an error: must be redefined in concrete subclass(es)" |
|
906 |
||
907 |
^ self subclassResponsibility |
|
908 |
! |
|
909 |
||
910 |
f2d |
|
911 |
"raise an error: must be redefined in concrete subclass(es)" |
|
912 |
||
913 |
^ self subclassResponsibility |
|
914 |
||
915 |
"Created: / 17-03-2011 / 16:50:35 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
916 |
! |
|
917 |
||
918 |
f2i |
|
919 |
"raise an error: must be redefined in concrete subclass(es)" |
|
920 |
||
921 |
^ self subclassResponsibility |
|
922 |
||
923 |
"Created: / 17-03-2011 / 16:50:26 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
924 |
! |
|
925 |
||
926 |
f2l |
|
927 |
"raise an error: must be redefined in concrete subclass(es)" |
|
928 |
||
929 |
^ self subclassResponsibility |
|
930 |
||
931 |
"Created: / 17-03-2011 / 16:50:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
932 |
! |
|
933 |
||
934 |
fadd |
|
935 |
"raise an error: must be redefined in concrete subclass(es)" |
|
936 |
||
937 |
^ self subclassResponsibility |
|
938 |
||
939 |
"Created: / 17-03-2011 / 16:44:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
940 |
! |
|
941 |
||
942 |
faload |
|
943 |
"raise an error: must be redefined in concrete subclass(es)" |
|
944 |
||
945 |
^ self subclassResponsibility |
|
946 |
! |
|
947 |
||
948 |
fastore |
|
949 |
"raise an error: must be redefined in concrete subclass(es)" |
|
950 |
||
951 |
^ self subclassResponsibility |
|
952 |
! |
|
953 |
||
954 |
fcmpg |
|
955 |
"raise an error: must be redefined in concrete subclass(es)" |
|
956 |
||
957 |
^ self subclassResponsibility |
|
958 |
||
959 |
"Created: / 17-03-2011 / 16:52:00 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
960 |
! |
|
961 |
||
962 |
fcmpl |
|
963 |
"raise an error: must be redefined in concrete subclass(es)" |
|
964 |
||
965 |
^ self subclassResponsibility |
|
966 |
||
967 |
"Created: / 17-03-2011 / 16:51:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
968 |
! |
|
969 |
||
970 |
fconst: arg |
|
971 |
" |
|
972 |
Push float constant |
|
973 |
stack: nothing -> const |
|
974 |
arg: nothing" |
|
975 |
"raise an error: must be redefined in concrete subclass(es)" |
|
976 |
||
977 |
^ self subclassResponsibility. |
|
978 |
" |
|
979 |
Description |
|
980 |
Push the float constant <f> (0.0, 1.0, or 2.0) onto the operand stack." |
|
981 |
||
982 |
"Modified: / 17-03-2011 / 15:28:47 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
983 |
! |
|
984 |
||
985 |
fconst_0 |
|
986 |
" |
|
987 |
Push float constant |
|
988 |
stack: nothing -> const |
|
989 |
arg: nothing" |
|
990 |
||
991 |
self fconst: 0. |
|
992 |
||
993 |
" |
|
994 |
Description |
|
995 |
Push the float constant <f> (0.0, 1.0, or 2.0) onto the operand stack." |
|
996 |
||
997 |
"Created: / 14-03-2011 / 17:56:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
998 |
! |
|
999 |
||
1000 |
fconst_1 |
|
1001 |
" |
|
1002 |
Push float constant |
|
1003 |
stack: nothing -> const |
|
1004 |
arg: nothing" |
|
1005 |
||
1006 |
self fconst: 1. |
|
1007 |
||
1008 |
" |
|
1009 |
Description |
|
1010 |
Push the float constant <f> (0.0, 1.0, or 2.0) onto the operand stack." |
|
1011 |
||
1012 |
"Created: / 14-03-2011 / 17:57:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1013 |
! |
|
1014 |
||
1015 |
fconst_2 |
|
1016 |
" |
|
1017 |
Push float constant |
|
1018 |
stack: nothing -> const |
|
1019 |
arg: nothing" |
|
1020 |
||
1021 |
self fconst: 2. |
|
1022 |
||
1023 |
" |
|
1024 |
Description |
|
1025 |
Push the float constant <f> (0.0, 1.0, or 2.0) onto the operand stack." |
|
1026 |
||
1027 |
"Created: / 14-03-2011 / 17:57:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1028 |
! |
|
1029 |
||
1030 |
fdiv |
|
1031 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1032 |
||
1033 |
^ self subclassResponsibility |
|
1034 |
||
1035 |
"Created: / 17-03-2011 / 16:46:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1036 |
! |
|
1037 |
||
1038 |
fload |
|
1039 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1040 |
||
1041 |
^ self subclassResponsibility |
|
1042 |
||
1043 |
"Created: / 17-03-2011 / 15:07:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1044 |
! |
|
1045 |
||
1046 |
fload:arg |
|
1047 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1048 |
||
1049 |
^ self subclassResponsibility |
|
1050 |
! |
|
1051 |
||
1052 |
fload_0 |
|
1053 |
^ self fload: 0. |
|
1054 |
||
1055 |
"Created: / 17-03-2011 / 16:34:59 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1056 |
! |
|
1057 |
||
1058 |
fload_1 |
|
1059 |
^ self fload: 1. |
|
1060 |
||
1061 |
"Created: / 17-03-2011 / 16:35:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1062 |
! |
|
1063 |
||
1064 |
fload_2 |
|
1065 |
^ self fload: 2. |
|
1066 |
||
1067 |
"Created: / 17-03-2011 / 16:35:06 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1068 |
! |
|
1069 |
||
1070 |
fload_3 |
|
1071 |
^ self fload: 3. |
|
1072 |
||
1073 |
"Created: / 17-03-2011 / 16:35:11 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1074 |
! |
|
1075 |
||
1076 |
fmul |
|
1077 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1078 |
||
1079 |
^ self subclassResponsibility |
|
1080 |
||
1081 |
"Created: / 17-03-2011 / 16:45:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1082 |
! |
|
1083 |
||
1084 |
fneg |
|
1085 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1086 |
||
1087 |
^ self subclassResponsibility |
|
1088 |
||
1089 |
"Created: / 17-03-2011 / 16:47:40 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1090 |
! |
|
1091 |
||
1092 |
frem |
|
1093 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1094 |
||
1095 |
^ self subclassResponsibility |
|
1096 |
||
1097 |
"Created: / 17-03-2011 / 16:46:47 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1098 |
! |
|
1099 |
||
1100 |
freturn |
|
1101 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1102 |
||
1103 |
^ self subclassResponsibility |
|
1104 |
||
1105 |
"Created: / 17-03-2011 / 16:55:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1106 |
! |
|
1107 |
||
1108 |
fstore |
|
1109 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1110 |
||
1111 |
^ self subclassResponsibility |
|
1112 |
! |
|
1113 |
||
1114 |
fstore: arg |
|
1115 |
" |
|
1116 |
Store float into local variable |
|
1117 |
stack: value -> nothing |
|
1118 |
args: index" |
|
1119 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1120 |
||
1121 |
^ self subclassResponsibility |
|
1122 |
" |
|
1123 |
Description |
|
1124 |
The index is an unsigned byte that must be an index into the local |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
1125 |
variable array of the current frame (3.6). The value on the top of |
749 | 1126 |
the operand stack must be of type float. It is popped from the operand |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
1127 |
stack and undergoes value set conversion (3.8.3), resulting in value'. |
749 | 1128 |
The value of the local variable at index is set to value'. |
1129 |
||
1130 |
Notes |
|
1131 |
The fstore opcode can be used in conjunction with the wide instruction |
|
1132 |
to access a local variable using a two-byte unsigned index." |
|
1133 |
||
1134 |
"Modified: / 17-03-2011 / 15:29:22 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1135 |
! |
|
1136 |
||
1137 |
fstore_0 |
|
1138 |
" |
|
1139 |
Store float into local variable |
|
1140 |
stack: value -> nothing |
|
1141 |
args: index" |
|
1142 |
||
1143 |
self fstore: 0. |
|
1144 |
||
1145 |
" |
|
1146 |
Description |
|
1147 |
The index is an unsigned byte that must be an index into the local |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
1148 |
variable array of the current frame (3.6). The value on the top of |
749 | 1149 |
the operand stack must be of type float. It is popped from the operand |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
1150 |
stack and undergoes value set conversion (3.8.3), resulting in value'. |
749 | 1151 |
The value of the local variable at index is set to value'. |
1152 |
||
1153 |
Notes |
|
1154 |
The fstore opcode can be used in conjunction with the wide instruction |
|
1155 |
to access a local variable using a two-byte unsigned index." |
|
1156 |
||
1157 |
"Created: / 14-03-2011 / 17:59:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1158 |
! |
|
1159 |
||
1160 |
fstore_1 |
|
1161 |
" |
|
1162 |
Store float into local variable |
|
1163 |
stack: value -> nothing |
|
1164 |
args: index" |
|
1165 |
||
1166 |
self fstore: 1. |
|
1167 |
||
1168 |
" |
|
1169 |
Description |
|
1170 |
The index is an unsigned byte that must be an index into the local |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
1171 |
variable array of the current frame (3.6). The value on the top of |
749 | 1172 |
the operand stack must be of type float. It is popped from the operand |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
1173 |
stack and undergoes value set conversion (3.8.3), resulting in value'. |
749 | 1174 |
The value of the local variable at index is set to value'. |
1175 |
||
1176 |
Notes |
|
1177 |
The fstore opcode can be used in conjunction with the wide instruction |
|
1178 |
to access a local variable using a two-byte unsigned index." |
|
1179 |
||
1180 |
"Created: / 14-03-2011 / 17:59:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1181 |
! |
|
1182 |
||
1183 |
fstore_2 |
|
1184 |
" |
|
1185 |
Store float into local variable |
|
1186 |
stack: value -> nothing |
|
1187 |
args: index" |
|
1188 |
||
1189 |
self fstore: 2. |
|
1190 |
||
1191 |
" |
|
1192 |
Description |
|
1193 |
The index is an unsigned byte that must be an index into the local |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
1194 |
variable array of the current frame (3.6). The value on the top of |
749 | 1195 |
the operand stack must be of type float. It is popped from the operand |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
1196 |
stack and undergoes value set conversion (3.8.3), resulting in value'. |
749 | 1197 |
The value of the local variable at index is set to value'. |
1198 |
||
1199 |
Notes |
|
1200 |
The fstore opcode can be used in conjunction with the wide instruction |
|
1201 |
to access a local variable using a two-byte unsigned index." |
|
1202 |
||
1203 |
"Created: / 14-03-2011 / 18:00:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1204 |
! |
|
1205 |
||
1206 |
fstore_3 |
|
1207 |
" |
|
1208 |
Store float into local variable |
|
1209 |
stack: value -> nothing |
|
1210 |
args: index" |
|
1211 |
||
1212 |
self fstore: 3. |
|
1213 |
||
1214 |
" |
|
1215 |
Description |
|
1216 |
The index is an unsigned byte that must be an index into the local |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
1217 |
variable array of the current frame (3.6). The value on the top of |
749 | 1218 |
the operand stack must be of type float. It is popped from the operand |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
1219 |
stack and undergoes value set conversion (3.8.3), resulting in value'. |
749 | 1220 |
The value of the local variable at index is set to value'. |
1221 |
||
1222 |
Notes |
|
1223 |
The fstore opcode can be used in conjunction with the wide instruction |
|
1224 |
to access a local variable using a two-byte unsigned index." |
|
1225 |
||
1226 |
"Created: / 14-03-2011 / 18:00:08 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1227 |
! |
|
1228 |
||
1229 |
fsub |
|
1230 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1231 |
||
1232 |
^ self subclassResponsibility |
|
1233 |
||
1234 |
"Created: / 17-03-2011 / 16:45:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1235 |
! |
|
1236 |
||
1237 |
getfield |
|
1238 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1239 |
||
1240 |
^ self subclassResponsibility |
|
1241 |
! |
|
1242 |
||
1243 |
getstatic |
|
1244 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1245 |
||
1246 |
^ self subclassResponsibility |
|
1247 |
||
1248 |
"Created: / 17-03-2011 / 16:55:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1249 |
! |
|
1250 |
||
1251 |
goto |
|
1252 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1253 |
||
1254 |
^ self subclassResponsibility |
|
1255 |
! |
|
1256 |
||
1257 |
goto_w |
|
1258 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1259 |
||
1260 |
^ self subclassResponsibility |
|
1261 |
||
1262 |
"Created: / 17-03-2011 / 16:58:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1263 |
! |
|
1264 |
||
1265 |
i2d |
|
1266 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1267 |
||
1268 |
^ self subclassResponsibility |
|
1269 |
||
1270 |
"Created: / 17-03-2011 / 16:50:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1271 |
! |
|
1272 |
||
1273 |
i2f |
|
1274 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1275 |
||
1276 |
^ self subclassResponsibility |
|
1277 |
||
1278 |
"Created: / 17-03-2011 / 16:49:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1279 |
! |
|
1280 |
||
1281 |
i2l |
|
1282 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1283 |
||
1284 |
^ self subclassResponsibility |
|
1285 |
||
1286 |
"Created: / 17-03-2011 / 16:49:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1287 |
! |
|
1288 |
||
1289 |
i_dup |
|
1290 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1291 |
||
1292 |
^ self subclassResponsibility |
|
1293 |
! |
|
1294 |
||
1295 |
iadd |
|
1296 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1297 |
||
1298 |
^ self subclassResponsibility |
|
1299 |
! |
|
1300 |
||
1301 |
iaload |
|
1302 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1303 |
||
1304 |
^ self subclassResponsibility |
|
1305 |
! |
|
1306 |
||
1307 |
iand |
|
1308 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1309 |
||
1310 |
^ self subclassResponsibility |
|
1311 |
! |
|
1312 |
||
1313 |
iastore |
|
1314 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1315 |
||
1316 |
^ self subclassResponsibility |
|
1317 |
! |
|
1318 |
||
1319 |
iconst: arg |
|
1320 |
" |
|
1321 |
Push int constant |
|
1322 |
stack: nothing -> const |
|
1323 |
arg: nothing" |
|
1324 |
||
1325 |
self subclassResponsibility. |
|
1326 |
||
1327 |
" |
|
1328 |
Description |
|
1329 |
Push the int constant <i> (-1, 0, 1, 2, 3, 4 or 5) onto the operand stack. |
|
1330 |
||
1331 |
Notes |
|
1332 |
Each of this family of instructions is equivalent to bipush <i> for the |
|
1333 |
respective value of <i>, except that the operand <i> is implicit." |
|
1334 |
||
1335 |
"Created: / 17-03-2011 / 15:29:48 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1336 |
"Modified: / 20-03-2011 / 20:41:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1337 |
! |
|
1338 |
||
1339 |
iconst_0 |
|
1340 |
" |
|
1341 |
Push int constant |
|
1342 |
stack: nothing -> const |
|
1343 |
arg: nothing" |
|
1344 |
||
1345 |
self iconst: 0. |
|
1346 |
||
1347 |
" |
|
1348 |
Description |
|
1349 |
Push the int constant <i> (-1, 0, 1, 2, 3, 4 or 5) onto the operand stack. |
|
1350 |
||
1351 |
Notes |
|
1352 |
Each of this family of instructions is equivalent to bipush <i> for the |
|
1353 |
respective value of <i>, except that the operand <i> is implicit." |
|
1354 |
||
1355 |
"Modified: / 17-03-2011 / 15:30:00 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1356 |
! |
|
1357 |
||
1358 |
iconst_1 |
|
1359 |
self iconst:1. |
|
1360 |
||
1361 |
"Modified: / 17-03-2011 / 15:30:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1362 |
! |
|
1363 |
||
1364 |
iconst_2 |
|
1365 |
self iconst: 2. |
|
1366 |
||
1367 |
"Modified: / 17-03-2011 / 15:30:11 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1368 |
! |
|
1369 |
||
1370 |
iconst_3 |
|
1371 |
self iconst: 3. |
|
1372 |
||
1373 |
"Modified: / 17-03-2011 / 15:30:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1374 |
! |
|
1375 |
||
1376 |
iconst_4 |
|
1377 |
self iconst: 4. |
|
1378 |
||
1379 |
"Modified: / 17-03-2011 / 15:30:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1380 |
! |
|
1381 |
||
1382 |
iconst_5 |
|
1383 |
self iconst: 5. |
|
1384 |
||
1385 |
"Modified: / 17-03-2011 / 15:30:22 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1386 |
! |
|
1387 |
||
1388 |
iconst_m1 |
|
1389 |
self iconst: -1. |
|
1390 |
||
1391 |
"Modified: / 17-03-2011 / 15:30:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1392 |
! |
|
1393 |
||
1394 |
idiv |
|
1395 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1396 |
||
1397 |
^ self subclassResponsibility |
|
1398 |
! |
|
1399 |
||
1400 |
ifacmpeq |
|
1401 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1402 |
||
1403 |
^ self subclassResponsibility |
|
1404 |
||
1405 |
"Created: / 17-03-2011 / 16:53:47 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1406 |
! |
|
1407 |
||
1408 |
ifacmpne |
|
1409 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1410 |
||
1411 |
^ self subclassResponsibility |
|
1412 |
||
1413 |
"Created: / 17-03-2011 / 16:53:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1414 |
! |
|
1415 |
||
1416 |
ifeq |
|
1417 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1418 |
||
1419 |
^ self subclassResponsibility |
|
1420 |
! |
|
1421 |
||
1422 |
ifge |
|
1423 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1424 |
||
1425 |
^ self subclassResponsibility |
|
1426 |
! |
|
1427 |
||
1428 |
ifgt |
|
1429 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1430 |
||
1431 |
^ self subclassResponsibility |
|
1432 |
! |
|
1433 |
||
1434 |
ificmpeq |
|
1435 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1436 |
||
1437 |
^ self subclassResponsibility |
|
1438 |
! |
|
1439 |
||
1440 |
ificmpge |
|
1441 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1442 |
||
1443 |
^ self subclassResponsibility |
|
1444 |
! |
|
1445 |
||
1446 |
ificmpgt |
|
1447 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1448 |
||
1449 |
^ self subclassResponsibility |
|
1450 |
! |
|
1451 |
||
1452 |
ificmple |
|
1453 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1454 |
||
1455 |
^ self subclassResponsibility |
|
1456 |
! |
|
1457 |
||
1458 |
ificmplt |
|
1459 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1460 |
||
1461 |
^ self subclassResponsibility |
|
1462 |
! |
|
1463 |
||
1464 |
ificmpne |
|
1465 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1466 |
||
1467 |
^ self subclassResponsibility |
|
1468 |
! |
|
1469 |
||
1470 |
ifle |
|
1471 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1472 |
||
1473 |
^ self subclassResponsibility |
|
1474 |
! |
|
1475 |
||
1476 |
iflt |
|
1477 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1478 |
||
1479 |
^ self subclassResponsibility |
|
1480 |
! |
|
1481 |
||
1482 |
ifne |
|
1483 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1484 |
||
1485 |
^ self subclassResponsibility |
|
1486 |
! |
|
1487 |
||
1488 |
ifnonnull |
|
1489 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1490 |
||
1491 |
^ self subclassResponsibility |
|
1492 |
||
1493 |
"Created: / 17-03-2011 / 16:58:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1494 |
! |
|
1495 |
||
1496 |
ifnull |
|
1497 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1498 |
||
1499 |
^ self subclassResponsibility |
|
1500 |
||
1501 |
"Created: / 17-03-2011 / 16:58:32 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1502 |
! |
|
1503 |
||
1504 |
iinc |
|
1505 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1506 |
||
1507 |
^ self subclassResponsibility |
|
1508 |
! |
|
1509 |
||
3586
27ad5c699e3f
More work on Smalltalk bytecode interpreter.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3536
diff
changeset
|
1510 |
iload |
27ad5c699e3f
More work on Smalltalk bytecode interpreter.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3536
diff
changeset
|
1511 |
self iload: self fetchIndex |
749 | 1512 |
|
1513 |
"Created: / 17-03-2011 / 15:06:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
3586
27ad5c699e3f
More work on Smalltalk bytecode interpreter.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3536
diff
changeset
|
1514 |
"Modified: / 16-03-2016 / 00:22:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 1515 |
! |
1516 |
||
1517 |
iload: arg |
|
1518 |
" |
|
1519 |
loads an int value from local variable 0 |
|
1520 |
stack: nothing -> value |
|
1521 |
args: nothing" |
|
1522 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1523 |
||
1524 |
^ self subclassResponsibility |
|
1525 |
" |
|
1526 |
Description |
|
3605
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1527 |
The <n> must be an index into the local variable array of the current frame (§3.6). |
749 | 1528 |
The local variable at <n> must contain an int. The value of the local variable |
1529 |
at <n> is pushed onto the operand stack. |
|
1530 |
||
1531 |
Notes |
|
1532 |
Each of the iload_<n> instructions is the same as iload with an index of <n>, |
|
1533 |
except that the operand <n> is implicit." |
|
1534 |
||
1535 |
"Modified: / 17-03-2011 / 15:30:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1536 |
! |
|
1537 |
||
1538 |
iload_0 |
|
1539 |
" |
|
1540 |
loads an int value from local variable 0 |
|
1541 |
stack: nothing -> value |
|
1542 |
args: nothing" |
|
1543 |
||
1544 |
self iload: 0. |
|
1545 |
||
1546 |
" |
|
1547 |
Description |
|
3605
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1548 |
The <n> must be an index into the local variable array of the current frame (§3.6). |
749 | 1549 |
The local variable at <n> must contain an int. The value of the local variable |
1550 |
at <n> is pushed onto the operand stack. |
|
1551 |
||
1552 |
Notes |
|
1553 |
Each of the iload_<n> instructions is the same as iload with an index of <n>, |
|
1554 |
except that the operand <n> is implicit." |
|
1555 |
||
1556 |
"Created: / 06-03-2011 / 21:22:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1557 |
"Modified: / 13-03-2011 / 20:58:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1558 |
! |
|
1559 |
||
1560 |
iload_1 |
|
1561 |
"check iload_0" |
|
1562 |
self iload: 1. |
|
1563 |
||
1564 |
"Created: / 06-03-2011 / 21:22:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1565 |
"Modified: / 13-03-2011 / 16:36:59 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1566 |
! |
|
1567 |
||
1568 |
iload_2 |
|
1569 |
"check iload_0" |
|
1570 |
self iload:2. |
|
1571 |
||
1572 |
"Created: / 06-03-2011 / 21:24:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1573 |
! |
|
1574 |
||
1575 |
iload_3 |
|
1576 |
"check iload_0" |
|
1577 |
||
1578 |
self iload: 3. |
|
1579 |
||
1580 |
"Created: / 14-03-2011 / 19:05:26 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1581 |
! |
|
1582 |
||
1583 |
imul |
|
1584 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1585 |
||
1586 |
^ self subclassResponsibility |
|
1587 |
! |
|
1588 |
||
1589 |
ineg |
|
1590 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1591 |
||
1592 |
^ self subclassResponsibility |
|
1593 |
||
1594 |
"Created: / 17-03-2011 / 16:47:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1595 |
! |
|
1596 |
||
1597 |
instanceof |
|
1598 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1599 |
||
1600 |
^ self subclassResponsibility |
|
1601 |
||
1602 |
"Created: / 17-03-2011 / 16:57:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1603 |
! |
|
1604 |
||
1605 |
int2byte |
|
1606 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1607 |
||
1608 |
^ self subclassResponsibility |
|
1609 |
||
1610 |
"Created: / 17-03-2011 / 16:51:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1611 |
! |
|
1612 |
||
1613 |
int2char |
|
1614 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1615 |
||
1616 |
^ self subclassResponsibility |
|
1617 |
||
1618 |
"Created: / 17-03-2011 / 16:51:08 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1619 |
! |
|
1620 |
||
1621 |
int2short |
|
1622 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1623 |
||
1624 |
^ self subclassResponsibility |
|
1625 |
||
1626 |
"Created: / 17-03-2011 / 16:51:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1627 |
! |
|
1628 |
||
3383
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1629 |
invdynamic |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1630 |
"raise an error: must be redefined in concrete subclass(es)" |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1631 |
|
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1632 |
^ self subclassResponsibility |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1633 |
|
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1634 |
"Created: / 25-02-2015 / 19:35:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1635 |
! |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1636 |
|
749 | 1637 |
invinterface |
1638 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1639 |
||
1640 |
^ self subclassResponsibility |
|
1641 |
||
1642 |
"Created: / 17-03-2011 / 16:56:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1643 |
! |
|
1644 |
||
1645 |
invnonvirt |
|
1646 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1647 |
||
1648 |
^ self subclassResponsibility |
|
1649 |
||
1650 |
"Created: / 17-03-2011 / 16:56:26 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1651 |
! |
|
1652 |
||
1653 |
invstatic |
|
1654 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1655 |
||
1656 |
^ self subclassResponsibility |
|
1657 |
! |
|
1658 |
||
1659 |
invvirt |
|
1660 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1661 |
||
1662 |
^ self subclassResponsibility |
|
1663 |
||
1664 |
"Created: / 17-03-2011 / 16:56:21 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1665 |
! |
|
1666 |
||
1667 |
ior |
|
1668 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1669 |
||
1670 |
^ self subclassResponsibility |
|
1671 |
! |
|
1672 |
||
1673 |
irem |
|
1674 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1675 |
||
1676 |
^ self subclassResponsibility |
|
1677 |
! |
|
1678 |
||
1679 |
ireturn |
|
1680 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1681 |
||
1682 |
^ self subclassResponsibility |
|
1683 |
! |
|
1684 |
||
1685 |
ishl |
|
1686 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1687 |
||
1688 |
^ self subclassResponsibility |
|
1689 |
! |
|
1690 |
||
1691 |
ishr |
|
1692 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1693 |
||
1694 |
^ self subclassResponsibility |
|
1695 |
! |
|
1696 |
||
1697 |
istore |
|
3586
27ad5c699e3f
More work on Smalltalk bytecode interpreter.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3536
diff
changeset
|
1698 |
self istore: self fetchIndex |
749 | 1699 |
|
1700 |
"Created: / 17-03-2011 / 16:36:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
3586
27ad5c699e3f
More work on Smalltalk bytecode interpreter.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3536
diff
changeset
|
1701 |
"Modified: / 16-03-2016 / 00:21:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 1702 |
! |
1703 |
||
1704 |
istore: arg |
|
1705 |
"store int value into variable 0 |
|
1706 |
stack: value -> nothing |
|
1707 |
args: nothing" |
|
1708 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1709 |
||
1710 |
^ self subclassResponsibility |
|
1711 |
" |
|
1712 |
Description |
|
3605
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1713 |
The <n> must be an index into the local variable array of the current frame (§3.6). |
749 | 1714 |
The value on the top of the operand stack must be of type int. It is popped from |
1715 |
the operand stack, and the value of the local variable at <n> is set to value. |
|
1716 |
||
1717 |
Notes |
|
1718 |
Each of the istore_<n> instructions is the same as istore with an index of <n>, |
|
1719 |
except that the operand <n> is implicit." |
|
1720 |
||
1721 |
"Modified: / 17-03-2011 / 15:31:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1722 |
! |
|
1723 |
||
1724 |
istore_0 |
|
1725 |
"store int value into variable 0 |
|
1726 |
stack: value -> nothing |
|
1727 |
args: nothing" |
|
1728 |
||
1729 |
self istore: 0. |
|
1730 |
||
1731 |
" |
|
1732 |
Description |
|
3605
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1733 |
The <n> must be an index into the local variable array of the current frame (§3.6). |
749 | 1734 |
The value on the top of the operand stack must be of type int. It is popped from |
1735 |
the operand stack, and the value of the local variable at <n> is set to value. |
|
1736 |
||
1737 |
Notes |
|
1738 |
Each of the istore_<n> instructions is the same as istore with an index of <n>, |
|
1739 |
except that the operand <n> is implicit." |
|
1740 |
||
1741 |
"Created: / 06-03-2011 / 21:01:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1742 |
"Modified: / 17-03-2011 / 15:31:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1743 |
! |
|
1744 |
||
1745 |
istore_1 |
|
1746 |
"check istore_0" |
|
1747 |
self istore: 1. |
|
1748 |
||
1749 |
"Created: / 06-03-2011 / 21:18:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1750 |
! |
|
1751 |
||
1752 |
istore_2 |
|
1753 |
"check istore_0" |
|
1754 |
self istore: 2. |
|
1755 |
||
1756 |
"Created: / 06-03-2011 / 21:23:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1757 |
! |
|
1758 |
||
1759 |
istore_3 |
|
1760 |
"check istore_0" |
|
1761 |
||
1762 |
self istore: 3. |
|
1763 |
||
1764 |
"Created: / 14-03-2011 / 19:05:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1765 |
! |
|
1766 |
||
1767 |
isub |
|
1768 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1769 |
||
1770 |
^ self subclassResponsibility |
|
1771 |
! |
|
1772 |
||
1773 |
iushr |
|
1774 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1775 |
||
1776 |
^ self subclassResponsibility |
|
1777 |
! |
|
1778 |
||
1779 |
ixor |
|
1780 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1781 |
||
1782 |
^ self subclassResponsibility |
|
1783 |
! |
|
1784 |
||
1785 |
jsr |
|
1786 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1787 |
||
1788 |
^ self subclassResponsibility |
|
1789 |
||
1790 |
"Created: / 17-03-2011 / 16:54:10 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1791 |
! |
|
1792 |
||
1793 |
jsr_w |
|
1794 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1795 |
||
1796 |
^ self subclassResponsibility |
|
1797 |
||
1798 |
"Created: / 17-03-2011 / 16:58:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1799 |
! |
|
1800 |
||
1801 |
l2d |
|
1802 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1803 |
||
1804 |
^ self subclassResponsibility |
|
1805 |
||
1806 |
"Created: / 17-03-2011 / 16:50:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1807 |
! |
|
1808 |
||
1809 |
l2f |
|
1810 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1811 |
||
1812 |
^ self subclassResponsibility |
|
1813 |
||
1814 |
"Created: / 17-03-2011 / 16:50:14 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1815 |
! |
|
1816 |
||
1817 |
l2i |
|
1818 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1819 |
||
1820 |
^ self subclassResponsibility |
|
1821 |
||
1822 |
"Created: / 17-03-2011 / 16:50:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1823 |
! |
|
1824 |
||
1825 |
ladd |
|
1826 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1827 |
||
1828 |
^ self subclassResponsibility |
|
1829 |
||
1830 |
"Created: / 17-03-2011 / 16:44:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1831 |
! |
|
1832 |
||
1833 |
laload |
|
1834 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1835 |
||
1836 |
^ self subclassResponsibility |
|
1837 |
! |
|
1838 |
||
1839 |
land |
|
1840 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1841 |
||
1842 |
^ self subclassResponsibility |
|
1843 |
||
1844 |
"Created: / 17-03-2011 / 16:48:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1845 |
! |
|
1846 |
||
1847 |
lastore |
|
1848 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1849 |
||
1850 |
^ self subclassResponsibility |
|
1851 |
! |
|
1852 |
||
1853 |
lcmp |
|
1854 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1855 |
||
1856 |
^ self subclassResponsibility |
|
1857 |
||
1858 |
"Created: / 17-03-2011 / 16:51:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1859 |
! |
|
1860 |
||
1861 |
lconst: arg |
|
1862 |
" |
|
1863 |
Push long constant |
|
1864 |
stack: nothing -> const |
|
1865 |
arg: nothing" |
|
1866 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1867 |
||
1868 |
^ self subclassResponsibility |
|
1869 |
" |
|
1870 |
Push the long constant <l> (0 or 1) onto the operand stack." |
|
1871 |
||
1872 |
"Modified: / 17-03-2011 / 16:30:28 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1873 |
! |
|
1874 |
||
1875 |
lconst_0 |
|
1876 |
" |
|
1877 |
Push long constant |
|
1878 |
stack: nothing -> const |
|
1879 |
arg: nothing" |
|
1880 |
||
1881 |
self lconst: 0. |
|
1882 |
||
1883 |
" |
|
1884 |
Push the long constant <l> (0 or 1) onto the operand stack." |
|
1885 |
||
1886 |
"Created: / 14-03-2011 / 17:53:32 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1887 |
"Modified: / 17-03-2011 / 16:28:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1888 |
! |
|
1889 |
||
1890 |
lconst_1 |
|
1891 |
" |
|
1892 |
Push long constant |
|
1893 |
stack: nothing -> const |
|
1894 |
arg: nothing" |
|
1895 |
||
1896 |
self lconst: 1. |
|
1897 |
||
1898 |
" |
|
1899 |
Push the long constant <l> (0 or 1) onto the operand stack." |
|
1900 |
||
1901 |
"Created: / 14-03-2011 / 17:53:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1902 |
"Modified: / 17-03-2011 / 16:29:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1903 |
! |
|
1904 |
||
1905 |
ldc1 |
|
1906 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1907 |
||
1908 |
^ self subclassResponsibility |
|
3605
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1909 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1910 |
" |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1911 |
Operation |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1912 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1913 |
Push item from run-time constant pool |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1914 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1915 |
Format |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1916 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1917 |
ldc |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1918 |
index |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1919 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1920 |
Forms |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1921 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1922 |
ldc = 18 (0x12) |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1923 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1924 |
Operand Stack |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1925 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1926 |
... → |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1927 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1928 |
..., value |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1929 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1930 |
Description |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1931 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1932 |
The index is an unsigned byte that must be a valid index into |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1933 |
the run-time constant pool of the current class ([384]§2.6). |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1934 |
The run-time constant pool entry at index either must be a |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1935 |
run-time constant of type int or float, or a reference to a |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1936 |
string literal, or a symbolic reference to a class, method |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1937 |
type, or method handle ([385]§5.1). |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1938 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1939 |
If the run-time constant pool entry is a run-time constant of |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1940 |
type int or float, the numeric value of that run-time constant |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1941 |
is pushed onto the operand stack as an int or float, |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1942 |
respectively. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1943 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1944 |
Otherwise, if the run-time constant pool entry is a reference |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1945 |
to an instance of class String representing a string literal |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1946 |
([386]§5.1), then a reference to that instance, value, is |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1947 |
pushed onto the operand stack. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1948 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1949 |
Otherwise, if the run-time constant pool entry is a symbolic |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1950 |
reference to a class ([387]§5.1), then the named class is |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1951 |
resolved ([388]§5.4.3.1) and a reference to the Class object |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1952 |
representing that class, value, is pushed onto the operand |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1953 |
stack. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1954 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1955 |
Otherwise, the run-time constant pool entry must be a symbolic |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1956 |
reference to a method type or a method handle ([389]§5.1). The |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1957 |
method type or method handle is resolved ([390]§5.4.3.5) and a |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1958 |
reference to the resulting instance of |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1959 |
java.lang.invoke.MethodType or java.lang.invoke.MethodHandle, |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1960 |
value, is pushed onto the operand stack. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1961 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1962 |
Linking Exceptions |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1963 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1964 |
During resolution of a symbolic reference to a class, any of |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1965 |
the exceptions pertaining to class resolution ([391]§5.4.3.1) |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1966 |
can be thrown. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1967 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1968 |
During resolution of a symbolic reference to a method type or |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1969 |
method handle, any of the exception pertaining to method type |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1970 |
or method handle resolution ([392]§5.4.3.5) can be thrown. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1971 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1972 |
Notes |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1973 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1974 |
The ldc instruction can only be used to push a value of type |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1975 |
float taken from the float value set ([393]§2.3.2) because a |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1976 |
constant of type float in the constant pool ([394]§4.4.4) must |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1977 |
be taken from the float value set. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1978 |
" |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1979 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1980 |
"Modified (comment): / 29-07-2016 / 09:11:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 1981 |
! |
1982 |
||
1983 |
ldc2 |
|
1984 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1985 |
||
1986 |
^ self subclassResponsibility |
|
3605
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1987 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1988 |
" |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1989 |
ldc_w |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1990 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1991 |
Operation |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1992 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1993 |
Push item from run-time constant pool (wide index) |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1994 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1995 |
Format |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1996 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1997 |
ldc_w |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1998 |
indexbyte1 |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
1999 |
indexbyte2 |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2000 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2001 |
Forms |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2002 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2003 |
ldc_w = 19 (0x13) |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2004 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2005 |
Operand Stack |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2006 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2007 |
... → |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2008 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2009 |
..., value |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2010 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2011 |
Description |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2012 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2013 |
The unsigned indexbyte1 and indexbyte2 are assembled into an |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2014 |
unsigned 16-bit index into the run-time constant pool of the |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2015 |
current class ([395]§2.6), where the value of the index is |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2016 |
calculated as (indexbyte1 << 8) | indexbyte2. The index must be |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2017 |
a valid index into the run-time constant pool of the current |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2018 |
class. The run-time constant pool entry at the index either |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2019 |
must be a run-time constant of type int or float, or a |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2020 |
reference to a string literal, or a symbolic reference to a |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2021 |
class, method type, or method handle ([396]§5.1). |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2022 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2023 |
If the run-time constant pool entry is a run-time constant of |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2024 |
type int or float, the numeric value of that run-time constant |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2025 |
is pushed onto the operand stack as an int or float, |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2026 |
respectively. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2027 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2028 |
Otherwise, if the run-time constant pool entry is a reference |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2029 |
to an instance of class String representing a string literal |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2030 |
([397]§5.1), then a reference to that instance, value, is |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2031 |
pushed onto the operand stack. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2032 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2033 |
Otherwise, if the run-time constant pool entry is a symbolic |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2034 |
reference to a class ([398]§4.4.1). The named class is resolved |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2035 |
([399]§5.4.3.1) and a reference to the Class object |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2036 |
representing that class, value, is pushed onto the operand |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2037 |
stack. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2038 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2039 |
Otherwise, the run-time constant pool entry must be a symbolic |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2040 |
reference to a method type or a method handle ([400]§5.1). The |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2041 |
method type or method handle is resolved ([401]§5.4.3.5) and a |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2042 |
reference to the resulting instance of |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2043 |
java.lang.invoke.MethodType or java.lang.invoke.MethodHandle, |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2044 |
value, is pushed onto the operand stack. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2045 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2046 |
Linking Exceptions |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2047 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2048 |
During resolution of the symbolic reference to a class, any of |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2049 |
the exceptions pertaining to class resolution ([402]§5.4.3.1) |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2050 |
can be thrown. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2051 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2052 |
During resolution of a symbolic reference to a method type or |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2053 |
method handle, any of the exception pertaining to method type |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2054 |
or method handle resolution ([403]§5.4.3.5) can be thrown. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2055 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2056 |
Notes |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2057 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2058 |
The ldc_w instruction is identical to the ldc instruction |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2059 |
([404]§ldc) except for its wider run-time constant pool index. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2060 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2061 |
The ldc_w instruction can only be used to push a value of type |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2062 |
float taken from the float value set ([405]§2.3.2) because a |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2063 |
constant of type float in the constant pool ([406]§4.4.4) must |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2064 |
be taken from the float value set. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2065 |
" |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2066 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2067 |
"Modified (comment): / 29-07-2016 / 09:12:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 2068 |
! |
2069 |
||
2070 |
ldc2w |
|
2071 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2072 |
||
2073 |
^ self subclassResponsibility |
|
3605
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2074 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2075 |
" |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2076 |
ldc2_w |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2077 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2078 |
Operation |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2079 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2080 |
Push long or double from run-time constant pool (wide index) |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2081 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2082 |
Format |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2083 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2084 |
ldc2_w |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2085 |
indexbyte1 |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2086 |
indexbyte2 |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2087 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2088 |
Forms |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2089 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2090 |
ldc2_w = 20 (0x14) |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2091 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2092 |
Operand Stack |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2093 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2094 |
... → |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2095 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2096 |
..., value |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2097 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2098 |
Description |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2099 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2100 |
The unsigned indexbyte1 and indexbyte2 are assembled into an |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2101 |
unsigned 16-bit index into the run-time constant pool of the |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2102 |
current class ([407]§2.6), where the value of the index is |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2103 |
calculated as (indexbyte1 << 8) | indexbyte2. The index must be |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2104 |
a valid index into the run-time constant pool of the current |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2105 |
class. The run-time constant pool entry at the index must be a |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2106 |
run-time constant of type long or double ([408]§5.1). The |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2107 |
numeric value of that run-time constant is pushed onto the |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2108 |
operand stack as a long or double, respectively. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2109 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2110 |
Notes |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2111 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2112 |
Only a wide-index version of the ldc2_w instruction exists; |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2113 |
there is no ldc2 instruction that pushes a long or double with |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2114 |
a single-byte index. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2115 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2116 |
The ldc2_w instruction can only be used to push a value of type |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2117 |
double taken from the double value set ([409]§2.3.2) because a |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2118 |
constant of type double in the constant pool ([410]§4.4.5) must |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2119 |
be taken from the double value set. |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2120 |
" |
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2121 |
|
da57f13e6a23
Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3586
diff
changeset
|
2122 |
"Modified (comment): / 29-07-2016 / 09:13:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 2123 |
! |
2124 |
||
2125 |
ldiv |
|
2126 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2127 |
||
2128 |
^ self subclassResponsibility |
|
2129 |
||
2130 |
"Created: / 17-03-2011 / 16:46:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2131 |
! |
|
2132 |
||
2133 |
lload |
|
2134 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2135 |
||
2136 |
^ self subclassResponsibility |
|
2137 |
||
2138 |
"Created: / 17-03-2011 / 15:06:08 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2139 |
! |
|
2140 |
||
2141 |
lload: arg |
|
2142 |
" |
|
2143 |
Load long from local variable |
|
2144 |
stack: nothing -> value |
|
2145 |
args: nothing" |
|
2146 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2147 |
||
2148 |
^ self subclassResponsibility. |
|
2149 |
||
2150 |
" |
|
2151 |
Description |
|
2152 |
Both <n> and <n> + 1 must be indices into the local variable array of the |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
2153 |
current frame (3.6). The local variable at <n> must contain a long. The |
749 | 2154 |
value of the local variable at <n> is pushed onto the operand stack. |
2155 |
||
2156 |
Notes |
|
2157 |
Each of the lload_<n> instructions is the same as lload with an index |
|
2158 |
of <n>, except that the operand <n> is implicit." |
|
2159 |
||
2160 |
"Modified: / 17-03-2011 / 16:33:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2161 |
! |
|
2162 |
||
2163 |
lload_0 |
|
2164 |
" |
|
2165 |
Load long from local variable |
|
2166 |
stack: nothing -> value |
|
2167 |
args: nothing |
|
2168 |
" |
|
2169 |
self lload: 0. |
|
2170 |
||
2171 |
" |
|
2172 |
Description |
|
2173 |
Both <n> and <n> + 1 must be indices into the local variable array of the |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
2174 |
current frame (3.6). The local variable at <n> must contain a long. The |
749 | 2175 |
value of the local variable at <n> is pushed onto the operand stack. |
2176 |
||
2177 |
Notes |
|
2178 |
Each of the lload_<n> instructions is the same as lload with an index |
|
2179 |
of <n>, except that the operand <n> is implicit. |
|
2180 |
" |
|
2181 |
||
2182 |
"Created: / 14-03-2011 / 13:38:11 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2183 |
! |
|
2184 |
||
2185 |
lload_1 |
|
2186 |
self lload: 1. |
|
2187 |
||
2188 |
"Created: / 14-03-2011 / 13:37:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2189 |
! |
|
2190 |
||
2191 |
lload_2 |
|
2192 |
self lload: 2. |
|
2193 |
||
2194 |
"Created: / 14-03-2011 / 13:38:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2195 |
! |
|
2196 |
||
2197 |
lload_3 |
|
2198 |
self lload: 3. |
|
2199 |
||
2200 |
"Created: / 14-03-2011 / 13:38:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2201 |
! |
|
2202 |
||
2203 |
lmul |
|
2204 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2205 |
||
2206 |
^ self subclassResponsibility |
|
2207 |
||
2208 |
"Created: / 17-03-2011 / 16:45:53 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2209 |
! |
|
2210 |
||
2211 |
lneg |
|
2212 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2213 |
||
2214 |
^ self subclassResponsibility |
|
2215 |
||
2216 |
"Created: / 17-03-2011 / 16:47:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2217 |
! |
|
2218 |
||
2219 |
lookupswtch |
|
2220 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2221 |
||
2222 |
^ self subclassResponsibility |
|
2223 |
||
2224 |
"Created: / 17-03-2011 / 16:55:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2225 |
! |
|
2226 |
||
2227 |
lor |
|
2228 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2229 |
||
2230 |
^ self subclassResponsibility |
|
2231 |
||
2232 |
"Created: / 17-03-2011 / 16:49:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2233 |
! |
|
2234 |
||
2235 |
lrem |
|
2236 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2237 |
||
2238 |
^ self subclassResponsibility |
|
2239 |
||
2240 |
"Created: / 17-03-2011 / 16:46:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2241 |
! |
|
2242 |
||
2243 |
lreturn |
|
2244 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2245 |
||
2246 |
^ self subclassResponsibility |
|
2247 |
! |
|
2248 |
||
2249 |
lshl |
|
2250 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2251 |
||
2252 |
^ self subclassResponsibility |
|
2253 |
||
2254 |
"Created: / 17-03-2011 / 16:48:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2255 |
! |
|
2256 |
||
2257 |
lshr |
|
2258 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2259 |
||
2260 |
^ self subclassResponsibility |
|
2261 |
||
2262 |
"Created: / 17-03-2011 / 16:48:21 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2263 |
! |
|
2264 |
||
2265 |
lstore |
|
2266 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2267 |
||
2268 |
^ self subclassResponsibility |
|
2269 |
||
2270 |
"Created: / 17-03-2011 / 16:37:14 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2271 |
! |
|
2272 |
||
2273 |
lstore:arg |
|
2274 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2275 |
||
2276 |
^ self subclassResponsibility |
|
2277 |
! |
|
2278 |
||
2279 |
lstore_0 |
|
2280 |
"store long into local variable 0 |
|
2281 |
stack: value -> nothing |
|
2282 |
args: nothing" |
|
2283 |
||
2284 |
self lstore: 0. |
|
2285 |
||
2286 |
" |
|
2287 |
Description |
|
2288 |
Both <n> and <n> + 1 must be indices into the local variable array of the |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
2289 |
current frame (3.6). The value on the top of the operand stack must be |
749 | 2290 |
of type long. It is popped from the operand stack, and the local variables |
2291 |
at <n> and <n> + 1 are set to value. |
|
2292 |
||
2293 |
Notes |
|
2294 |
Each of the lstore_<n> instructions is the same as lstore with an index |
|
2295 |
of <n>, except that the operand <n> is implicit." |
|
2296 |
||
2297 |
"Created: / 14-03-2011 / 17:54:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2298 |
! |
|
2299 |
||
2300 |
lstore_1 |
|
2301 |
"store long into local variable |
|
2302 |
stack: value -> nothing |
|
2303 |
args: nothing" |
|
2304 |
||
2305 |
self lstore: 1. |
|
2306 |
||
2307 |
" |
|
2308 |
Description |
|
2309 |
Both <n> and <n> + 1 must be indices into the local variable array of the |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
2310 |
current frame (3.6). The value on the top of the operand stack must be |
749 | 2311 |
of type long. It is popped from the operand stack, and the local variables |
2312 |
at <n> and <n> + 1 are set to value. |
|
2313 |
||
2314 |
Notes |
|
2315 |
Each of the lstore_<n> instructions is the same as lstore with an index |
|
2316 |
of <n>, except that the operand <n> is implicit." |
|
2317 |
||
2318 |
"Created: / 14-03-2011 / 17:55:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2319 |
! |
|
2320 |
||
2321 |
lstore_2 |
|
2322 |
"store long into local variable |
|
2323 |
stack: value -> nothing |
|
2324 |
args: nothing" |
|
2325 |
||
2326 |
self lstore: 2. |
|
2327 |
||
2328 |
" |
|
2329 |
Description |
|
2330 |
Both <n> and <n> + 1 must be indices into the local variable array of the |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
2331 |
current frame (3.6). The value on the top of the operand stack must be |
749 | 2332 |
of type long. It is popped from the operand stack, and the local variables |
2333 |
at <n> and <n> + 1 are set to value. |
|
2334 |
||
2335 |
Notes |
|
2336 |
Each of the lstore_<n> instructions is the same as lstore with an index |
|
2337 |
of <n>, except that the operand <n> is implicit." |
|
2338 |
||
2339 |
"Created: / 14-03-2011 / 17:55:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2340 |
! |
|
2341 |
||
2342 |
lstore_3 |
|
2343 |
"store long into local variable |
|
2344 |
stack: value -> nothing |
|
2345 |
args: nothing" |
|
2346 |
||
2347 |
self lstore: 3. |
|
2348 |
||
2349 |
" |
|
2350 |
Description |
|
2351 |
Both <n> and <n> + 1 must be indices into the local variable array of the |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
2352 |
current frame (3.6). The value on the top of the operand stack must be |
749 | 2353 |
of type long. It is popped from the operand stack, and the local variables |
2354 |
at <n> and <n> + 1 are set to value. |
|
2355 |
||
2356 |
Notes |
|
2357 |
Each of the lstore_<n> instructions is the same as lstore with an index |
|
2358 |
of <n>, except that the operand <n> is implicit." |
|
2359 |
||
2360 |
"Created: / 14-03-2011 / 17:56:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2361 |
! |
|
2362 |
||
2363 |
lsub |
|
2364 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2365 |
||
2366 |
^ self subclassResponsibility |
|
2367 |
||
2368 |
"Created: / 17-03-2011 / 16:45:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2369 |
! |
|
2370 |
||
2371 |
lushr |
|
2372 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2373 |
||
2374 |
^ self subclassResponsibility |
|
2375 |
||
2376 |
"Created: / 17-03-2011 / 16:48:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2377 |
! |
|
2378 |
||
2379 |
lxor |
|
2380 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2381 |
||
2382 |
^ self subclassResponsibility |
|
2383 |
||
2384 |
"Created: / 17-03-2011 / 16:49:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2385 |
! |
|
2386 |
||
2387 |
monenter |
|
2388 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2389 |
||
2390 |
^ self subclassResponsibility |
|
2391 |
||
2392 |
"Created: / 17-03-2011 / 16:58:06 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2393 |
! |
|
2394 |
||
2395 |
monexit |
|
2396 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2397 |
||
2398 |
^ self subclassResponsibility |
|
2399 |
||
2400 |
"Created: / 17-03-2011 / 16:58:10 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2401 |
! |
|
2402 |
||
2403 |
multianewarray |
|
2404 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2405 |
||
2406 |
^ self subclassResponsibility |
|
2407 |
||
2408 |
"Created: / 17-03-2011 / 16:58:28 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2409 |
! |
|
2410 |
||
2411 |
new |
|
2412 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2413 |
||
2414 |
^ self subclassResponsibility |
|
2415 |
! |
|
2416 |
||
2417 |
newarray |
|
2418 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2419 |
||
2420 |
^ self subclassResponsibility |
|
2421 |
! |
|
2422 |
||
2423 |
nop |
|
2424 |
"Do nothing" |
|
2425 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2426 |
||
2427 |
^ self subclassResponsibility |
|
2428 |
||
2429 |
"Modified: / 17-03-2011 / 16:27:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2430 |
! |
|
2431 |
||
2432 |
pop1 |
|
2433 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2434 |
||
2435 |
^ self subclassResponsibility |
|
2436 |
||
2437 |
"Created: / 17-03-2011 / 16:43:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2438 |
! |
|
2439 |
||
2440 |
pop2 |
|
2441 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2442 |
||
2443 |
^ self subclassResponsibility |
|
2444 |
! |
|
2445 |
||
2446 |
putfield |
|
2447 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2448 |
||
2449 |
^ self subclassResponsibility |
|
2450 |
! |
|
2451 |
||
2452 |
putstatic |
|
2453 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2454 |
||
2455 |
^ self subclassResponsibility |
|
2456 |
! |
|
2457 |
||
2458 |
ret |
|
2459 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2460 |
||
2461 |
^ self subclassResponsibility |
|
2462 |
||
2463 |
"Created: / 17-03-2011 / 16:54:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2464 |
! |
|
2465 |
||
2466 |
ret_w |
|
2467 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2468 |
||
2469 |
^ self subclassResponsibility |
|
2470 |
||
2471 |
"Created: / 17-03-2011 / 16:59:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2472 |
! |
|
2473 |
||
2474 |
return |
|
2475 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2476 |
||
2477 |
^ self subclassResponsibility |
|
2478 |
! |
|
2479 |
||
2480 |
saload |
|
2481 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2482 |
||
2483 |
^ self subclassResponsibility |
|
2484 |
! |
|
2485 |
||
2486 |
sastore |
|
2487 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2488 |
||
2489 |
^ self subclassResponsibility |
|
2490 |
! |
|
2491 |
||
2492 |
sipush |
|
2493 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2494 |
||
2495 |
^ self subclassResponsibility |
|
2496 |
! |
|
2497 |
||
2498 |
swap |
|
2499 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2500 |
||
2501 |
^ self subclassResponsibility |
|
2502 |
! |
|
2503 |
||
2504 |
tableswtch |
|
2505 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2506 |
||
2507 |
^ self subclassResponsibility |
|
2508 |
||
2509 |
"Created: / 17-03-2011 / 16:54:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2510 |
! |
|
2511 |
||
2512 |
wide |
|
2513 |
"raise an error: must be redefined in concrete subclass(es)" |
|
2514 |
||
2515 |
^ self subclassResponsibility |
|
2516 |
||
2517 |
"Created: / 17-03-2011 / 16:58:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2518 |
! ! |
|
2519 |
||
2520 |
!JavaByteCodeProcessor methodsFor:'private-helpers'! |
|
2521 |
||
2522 |
fetchByte |
|
2523 |
"fetch sign extended byte value stored in bytecode" |
|
2524 |
pc := pc + 1. |
|
2525 |
^ (byteCode at: (pc - 1)) signExtendedByteValue. |
|
2526 |
||
2527 |
"Created: / 06-03-2011 / 22:26:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2528 |
"Modified: / 17-03-2011 / 17:00:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2529 |
! |
|
2530 |
||
2531 |
fetchBytes2 |
|
2532 |
"fetch sign extended 2 byte value stored in bytecode" |
|
2533 |
pc := pc + 2. |
|
2534 |
^ (((byteCode at: (pc - 2)) bitShift: 8) + (byteCode at: (pc - 1))) |
|
2535 |
signExtendedShortValue. |
|
2536 |
||
2537 |
"Created: / 06-03-2011 / 21:12:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2538 |
"Modified: / 17-03-2011 / 17:00:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2539 |
! |
|
2540 |
||
2541 |
fetchBytes4 |
|
2542 |
"fetch sign extended 4 byte value stored in bytecode" |
|
2543 |
||
2544 |
pc := pc + 4. |
|
2545 |
^ (((((byteCode at: (pc - 4)) bitShift: 24) |
|
2546 |
bitOr: ((byteCode at: (pc - 3)) bitShift: 16)) |
|
2547 |
bitOr: ((byteCode at: (pc - 2)) bitShift: 8)) |
|
3536
7b39de8ba5ff
JavaByteCodeProcessor: fixed fetchBytes4 use #signExtendedLongValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3431
diff
changeset
|
2548 |
bitOr: (byteCode at: (pc - 1))) signExtendedLongValue. |
749 | 2549 |
|
2550 |
"Created: / 21-03-2011 / 12:59:26 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2551 |
"Modified: / 21-03-2011 / 15:10:22 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
3536
7b39de8ba5ff
JavaByteCodeProcessor: fixed fetchBytes4 use #signExtendedLongValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3431
diff
changeset
|
2552 |
"Modified: / 12-03-2016 / 00:00:30 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 2553 |
! |
2554 |
||
2555 |
fetchIndex |
|
2556 |
"fetch index value from bytecode" |
|
2557 |
pc := pc + 1. |
|
2558 |
^ (byteCode at: (pc - 1)). |
|
2559 |
||
2560 |
"Created: / 24-02-2011 / 22:37:18 / Marcel Hlopko <hlopik@gmail.com>" |
|
2561 |
"Modified: / 17-03-2011 / 17:01:14 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2562 |
! |
|
2563 |
||
2564 |
fetchIndex2 |
|
2565 |
"fetch index 2 byte value from bytecode" |
|
2566 |
pc := pc + 2. |
|
2567 |
^ ((byteCode at: (pc - 2)) bitShift: 8) bitOr: (byteCode at: (pc - 1)). |
|
2568 |
||
2569 |
"Modified: / 24-02-2011 / 21:33:53 / Marcel Hlopko <hlopik@gmail.com>" |
|
2570 |
"Modified: / 17-03-2011 / 17:01:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2571 |
! |
|
2572 |
||
2573 |
pop |
|
2574 |
"return and remove top of the stack" |
|
2575 |
||
2576 |
sp := sp - 1. |
|
2577 |
^ context at: sp + 1. |
|
2578 |
||
2579 |
"Modified: / 17-03-2011 / 17:39:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2580 |
! |
|
2581 |
||
2582 |
popDouble |
|
2583 |
"so far I didn't find a reason to handle doubles and long on stack differently" |
|
2584 |
^ self pop. |
|
2585 |
||
2586 |
"Modified: / 17-03-2011 / 17:02:34 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2587 |
! |
|
2588 |
||
2589 |
popLong |
|
2590 |
"so far I didn't find a reason to handle doubles and long on stack differently" |
|
2591 |
^ self pop. |
|
2592 |
||
2593 |
"Modified: / 17-03-2011 / 17:02:38 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2594 |
! |
|
2595 |
||
2596 |
pushConstant: something |
|
2597 |
"push constant value on the stack - is there really not any better push method?" |
|
2598 |
sp := sp + 1. |
|
2599 |
context at: sp put: something |
|
2600 |
||
2601 |
"Modified: / 17-03-2011 / 17:05:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2602 |
! |
|
2603 |
||
2604 |
pushDouble: something |
|
2605 |
"push double value on the stack" |
|
2606 |
||
2607 |
^ self pushInt: something. |
|
2608 |
||
2609 |
"Modified: / 17-03-2011 / 17:06:28 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2610 |
! |
|
2611 |
||
2612 |
pushFloat: something |
|
2613 |
"push float value on the stack" |
|
2614 |
self pushInt: something. |
|
2615 |
||
2616 |
"Created: / 13-03-2011 / 16:39:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2617 |
"Modified: / 17-03-2011 / 17:06:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2618 |
! |
|
2619 |
||
2620 |
pushInt: something |
|
2621 |
"push integer value on the stack" |
|
2622 |
sp := sp + 1. |
|
2623 |
context at: sp put: something |
|
2624 |
||
2625 |
"Created: / 13-03-2011 / 17:28:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2626 |
"Modified: / 17-03-2011 / 17:06:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2627 |
! |
|
2628 |
||
2629 |
pushLong: something |
|
2630 |
"push long value on the stack" |
|
2631 |
||
2632 |
^ self pushInt: something. |
|
2633 |
||
2634 |
"sp := sp + 2. |
|
2635 |
context at: sp - 1 put: #'dummy long complement'. |
|
2636 |
context at: sp put: something asLargeInteger." |
|
2637 |
||
2638 |
"Modified: / 17-03-2011 / 17:07:06 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2639 |
! |
|
2640 |
||
2641 |
pushNewArrayOf: type sized: size |
|
2642 |
"push new array of type with <size> slots" |
|
2643 |
||
2644 |
self pushRef: ((JavaArray javaArrayClassFor: type) new: size). |
|
2645 |
||
2646 |
"Created: / 14-03-2011 / 18:36:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2647 |
"Modified: / 27-03-2011 / 21:06:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2648 |
! |
|
2649 |
||
2650 |
pushNewPrimitiveArrayOf: typeName sized: size |
|
2651 |
"push new array of <typeName> (e.g. 'long', only primitive types) with <size> slots" |
|
2652 |
||
2653 |
self |
|
2654 |
pushRef: ((JavaArray |
|
2655 |
javaArrayClassFor: (JavaDescriptor baseTypesByTypeName at: typeName)) |
|
2656 |
new: size). |
|
2657 |
||
2658 |
"Created: / 27-03-2011 / 21:06:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2659 |
! |
|
2660 |
||
2661 |
pushRef: something |
|
2662 |
"push java ref on the stack" |
|
2663 |
sp := sp + 1. |
|
2664 |
context at: sp put: something |
|
2665 |
||
2666 |
"Created: / 13-03-2011 / 16:35:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2667 |
"Modified: / 21-03-2011 / 16:49:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2668 |
! |
|
2669 |
||
2670 |
relativeJump: pos |
|
2671 |
"move pc relatively by the position <pos>." |
|
2672 |
||
2673 |
pc := instrPointer + pos. |
|
2674 |
||
2675 |
"Created: / 21-03-2011 / 18:19:44 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2676 |
! |
|
2677 |
||
2678 |
skipPadding |
|
2679 |
"in tableswitch and lookupswitch instructions, there's a padding after instruction to ensure |
|
2680 |
32bit values following begin at address that is multiple of 4 bytes from the start of the current |
|
2681 |
method bytecode" |
|
2682 |
||
2683 |
| jmpSize | |
|
2684 |
||
2685 |
jmpSize := ((4 - (pc \\ 4)) + 1) \\ 4. |
|
2686 |
pc := pc + jmpSize. |
|
2687 |
^ jmpSize. |
|
2688 |
||
2689 |
"Created: / 21-03-2011 / 13:13:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2690 |
"Modified: / 22-03-2011 / 15:54:23 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2691 |
! |
|
2692 |
||
2693 |
tos |
|
2694 |
^ context at:sp. |
|
2695 |
! ! |
|
2696 |
||
2697 |
!JavaByteCodeProcessor methodsFor:'private-logging'! |
|
2698 |
||
2699 |
log: aMessage |
|
2700 |
self class log: aMessage. |
|
2701 |
||
2702 |
"Created: / 17-03-2011 / 14:59:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2703 |
! ! |
|
2704 |
||
2705 |
!JavaByteCodeProcessor methodsFor:'processing loop'! |
|
2706 |
||
2707 |
enterProcessingLoop |
|
2708 |
Context cannotReturnSignal handle: |
|
2709 |
[:ex | |
|
2710 |
"/ this is required for blocks of this method, which do a homeReturn. |
|
2711 |
"/ since my context is not really on the stack (and therefore not returnable), |
|
2712 |
"/ catch the error and return manually. |
|
2713 |
^ ex parameter ] |
|
2714 |
do: |
|
2715 |
[ [ leaveProcessor ] whileFalse: |
|
2716 |
[ instrPointer := pc. |
|
2717 |
op := byteCode at: pc. |
|
2718 |
pc := pc + 1. |
|
2719 |
self switch: op. ]. ]. |
|
2720 |
||
2721 |
"Created: / 31-03-2011 / 16:38:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2722 |
! |
|
2723 |
||
2724 |
handleAbstractMethod |
|
2725 |
self subclassResponsibility. |
|
2726 |
||
2727 |
"Created: / 22-03-2011 / 14:49:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2728 |
! |
|
2729 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2730 |
handleNativeMethod |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2731 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2732 |
"Created: / 09-02-2012 / 22:47:03 / mh <hlopik@gmail.com>" |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2733 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2734 |
|
749 | 2735 |
initializeContextArgsFrom: argArray |
2736 |
1 to: numArgs do: [:idx | context at: idx put: (argArray at: idx). ] |
|
2737 |
||
2738 |
"Created: / 21-03-2011 / 15:17:23 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2739 |
! |
|
2740 |
||
2741 |
initializeContextVars |
|
2742 |
1 to: numVars do: [:idx | context at: (numArgs + idx) put: nil. ] |
|
2743 |
! |
|
2744 |
||
2745 |
leaveProcessorWith: aReturnObject |
|
2746 |
retVal := aReturnObject. |
|
2747 |
leaveProcessor := true |
|
2748 |
||
2749 |
"Modified: / 17-03-2011 / 17:39:21 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2750 |
! |
|
2751 |
||
3196
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2752 |
process:aMethod receiver:aReceiver arguments:args |
749 | 2753 |
| argArray | |
3196
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2754 |
|
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2755 |
aMethod isAbstract ifTrue:[ |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2756 |
^ self handleAbstractMethod. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2757 |
]. |
3196
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2758 |
aMethod isNative ifTrue:[ |
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2759 |
^ self handleNativeMethod |
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2760 |
]. |
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2761 |
args size ~~ aMethod javaNumArgs ifTrue:[ |
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2762 |
self error:'bad number of arguments' |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2763 |
]. |
3196
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2764 |
aMethod isStatic ifTrue:[ |
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2765 |
argArray := args |
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2766 |
] ifFalse:[ |
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2767 |
argArray := OrderedCollection with:aReceiver. |
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2768 |
args notNil ifTrue:[ |
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2769 |
argArray addAll:args. |
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2770 |
]. |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2771 |
]. |
749 | 2772 |
numArgs := argArray size. |
2773 |
numVars := aMethod numVars. |
|
2774 |
method := aMethod. |
|
3196
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2775 |
context := JavaContext new:(numArgs + numVars + aMethod stackSize). |
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2776 |
context setNumArgs:numArgs numVars:numVars. |
749 | 2777 |
receiver := aReceiver. |
2778 |
byteCode := aMethod byteCode. |
|
2779 |
constantPool := aMethod constantPool. |
|
2780 |
pc := 1. |
|
2781 |
wide := false. |
|
3196
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2782 |
self initializeContextArgsFrom:argArray. |
749 | 2783 |
self initializeContextVars. |
2784 |
sp := numArgs + numVars. |
|
2785 |
leaveProcessor := false. |
|
2786 |
self enterProcessingLoop. |
|
2787 |
^ retVal |
|
2788 |
||
2789 |
"Modified: / 24-02-2011 / 11:09:07 / Marcel Hlopko <hlopik@gmail.com>" |
|
2790 |
"Created: / 17-03-2011 / 17:25:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2791 |
"Modified: / 31-03-2011 / 16:38:05 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2792 |
"Modified: / 09-02-2012 / 22:51:38 / mh <hlopik@gmail.com>" |
3196
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2793 |
"Modified: / 04-08-2014 / 15:51:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 2794 |
! |
2795 |
||
2796 |
switch: op |
|
2797 |
||
2798 |
self log: 'invoking ' , (OpSwitchTable at: op + 1) printString , '(' , op printString , ')'. |
|
2799 |
self perform: (OpSwitchTable at: op + 1) |
|
2800 |
||
2801 |
"Modified: / 17-03-2011 / 15:01:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2802 |
"Modified: / 22-03-2011 / 20:55:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2803 |
! ! |
|
2804 |
||
2805 |
!JavaByteCodeProcessor class methodsFor:'documentation'! |
|
2806 |
||
2807 |
version |
|
3431
82790b1e6d54
Merged with mercurial revision 4f3cc813be4 (8 changesets total)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3430
diff
changeset
|
2808 |
^ '$Header: /cvs/stx/stx/libjava/JavaByteCodeProcessor.st,v 1.9 2015-03-20 12:07:59 vrany Exp $' |
2190 | 2809 |
! |
2810 |
||
2811 |
version_CVS |
|
3431
82790b1e6d54
Merged with mercurial revision 4f3cc813be4 (8 changesets total)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3430
diff
changeset
|
2812 |
^ '$Header: /cvs/stx/stx/libjava/JavaByteCodeProcessor.st,v 1.9 2015-03-20 12:07:59 vrany Exp $' |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2813 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2814 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2815 |
version_HG |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2816 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2817 |
^ '$Changeset: <not expanded> $' |
749 | 2818 |
! |
2819 |
||
2820 |
version_SVN |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
2821 |
^ 'Id' |
749 | 2822 |
! ! |
2823 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2290
diff
changeset
|
2824 |
|
2152 | 2825 |
JavaByteCodeProcessor initialize! |