author | Claus Gittinger <cg@exept.de> |
Wed, 02 Oct 1996 16:44:21 +0200 | |
changeset 347 | c41b9c9c0e50 |
parent 344 | ab8b2921d475 |
child 356 | bb3beb18de1f |
permissions | -rw-r--r-- |
0 | 1 |
" |
4 | 2 |
COPYRIGHT (c) 1991 by Claus Gittinger |
135
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
3 |
All Rights Reserved |
0 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
ByteCodeCompiler subclass:#Decompiler |
|
293 | 14 |
instanceVariableNames:'hasLineNo bytes literals index listStream' |
217 | 15 |
classVariableNames:'' |
16 |
poolDictionaries:'' |
|
17 |
category:'System-Compiler' |
|
0 | 18 |
! |
19 |
||
326
d2858404a4a4
#showSpecialGlobal: knows about more specials.
Stefan Vogel <sv@exept.de>
parents:
293
diff
changeset
|
20 |
!Decompiler class methodsFor:'documentation'! |
0 | 21 |
|
135
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
22 |
copyright |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
23 |
" |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
24 |
COPYRIGHT (c) 1991 by Claus Gittinger |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
25 |
All Rights Reserved |
0 | 26 |
|
135
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
27 |
This software is furnished under a license and may be used |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
28 |
only in accordance with the terms of that license and with the |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
29 |
inclusion of the above copyright notice. This software may not |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
30 |
be provided or otherwise made available to, or used by, any |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
31 |
other person. No title to or ownership of the software is |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
32 |
hereby transferred. |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
33 |
" |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
34 |
! |
0 | 35 |
|
135
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
36 |
documentation |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
37 |
" |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
38 |
only for stx-debugging. Not for public eyes. |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
39 |
|
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
40 |
Decompiler decompile:(someClass compiledMethodAt:#someSelector) |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
41 |
" |
aa4f7b8f121e
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
4
diff
changeset
|
42 |
! ! |
0 | 43 |
|
326
d2858404a4a4
#showSpecialGlobal: knows about more specials.
Stefan Vogel <sv@exept.de>
parents:
293
diff
changeset
|
44 |
!Decompiler class methodsFor:'decompiling'! |
0 | 45 |
|
46 |
decompile:aMethod |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
47 |
^ (self new) decompile:aMethod to:Transcript |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
48 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
49 |
" |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
50 |
Decompiler decompile:(FileBrowser compiledMethodAt:#initialize) |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
51 |
Decompiler decompile:(Decompiler compiledMethodAt:#decompile:to:) |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
52 |
" |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
53 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
54 |
"Modified: 16.4.1996 / 20:26:01 / cg" |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
55 |
! |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
56 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
57 |
decompile:aMethod to:aStream |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
58 |
^ (self new) decompile:aMethod to:aStream |
0 | 59 |
|
60 |
"Decompiler decompile:(FileBrowser compiledMethodAt:#initialize)" |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
61 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
62 |
"Created: 16.4.1996 / 20:25:55 / cg" |
0 | 63 |
! ! |
64 |
||
65 |
!Decompiler methodsFor:'decompiling'! |
|
66 |
||
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
67 |
decompile:aMethod to:aStream |
206 | 68 |
|nBytes offs byte sym sel lineNr who| |
69 |
||
293 | 70 |
listStream := aStream. |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
71 |
|
206 | 72 |
aMethod isNil ifTrue:[ |
278 | 73 |
aStream showCR:'nil method'. |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
74 |
^ self |
206 | 75 |
]. |
76 |
||
77 |
who := aMethod who. |
|
78 |
who notNil ifTrue:[ |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
79 |
classToCompileFor := who first. |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
80 |
aStream cr. |
278 | 81 |
aStream showCR:'decompiling ' , classToCompileFor name , '>>' , (who at:2) , ':'. |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
82 |
aStream cr. |
206 | 83 |
]. |
84 |
||
85 |
bytes := aMethod byteCode. |
|
86 |
bytes isNil ifTrue:[ |
|
278 | 87 |
aStream showCR:'no bytecode'. |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
88 |
^ self |
206 | 89 |
]. |
90 |
literals := aMethod literals. |
|
91 |
index := 1. |
|
92 |
nBytes := bytes size. |
|
93 |
[index <= nBytes] whileTrue:[ |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
94 |
self showPC. |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
95 |
sym := self symbolicCodeFor:(bytes at:index). |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
96 |
aStream show:sym. |
206 | 97 |
" |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
98 |
extra notNil ifTrue:[Transcript show:(extra printString)]. |
206 | 99 |
" |
347
c41b9c9c0e50
oops - sendWIDTH & sendHEIGHT have lineNumber info
Claus Gittinger <cg@exept.de>
parents:
344
diff
changeset
|
100 |
index := index + 1. |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
101 |
hasLineNo ifTrue:[ |
347
c41b9c9c0e50
oops - sendWIDTH & sendHEIGHT have lineNumber info
Claus Gittinger <cg@exept.de>
parents:
344
diff
changeset
|
102 |
lineNr := bytes at:index. |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
103 |
index := index + 1. |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
104 |
] ifFalse:[ |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
105 |
lineNr := nil |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
106 |
]. |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
107 |
extra notNil ifTrue:[ |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
108 |
aStream show:' '. |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
109 |
byte := bytes at:index. |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
110 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
111 |
"compute argument showXXX selector from extra ..." |
206 | 112 |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
113 |
sel := 'show' , extra , ':'. |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
114 |
sel at:5 put:(sel at:5) asUppercase. |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
115 |
self perform:sel asSymbol with:byte |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
116 |
]. |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
117 |
lineNr notNil ifTrue:[ |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
118 |
aStream show:'['; show:lineNr; show:']' |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
119 |
]. |
278 | 120 |
aStream showCR:'' |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
121 |
] |
206 | 122 |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
123 |
"Created: 16.4.1996 / 20:27:18 / cg" |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
124 |
"Modified: 16.4.1996 / 20:27:40 / cg" |
0 | 125 |
! |
126 |
||
217 | 127 |
showAbsOffset:byte |
128 |
|offs b2| |
|
129 |
||
130 |
index := index + 1. |
|
131 |
b2 := (bytes at:index). |
|
132 |
offs := byte + (b2 bitShift:8). |
|
133 |
index := index + 1. |
|
293 | 134 |
listStream show:offs printString. |
135 |
listStream show:' ('. |
|
136 |
listStream show:offs printString. |
|
137 |
listStream show:')' |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
138 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
139 |
"Modified: 16.4.1996 / 20:27:53 / cg" |
217 | 140 |
! |
141 |
||
142 |
showAbsOffsetLevel:byte |
|
143 |
|offs b2| |
|
144 |
||
145 |
index := index + 1. |
|
146 |
b2 := (bytes at:index). |
|
147 |
offs := byte + (b2 bitShift:8). |
|
148 |
index := index + 1. |
|
293 | 149 |
listStream show:offs printString. |
150 |
listStream show:' ('. |
|
151 |
listStream show:offs printString. |
|
152 |
listStream show:')'. |
|
217 | 153 |
self showNvarNargsAt:index. |
154 |
index := index + 2 |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
155 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
156 |
"Modified: 16.4.1996 / 20:27:57 / cg" |
217 | 157 |
! |
158 |
||
159 |
showIndex:byte |
|
293 | 160 |
listStream show:byte printString. |
217 | 161 |
index := index + 1 |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
162 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
163 |
"Modified: 16.4.1996 / 20:27:59 / cg" |
217 | 164 |
! |
165 |
||
166 |
showIndexLevel:byte |
|
167 |
self showIndex:byte. |
|
168 |
self showNvarNargsAt:index. |
|
169 |
index := index + 2 |
|
170 |
! |
|
171 |
||
172 |
showInstvarIndex:byte |
|
293 | 173 |
listStream show:byte printString. |
217 | 174 |
classToCompileFor notNil ifTrue:[ |
293 | 175 |
listStream show:'('. |
176 |
listStream show:(classToCompileFor allInstVarNames at:byte). |
|
177 |
listStream show:')'. |
|
217 | 178 |
]. |
179 |
index := index + 1 |
|
180 |
||
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
181 |
"Modified: 16.4.1996 / 20:28:06 / cg" |
217 | 182 |
! |
183 |
||
184 |
showLevelIndex:byte |
|
185 |
self showIndex:byte. |
|
293 | 186 |
listStream show:' lvl:'; show:(bytes at:index). |
217 | 187 |
index := index + 1. |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
188 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
189 |
"Modified: 16.4.1996 / 20:28:08 / cg" |
217 | 190 |
! |
191 |
||
192 |
showLineNo:byte |
|
293 | 193 |
listStream show:' line:' , byte printString. |
217 | 194 |
index := index + 1 |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
195 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
196 |
"Modified: 16.4.1996 / 20:28:10 / cg" |
217 | 197 |
! |
198 |
||
199 |
showLit1:ignored |
|
200 |
self showLit:1 |
|
201 |
! |
|
202 |
||
203 |
showLit2:ignored |
|
204 |
self showLit:2 |
|
205 |
! |
|
206 |
||
207 |
showLit3:ignored |
|
208 |
self showLit:3 |
|
209 |
! |
|
210 |
||
211 |
showLit4:ignored |
|
212 |
self showLit:4 |
|
213 |
! |
|
214 |
||
215 |
showLit5:ignored |
|
216 |
self showLit:5 |
|
217 |
! |
|
218 |
||
219 |
showLit6:ignored |
|
220 |
self showLit:6 |
|
221 |
! |
|
222 |
||
223 |
showLit7:ignored |
|
224 |
self showLit:7 |
|
225 |
! |
|
226 |
||
227 |
showLit8:ignored |
|
228 |
self showLit:8 |
|
229 |
! |
|
230 |
||
231 |
showLit9:ignored |
|
232 |
self showLit:9 |
|
233 |
! |
|
234 |
||
235 |
showLit:litIndex |
|
236 |
|lit| |
|
237 |
||
238 |
lit := literals at:litIndex. |
|
239 |
lit isBehavior ifTrue:[ |
|
293 | 240 |
listStream show:lit name |
217 | 241 |
] ifFalse:[ |
293 | 242 |
listStream show:lit storeString |
217 | 243 |
] |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
244 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
245 |
"Modified: 16.4.1996 / 20:28:19 / cg" |
217 | 246 |
! |
247 |
||
248 |
showLiteral16:byte |
|
249 |
|litIndex| |
|
250 |
||
251 |
litIndex := bytes wordAt:index MSB:false. |
|
252 |
self showLit:litIndex. |
|
253 |
index := index + 2 |
|
254 |
! |
|
255 |
||
256 |
showLiteral16Skip6:byte |
|
257 |
|litIndex| |
|
258 |
||
259 |
litIndex := bytes wordAt:index MSB:false. |
|
260 |
index := index + 2. |
|
293 | 261 |
listStream show:(literals at:litIndex) printString. |
217 | 262 |
index := index + 6 |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
263 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
264 |
"Modified: 16.4.1996 / 20:28:23 / cg" |
217 | 265 |
! |
266 |
||
267 |
showLiteral:byte |
|
268 |
index := index + 1. |
|
269 |
self showLit:byte |
|
270 |
! |
|
271 |
||
272 |
showLiteralAt:index |
|
273 |
|offs| |
|
274 |
||
275 |
offs := bytes at:index. |
|
276 |
self showLit:offs |
|
277 |
! |
|
278 |
||
279 |
showLiteralSkip6:byte |
|
280 |
index := index + 1. |
|
293 | 281 |
listStream show:(literals at:byte) printString. |
217 | 282 |
index := index + 6 |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
283 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
284 |
"Modified: 16.4.1996 / 20:28:27 / cg" |
217 | 285 |
! |
286 |
||
287 |
showLongOffset:byte |
|
288 |
|offs| |
|
289 |
||
290 |
index := index + 1. |
|
291 |
(byte > 127) ifTrue:[ |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
292 |
offs := byte - 256 - 128 |
217 | 293 |
] ifFalse:[ |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
294 |
offs := byte + 128 |
217 | 295 |
]. |
293 | 296 |
listStream show:offs printString. |
297 |
listStream show:' ('. |
|
298 |
listStream show:(index + offs) printString. |
|
299 |
listStream show:')' |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
300 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
301 |
"Modified: 16.4.1996 / 20:28:30 / cg" |
217 | 302 |
! |
303 |
||
304 |
showLongOffsetLevel:byte |
|
305 |
self showLongOffset:byte. |
|
306 |
self showNvarNargsAt:index. |
|
307 |
index := index + 2 |
|
308 |
! |
|
309 |
||
310 |
showLsendArgs:byte |
|
311 |
|litIndex| |
|
312 |
||
293 | 313 |
listStream show:byte printString. |
314 |
listStream show:' '. |
|
217 | 315 |
index := index + 1. |
316 |
litIndex := bytes wordAt:index MSB:false. |
|
293 | 317 |
listStream show:(literals at:litIndex) printString. |
217 | 318 |
index := index + 2 |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
319 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
320 |
"Modified: 16.4.1996 / 20:28:35 / cg" |
217 | 321 |
! |
322 |
||
323 |
showNumber16:byte |
|
293 | 324 |
listStream show:(bytes signedWordAt:index MSB:false) printString. |
217 | 325 |
index := index + 2 |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
326 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
327 |
"Modified: 16.4.1996 / 20:28:37 / cg" |
217 | 328 |
! |
329 |
||
330 |
showNumber:byte |
|
293 | 331 |
listStream show:byte printString. |
217 | 332 |
index := index + 1 |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
333 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
334 |
"Modified: 16.4.1996 / 20:28:38 / cg" |
217 | 335 |
! |
336 |
||
337 |
showNvarNargsAt:index |
|
293 | 338 |
listStream show:' nv='. |
339 |
listStream show:(bytes at:index) printString. |
|
340 |
listStream show:' na='. |
|
341 |
listStream show:(bytes at:(index + 1)) printString |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
342 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
343 |
"Modified: 16.4.1996 / 20:28:40 / cg" |
217 | 344 |
! |
345 |
||
346 |
showOffset:byte |
|
347 |
|offs| |
|
348 |
||
349 |
index := index + 1. |
|
350 |
(byte > 127) ifTrue:[ |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
351 |
offs := byte - 256 |
217 | 352 |
] ifFalse:[ |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
353 |
offs := byte |
217 | 354 |
]. |
293 | 355 |
listStream show:(offs printString). |
356 |
listStream show:' ('. |
|
357 |
listStream show:(index + offs) printString. |
|
358 |
listStream show:')' |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
359 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
360 |
"Modified: 16.4.1996 / 20:28:43 / cg" |
217 | 361 |
! |
362 |
||
363 |
showOffsetLevel:byte |
|
364 |
self showOffset:byte. |
|
365 |
self showNvarNargsAt:index. |
|
366 |
index := index + 2 |
|
367 |
! |
|
368 |
||
369 |
showPC |
|
293 | 370 |
listStream show:(index printStringRadix:10 size:3 fill:(Character space)). |
371 |
listStream show:': '. |
|
372 |
listStream show:((bytes at:index) printStringRadix:16 size:2 fill:$0). |
|
373 |
listStream show:' '. |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
374 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
375 |
"Modified: 16.4.1996 / 20:28:47 / cg" |
217 | 376 |
! |
377 |
||
378 |
showSendArgs:byte |
|
293 | 379 |
listStream show:byte printString. |
380 |
listStream show:' '. |
|
217 | 381 |
index := index + 1. |
382 |
self showLiteralAt:index. |
|
383 |
index := index + 1 |
|
384 |
||
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
385 |
"Modified: 16.4.1996 / 20:28:50 / cg" |
217 | 386 |
! |
387 |
||
246
abf09d4821fe
new code for faster global pushes
Claus Gittinger <cg@exept.de>
parents:
217
diff
changeset
|
388 |
showSpecialGlobal:byte |
abf09d4821fe
new code for faster global pushes
Claus Gittinger <cg@exept.de>
parents:
217
diff
changeset
|
389 |
|specialIndex| |
abf09d4821fe
new code for faster global pushes
Claus Gittinger <cg@exept.de>
parents:
217
diff
changeset
|
390 |
|
abf09d4821fe
new code for faster global pushes
Claus Gittinger <cg@exept.de>
parents:
217
diff
changeset
|
391 |
specialIndex := bytes at:index. |
abf09d4821fe
new code for faster global pushes
Claus Gittinger <cg@exept.de>
parents:
217
diff
changeset
|
392 |
index := index + 1. |
293 | 393 |
"/ listStream show:specialIndex printString. |
394 |
listStream show:(#(Array String FloatArray DoubleArray |
|
326
d2858404a4a4
#showSpecialGlobal: knows about more specials.
Stefan Vogel <sv@exept.de>
parents:
293
diff
changeset
|
395 |
Point Symbol Smalltalk Processor |
327 | 396 |
SmallInteger Character Float Process |
326
d2858404a4a4
#showSpecialGlobal: knows about more specials.
Stefan Vogel <sv@exept.de>
parents:
293
diff
changeset
|
397 |
Set IdentitySet Dictionary IdentityDictionary |
d2858404a4a4
#showSpecialGlobal: knows about more specials.
Stefan Vogel <sv@exept.de>
parents:
293
diff
changeset
|
398 |
Semaphore OrderedCollection) at:specialIndex + 1) |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
399 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
400 |
"Modified: 16.4.1996 / 20:28:53 / cg" |
327 | 401 |
"Modified: 9.8.1996 / 23:59:36 / stefan" |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
402 |
! |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
403 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
404 |
showSpecialSend:byte |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
405 |
|specialIndex| |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
406 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
407 |
specialIndex := bytes at:index. |
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
408 |
index := index + 1. |
293 | 409 |
"/ listStream show:specialIndex printString. |
410 |
listStream show:'#'. |
|
411 |
listStream show:(#(top bottom left right) at:specialIndex + 1) |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
412 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
413 |
"Modified: 16.4.1996 / 20:28:55 / cg" |
246
abf09d4821fe
new code for faster global pushes
Claus Gittinger <cg@exept.de>
parents:
217
diff
changeset
|
414 |
! |
abf09d4821fe
new code for faster global pushes
Claus Gittinger <cg@exept.de>
parents:
217
diff
changeset
|
415 |
|
217 | 416 |
showSuperSendArgs:byte |
293 | 417 |
listStream show:byte printString. |
418 |
listStream show:' '. |
|
217 | 419 |
index := index + 1. |
420 |
self showLiteralAt:index. |
|
421 |
index := index + 1. |
|
293 | 422 |
listStream show:' '. |
217 | 423 |
self showLiteralAt:index. |
424 |
index := index + 1 |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
425 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
426 |
"Modified: 16.4.1996 / 20:28:58 / cg" |
217 | 427 |
! |
428 |
||
429 |
showVeryLongOffset:byte |
|
430 |
|offs| |
|
431 |
||
432 |
index := index + 1. |
|
433 |
(byte > 127) ifTrue:[ |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
434 |
offs := byte - 256 - 256 |
217 | 435 |
] ifFalse:[ |
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
436 |
offs := byte + 256 |
217 | 437 |
]. |
293 | 438 |
listStream show:offs printString. |
439 |
listStream show:' ('. |
|
440 |
listStream show:(index + offs) printString. |
|
441 |
listStream show:')' |
|
250
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
442 |
|
6c26bc3fb154
allow decompile onto a stream
Claus Gittinger <cg@exept.de>
parents:
246
diff
changeset
|
443 |
"Modified: 16.4.1996 / 20:29:00 / cg" |
217 | 444 |
! |
445 |
||
446 |
showVeryLongOffsetLevel:byte |
|
447 |
self showVeryLongOffset:byte. |
|
448 |
self showNvarNargsAt:index. |
|
449 |
index := index + 2 |
|
450 |
! |
|
451 |
||
0 | 452 |
symbolicCodeFor:aByte |
453 |
|syms extras lnos| |
|
454 |
||
455 |
syms := #( retTop " 0 " |
|
342 | 456 |
retNil |
457 |
retTrue |
|
458 |
retFalse |
|
459 |
ret0 |
|
460 |
retSelf " 5 " |
|
461 |
blockRetTop |
|
344 | 462 |
homeRetTop |
342 | 463 |
LINE |
464 |
nil |
|
465 |
pushNil " 10 " |
|
466 |
pushTrue |
|
467 |
pushFalse |
|
468 |
sendSelf |
|
469 |
pushLit |
|
470 |
pushSelf " 15 " |
|
471 |
pushNum |
|
472 |
pushNum16 |
|
473 |
drop |
|
474 |
send |
|
475 |
superSend " 20 " |
|
476 |
send0 |
|
477 |
send1 |
|
478 |
send2 |
|
479 |
send3 |
|
480 |
sendDrop " 25 " |
|
481 |
sendDrop0 |
|
482 |
sendDrop1 |
|
483 |
sendDrop2 |
|
484 |
sendDrop3 |
|
485 |
pushMethodArg " 30 " |
|
486 |
pushMethodVar |
|
487 |
pushBlockArg |
|
488 |
pushBlockVar |
|
489 |
pushInstVar |
|
490 |
pushClassVar " 35 " |
|
491 |
pushGlobal |
|
492 |
storeMethodVar |
|
493 |
storeBlockVar |
|
494 |
storeInstVar |
|
495 |
storeClassVar " 40 " |
|
496 |
storeGlobal |
|
497 |
pushOuterBlockArg |
|
498 |
pushOuter1BlockArg |
|
499 |
pushOuter2BlockArg |
|
500 |
equal " 45 " |
|
501 |
notEqual |
|
502 |
dup |
|
503 |
equal0 |
|
504 |
notEqual0 |
|
505 |
falseJump " 50 " |
|
506 |
trueJump |
|
507 |
nilJump |
|
508 |
notNilJump |
|
509 |
jump |
|
510 |
makeBlock " 55 " |
|
511 |
zeroJump |
|
512 |
notZeroJump |
|
513 |
eqJump |
|
514 |
notEqJump |
|
515 |
falseJump " 60 " |
|
516 |
trueJump |
|
517 |
nilJump |
|
518 |
notNilJump |
|
519 |
jump |
|
520 |
makeBlock " 65 " |
|
521 |
zeroJump |
|
522 |
notZeroJump |
|
523 |
eqJump |
|
524 |
notEqJump |
|
525 |
falseJump " 70 " |
|
526 |
trueJump |
|
527 |
nilJump |
|
528 |
notNilJump |
|
529 |
jump |
|
530 |
makeBlock " 75 " |
|
531 |
zeroJump |
|
532 |
notZeroJump |
|
533 |
eqJump |
|
534 |
notEqJump |
|
535 |
pushMethodVar1 " 80 " |
|
536 |
pushMethodVar2 |
|
537 |
pushMethodVar3 |
|
538 |
pushMethodVar4 |
|
539 |
pushMethodVar5 |
|
540 |
pushMethodVar6 " 85 " |
|
541 |
pushMethodArg1 |
|
542 |
pushMethodArg2 |
|
543 |
pushMethodArg3 |
|
544 |
pushMethodArg4 |
|
545 |
pushInstVar1 " 90 " |
|
546 |
pushInstVar2 |
|
547 |
pushInstVar3 |
|
548 |
pushInstVar4 |
|
549 |
pushInstVar5 |
|
550 |
pushInstVar6 " 95 " |
|
551 |
pushInstVar7 |
|
552 |
pushInstVar8 |
|
553 |
pushInstVar9 |
|
554 |
pushInstVar10 |
|
555 |
storeMethodVar1 " 100 " |
|
556 |
storeMethodVar2 |
|
557 |
storeMethodVar3 |
|
558 |
storeMethodVar4 |
|
559 |
storeMethodVar5 |
|
560 |
storeMethodVar6 " 105 " |
|
561 |
sendY |
|
562 |
sendX |
|
347
c41b9c9c0e50
oops - sendWIDTH & sendHEIGHT have lineNumber info
Claus Gittinger <cg@exept.de>
parents:
344
diff
changeset
|
563 |
sendWIDTH |
c41b9c9c0e50
oops - sendWIDTH & sendHEIGHT have lineNumber info
Claus Gittinger <cg@exept.de>
parents:
344
diff
changeset
|
564 |
sendHEIGHT |
342 | 565 |
storeInstVar1 " 110 " |
566 |
storeInstVar2 |
|
567 |
storeInstVar3 |
|
568 |
storeInstVar4 |
|
569 |
storeInstVar5 |
|
570 |
storeInstVar6 " 115 " |
|
571 |
storeInstVar7 |
|
572 |
storeInstVar8 |
|
573 |
storeInstVar9 |
|
574 |
storeInstVar10 |
|
575 |
push0 " 120 " |
|
576 |
push1 |
|
577 |
pushMinus1 |
|
578 |
sendPlus1 |
|
579 |
sendMinus1 |
|
580 |
incMethodVar " 125 " |
|
581 |
decMethodVar |
|
582 |
retNum |
|
583 |
pushOuterBlockVar "16r80" |
|
584 |
storeOuterBlockVar |
|
585 |
sendEQ " 130 " |
|
586 |
sendPLUS |
|
587 |
sendNE |
|
588 |
sendMINUS |
|
589 |
sendCLASS |
|
590 |
sendAT " 135 " |
|
591 |
sendATPUT |
|
592 |
sendBitAnd |
|
593 |
sendBitOr |
|
594 |
push2 |
|
595 |
pushBlockArg1 " 140 " |
|
596 |
pushBlockArg2 |
|
597 |
pushBlockArg3 |
|
598 |
pushBlockArg4 |
|
599 |
pushContext "16r90" |
|
600 |
sendGT " 145 " |
|
601 |
sendGE |
|
602 |
sendLT |
|
603 |
sendLE |
|
604 |
sendNEXT |
|
605 |
sendPEEK " 150 " |
|
606 |
sendVALUE |
|
607 |
sendVALUE1 |
|
608 |
sendSIZE |
|
609 |
sendORIGIN |
|
610 |
sendEXTENT " 155 " |
|
611 |
make0Block |
|
612 |
makeNILBlock |
|
613 |
sendASINTEGER " 158 " |
|
614 |
sendROUNDED " 159 " |
|
615 |
retMvar1 " 160 " "16rA0" |
|
616 |
retMvar2 |
|
617 |
retMvar3 |
|
618 |
retMvar4 |
|
619 |
retMvar5 |
|
620 |
retMvar6 " 165 " |
|
621 |
retIvar1 |
|
622 |
retIvar2 |
|
623 |
retIvar3 |
|
624 |
retIvar4 |
|
625 |
retIvar5 " 170 " |
|
626 |
retIvar6 |
|
627 |
retIvar7 |
|
628 |
retIvar8 |
|
629 |
retMarg1 |
|
630 |
retMarg2 " 175 " |
|
631 |
pushClassInstVar |
|
632 |
storeClassInstVar |
|
633 |
nil |
|
634 |
not |
|
635 |
sendSelf0 " 180 " |
|
636 |
sendSelf1 |
|
637 |
sendSelf2 |
|
638 |
sendSelf3 |
|
639 |
sendSelfDrop0 |
|
640 |
sendSelfDrop1 " 185 " |
|
641 |
sendSelfDrop2 |
|
642 |
sendSelfDrop3 |
|
643 |
isNil |
|
644 |
notNil |
|
645 |
falseJumpAbs " 190 " |
|
646 |
trueJumpAbs |
|
647 |
nilJumpAbs |
|
648 |
notNilJumpAbs |
|
649 |
jumpAbs |
|
650 |
makeBlockAbs " 195 " |
|
651 |
zeroJumpAbs |
|
652 |
notZeroJumpAbs |
|
653 |
eqJumpAbs |
|
654 |
notEqJumpAbs " 199 " |
|
655 |
pushGlobal " 200 " |
|
656 |
pushLLit |
|
657 |
jmpFalseL |
|
658 |
jmpTrueL |
|
659 |
nil |
|
660 |
lsend " 205 " |
|
661 |
lsuperSend |
|
662 |
lsendSelf |
|
663 |
pushGT0 |
|
664 |
nil |
|
665 |
sendArrayNew " 210 " |
|
666 |
sendBasicNew |
|
667 |
sendGT0 |
|
668 |
sendNew |
|
669 |
sendBasicNewN |
|
670 |
sendNewN " 215 " |
|
671 |
sendLogAnd |
|
672 |
sendLogOr |
|
673 |
pushGlobL |
|
674 |
storeGlobL |
|
675 |
nil " 220 " |
|
676 |
nil |
|
677 |
pushLit1 |
|
678 |
pushLit2 |
|
679 |
pushLit3 |
|
680 |
pushLit4 |
|
681 |
pushLit5 |
|
682 |
pushLit6 |
|
683 |
pushLit7 |
|
684 |
pushLit8 |
|
685 |
sendMUL " 230 " |
|
686 |
sendSpecial " 231 " |
|
687 |
pushBlockVar1 |
|
688 |
pushBlockVar2 |
|
689 |
pushBlockVar3 |
|
690 |
storeBlockVar1 |
|
691 |
storeBlockVar2 |
|
692 |
storeBlockVar3 |
|
693 |
refCheck |
|
694 |
pushLocal |
|
695 |
storeLocal " 240 " |
|
696 |
). |
|
0 | 697 |
|
698 |
lnos := #( false " 0 " |
|
342 | 699 |
false |
700 |
false |
|
701 |
false |
|
702 |
false |
|
703 |
false " 5 " |
|
704 |
false |
|
705 |
false |
|
706 |
true |
|
707 |
false |
|
708 |
false " 10 " |
|
709 |
false |
|
710 |
false |
|
711 |
true |
|
712 |
false |
|
713 |
false " 15 " |
|
714 |
false |
|
715 |
false |
|
716 |
false |
|
717 |
true |
|
718 |
true " 20 " |
|
719 |
true |
|
720 |
true |
|
721 |
true |
|
722 |
true |
|
723 |
true " 25 " |
|
724 |
true |
|
725 |
true |
|
726 |
true |
|
727 |
true |
|
728 |
false " 30 " |
|
729 |
false |
|
730 |
false |
|
731 |
false |
|
732 |
false |
|
733 |
false " 35 " |
|
734 |
false |
|
735 |
false |
|
736 |
false |
|
737 |
false |
|
738 |
false " 40 " |
|
739 |
false |
|
740 |
false |
|
741 |
false |
|
742 |
false |
|
743 |
false " 45 " |
|
744 |
false |
|
745 |
false |
|
746 |
false |
|
747 |
false |
|
748 |
false " 50 " |
|
749 |
false |
|
750 |
false |
|
751 |
false |
|
752 |
false |
|
753 |
false " 55 " |
|
754 |
false |
|
755 |
false |
|
756 |
false |
|
757 |
false |
|
758 |
false " 60 " |
|
759 |
false |
|
760 |
false |
|
761 |
false |
|
762 |
false |
|
763 |
false " 65 " |
|
764 |
false |
|
765 |
false |
|
766 |
false |
|
767 |
false |
|
768 |
false " 70 " |
|
769 |
false |
|
770 |
false |
|
771 |
false |
|
772 |
false |
|
773 |
false " 75 " |
|
774 |
false |
|
775 |
false |
|
776 |
false |
|
777 |
false |
|
778 |
false " 80 " |
|
779 |
false |
|
780 |
false |
|
781 |
false |
|
782 |
false |
|
783 |
false " 85 " |
|
784 |
false |
|
785 |
false |
|
786 |
false |
|
787 |
false |
|
788 |
false " 90 " |
|
789 |
false |
|
790 |
false |
|
791 |
false |
|
792 |
false |
|
793 |
false " 95 " |
|
794 |
false |
|
795 |
false |
|
796 |
false |
|
797 |
false |
|
798 |
false " 100 " |
|
799 |
false |
|
800 |
false |
|
801 |
false |
|
802 |
false |
|
803 |
false " 105 " |
|
347
c41b9c9c0e50
oops - sendWIDTH & sendHEIGHT have lineNumber info
Claus Gittinger <cg@exept.de>
parents:
344
diff
changeset
|
804 |
true |
c41b9c9c0e50
oops - sendWIDTH & sendHEIGHT have lineNumber info
Claus Gittinger <cg@exept.de>
parents:
344
diff
changeset
|
805 |
true |
c41b9c9c0e50
oops - sendWIDTH & sendHEIGHT have lineNumber info
Claus Gittinger <cg@exept.de>
parents:
344
diff
changeset
|
806 |
true |
c41b9c9c0e50
oops - sendWIDTH & sendHEIGHT have lineNumber info
Claus Gittinger <cg@exept.de>
parents:
344
diff
changeset
|
807 |
true |
342 | 808 |
false " 110 " |
809 |
false |
|
810 |
false |
|
811 |
false |
|
812 |
false |
|
813 |
false " 115 " |
|
814 |
false |
|
815 |
false |
|
816 |
false |
|
817 |
false |
|
818 |
false " 120 " |
|
819 |
false |
|
820 |
false |
|
821 |
true |
|
822 |
true |
|
823 |
true " 125 " |
|
824 |
true |
|
825 |
false |
|
826 |
false |
|
827 |
false |
|
828 |
true " 130 " |
|
829 |
true |
|
830 |
true |
|
831 |
true |
|
832 |
false |
|
833 |
true " 135 " |
|
834 |
true |
|
835 |
true |
|
836 |
true |
|
837 |
false |
|
838 |
false " 140 " |
|
839 |
false |
|
840 |
false |
|
841 |
false |
|
842 |
false |
|
843 |
true " 145 " |
|
844 |
true |
|
845 |
true |
|
846 |
true |
|
847 |
true |
|
848 |
true " 150 " |
|
849 |
true |
|
850 |
true |
|
851 |
true |
|
852 |
true |
|
853 |
true " 155 " |
|
854 |
false |
|
855 |
false |
|
856 |
true |
|
857 |
true |
|
858 |
false " 160 " |
|
859 |
false |
|
860 |
false |
|
861 |
false |
|
862 |
false |
|
863 |
false " 165 " |
|
864 |
false |
|
865 |
false |
|
866 |
false |
|
867 |
false |
|
868 |
false " 170 " |
|
869 |
false |
|
870 |
false |
|
871 |
false |
|
872 |
false |
|
873 |
false " 175 " |
|
874 |
false |
|
875 |
false |
|
876 |
false |
|
877 |
true |
|
878 |
true " 180 " |
|
879 |
true |
|
880 |
true |
|
881 |
true |
|
882 |
true |
|
883 |
true " 185 " |
|
884 |
true |
|
885 |
true |
|
886 |
false |
|
887 |
false |
|
888 |
false " 190 " |
|
889 |
false |
|
890 |
false |
|
891 |
false |
|
892 |
false |
|
893 |
false " 195 " |
|
894 |
false |
|
895 |
false |
|
896 |
false |
|
897 |
false " 199 " |
|
898 |
false " 200 " |
|
899 |
false |
|
900 |
false |
|
901 |
false |
|
902 |
false |
|
903 |
true " 205 " |
|
904 |
true |
|
905 |
false |
|
906 |
true |
|
907 |
false |
|
908 |
false " 210 " " arrayNew " |
|
909 |
true " basicNew " |
|
910 |
true " > 0 " |
|
911 |
true " new " |
|
912 |
true " basicNew: " |
|
913 |
true " 215 " " new: " |
|
914 |
true |
|
915 |
true |
|
916 |
false |
|
917 |
false |
|
918 |
false " 220 " |
|
919 |
false |
|
920 |
false |
|
921 |
false |
|
922 |
false |
|
923 |
false " 225 " |
|
924 |
false |
|
925 |
false |
|
926 |
false |
|
927 |
false " 229 " |
|
928 |
true " 230 " |
|
929 |
true " 231 " |
|
930 |
false |
|
931 |
false |
|
932 |
false |
|
933 |
false |
|
934 |
false |
|
935 |
false |
|
936 |
false |
|
937 |
false |
|
938 |
false " 240 " |
|
939 |
). |
|
0 | 940 |
|
941 |
extras := #(nil " 0 " |
|
342 | 942 |
nil |
943 |
nil |
|
944 |
nil |
|
945 |
nil |
|
946 |
nil " 5 " |
|
947 |
nil |
|
948 |
nil |
|
949 |
nil |
|
950 |
nil |
|
951 |
nil " 10 " |
|
952 |
nil |
|
953 |
nil |
|
954 |
sendArgs |
|
955 |
literal |
|
956 |
nil " 15 " |
|
957 |
number |
|
958 |
number16 |
|
959 |
nil |
|
960 |
sendArgs |
|
961 |
superSendArgs " 20 " |
|
962 |
literal |
|
963 |
literal |
|
964 |
literal |
|
965 |
literal |
|
966 |
sendArgs " 25 " |
|
967 |
literal |
|
968 |
literal |
|
969 |
literal |
|
970 |
literal |
|
971 |
index " 30 " |
|
972 |
index |
|
973 |
index |
|
974 |
index |
|
975 |
instvarIndex |
|
976 |
literalSkip6 " 35 " |
|
977 |
literalSkip6 |
|
978 |
index |
|
979 |
index |
|
980 |
instvarIndex |
|
981 |
literalSkip6 " 40 " |
|
982 |
literalSkip6 |
|
983 |
indexLevel |
|
984 |
index |
|
985 |
index |
|
986 |
nil " 45 " |
|
987 |
nil |
|
988 |
nil |
|
989 |
nil |
|
990 |
nil |
|
991 |
offset " 50 " |
|
992 |
offset |
|
993 |
offset |
|
994 |
offset |
|
995 |
offset |
|
996 |
offsetLevel " 55 " |
|
997 |
offset |
|
998 |
offset |
|
999 |
offset |
|
1000 |
offset |
|
1001 |
longOffset " 60 " |
|
1002 |
longOffset |
|
1003 |
longOffset |
|
1004 |
longOffset |
|
1005 |
longOffset |
|
1006 |
longOffsetLevel " 65 " |
|
1007 |
longOffset |
|
1008 |
longOffset |
|
1009 |
longOffset |
|
1010 |
longOffset |
|
1011 |
veryLongOffset " 70 " |
|
1012 |
veryLongOffset |
|
1013 |
veryLongOffset |
|
1014 |
veryLongOffset |
|
1015 |
veryLongOffset |
|
1016 |
veryLongOffsetLevel " 75 " |
|
1017 |
veryLongOffset |
|
1018 |
veryLongOffset |
|
1019 |
veryLongOffset |
|
1020 |
veryLongOffset |
|
1021 |
nil " 80 " |
|
1022 |
nil |
|
1023 |
nil |
|
1024 |
nil |
|
1025 |
nil |
|
1026 |
nil " 85 " |
|
1027 |
nil |
|
1028 |
nil |
|
1029 |
nil |
|
1030 |
nil |
|
1031 |
nil " 90 " |
|
1032 |
nil |
|
1033 |
nil |
|
1034 |
nil |
|
1035 |
nil |
|
1036 |
nil " 95 " |
|
1037 |
nil |
|
1038 |
nil |
|
1039 |
nil |
|
1040 |
nil |
|
1041 |
nil " 100 " |
|
1042 |
nil |
|
1043 |
nil |
|
1044 |
nil |
|
1045 |
nil |
|
1046 |
nil " 105 " |
|
1047 |
nil |
|
1048 |
nil |
|
1049 |
nil |
|
1050 |
nil |
|
1051 |
nil " 110 " |
|
1052 |
nil |
|
1053 |
nil |
|
1054 |
nil |
|
1055 |
nil |
|
1056 |
nil " 115 " |
|
1057 |
nil |
|
1058 |
nil |
|
1059 |
nil |
|
1060 |
nil |
|
1061 |
nil " 120 " |
|
1062 |
nil |
|
1063 |
nil |
|
1064 |
nil |
|
1065 |
nil |
|
1066 |
index " 125 " |
|
1067 |
index |
|
1068 |
number |
|
1069 |
levelIndex "/ indexLevel |
|
1070 |
indexLevel |
|
1071 |
nil " 130 " |
|
1072 |
nil |
|
1073 |
nil |
|
1074 |
nil |
|
1075 |
nil |
|
1076 |
nil " 135 " |
|
1077 |
nil |
|
1078 |
nil |
|
1079 |
nil |
|
1080 |
nil |
|
1081 |
nil " 140 " |
|
1082 |
nil |
|
1083 |
nil |
|
1084 |
nil |
|
1085 |
nil |
|
1086 |
nil " 145 " |
|
1087 |
nil |
|
1088 |
nil |
|
1089 |
nil |
|
1090 |
nil |
|
1091 |
nil " 150 " |
|
1092 |
nil |
|
1093 |
nil |
|
1094 |
nil |
|
1095 |
nil |
|
1096 |
nil " 155 " |
|
1097 |
nil |
|
1098 |
nil |
|
1099 |
nil |
|
1100 |
nil |
|
1101 |
nil " 160 " |
|
1102 |
nil |
|
1103 |
nil |
|
1104 |
nil |
|
1105 |
nil |
|
1106 |
nil " 165 " |
|
1107 |
nil |
|
1108 |
nil |
|
1109 |
nil |
|
1110 |
nil |
|
1111 |
nil " 170 " |
|
1112 |
nil |
|
1113 |
nil |
|
1114 |
nil |
|
1115 |
nil |
|
1116 |
nil " 175 " |
|
1117 |
index |
|
1118 |
index |
|
1119 |
nil |
|
1120 |
nil |
|
1121 |
literal " 180 " |
|
1122 |
literal |
|
1123 |
literal |
|
1124 |
literal |
|
1125 |
literal |
|
1126 |
literal " 185 " |
|
1127 |
literal |
|
1128 |
literal |
|
1129 |
nil |
|
1130 |
nil |
|
1131 |
absOffset " 190 " |
|
1132 |
absOffset |
|
1133 |
absOffset |
|
1134 |
absOffset |
|
1135 |
absOffset |
|
1136 |
absOffsetLevel |
|
1137 |
absOffset |
|
1138 |
absOffset |
|
1139 |
absOffset |
|
1140 |
absOffset " 199 " |
|
1141 |
specialGlobal " 200 " |
|
1142 |
literal16 |
|
1143 |
nil |
|
1144 |
nil |
|
1145 |
nil |
|
1146 |
lsendArgs " 205 " |
|
1147 |
lsuperSendArgs |
|
1148 |
lsendSelfArgs |
|
1149 |
nil |
|
1150 |
nil |
|
1151 |
nil " 210 " |
|
1152 |
nil |
|
1153 |
nil |
|
1154 |
nil |
|
1155 |
nil |
|
1156 |
nil " 215 " |
|
1157 |
nil |
|
1158 |
nil |
|
1159 |
literal16Skip6 |
|
1160 |
literal16Skip6 |
|
1161 |
nil " 220 " |
|
1162 |
nil |
|
1163 |
lit1 |
|
1164 |
lit2 |
|
1165 |
lit3 |
|
1166 |
lit4 " 225 " |
|
1167 |
lit5 |
|
1168 |
lit6 |
|
1169 |
lit7 |
|
1170 |
lit8 |
|
1171 |
nil " 230 " |
|
1172 |
specialSend " 231 " |
|
1173 |
nil |
|
1174 |
nil |
|
1175 |
nil |
|
1176 |
nil |
|
1177 |
nil |
|
1178 |
nil |
|
1179 |
nil |
|
1180 |
index |
|
1181 |
index " 240 " |
|
1182 |
). |
|
0 | 1183 |
|
1184 |
extra := extras at:(aByte + 1). |
|
1185 |
hasLineNo := lnos at:(aByte + 1). |
|
1186 |
^ syms at:(aByte + 1) |
|
164 | 1187 |
|
1188 |
"Modified: 2.9.1995 / 00:12:11 / claus" |
|
347
c41b9c9c0e50
oops - sendWIDTH & sendHEIGHT have lineNumber info
Claus Gittinger <cg@exept.de>
parents:
344
diff
changeset
|
1189 |
"Modified: 2.10.1996 / 15:42:35 / cg" |
0 | 1190 |
! ! |
217 | 1191 |
|
326
d2858404a4a4
#showSpecialGlobal: knows about more specials.
Stefan Vogel <sv@exept.de>
parents:
293
diff
changeset
|
1192 |
!Decompiler class methodsFor:'documentation'! |
217 | 1193 |
|
1194 |
version |
|
347
c41b9c9c0e50
oops - sendWIDTH & sendHEIGHT have lineNumber info
Claus Gittinger <cg@exept.de>
parents:
344
diff
changeset
|
1195 |
^ '$Header: /cvs/stx/stx/libcomp/Decompiler.st,v 1.20 1996-10-02 14:44:21 cg Exp $' |
217 | 1196 |
! ! |