author | Claus Gittinger <cg@exept.de> |
Wed, 18 Dec 2019 22:53:05 +0100 | |
branch | cvs_MAIN |
changeset 3992 | 7497ea71f268 |
parent 3444 | f30b56fb96b2 |
child 3860 | e87f2f1439e9 |
permissions | -rw-r--r-- |
3444
f30b56fb96b2
class: JavaByteCodeDisassembler
Claus Gittinger <cg@exept.de>
parents:
3431
diff
changeset
|
1 |
"{ Encoding: utf8 }" |
f30b56fb96b2
class: JavaByteCodeDisassembler
Claus Gittinger <cg@exept.de>
parents:
3431
diff
changeset
|
2 |
|
749 | 3 |
" |
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
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:
2313
diff
changeset
|
5 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
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:
2313
diff
changeset
|
7 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
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:
2313
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:
2313
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:
2313
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:
2313
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 |
JavaByteCodeProcessor subclass:#JavaByteCodeDisassembler |
28 |
instanceVariableNames:'outStream placeholders format lastLno' |
|
29 |
classVariableNames:'StandardFormat ExtendedFormat' |
|
30 |
poolDictionaries:'' |
|
31 |
category:'Languages-Java-Bytecode' |
|
32 |
! |
|
33 |
||
34 |
!JavaByteCodeDisassembler class methodsFor:'documentation'! |
|
35 |
||
36 |
copyright |
|
37 |
" |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
38 |
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:
2313
diff
changeset
|
39 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
diff
changeset
|
40 |
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:
2313
diff
changeset
|
41 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2841
diff
changeset
|
42 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
749 | 43 |
SWING Research Group, Czech Technical University in Prague |
44 |
||
45 |
This software is furnished under a license and may be used |
|
46 |
only in accordance with the terms of that license and with the |
|
47 |
inclusion of the above copyright notice. This software may not |
|
48 |
be provided or otherwise made available to, or used by, any |
|
49 |
other person. No title to or ownership of the software is |
|
50 |
hereby transferred. |
|
51 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
diff
changeset
|
52 |
[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:
2313
diff
changeset
|
53 |
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:
2313
diff
changeset
|
54 |
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:
2313
diff
changeset
|
55 |
as of 1.9.2010 |
749 | 56 |
|
57 |
" |
|
58 |
! ! |
|
59 |
||
60 |
!JavaByteCodeDisassembler class methodsFor:'initialization'! |
|
61 |
||
62 |
initialize |
|
63 |
Verbose := false. |
|
64 |
StandardFormat := ' %(PC) %(ISN) %(OPERANDS)'. |
|
65 |
ExtendedFormat := ' %(PC) [%(OPCODE)] %(ISN) %(OPERANDS) %(STACK)'. |
|
66 |
||
67 |
"Modified: / 22-03-2011 / 17:07:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
68 |
"Modified: / 22-03-2011 / 20:53:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
69 |
! ! |
|
70 |
||
71 |
!JavaByteCodeDisassembler class methodsFor:'instance creation'! |
|
72 |
||
73 |
new |
|
74 |
"return an initialized instance" |
|
75 |
||
76 |
^ self basicNew initialize. |
|
77 |
! ! |
|
78 |
||
79 |
!JavaByteCodeDisassembler class methodsFor:'disassembling'! |
|
80 |
||
81 |
diassemble:aMethod |
|
82 |
^ self new diassemble:aMethod. |
|
83 |
||
84 |
"Created: / 17-03-2011 / 17:41:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
85 |
! |
|
86 |
||
87 |
diassemble:aMethod to: aStream |
|
88 |
^ self new diassemble:aMethod to: aStream |
|
89 |
||
90 |
"Created: / 22-03-2011 / 21:13:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
91 |
! ! |
|
92 |
||
93 |
!JavaByteCodeDisassembler methodsFor:'disassembling'! |
|
94 |
||
95 |
diassemble:aJavaMethod |
|
96 |
self diassemble:aJavaMethod to:Transcript. |
|
97 |
||
98 |
"Created: / 17-03-2011 / 17:42:38 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
99 |
"Modified: / 20-03-2011 / 22:43:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
100 |
! |
|
101 |
||
102 |
diassemble:aJavaMethod to:aStream |
|
103 |
|fakeArgArray size| |
|
104 |
||
105 |
outStream := aStream. |
|
106 |
size := aJavaMethod javaNumArgs. |
|
107 |
fakeArgArray := Array new:size. |
|
108 |
1 to:size |
|
109 |
do:[:index | fakeArgArray at:index put:('Arg ' , index printString) ]. |
|
110 |
self prettyPrintHeaderFor:aJavaMethod. |
|
111 |
self |
|
112 |
process:aJavaMethod |
|
113 |
receiver:aJavaMethod javaClass |
|
114 |
arguments:fakeArgArray. |
|
115 |
||
116 |
"Created: / 17-03-2011 / 22:21:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
117 |
"Modified: / 22-03-2011 / 15:59:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
118 |
! ! |
|
119 |
||
120 |
!JavaByteCodeDisassembler methodsFor:'helpers - constants'! |
|
121 |
||
122 |
address |
|
123 |
^ 'address'. |
|
124 |
||
125 |
"Created: / 20-03-2011 / 21:20:36 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
126 |
! |
|
127 |
||
128 |
arrayLength |
|
129 |
^ 'arrayLength' |
|
130 |
||
131 |
"Created: / 20-03-2011 / 18:31:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
132 |
! |
|
133 |
||
134 |
arrayRef |
|
135 |
^ 'arrayRef' |
|
136 |
||
137 |
"Created: / 20-03-2011 / 18:24:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
138 |
! |
|
139 |
||
140 |
dimensions |
|
141 |
^'count1, [count2,...]'. |
|
142 |
||
143 |
"Created: / 20-03-2011 / 21:26:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
144 |
! |
|
145 |
||
146 |
empty |
|
147 |
^ 'EMPTY' |
|
148 |
||
149 |
"Created: / 20-03-2011 / 18:30:47 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
150 |
! |
|
151 |
||
152 |
excRef |
|
153 |
^ 'exceptionRef' |
|
154 |
||
155 |
"Created: / 20-03-2011 / 18:36:48 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
156 |
! |
|
157 |
||
158 |
index |
|
159 |
^ 'index' |
|
160 |
||
161 |
"Created: / 20-03-2011 / 18:28:44 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
162 |
! |
|
163 |
||
164 |
key |
|
165 |
^'key'. |
|
166 |
||
167 |
"Created: / 20-03-2011 / 21:24:18 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
168 |
! |
|
169 |
||
170 |
nothing |
|
171 |
^ '' |
|
172 |
||
173 |
"Created: / 20-03-2011 / 18:31:44 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
174 |
! |
|
175 |
||
176 |
null |
|
177 |
^ 'null' |
|
178 |
||
179 |
"Created: / 20-03-2011 / 18:29:45 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
180 |
! |
|
181 |
||
182 |
objRef |
|
183 |
^ 'objectRef' |
|
184 |
||
185 |
"Created: / 20-03-2011 / 18:24:35 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
186 |
! |
|
187 |
||
188 |
result |
|
189 |
^ 'result' |
|
190 |
||
191 |
"Created: / 20-03-2011 / 18:40:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
192 |
! |
|
193 |
||
194 |
sep |
|
195 |
^ ', '. |
|
196 |
||
197 |
"Created: / 20-03-2011 / 18:28:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
198 |
! |
|
199 |
||
200 |
size |
|
201 |
^ 'size' |
|
202 |
||
203 |
"Created: / 20-03-2011 / 18:30:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
204 |
! |
|
205 |
||
206 |
stackGroupClose |
|
207 |
^ '}'. |
|
208 |
||
209 |
"Created: / 20-03-2011 / 21:02:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
210 |
! |
|
211 |
||
212 |
stackGroupOpen |
|
213 |
^'{'. |
|
214 |
||
215 |
"Created: / 20-03-2011 / 21:02:36 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
216 |
! |
|
217 |
||
218 |
value |
|
219 |
^ 'value' |
|
220 |
||
221 |
"Created: / 20-03-2011 / 18:24:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
222 |
! |
|
223 |
||
224 |
valueMarked |
|
225 |
^ 'valueX' |
|
226 |
||
227 |
"Created: / 20-03-2011 / 20:58:23 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
228 |
! |
|
229 |
||
230 |
valueMarked2 |
|
231 |
^ 'valueY' |
|
232 |
||
233 |
"Created: / 20-03-2011 / 21:33:53 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
234 |
! |
|
235 |
||
236 |
varArgs |
|
237 |
^'[arg1, arg2, ...] '. |
|
238 |
||
239 |
"Created: / 20-03-2011 / 21:16:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
240 |
! |
|
241 |
||
242 |
whatever |
|
243 |
^ '..' |
|
244 |
||
245 |
"Created: / 20-03-2011 / 18:31:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
246 |
! ! |
|
247 |
||
248 |
!JavaByteCodeDisassembler methodsFor:'helpers - instruction groups'! |
|
249 |
||
250 |
arrayValueLoader |
|
251 |
self |
|
252 |
writeInstructionWithArgs: self nothing |
|
253 |
stackBefore: self arrayRef , self sep , self index |
|
254 |
after: self value. |
|
255 |
||
256 |
"Created: / 20-03-2011 / 19:58:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
257 |
! |
|
258 |
||
259 |
arrayValueStorer |
|
260 |
self |
|
261 |
writeInstructionWithArgs: self nothing |
|
262 |
stackBefore: self arrayRef , self sep , self index , self sep , self value |
|
263 |
after: self whatever. |
|
264 |
||
265 |
"Created: / 20-03-2011 / 20:01:05 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
266 |
! |
|
267 |
||
268 |
constPusher: const |
|
269 |
self |
|
270 |
writeInstructionWithArgs: self nothing |
|
271 |
stackBefore: self whatever |
|
272 |
after: const. |
|
273 |
||
274 |
"Created: / 20-03-2011 / 20:39:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
275 |
! |
|
276 |
||
277 |
fieldLoader: index |
|
278 |
self |
|
279 |
writeInstructionWithArgs: self nothing |
|
280 |
stackBefore: self whatever |
|
281 |
after: (self prettyPrintField: index). |
|
282 |
||
283 |
"Created: / 20-03-2011 / 20:43:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
284 |
"Modified: / 21-03-2011 / 15:23:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
285 |
! |
|
286 |
||
287 |
fieldStorer: index |
|
288 |
self |
|
289 |
writeInstructionWithArgs: self nothing |
|
290 |
stackBefore: (self prettyPrintField: index) |
|
291 |
after: self whatever. |
|
292 |
||
293 |
"Created: / 20-03-2011 / 20:53:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
294 |
"Modified: / 21-03-2011 / 15:23:22 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
295 |
! |
|
296 |
||
297 |
indexedFieldLoader |
|
298 |
| index | |
|
299 |
||
300 |
wide |
|
301 |
ifTrue: |
|
302 |
[ index := self fetchIndex2. |
|
303 |
wide := false. ] |
|
304 |
ifFalse: [ index := self fetchIndex ]. |
|
305 |
self |
|
306 |
writeInstructionWithArgs: (self prettyPrintField: index) |
|
307 |
stackBefore: self whatever |
|
308 |
after: self whatever. |
|
309 |
||
310 |
"Created: / 20-03-2011 / 20:44:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
311 |
"Modified: / 19-05-2011 / 10:38:23 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
312 |
! |
|
313 |
||
314 |
indexedFieldStorer |
|
315 |
| index | |
|
316 |
||
317 |
wide |
|
318 |
ifTrue: |
|
319 |
[ index := self fetchIndex2. |
|
320 |
wide := false. ] |
|
321 |
ifFalse: [ index := self fetchIndex ]. |
|
322 |
self |
|
323 |
writeInstructionWithArgs: (self prettyPrintField: index) |
|
324 |
stackBefore: (self prettyPrintValue:'newVal') |
|
325 |
after: self whatever. |
|
326 |
||
327 |
"Created: / 20-03-2011 / 20:53:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
328 |
"Modified: / 19-05-2011 / 13:04:05 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
329 |
! |
|
330 |
||
331 |
returnIfFinished |
|
332 |
(pc >= byteCode size) ifTrue: [ self leaveProcessorWith: nil ]. |
|
333 |
||
334 |
"Created: / 21-03-2011 / 14:54:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
335 |
! |
|
336 |
||
337 |
twoValuesBasedJumper |
|
338 |
self |
|
339 |
writeInstructionWithArgs: (self prettyPrintJump: self fetchBytes2) |
|
340 |
stackBefore: self value , self sep , self value |
|
341 |
after: self whatever. |
|
342 |
||
343 |
"Created: / 20-03-2011 / 21:10:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
344 |
"Modified: / 20-03-2011 / 23:03:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
345 |
! |
|
346 |
||
347 |
twoValuesManipulator |
|
348 |
self |
|
349 |
writeInstructionWithArgs: self nothing |
|
350 |
stackBefore: self value , self sep , self value after: self result. |
|
351 |
||
352 |
"Created: / 20-03-2011 / 20:31:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
353 |
! |
|
354 |
||
355 |
valueBasedJumper |
|
356 |
self |
|
357 |
writeInstructionWithArgs: (self prettyPrintJump: self fetchBytes2) |
|
358 |
stackBefore: self value |
|
359 |
after: self whatever. |
|
360 |
||
361 |
"Created: / 20-03-2011 / 21:09:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
362 |
"Modified: / 21-03-2011 / 13:03:34 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
363 |
! |
|
364 |
||
365 |
valueLoader |
|
366 |
self |
|
367 |
writeInstructionWithArgs: self nothing |
|
368 |
stackBefore: self whatever |
|
369 |
after: self value. |
|
370 |
||
371 |
"Created: / 20-03-2011 / 20:25:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
372 |
! |
|
373 |
||
374 |
valueManipulator |
|
375 |
self |
|
376 |
writeInstructionWithArgs: self nothing |
|
377 |
stackBefore: self value |
|
378 |
after: self result. |
|
379 |
||
380 |
"Created: / 20-03-2011 / 20:27:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
381 |
! |
|
382 |
||
383 |
valueReturner |
|
384 |
self |
|
385 |
writeInstructionWithArgs: self nothing |
|
386 |
stackBefore: self value |
|
387 |
after: self empty. |
|
388 |
self returnIfFinished. |
|
389 |
||
390 |
"Created: / 20-03-2011 / 20:48:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
391 |
"Modified: / 21-03-2011 / 14:55:06 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
392 |
! ! |
|
393 |
||
394 |
!JavaByteCodeDisassembler methodsFor:'helpers - printing'! |
|
395 |
||
396 |
prettyPrintArgs: argsString |
|
397 |
^argsString printString |
|
398 |
||
399 |
"Created: / 20-03-2011 / 17:30:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
400 |
"Modified: / 21-03-2011 / 20:42:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
401 |
! |
|
402 |
||
403 |
prettyPrintByte: val |
|
404 |
^ self prettyPrintValue: val. |
|
405 |
||
406 |
"Created: / 20-03-2011 / 21:46:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
407 |
! |
|
408 |
||
409 |
prettyPrintExceptionTable: table |
|
410 |
table isNil ifTrue: [ ^ '' ]. |
|
411 |
^ 'Throws:' |
|
2841
6fa1bcf9c997
JavaClass>>#name vs. #binaryName refactoring
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2732
diff
changeset
|
412 |
, (table inject: '' into: [:acc :each | acc , ' ' , each javaName ]). |
749 | 413 |
|
414 |
"Created: / 22-03-2011 / 16:16:34 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
415 |
"Modified: / 04-06-2011 / 17:19:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2841
6fa1bcf9c997
JavaClass>>#name vs. #binaryName refactoring
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2732
diff
changeset
|
416 |
"Modified: / 08-10-2013 / 22:42:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 417 |
! |
418 |
||
419 |
prettyPrintField: fieldIndex |
|
420 |
^ 'FIELD ' , fieldIndex printString , ': ' |
|
421 |
, (context at: fieldIndex + 1) displayString. |
|
422 |
||
423 |
"Created: / 20-03-2011 / 17:31:06 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
424 |
"Modified: / 21-03-2011 / 15:57:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
425 |
! |
|
426 |
||
427 |
prettyPrintHeaderFor: javaMethod |
|
428 |
outStream |
|
429 |
cr; |
|
430 |
print: (javaMethod signatureNameWithModifiers); |
|
431 |
cr; |
|
432 |
print: ('defined in: ' , javaMethod javaClass printString); |
|
433 |
cr; |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
diff
changeset
|
434 |
print: '# arg slots: ' , javaMethod numArgs printString , ', '; |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
diff
changeset
|
435 |
print: '# var slots: ' , javaMethod numVars printString , ', '; |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
diff
changeset
|
436 |
print: '# stack slots: ', javaMethod stackSize printString , ' '; |
749 | 437 |
cr; |
438 |
print: (self prettyPrintExceptionTable: javaMethod exceptionTable); |
|
439 |
cr. |
|
440 |
||
441 |
"Created: / 22-03-2011 / 15:59:50 / 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:
2313
diff
changeset
|
442 |
"Modified: / 12-10-2012 / 11:58:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 443 |
! |
444 |
||
445 |
prettyPrintIndex: index |
|
446 |
^ (constantPool at: index) displayString , ' [' , index printString |
|
447 |
, '@CP]'. |
|
448 |
||
449 |
"Created: / 20-03-2011 / 17:20:34 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
450 |
"Modified: / 22-03-2011 / 16:48:32 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
451 |
! |
|
452 |
||
453 |
prettyPrintJump: jmpNum |
|
454 |
^ 'JMP to: ' , (instrPointer + jmpNum ) printString. |
|
455 |
||
456 |
"Modified: / 21-03-2011 / 14:25:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
457 |
! |
|
458 |
||
459 |
prettyPrintLineNumber |
|
460 |
|lineNumber| |
|
2726
6971720de5a4
More support for method's source only.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2429
diff
changeset
|
461 |
lineNumber := method lineNumberForPC0: instrPointer. |
749 | 462 |
lineNumber isNil ifTrue: [^'']. |
463 |
^ (lineNumber printString leftPaddedTo: 4 |
|
464 |
with: Character space) |
|
465 |
||
466 |
"Modified: / 22-03-2011 / 17:04:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
2726
6971720de5a4
More support for method's source only.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2429
diff
changeset
|
467 |
"Modified: / 11-09-2013 / 03:42:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 468 |
! |
469 |
||
470 |
prettyPrintLookupSwitchMadness |
|
471 |
| paddingSize default npairs result | |
|
472 |
result := TextStream on: ''. |
|
473 |
paddingSize := self skipPadding. |
|
474 |
default := self fetchBytes4. |
|
475 |
npairs := self fetchBytes4. |
|
476 |
result |
|
477 |
print: 'PADDING: '; |
|
478 |
print: paddingSize printString; |
|
479 |
print: ' NPAIRS: '; |
|
480 |
print: npairs printString; |
|
481 |
cr. |
|
482 |
result |
|
483 |
print: (' [ '); |
|
484 |
cr. |
|
485 |
npairs timesRepeat: |
|
486 |
||
487 |
[ result |
|
488 |
print: ' '; |
|
489 |
print: (self fetchBytes4 printString); |
|
490 |
print: ': '; |
|
491 |
print: (self prettyPrintJump: self fetchBytes4); |
|
492 |
cr. ]. |
|
493 |
result |
|
494 |
print: (' default'); |
|
495 |
print: ': '; |
|
496 |
print: (self prettyPrintJump: default); |
|
497 |
cr. |
|
498 |
result |
|
499 |
print: (' ]'); |
|
500 |
cr. |
|
501 |
^ result stringContents. |
|
502 |
||
503 |
"Created: / 20-03-2011 / 21:23:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
504 |
"Modified: / 22-03-2011 / 15:03:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
505 |
"Modified: / 08-08-2011 / 17:31:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
506 |
! |
|
507 |
||
508 |
prettyPrintRef: ref |
|
509 |
||
510 |
^ ref prettyPrintString. |
|
511 |
||
512 |
"Created: / 20-03-2011 / 17:20:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
513 |
"Modified: / 14-08-2011 / 21:12:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
514 |
! |
|
515 |
||
516 |
prettyPrintStackBefore: beforeString after: afterString |
|
517 |
^ 'STACK: [' , beforeString printString , ' -> ' , afterString printString , ']'. |
|
518 |
||
519 |
"Created: / 20-03-2011 / 17:24:47 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
520 |
! |
|
521 |
||
522 |
prettyPrintTableSwitchMadness |
|
523 |
| paddingSize default low high result | |
|
524 |
||
525 |
result := TextStream on: ''. |
|
526 |
paddingSize := self skipPadding. |
|
527 |
default := self fetchBytes4. |
|
528 |
low := self fetchBytes4. |
|
529 |
high := self fetchBytes4. |
|
530 |
result |
|
531 |
print: 'PADDING: '; |
|
532 |
print: paddingSize printString; |
|
533 |
print: ' LOW: '; |
|
534 |
print: low printString; |
|
535 |
print: ' HIGH: '; |
|
536 |
print: high printString; |
|
537 |
cr. |
|
538 |
result |
|
539 |
print: (' [ '); |
|
540 |
cr. |
|
541 |
low to: high |
|
542 |
do: |
|
543 |
[:index | |
|
544 |
result |
|
545 |
nextPutAll:' '; print: (index printString); |
|
546 |
print: ': '; |
|
547 |
print: (self prettyPrintJump: self fetchBytes4); |
|
548 |
cr. ]. |
|
549 |
result |
|
550 |
print: (' default'); |
|
551 |
print: ': '; |
|
552 |
print: (self prettyPrintJump: default); |
|
553 |
cr. |
|
554 |
result |
|
555 |
print: (' ]'); |
|
556 |
cr. |
|
557 |
^ result stringContents. |
|
558 |
||
559 |
"Created: / 20-03-2011 / 21:34:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
560 |
"Modified: / 21-03-2011 / 15:01:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
561 |
"Modified: / 08-08-2011 / 17:29:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
562 |
! |
|
563 |
||
564 |
prettyPrintType: type |
|
565 |
type = 4 ifTrue: [ ^ 'boolean']. |
|
566 |
type = 5 ifTrue: [ ^'char']. |
|
567 |
type = 6 ifTrue: [ ^ 'float' ]. |
|
568 |
type = 7 ifTrue: [ ^'double' ]. |
|
569 |
type = 8 ifTrue: [ ^ 'byte' ]. |
|
570 |
type = 9 ifTrue: [ ^ 'short' ]. |
|
571 |
type = 10 ifTrue: [ ^'int' ]. |
|
572 |
type = 11 ifTrue: [ ^ 'long' ]. |
|
573 |
||
574 |
"Created: / 20-03-2011 / 20:12:08 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
575 |
! |
|
576 |
||
577 |
prettyPrintValue: val |
|
578 |
^ val printString. |
|
579 |
||
580 |
"Created: / 20-03-2011 / 18:16:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
581 |
! |
|
582 |
||
583 |
writeInstructionWithArgs: argsString stackBefore: stackBefore after: stackAfter |
|
584 |
placeholders |
|
585 |
at: 'PC' |
|
586 |
put: (instrPointer printString leftPaddedTo: 3 with: Character space); |
|
587 |
at: 'LINENUMBER' put: self prettyPrintLineNumber; |
|
588 |
at: 'OPCODE' put: (op printString leftPaddedTo: 3 with: Character space); |
|
589 |
at: 'ISN' |
|
590 |
put: ((OpSwitchTable at: op + 1) asUppercase printString paddedTo: 10); |
|
591 |
at: 'OPERANDS' put: ((self prettyPrintArgs: argsString) paddedTo: 25); |
|
592 |
at: 'STACK' |
|
593 |
put: (self prettyPrintStackBefore: stackBefore after: stackAfter). |
|
594 |
format expandPlaceholdersWith: placeholders on: outStream. |
|
595 |
outStream cr. |
|
596 |
||
597 |
"Created: / 20-03-2011 / 19:56:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
598 |
"Modified: / 21-03-2011 / 20:56:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
599 |
"Modified: / 22-03-2011 / 17:00:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
600 |
! |
|
601 |
||
602 |
writeLine: lno |
|
603 |
||
604 |
outStream nextPutAll: 'LINE '. |
|
605 |
lno printOn: outStream. |
|
606 |
outStream cr. |
|
607 |
||
608 |
"Modified: / 22-03-2011 / 17:00:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
609 |
"Created: / 22-03-2011 / 20:53:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
610 |
! ! |
|
611 |
||
612 |
!JavaByteCodeDisassembler methodsFor:'initialization'! |
|
613 |
||
614 |
initialize |
|
615 |
"Invoked when a new instance is created." |
|
616 |
||
617 |
"/ please change as required (and remove this comment) |
|
618 |
"/ outStream := nil. |
|
619 |
placeholders := Dictionary new. |
|
620 |
format := StandardFormat. |
|
621 |
"/ExtendedFormat. |
|
622 |
||
623 |
"/ super initialize. -- commented since inherited method does nothing |
|
624 |
||
625 |
"Modified: / 22-03-2011 / 20:53:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
626 |
! ! |
|
627 |
||
628 |
!JavaByteCodeDisassembler methodsFor:'instructions'! |
|
629 |
||
630 |
aaload |
|
631 |
self |
|
632 |
arrayValueLoader. |
|
633 |
||
634 |
"Modified: / 20-03-2011 / 19:59:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
635 |
! |
|
636 |
||
637 |
aastore |
|
638 |
self |
|
639 |
arrayValueStorer. |
|
640 |
||
641 |
"Modified: / 20-03-2011 / 20:01:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
642 |
! |
|
643 |
||
644 |
aconst_null |
|
645 |
self |
|
646 |
constPusher: 'null'. |
|
647 |
||
648 |
"Modified: / 20-03-2011 / 20:39:18 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
649 |
! |
|
650 |
||
651 |
aload |
|
652 |
||
653 |
self |
|
654 |
writeInstructionWithArgs: (self prettyPrintField: self fetchIndex) |
|
655 |
stackBefore: self whatever |
|
656 |
after: self objRef. |
|
657 |
||
658 |
"Modified: / 21-03-2011 / 15:45:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
659 |
! |
|
660 |
||
661 |
aload: arg |
|
662 |
self |
|
663 |
writeInstructionWithArgs: self nothing |
|
664 |
stackBefore: self whatever |
|
665 |
after: (self prettyPrintField: arg). |
|
666 |
||
667 |
"Modified: / 21-03-2011 / 16:30:53 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
668 |
! |
|
669 |
||
670 |
anewarray |
|
671 |
self |
|
672 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) |
|
673 |
stackBefore: self size |
|
674 |
after: self arrayRef. |
|
675 |
||
676 |
"Modified: / 20-03-2011 / 20:09:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
677 |
! |
|
678 |
||
679 |
areturn |
|
680 |
self |
|
681 |
writeInstructionWithArgs: self nothing |
|
682 |
stackBefore: self objRef |
|
683 |
after: self empty. |
|
684 |
self returnIfFinished. |
|
685 |
||
686 |
"Modified: / 21-03-2011 / 14:55:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
687 |
! |
|
688 |
||
689 |
arraylength |
|
690 |
self |
|
691 |
writeInstructionWithArgs: self nothing |
|
692 |
stackBefore: self arrayRef |
|
693 |
after: self arrayLength. |
|
694 |
||
695 |
"Modified: / 20-03-2011 / 20:16:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
696 |
! |
|
697 |
||
698 |
astore |
|
699 |
self |
|
700 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex) |
|
701 |
stackBefore: self objRef |
|
702 |
after: self whatever. |
|
703 |
||
704 |
"Modified: / 20-03-2011 / 20:19:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
705 |
! |
|
706 |
||
707 |
astore: arg |
|
708 |
self |
|
709 |
writeInstructionWithArgs: self nothing |
|
710 |
stackBefore: self objRef |
|
711 |
after: self whatever. |
|
712 |
||
713 |
"Modified: / 20-03-2011 / 20:19:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
714 |
! |
|
715 |
||
716 |
athrow |
|
717 |
self |
|
718 |
writeInstructionWithArgs: self nothing |
|
719 |
stackBefore: self objRef |
|
720 |
after: self empty , self sep , self excRef. |
|
721 |
self returnIfFinished. |
|
722 |
||
723 |
"Modified: / 22-03-2011 / 14:24:36 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
724 |
! |
|
725 |
||
726 |
baload |
|
727 |
self arrayValueLoader. |
|
728 |
||
729 |
"Modified: / 20-03-2011 / 19:59:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
730 |
! |
|
731 |
||
732 |
bastore |
|
733 |
self |
|
734 |
arrayValueStorer. |
|
735 |
||
736 |
"Modified: / 20-03-2011 / 20:01:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
737 |
! |
|
738 |
||
739 |
bipush |
|
740 |
self |
|
741 |
writeInstructionWithArgs: (self prettyPrintByte: self fetchByte) |
|
742 |
stackBefore: self whatever |
|
743 |
after: self value. |
|
744 |
||
745 |
"Modified: / 20-03-2011 / 21:32:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
746 |
! |
|
747 |
||
748 |
breakpoint |
|
749 |
self |
|
750 |
writeInstructionWithArgs: self nothing |
|
751 |
stackBefore: self whatever |
|
752 |
after: self whatever. |
|
753 |
||
754 |
"Modified: / 20-03-2011 / 20:26:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
755 |
! |
|
756 |
||
757 |
caload |
|
758 |
self arrayValueLoader. |
|
759 |
||
760 |
"Modified: / 20-03-2011 / 19:59:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
761 |
! |
|
762 |
||
763 |
castore |
|
764 |
self |
|
765 |
arrayValueStorer. |
|
766 |
||
767 |
"Modified: / 20-03-2011 / 20:02:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
768 |
! |
|
769 |
||
770 |
checkcast |
|
771 |
self |
|
772 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) |
|
773 |
stackBefore: self objRef |
|
774 |
after: self objRef. |
|
775 |
||
776 |
"Modified: / 20-03-2011 / 20:23:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
777 |
! |
|
778 |
||
779 |
d2f |
|
780 |
self |
|
781 |
valueManipulator. |
|
782 |
||
783 |
"Modified: / 20-03-2011 / 20:27:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
784 |
! |
|
785 |
||
786 |
d2i |
|
787 |
self valueManipulator. |
|
788 |
||
789 |
"Modified: / 20-03-2011 / 20:27:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
790 |
! |
|
791 |
||
792 |
d2l |
|
793 |
self valueManipulator. |
|
794 |
||
795 |
"Modified: / 20-03-2011 / 20:28:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
796 |
! |
|
797 |
||
798 |
dadd |
|
799 |
self twoValuesManipulator. |
|
800 |
||
801 |
"Modified: / 20-03-2011 / 20:31:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
802 |
! |
|
803 |
||
804 |
daload |
|
805 |
self arrayValueLoader. |
|
806 |
||
807 |
"Modified: / 20-03-2011 / 19:59:53 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
808 |
! |
|
809 |
||
810 |
dastore |
|
811 |
self |
|
812 |
arrayValueStorer. |
|
813 |
||
814 |
"Modified: / 20-03-2011 / 20:01:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
815 |
! |
|
816 |
||
817 |
dcmpg |
|
818 |
self twoValuesManipulator. |
|
819 |
||
820 |
"Modified: / 20-03-2011 / 20:31:28 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
821 |
! |
|
822 |
||
823 |
dcmpl |
|
824 |
self twoValuesManipulator. |
|
825 |
||
826 |
"Modified: / 20-03-2011 / 20:31:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
827 |
! |
|
828 |
||
829 |
dconst: arg |
|
830 |
self constPusher: arg. |
|
831 |
||
832 |
"Modified: / 20-03-2011 / 20:39:35 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
833 |
! |
|
834 |
||
835 |
ddiv |
|
836 |
self twoValuesManipulator. |
|
837 |
||
838 |
"Modified: / 20-03-2011 / 20:31:37 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
839 |
! |
|
840 |
||
841 |
dload |
|
842 |
self indexedFieldLoader. |
|
843 |
||
844 |
"Modified: / 20-03-2011 / 20:44:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
845 |
! |
|
846 |
||
847 |
dload: arg |
|
848 |
self fieldLoader: arg. |
|
849 |
||
850 |
"Modified: / 20-03-2011 / 20:45:59 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
851 |
! |
|
852 |
||
853 |
dmul |
|
854 |
self twoValuesManipulator. |
|
855 |
||
856 |
"Modified: / 20-03-2011 / 20:31:44 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
857 |
! |
|
858 |
||
859 |
dneg |
|
860 |
self valueManipulator. |
|
861 |
||
862 |
"Modified: / 20-03-2011 / 20:28:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
863 |
! |
|
864 |
||
865 |
drem |
|
866 |
self twoValuesManipulator. |
|
867 |
||
868 |
"Modified: / 20-03-2011 / 20:31:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
869 |
! |
|
870 |
||
871 |
dreturn |
|
872 |
self valueReturner. |
|
873 |
||
874 |
"Modified: / 20-03-2011 / 20:47:47 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
875 |
! |
|
876 |
||
877 |
dstore |
|
878 |
self indexedFieldStorer. |
|
879 |
||
880 |
"Modified: / 20-03-2011 / 20:54:05 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
881 |
! |
|
882 |
||
883 |
dstore: arg |
|
884 |
self fieldStorer: arg. |
|
885 |
||
886 |
"Modified: / 20-03-2011 / 20:55:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
887 |
! |
|
888 |
||
889 |
dsub |
|
890 |
self twoValuesManipulator. |
|
891 |
||
892 |
"Modified: / 20-03-2011 / 20:32:00 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
893 |
! |
|
894 |
||
895 |
dup |
|
896 |
self |
|
897 |
writeInstructionWithArgs: self nothing |
|
898 |
stackBefore: self value |
|
899 |
after: self valueMarked , self sep , self valueMarked. |
|
900 |
||
901 |
"Modified: / 20-03-2011 / 20:58:59 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
902 |
! |
|
903 |
||
904 |
dup2 |
|
905 |
self |
|
906 |
writeInstructionWithArgs: self nothing |
|
907 |
stackBefore: self stackGroupOpen , self value , self sep , self value , self stackGroupClose |
|
908 |
after: self stackGroupOpen , self value , self sep , self value , self stackGroupClose , self sep , self stackGroupOpen , self value , self sep , self value , self stackGroupClose. |
|
909 |
||
910 |
"Modified: / 20-03-2011 / 21:03:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
911 |
! |
|
912 |
||
913 |
dup2_x1 |
|
914 |
self |
|
915 |
writeInstructionWithArgs: self nothing |
|
916 |
stackBefore: self stackGroupOpen , self value , self sep , self value |
|
917 |
, self stackGroupClose |
|
918 |
after: self stackGroupOpen , self value , self sep , self value |
|
919 |
, self stackGroupClose , self sep |
|
920 |
, self stackGroupOpen , self value |
|
921 |
, self sep , self value |
|
922 |
, self stackGroupClose. |
|
923 |
||
924 |
"Modified: / 20-03-2011 / 21:06:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
925 |
! |
|
926 |
||
927 |
dup2_x2 |
|
928 |
self |
|
929 |
writeInstructionWithArgs: self nothing |
|
930 |
stackBefore: self stackGroupOpen , self value , self sep , self value |
|
931 |
, self stackGroupClose , self sep , self stackGroupOpen , self valueMarked , self sep , self valueMarked |
|
932 |
, self stackGroupClose |
|
933 |
after: self stackGroupOpen , self valueMarked , self sep , self valueMarked |
|
934 |
, self stackGroupClose , self sep |
|
935 |
, self stackGroupOpen , self value |
|
936 |
, self sep , self value |
|
937 |
, self stackGroupClose , self sep , self stackGroupOpen , self valueMarked , self sep , self valueMarked |
|
938 |
, self stackGroupClose. |
|
939 |
||
940 |
"Modified: / 20-03-2011 / 21:07:26 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
941 |
! |
|
942 |
||
943 |
dup_x1 |
|
944 |
self |
|
945 |
writeInstructionWithArgs: self nothing |
|
946 |
stackBefore: self value , self sep , self valueMarked |
|
947 |
after: self valueMarked , self sep , self value , self sep |
|
948 |
, self valueMarked. |
|
949 |
||
950 |
"Modified: / 20-03-2011 / 21:00:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
951 |
! |
|
952 |
||
953 |
dup_x2 |
|
954 |
self |
|
955 |
writeInstructionWithArgs: self nothing |
|
956 |
stackBefore: self value , self sep , self value , self sep , self valueMarked |
|
957 |
after: self valueMarked , self sep , self value , self sep , self value , self sep , |
|
958 |
self valueMarked. |
|
959 |
||
960 |
"Modified: / 20-03-2011 / 21:01:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
961 |
! |
|
962 |
||
963 |
f2d |
|
964 |
self valueManipulator. |
|
965 |
||
966 |
"Modified: / 20-03-2011 / 20:28:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
967 |
! |
|
968 |
||
969 |
f2i |
|
970 |
self valueManipulator. |
|
971 |
||
972 |
"Modified: / 20-03-2011 / 20:28:28 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
973 |
! |
|
974 |
||
975 |
f2l |
|
976 |
self valueManipulator. |
|
977 |
||
978 |
"Modified: / 20-03-2011 / 20:28:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
979 |
! |
|
980 |
||
981 |
fadd |
|
982 |
self twoValuesManipulator. |
|
983 |
||
984 |
"Modified: / 20-03-2011 / 20:32:28 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
985 |
! |
|
986 |
||
987 |
faload |
|
988 |
self arrayValueLoader. |
|
989 |
||
990 |
"Modified: / 20-03-2011 / 20:00:06 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
991 |
! |
|
992 |
||
993 |
fastore |
|
994 |
self |
|
995 |
arrayValueStorer. |
|
996 |
||
997 |
"Modified: / 20-03-2011 / 20:01:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
998 |
! |
|
999 |
||
1000 |
fcmpg |
|
1001 |
self twoValuesManipulator. |
|
1002 |
||
1003 |
"Modified: / 20-03-2011 / 20:32:32 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1004 |
! |
|
1005 |
||
1006 |
fcmpl |
|
1007 |
self twoValuesManipulator. |
|
1008 |
||
1009 |
"Modified: / 20-03-2011 / 20:32:35 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1010 |
! |
|
1011 |
||
1012 |
fconst: arg |
|
1013 |
self constPusher: arg. |
|
1014 |
||
1015 |
"Modified: / 20-03-2011 / 20:39:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1016 |
! |
|
1017 |
||
1018 |
fdiv |
|
1019 |
self twoValuesManipulator. |
|
1020 |
||
1021 |
"Modified: / 20-03-2011 / 20:32:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1022 |
! |
|
1023 |
||
1024 |
fload |
|
1025 |
self indexedFieldLoader. |
|
1026 |
||
1027 |
"Modified: / 20-03-2011 / 20:44:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1028 |
! |
|
1029 |
||
1030 |
fload: arg |
|
1031 |
self fieldLoader: arg. |
|
1032 |
||
1033 |
"Modified: / 20-03-2011 / 20:45:53 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1034 |
! |
|
1035 |
||
1036 |
fmul |
|
1037 |
self twoValuesManipulator. |
|
1038 |
||
1039 |
"Modified: / 20-03-2011 / 20:32:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1040 |
! |
|
1041 |
||
1042 |
fneg |
|
1043 |
self valueManipulator. |
|
1044 |
||
1045 |
"Modified: / 20-03-2011 / 20:28:53 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1046 |
! |
|
1047 |
||
1048 |
frem |
|
1049 |
self twoValuesManipulator. |
|
1050 |
||
1051 |
"Modified: / 20-03-2011 / 20:32:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1052 |
! |
|
1053 |
||
1054 |
freturn |
|
1055 |
self valueReturner. |
|
1056 |
||
1057 |
"Modified: / 20-03-2011 / 20:48:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1058 |
! |
|
1059 |
||
1060 |
fstore |
|
1061 |
self indexedFieldStorer. |
|
1062 |
||
1063 |
"Modified: / 20-03-2011 / 20:54:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1064 |
! |
|
1065 |
||
1066 |
fstore: arg |
|
1067 |
self fieldStorer: arg. |
|
1068 |
||
1069 |
"Modified: / 20-03-2011 / 20:55:18 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1070 |
! |
|
1071 |
||
1072 |
fsub |
|
1073 |
self twoValuesManipulator. |
|
1074 |
||
1075 |
"Modified: / 20-03-2011 / 20:32:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1076 |
! |
|
1077 |
||
1078 |
getfield |
|
1079 |
| index | |
|
1080 |
||
1081 |
index := self fetchIndex2. |
|
1082 |
self |
|
1083 |
writeInstructionWithArgs: (self prettyPrintIndex: index) |
|
1084 |
stackBefore: self objRef |
|
1085 |
after: self objRef. |
|
1086 |
||
1087 |
"Modified: / 21-03-2011 / 16:25:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1088 |
! |
|
1089 |
||
1090 |
getstatic |
|
1091 |
| index | |
|
1092 |
||
1093 |
index := self fetchIndex2. |
|
1094 |
self |
|
1095 |
writeInstructionWithArgs: (self prettyPrintIndex: index) |
|
1096 |
stackBefore: self whatever |
|
1097 |
after: self objRef. |
|
1098 |
||
1099 |
"Modified: / 21-03-2011 / 16:25:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1100 |
! |
|
1101 |
||
1102 |
goto |
|
1103 |
||
1104 |
self |
|
1105 |
writeInstructionWithArgs: (self prettyPrintJump: self fetchBytes2) |
|
1106 |
stackBefore: self whatever |
|
1107 |
after: self whatever. |
|
1108 |
self returnIfFinished. |
|
1109 |
||
1110 |
"Modified: / 22-03-2011 / 14:30:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1111 |
! |
|
1112 |
||
1113 |
goto_w |
|
1114 |
self |
|
1115 |
writeInstructionWithArgs: (self prettyPrintJump: self fetchBytes4) |
|
1116 |
stackBefore: self whatever |
|
1117 |
after: self whatever. |
|
1118 |
self returnIfFinished. |
|
1119 |
||
1120 |
"Modified: / 22-03-2011 / 14:30:08 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1121 |
! |
|
1122 |
||
1123 |
i2d |
|
1124 |
self valueManipulator. |
|
1125 |
||
1126 |
"Modified: / 20-03-2011 / 20:28:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1127 |
! |
|
1128 |
||
1129 |
i2f |
|
1130 |
self valueManipulator. |
|
1131 |
||
1132 |
"Modified: / 20-03-2011 / 20:29:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1133 |
! |
|
1134 |
||
1135 |
i2l |
|
1136 |
self valueManipulator. |
|
1137 |
||
1138 |
"Modified: / 20-03-2011 / 20:29:06 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1139 |
! |
|
1140 |
||
1141 |
i_dup |
|
1142 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1143 |
||
1144 |
^ self shouldImplement |
|
1145 |
! |
|
1146 |
||
1147 |
iadd |
|
1148 |
self twoValuesManipulator. |
|
1149 |
||
1150 |
"Modified: / 20-03-2011 / 20:33:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1151 |
! |
|
1152 |
||
1153 |
iaload |
|
1154 |
self arrayValueLoader. |
|
1155 |
||
1156 |
"Modified: / 20-03-2011 / 20:00:18 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1157 |
! |
|
1158 |
||
1159 |
iand |
|
1160 |
self twoValuesManipulator. |
|
1161 |
||
1162 |
"Modified: / 20-03-2011 / 20:33:14 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1163 |
! |
|
1164 |
||
1165 |
iastore |
|
1166 |
self |
|
1167 |
arrayValueStorer. |
|
1168 |
||
1169 |
"Modified: / 20-03-2011 / 20:02:05 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1170 |
! |
|
1171 |
||
1172 |
iconst: arg |
|
1173 |
self constPusher: arg. |
|
1174 |
||
1175 |
"Created: / 20-03-2011 / 20:41:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1176 |
! |
|
1177 |
||
1178 |
idiv |
|
1179 |
self twoValuesManipulator. |
|
1180 |
||
1181 |
"Modified: / 20-03-2011 / 20:33:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1182 |
! |
|
1183 |
||
1184 |
ifacmpeq |
|
1185 |
self twoValuesBasedJumper. |
|
1186 |
||
1187 |
"Modified: / 20-03-2011 / 21:11:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1188 |
! |
|
1189 |
||
1190 |
ifacmpne |
|
1191 |
self twoValuesBasedJumper. |
|
1192 |
||
1193 |
"Modified: / 20-03-2011 / 21:11:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1194 |
! |
|
1195 |
||
1196 |
ifeq |
|
1197 |
self valueBasedJumper. |
|
1198 |
||
1199 |
"Modified: / 20-03-2011 / 21:11:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1200 |
! |
|
1201 |
||
1202 |
ifge |
|
1203 |
self valueBasedJumper. |
|
1204 |
||
1205 |
"Modified: / 20-03-2011 / 21:11:37 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1206 |
! |
|
1207 |
||
1208 |
ifgt |
|
1209 |
self valueBasedJumper. |
|
1210 |
||
1211 |
"Modified: / 20-03-2011 / 21:11:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1212 |
! |
|
1213 |
||
1214 |
ificmpeq |
|
1215 |
self twoValuesBasedJumper. |
|
1216 |
||
1217 |
"Modified: / 20-03-2011 / 21:10:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1218 |
! |
|
1219 |
||
1220 |
ificmpge |
|
1221 |
self twoValuesBasedJumper. |
|
1222 |
||
1223 |
"Modified: / 20-03-2011 / 21:11:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1224 |
! |
|
1225 |
||
1226 |
ificmpgt |
|
1227 |
self twoValuesBasedJumper. |
|
1228 |
||
1229 |
"Modified: / 20-03-2011 / 21:11:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1230 |
! |
|
1231 |
||
1232 |
ificmple |
|
1233 |
self twoValuesBasedJumper. |
|
1234 |
||
1235 |
"Modified: / 20-03-2011 / 21:11:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1236 |
! |
|
1237 |
||
1238 |
ificmplt |
|
1239 |
self twoValuesBasedJumper. |
|
1240 |
||
1241 |
"Modified: / 20-03-2011 / 21:11:18 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1242 |
! |
|
1243 |
||
1244 |
ificmpne |
|
1245 |
self twoValuesBasedJumper. |
|
1246 |
||
1247 |
"Modified: / 20-03-2011 / 21:11:21 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1248 |
! |
|
1249 |
||
1250 |
ifle |
|
1251 |
self valueBasedJumper. |
|
1252 |
||
1253 |
"Modified: / 20-03-2011 / 21:11:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1254 |
! |
|
1255 |
||
1256 |
iflt |
|
1257 |
self valueBasedJumper. |
|
1258 |
||
1259 |
"Modified: / 20-03-2011 / 21:11:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1260 |
! |
|
1261 |
||
1262 |
ifne |
|
1263 |
self valueBasedJumper. |
|
1264 |
||
1265 |
"Modified: / 20-03-2011 / 21:11:51 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1266 |
! |
|
1267 |
||
1268 |
ifnonnull |
|
1269 |
self valueBasedJumper. |
|
1270 |
||
1271 |
"Modified: / 20-03-2011 / 21:11:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1272 |
! |
|
1273 |
||
1274 |
ifnull |
|
1275 |
self valueBasedJumper. |
|
1276 |
||
1277 |
"Modified: / 20-03-2011 / 21:12:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1278 |
! |
|
1279 |
||
1280 |
iinc |
|
1281 |
||
1282 |
wide |
|
1283 |
ifTrue: |
|
1284 |
[ self |
|
1285 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) |
|
1286 |
, self sep , (self prettyPrintByte: self fetchBytes2) |
|
1287 |
stackBefore: self objRef |
|
1288 |
after: self result. |
|
1289 |
wide := false. ] |
|
1290 |
ifFalse: |
|
1291 |
[ self |
|
1292 |
writeInstructionWithArgs: (self prettyPrintField: self fetchIndex) |
|
1293 |
, self sep , (self prettyPrintByte: self fetchByte) |
|
1294 |
stackBefore: self objRef |
|
1295 |
after: self result. ]. |
|
1296 |
||
1297 |
"Modified: / 21-03-2011 / 16:23:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1298 |
! |
|
1299 |
||
1300 |
iload |
|
1301 |
self indexedFieldLoader. |
|
1302 |
||
1303 |
"Modified: / 20-03-2011 / 20:44:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1304 |
! |
|
1305 |
||
1306 |
iload: index |
|
1307 |
self fieldLoader: index. |
|
1308 |
||
1309 |
"Modified: / 20-03-2011 / 20:45:45 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1310 |
! |
|
1311 |
||
1312 |
imul |
|
1313 |
self twoValuesManipulator. |
|
1314 |
||
1315 |
"Modified: / 20-03-2011 / 20:33:45 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1316 |
! |
|
1317 |
||
1318 |
ineg |
|
1319 |
self valueManipulator. |
|
1320 |
||
1321 |
"Modified: / 20-03-2011 / 20:30:11 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1322 |
! |
|
1323 |
||
1324 |
instanceof |
|
1325 |
self |
|
1326 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) |
|
1327 |
stackBefore: self objRef |
|
1328 |
after: self result. |
|
1329 |
||
1330 |
"Modified: / 20-03-2011 / 20:21:38 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1331 |
! |
|
1332 |
||
1333 |
int2byte |
|
1334 |
self valueManipulator. |
|
1335 |
||
1336 |
"Modified: / 20-03-2011 / 20:29:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1337 |
! |
|
1338 |
||
1339 |
int2char |
|
1340 |
self valueManipulator. |
|
1341 |
||
1342 |
"Modified: / 20-03-2011 / 20:29:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1343 |
! |
|
1344 |
||
1345 |
int2short |
|
1346 |
self valueManipulator. |
|
1347 |
||
1348 |
"Modified: / 20-03-2011 / 20:29:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1349 |
! |
|
1350 |
||
3383
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1351 |
invdynamic |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1352 |
| index | |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1353 |
|
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1354 |
index := self fetchIndex2. |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1355 |
pc := pc + 2. |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1356 |
self |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1357 |
writeInstructionWithArgs: (self prettyPrintIndex: index) |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1358 |
stackBefore: self objRef , self sep , self varArgs |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1359 |
after: self whatever. |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1360 |
|
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1361 |
"Created: / 25-02-2015 / 19:37:57 / 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
|
1362 |
! |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1363 |
|
749 | 1364 |
invinterface |
1365 |
self |
|
1366 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) , self sep , ( self prettyPrintByte: self fetchByte) , self sep , 0 printString |
|
1367 |
stackBefore: self objRef , self sep , self varArgs |
|
1368 |
after: self whatever. |
|
1369 |
||
1370 |
"Modified: / 20-03-2011 / 21:15:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1371 |
! |
|
1372 |
||
1373 |
invnonvirt |
|
3383
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1374 |
self |
858b2f40ce91
Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3324
diff
changeset
|
1375 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) |
749 | 1376 |
stackBefore: self objRef , self sep , self varArgs |
1377 |
after: self whatever. |
|
1378 |
||
1379 |
"Modified: / 20-03-2011 / 21:17:35 / 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
|
1380 |
"Modified (format): / 25-02-2015 / 19:36:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 1381 |
! |
1382 |
||
1383 |
invstatic |
|
1384 |
self |
|
1385 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) |
|
1386 |
stackBefore: self varArgs |
|
1387 |
after: self whatever. |
|
1388 |
||
1389 |
"Modified: / 20-03-2011 / 21:17:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1390 |
! |
|
1391 |
||
1392 |
invvirt |
|
1393 |
self |
|
1394 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) |
|
1395 |
stackBefore: self objRef , self sep , self varArgs |
|
1396 |
after: self whatever. |
|
1397 |
||
1398 |
"Modified: / 20-03-2011 / 21:18:18 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1399 |
! |
|
1400 |
||
1401 |
ior |
|
1402 |
self twoValuesManipulator. |
|
1403 |
||
1404 |
"Modified: / 20-03-2011 / 20:33:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1405 |
! |
|
1406 |
||
1407 |
irem |
|
1408 |
self twoValuesManipulator. |
|
1409 |
||
1410 |
"Modified: / 20-03-2011 / 20:33:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1411 |
! |
|
1412 |
||
1413 |
ireturn |
|
1414 |
self valueReturner. |
|
1415 |
||
1416 |
"Modified: / 20-03-2011 / 20:48:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1417 |
! |
|
1418 |
||
1419 |
ishl |
|
1420 |
self twoValuesManipulator. |
|
1421 |
||
1422 |
"Modified: / 20-03-2011 / 20:34:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1423 |
! |
|
1424 |
||
1425 |
ishr |
|
1426 |
self twoValuesManipulator. |
|
1427 |
||
1428 |
"Modified: / 20-03-2011 / 20:34:11 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1429 |
! |
|
1430 |
||
1431 |
istore |
|
1432 |
self indexedFieldStorer. |
|
1433 |
||
1434 |
"Modified: / 20-03-2011 / 20:54:23 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1435 |
! |
|
1436 |
||
1437 |
istore: arg |
|
1438 |
self fieldStorer: arg. |
|
1439 |
||
1440 |
"Modified: / 20-03-2011 / 20:55:10 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1441 |
! |
|
1442 |
||
1443 |
isub |
|
1444 |
self twoValuesManipulator. |
|
1445 |
||
1446 |
"Modified: / 20-03-2011 / 20:34:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1447 |
! |
|
1448 |
||
1449 |
iushr |
|
1450 |
self twoValuesManipulator. |
|
1451 |
||
1452 |
"Modified: / 20-03-2011 / 20:34:23 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1453 |
! |
|
1454 |
||
1455 |
ixor |
|
1456 |
self twoValuesManipulator. |
|
1457 |
||
1458 |
"Modified: / 20-03-2011 / 20:34:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1459 |
! |
|
1460 |
||
1461 |
jsr |
|
1462 |
self |
|
1463 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) |
|
1464 |
stackBefore: self whatever |
|
1465 |
after: self address. |
|
1466 |
||
1467 |
"Modified: / 20-03-2011 / 21:20:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1468 |
! |
|
1469 |
||
1470 |
jsr_w |
|
1471 |
self |
|
1472 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchBytes4) |
|
1473 |
stackBefore: self whatever |
|
1474 |
after: self address. |
|
1475 |
||
1476 |
"Modified: / 21-03-2011 / 13:03:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1477 |
! |
|
1478 |
||
1479 |
l2d |
|
1480 |
self valueManipulator. |
|
1481 |
||
1482 |
"Modified: / 20-03-2011 / 20:29:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1483 |
! |
|
1484 |
||
1485 |
l2f |
|
1486 |
self valueManipulator. |
|
1487 |
||
1488 |
"Modified: / 20-03-2011 / 20:29:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1489 |
! |
|
1490 |
||
1491 |
l2i |
|
1492 |
self valueManipulator. |
|
1493 |
||
1494 |
"Modified: / 20-03-2011 / 20:29:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1495 |
! |
|
1496 |
||
1497 |
ladd |
|
1498 |
self twoValuesManipulator. |
|
1499 |
||
1500 |
"Modified: / 20-03-2011 / 20:35:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1501 |
! |
|
1502 |
||
1503 |
laload |
|
1504 |
self arrayValueLoader. |
|
1505 |
||
1506 |
"Modified: / 20-03-2011 / 20:00:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1507 |
! |
|
1508 |
||
1509 |
land |
|
1510 |
self twoValuesManipulator. |
|
1511 |
||
1512 |
"Modified: / 20-03-2011 / 20:35:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1513 |
! |
|
1514 |
||
1515 |
lastore |
|
1516 |
self |
|
1517 |
arrayValueStorer. |
|
1518 |
||
1519 |
"Modified: / 20-03-2011 / 20:02:47 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1520 |
! |
|
1521 |
||
1522 |
lcmp |
|
1523 |
self twoValuesManipulator. |
|
1524 |
||
1525 |
"Modified: / 20-03-2011 / 20:35:45 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1526 |
! |
|
1527 |
||
1528 |
lconst: arg |
|
1529 |
self constPusher: arg. |
|
1530 |
||
1531 |
"Modified: / 20-03-2011 / 20:41:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1532 |
! |
|
1533 |
||
1534 |
ldc1 |
|
1535 |
self |
|
1536 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex) |
|
1537 |
stackBefore: self whatever |
|
1538 |
after: self value. |
|
1539 |
||
1540 |
"Modified: / 20-03-2011 / 21:21:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1541 |
! |
|
1542 |
||
1543 |
ldc2 |
|
1544 |
self |
|
1545 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) |
|
1546 |
stackBefore: self whatever |
|
1547 |
after: self value. |
|
1548 |
||
1549 |
"Modified: / 20-03-2011 / 21:21:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1550 |
! |
|
1551 |
||
1552 |
ldc2w |
|
1553 |
self |
|
1554 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) |
|
1555 |
stackBefore: self whatever |
|
1556 |
after: self value. |
|
1557 |
||
1558 |
"Modified: / 22-03-2011 / 14:18:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1559 |
! |
|
1560 |
||
1561 |
ldiv |
|
1562 |
self twoValuesManipulator. |
|
1563 |
||
1564 |
"Modified: / 20-03-2011 / 20:36:05 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1565 |
! |
|
1566 |
||
1567 |
lload |
|
1568 |
self indexedFieldLoader. |
|
1569 |
||
1570 |
"Modified: / 20-03-2011 / 20:44:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1571 |
! |
|
1572 |
||
1573 |
lload: arg |
|
1574 |
self fieldLoader: arg. |
|
1575 |
||
1576 |
"Modified: / 20-03-2011 / 20:45:28 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1577 |
! |
|
1578 |
||
1579 |
lmul |
|
1580 |
self twoValuesManipulator. |
|
1581 |
||
1582 |
"Modified: / 20-03-2011 / 20:36:10 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1583 |
! |
|
1584 |
||
1585 |
lneg |
|
1586 |
self valueManipulator. |
|
1587 |
||
1588 |
"Modified: / 20-03-2011 / 20:29:38 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1589 |
! |
|
1590 |
||
1591 |
lookupswtch |
|
1592 |
self |
|
1593 |
writeInstructionWithArgs: (self prettyPrintLookupSwitchMadness) |
|
1594 |
stackBefore: self key |
|
1595 |
after: self whatever. |
|
1596 |
||
1597 |
"Modified: / 20-03-2011 / 21:24:10 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1598 |
! |
|
1599 |
||
1600 |
lor |
|
1601 |
self twoValuesManipulator. |
|
1602 |
||
1603 |
"Modified: / 20-03-2011 / 20:36:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1604 |
! |
|
1605 |
||
1606 |
lrem |
|
1607 |
self twoValuesManipulator. |
|
1608 |
||
1609 |
"Modified: / 20-03-2011 / 20:36:18 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1610 |
! |
|
1611 |
||
1612 |
lreturn |
|
1613 |
self valueReturner. |
|
1614 |
||
1615 |
"Modified: / 20-03-2011 / 20:48:38 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1616 |
! |
|
1617 |
||
1618 |
lshl |
|
1619 |
self twoValuesManipulator. |
|
1620 |
||
1621 |
"Modified: / 20-03-2011 / 20:36:22 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1622 |
! |
|
1623 |
||
1624 |
lshr |
|
1625 |
self twoValuesManipulator. |
|
1626 |
||
1627 |
"Modified: / 20-03-2011 / 20:36:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1628 |
! |
|
1629 |
||
1630 |
lstore |
|
1631 |
self indexedFieldStorer. |
|
1632 |
||
1633 |
"Modified: / 20-03-2011 / 20:54:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1634 |
! |
|
1635 |
||
1636 |
lstore: arg |
|
1637 |
self fieldStorer: arg. |
|
1638 |
||
1639 |
"Modified: / 20-03-2011 / 20:55:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1640 |
! |
|
1641 |
||
1642 |
lsub |
|
1643 |
self twoValuesManipulator. |
|
1644 |
||
1645 |
"Modified: / 20-03-2011 / 20:36:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1646 |
! |
|
1647 |
||
1648 |
lushr |
|
1649 |
self twoValuesManipulator. |
|
1650 |
||
1651 |
"Modified: / 20-03-2011 / 20:36:37 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1652 |
! |
|
1653 |
||
1654 |
lxor |
|
1655 |
self twoValuesManipulator. |
|
1656 |
||
1657 |
"Modified: / 20-03-2011 / 20:36:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1658 |
! |
|
1659 |
||
1660 |
monenter |
|
1661 |
self |
|
1662 |
writeInstructionWithArgs: self nothing |
|
1663 |
stackBefore: self objRef |
|
1664 |
after: self whatever. |
|
1665 |
||
1666 |
"Modified: / 20-03-2011 / 20:20:44 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1667 |
! |
|
1668 |
||
1669 |
monexit |
|
1670 |
self |
|
1671 |
writeInstructionWithArgs: self nothing |
|
1672 |
stackBefore: self objRef |
|
1673 |
after: self whatever. |
|
1674 |
||
1675 |
"Modified: / 20-03-2011 / 20:20:51 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1676 |
! |
|
1677 |
||
1678 |
multianewarray |
|
1679 |
self |
|
1680 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) |
|
1681 |
, self sep , (self prettyPrintByte: self fetchByte) |
|
1682 |
stackBefore: self dimensions |
|
1683 |
after: self arrayRef. |
|
1684 |
||
1685 |
"Modified: / 20-03-2011 / 21:25:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1686 |
! |
|
1687 |
||
1688 |
new |
|
1689 |
self |
|
1690 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) |
|
1691 |
stackBefore: self whatever |
|
1692 |
after: self objRef. |
|
1693 |
||
1694 |
"Modified: / 20-03-2011 / 20:07:28 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1695 |
! |
|
1696 |
||
1697 |
newarray |
|
1698 |
self |
|
1699 |
writeInstructionWithArgs: (self prettyPrintType: self fetchByte) |
|
1700 |
stackBefore: self size |
|
1701 |
after: self arrayRef. |
|
1702 |
||
1703 |
"Modified: / 20-03-2011 / 20:10:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1704 |
! |
|
1705 |
||
1706 |
nop |
|
1707 |
self |
|
1708 |
writeInstructionWithArgs: self nothing |
|
1709 |
stackBefore: self whatever |
|
1710 |
after: self whatever. |
|
1711 |
||
1712 |
"Modified: / 20-03-2011 / 21:26:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1713 |
! |
|
1714 |
||
1715 |
pop1 |
|
1716 |
self |
|
1717 |
writeInstructionWithArgs: self nothing |
|
1718 |
stackBefore: self value |
|
1719 |
after: self whatever. |
|
1720 |
||
1721 |
"Modified: / 20-03-2011 / 21:27:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1722 |
! |
|
1723 |
||
1724 |
pop2 |
|
1725 |
self |
|
1726 |
writeInstructionWithArgs: self nothing |
|
1727 |
stackBefore: self value , self sep , self value |
|
1728 |
after: self whatever. |
|
1729 |
||
1730 |
"Modified: / 20-03-2011 / 21:27:48 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1731 |
! |
|
1732 |
||
1733 |
putfield |
|
1734 |
| index | |
|
1735 |
||
1736 |
index := self fetchIndex2. |
|
1737 |
self |
|
1738 |
writeInstructionWithArgs: (self prettyPrintIndex: index) |
|
1739 |
stackBefore: self objRef , self sep , self value |
|
1740 |
after: self whatever. |
|
1741 |
||
1742 |
"Modified: / 21-03-2011 / 16:26:14 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1743 |
! |
|
1744 |
||
1745 |
putstatic |
|
1746 |
| index | |
|
1747 |
||
1748 |
index := self fetchIndex2. |
|
1749 |
self |
|
1750 |
writeInstructionWithArgs: (self prettyPrintIndex: index) |
|
1751 |
stackBefore: self value |
|
1752 |
after: self whatever. |
|
1753 |
||
1754 |
"Modified: / 21-03-2011 / 16:26:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1755 |
! |
|
1756 |
||
1757 |
ret |
|
1758 |
wide |
|
1759 |
ifTrue: |
|
1760 |
[ self |
|
1761 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex2) |
|
1762 |
stackBefore: self whatever |
|
1763 |
after: self whatever. |
|
1764 |
wide := false. ] |
|
1765 |
ifFalse: |
|
1766 |
[ self |
|
1767 |
writeInstructionWithArgs: (self prettyPrintIndex: self fetchIndex) |
|
1768 |
stackBefore: self whatever |
|
1769 |
after: self whatever. ]. |
|
1770 |
self returnIfFinished. |
|
1771 |
||
1772 |
"Modified: / 21-03-2011 / 14:57:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1773 |
! |
|
1774 |
||
1775 |
ret_w |
|
1776 |
self halt: 'spec doesnt know about me, what shall I do?'. |
|
1777 |
||
1778 |
"Modified: / 20-03-2011 / 21:31:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1779 |
! |
|
1780 |
||
1781 |
return |
|
1782 |
self |
|
1783 |
writeInstructionWithArgs: self nothing |
|
1784 |
stackBefore: self whatever |
|
1785 |
after: self empty. |
|
1786 |
self returnIfFinished. |
|
1787 |
||
1788 |
"Modified: / 21-03-2011 / 14:56:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1789 |
! |
|
1790 |
||
1791 |
saload |
|
1792 |
self arrayValueLoader. |
|
1793 |
||
1794 |
"Modified: / 20-03-2011 / 20:00:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1795 |
! |
|
1796 |
||
1797 |
sastore |
|
1798 |
self |
|
1799 |
arrayValueStorer. |
|
1800 |
||
1801 |
"Modified: / 20-03-2011 / 20:03:05 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1802 |
! |
|
1803 |
||
1804 |
sipush |
|
1805 |
self |
|
1806 |
writeInstructionWithArgs: (self prettyPrintByte: self fetchBytes2) |
|
1807 |
stackBefore: self whatever |
|
1808 |
after: self value. |
|
1809 |
||
1810 |
"Modified: / 20-03-2011 / 21:33:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1811 |
! |
|
1812 |
||
1813 |
swap |
|
1814 |
self |
|
1815 |
writeInstructionWithArgs: (self prettyPrintByte: self fetchByte) |
|
1816 |
stackBefore: self valueMarked , self sep , self valueMarked2 |
|
1817 |
after: self valueMarked2 , self sep , self valueMarked. |
|
1818 |
||
1819 |
"Modified: / 20-03-2011 / 21:33:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1820 |
! |
|
1821 |
||
1822 |
tableswtch |
|
1823 |
self |
|
1824 |
writeInstructionWithArgs: (self prettyPrintTableSwitchMadness) |
|
1825 |
stackBefore: self index |
|
1826 |
after: self whatever. |
|
1827 |
||
1828 |
"Modified: / 20-03-2011 / 21:34:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1829 |
! |
|
1830 |
||
1831 |
wide |
|
1832 |
wide := true. |
|
1833 |
self |
|
1834 |
writeInstructionWithArgs: self nothing |
|
1835 |
stackBefore: self whatever |
|
1836 |
after: self whatever. |
|
1837 |
||
1838 |
"Modified: / 20-03-2011 / 21:48:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1839 |
! ! |
|
1840 |
||
1841 |
!JavaByteCodeDisassembler methodsFor:'processing loop'! |
|
1842 |
||
1843 |
handleAbstractMethod |
|
1844 |
^nil. |
|
1845 |
||
1846 |
"Created: / 22-03-2011 / 14:51:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1847 |
! |
|
1848 |
||
1849 |
initializeContextVars |
|
1850 |
1 to: numVars |
|
1851 |
do: [:idx | context at: (numArgs + idx) put: 'Var ' , idx printString. ] |
|
1852 |
||
1853 |
"Modified: / 21-03-2011 / 15:28:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1854 |
! |
|
1855 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
diff
changeset
|
1856 |
switch: opcode |
749 | 1857 |
|
1858 |
| lno | |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
diff
changeset
|
1859 |
"bytecode positions in line number table starts with 0, not 1" |
2726
6971720de5a4
More support for method's source only.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2429
diff
changeset
|
1860 |
lno := method lineNumberForPC0: instrPointer - 1. |
749 | 1861 |
lastLno ~~ lno ifTrue:[self writeLine: (lastLno := lno)]. |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
diff
changeset
|
1862 |
^super switch: opcode |
749 | 1863 |
|
1864 |
"Created: / 22-03-2011 / 20:57:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2726
6971720de5a4
More support for method's source only.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2429
diff
changeset
|
1865 |
"Modified: / 11-09-2013 / 03:22:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 1866 |
! ! |
1867 |
||
1868 |
!JavaByteCodeDisassembler class methodsFor:'documentation'! |
|
1869 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
diff
changeset
|
1870 |
version_CVS |
3444
f30b56fb96b2
class: JavaByteCodeDisassembler
Claus Gittinger <cg@exept.de>
parents:
3431
diff
changeset
|
1871 |
^ '$Header: /cvs/stx/stx/libjava/JavaByteCodeDisassembler.st,v 1.10 2015-05-07 21:35:59 cg Exp $' |
2313
23e9c0bdcf57
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2187
diff
changeset
|
1872 |
! |
23e9c0bdcf57
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2187
diff
changeset
|
1873 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
diff
changeset
|
1874 |
version_HG |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
diff
changeset
|
1875 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
diff
changeset
|
1876 |
^ '$Changeset: <not expanded> $' |
2187 | 1877 |
! |
1878 |
||
749 | 1879 |
version_SVN |
3444
f30b56fb96b2
class: JavaByteCodeDisassembler
Claus Gittinger <cg@exept.de>
parents:
3431
diff
changeset
|
1880 |
^ '$Id: JavaByteCodeDisassembler.st,v 1.10 2015-05-07 21:35:59 cg Exp $' |
749 | 1881 |
! ! |
1882 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2313
diff
changeset
|
1883 |
|
2152 | 1884 |
JavaByteCodeDisassembler initialize! |