author | Claus Gittinger <cg@exept.de> |
Fri, 19 Apr 1996 12:47:25 +0200 | |
changeset 1221 | 46d72af387e9 |
parent 1196 | 7b3eeec128d3 |
child 1254 | 48c2748b5197 |
permissions | -rw-r--r-- |
84 | 1 |
" |
2 |
COPYRIGHT (c) 1994 by Claus Gittinger |
|
159 | 3 |
All Rights Reserved |
84 | 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 |
||
249 | 13 |
ExecutableFunction subclass:#CompiledCode |
1182
d8f8e18928a5
only CompiledCode, Method & Block are fixed - subclasses may look different
Claus Gittinger <cg@exept.de>
parents:
1133
diff
changeset
|
14 |
instanceVariableNames:'flags byteCode literals' |
d8f8e18928a5
only CompiledCode, Method & Block are fixed - subclasses may look different
Claus Gittinger <cg@exept.de>
parents:
1133
diff
changeset
|
15 |
classVariableNames:'NoByteCodeSignal InvalidByteCodeSignal InvalidInstructionSignal |
d8f8e18928a5
only CompiledCode, Method & Block are fixed - subclasses may look different
Claus Gittinger <cg@exept.de>
parents:
1133
diff
changeset
|
16 |
BadLiteralsSignal NonBooleanReceiverSignal ArgumentSignal' |
d8f8e18928a5
only CompiledCode, Method & Block are fixed - subclasses may look different
Claus Gittinger <cg@exept.de>
parents:
1133
diff
changeset
|
17 |
poolDictionaries:'' |
d8f8e18928a5
only CompiledCode, Method & Block are fixed - subclasses may look different
Claus Gittinger <cg@exept.de>
parents:
1133
diff
changeset
|
18 |
category:'Kernel-Methods' |
84 | 19 |
! |
20 |
||
249 | 21 |
!CompiledCode class methodsFor:'documentation'! |
84 | 22 |
|
88 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 1994 by Claus Gittinger |
|
159 | 26 |
All Rights Reserved |
88 | 27 |
|
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
84 | 37 |
documentation |
38 |
" |
|
39 |
This is an abstract class, to merge common attributes of Blocks and |
|
328 | 40 |
Methods i.e. describe all objects consisting of either compiled or |
41 |
interpreted code. |
|
84 | 42 |
|
43 |
Instance variables: |
|
44 |
||
357 | 45 |
flags <SmallInteger> special flag bits coded in a number |
225 | 46 |
byteCode <ByteArray> bytecode if its an interpreted codeobject |
47 |
literals <Array> the block/methods literal array |
|
48 |
||
49 |
||
50 |
Class variables: |
|
51 |
||
52 |
NoByteCodeSignal raised if a codeObject is about to be executed |
|
53 |
which has neither code nor byteCode (i.e. both are nil) |
|
54 |
InvalidByteCodeSignal raised if byteCode is not an instance of ByteArray |
|
55 |
InvalidInstructionSignal raised if an invalid instruction opcode is encountered |
|
56 |
BadLiteralsSignal raised if literalArray is not an array |
|
57 |
NonBooleanReceiverSignal raised for conditional jumps where receiver is not a boolean |
|
58 |
ArgumentSignal raised if argument count is not what the codeObject expects |
|
59 |
||
60 |
all of these signals are children of ExecutionErrorSignal. |
|
84 | 61 |
|
62 |
NOTICE: layout known by runtime system and compiler - do not change |
|
63 |
" |
|
64 |
! ! |
|
65 |
||
249 | 66 |
!CompiledCode class methodsFor:'initialization'! |
106 | 67 |
|
68 |
initialize |
|
69 |
NoByteCodeSignal isNil ifTrue:[ |
|
159 | 70 |
NoByteCodeSignal := ExecutionErrorSignal newSignalMayProceed:true. |
71 |
NoByteCodeSignal nameClass:self message:#noByteCodeSignal. |
|
72 |
NoByteCodeSignal notifierString:'nil byteCode in code-object - not executable'. |
|
73 |
||
74 |
InvalidByteCodeSignal := ExecutionErrorSignal newSignalMayProceed:true. |
|
75 |
InvalidByteCodeSignal nameClass:self message:#invalidByteCodeSignal. |
|
76 |
InvalidByteCodeSignal notifierString:'invalid byteCode in code-object - not executable'. |
|
77 |
||
78 |
InvalidInstructionSignal := ExecutionErrorSignal newSignalMayProceed:true. |
|
79 |
InvalidInstructionSignal nameClass:self message:#invalidInstructionSignal. |
|
80 |
InvalidInstructionSignal notifierString:'invalid instruction in code-object - not executable'. |
|
81 |
||
82 |
BadLiteralsSignal := ExecutionErrorSignal newSignalMayProceed:true. |
|
83 |
BadLiteralsSignal nameClass:self message:#badLiteralsSignal. |
|
84 |
BadLiteralsSignal notifierString:'bad literal table in code-object - should not happen'. |
|
85 |
||
86 |
NonBooleanReceiverSignal := ExecutionErrorSignal newSignalMayProceed:true. |
|
87 |
NonBooleanReceiverSignal nameClass:self message:#nonBooleanReceiverSignal. |
|
88 |
NonBooleanReceiverSignal notifierString:'if/while on non-boolean receiver'. |
|
89 |
||
90 |
ArgumentSignal := ExecutionErrorSignal newSignalMayProceed:true. |
|
91 |
ArgumentSignal nameClass:self message:#argumentSignal. |
|
92 |
ArgumentSignal notifierString:'bad argument(s)'. |
|
106 | 93 |
] |
94 |
! ! |
|
95 |
||
345 | 96 |
!CompiledCode class methodsFor:'Signal constants'! |
106 | 97 |
|
98 |
argumentSignal |
|
99 |
"return the signal raised when something's wrong with the |
|
100 |
arguments" |
|
101 |
||
102 |
^ ArgumentSignal |
|
623 | 103 |
! |
104 |
||
105 |
executionErrorSignal |
|
106 |
"return the parent-signal of all execution errors" |
|
107 |
||
108 |
^ ExecutionErrorSignal |
|
106 | 109 |
! ! |
110 |
||
249 | 111 |
!CompiledCode class methodsFor:'queries'! |
84 | 112 |
|
113 |
isBuiltInClass |
|
114 |
"this class is known by the run-time-system" |
|
115 |
||
1182
d8f8e18928a5
only CompiledCode, Method & Block are fixed - subclasses may look different
Claus Gittinger <cg@exept.de>
parents:
1133
diff
changeset
|
116 |
^ self == CompiledCode |
d8f8e18928a5
only CompiledCode, Method & Block are fixed - subclasses may look different
Claus Gittinger <cg@exept.de>
parents:
1133
diff
changeset
|
117 |
|
d8f8e18928a5
only CompiledCode, Method & Block are fixed - subclasses may look different
Claus Gittinger <cg@exept.de>
parents:
1133
diff
changeset
|
118 |
"Modified: 16.4.1996 / 11:25:40 / cg" |
84 | 119 |
! ! |
120 |
||
249 | 121 |
!CompiledCode methodsFor:'accessing'! |
84 | 122 |
|
123 |
byteCode |
|
124 |
"return the bytecode (a ByteArray)" |
|
125 |
||
126 |
^ byteCode |
|
127 |
! |
|
128 |
||
129 |
literals |
|
130 |
"return the literal array" |
|
131 |
||
132 |
^ literals |
|
133 |
! ! |
|
134 |
||
623 | 135 |
!CompiledCode methodsFor:'error handling'! |
136 |
||
137 |
badArgumentArray |
|
138 |
"this error is triggered, if a non array is passed to |
|
139 |
#valueWithReceiver:.. methods" |
|
140 |
||
141 |
^ ArgumentSignal |
|
142 |
raiseRequestWith:self |
|
143 |
errorString:'argumentArray must be an Array' |
|
144 |
! |
|
145 |
||
146 |
badLiteralTable |
|
147 |
"this error is triggered, when a block/method is called with a bad literal |
|
148 |
array (i.e. non-array) - this can only happen, if the |
|
149 |
compiler is broken or someone played around with a block/methods |
|
150 |
literal table or the GC is broken and corrupted it." |
|
151 |
||
152 |
^ BadLiteralsSignal raise. |
|
153 |
! |
|
154 |
||
155 |
invalidByteCode |
|
156 |
"this error is triggered when the interpreter tries to execute a |
|
157 |
code object, where the byteCode is nonNil, but not a ByteArray. |
|
158 |
Can only happen when Compiler/runtime system is broken or |
|
159 |
someone played around with a block/method." |
|
160 |
||
161 |
^ InvalidByteCodeSignal raise. |
|
162 |
! |
|
163 |
||
164 |
invalidInstruction |
|
165 |
"this error is triggered when the bytecode-interpreter tries to |
|
166 |
execute an invalid bytecode instruction. |
|
167 |
Can only happen when Compiler/runtime system is broken or |
|
168 |
someone played around with the block/methods code." |
|
169 |
||
170 |
^ InvalidInstructionSignal raise. |
|
171 |
! |
|
172 |
||
173 |
noByteCode |
|
174 |
"this error is triggered when the interpreter tries to execute a |
|
175 |
code object, where both the code and byteCode instances are nil. |
|
176 |
This can happen if: |
|
177 |
the Compiler/runtime system is broken, |
|
178 |
someone played around with a block/method, |
|
179 |
compilation of a lazy method failed |
|
180 |
(i.e. the lazy method contains an error or |
|
181 |
it contains primitive code and there is no stc compiler available) |
|
182 |
an unloaded object modules method is called for. |
|
183 |
Only the first case is to be considered serious - it should not happen |
|
184 |
if the system is used correctly." |
|
185 |
||
186 |
^ NoByteCodeSignal raise. |
|
187 |
! |
|
188 |
||
189 |
receiverNotBoolean:anObject |
|
190 |
"this error is triggered when the bytecode-interpreter tries to |
|
191 |
execute ifTrue:/ifFalse or whileTrue: type of expressions where the |
|
192 |
receiver is neither true nor false." |
|
193 |
||
194 |
^ NonBooleanReceiverSignal raise. |
|
195 |
! |
|
196 |
||
197 |
tooManyArguments |
|
198 |
"this error is triggered, when a method/block tries to perform a send with |
|
199 |
more arguments than supported by the interpreter. This can only happen, |
|
200 |
if the compiler has been changed without updating the VM." |
|
201 |
||
202 |
^ ArgumentSignal |
|
203 |
raiseRequestWith:self |
|
204 |
errorString:'too many args in send' |
|
205 |
! ! |
|
206 |
||
207 |
!CompiledCode methodsFor:'private accessing'! |
|
208 |
||
209 |
byteCode:aByteArray |
|
210 |
"set the bytecode field - DANGER ALERT" |
|
211 |
||
212 |
byteCode := aByteArray |
|
213 |
! |
|
214 |
||
215 |
dynamic |
|
216 |
"return the flag stating that the machine code was created |
|
217 |
dynamically (from bytecode)." |
|
218 |
||
219 |
%{ /* NOCONTEXT */ |
|
220 |
||
221 |
/* made this a primitive to get define in stc.h */ |
|
222 |
||
1133 | 223 |
RETURN ((__intVal(__INST(flags)) & F_DYNAMIC) ? true : false); |
623 | 224 |
%} |
225 |
! |
|
226 |
||
227 |
dynamic:aBoolean |
|
228 |
"set/clear the flag bit stating that the machine code was created |
|
229 |
dynamically and should be flushed on image-restart. |
|
230 |
Obsolete - now done in VM" |
|
231 |
||
232 |
%{ /* NOCONTEXT */ |
|
233 |
||
1133 | 234 |
int newFlags = __intVal(__INST(flags)); |
623 | 235 |
|
236 |
/* made this a primitive to get define in stc.h */ |
|
237 |
if (aBoolean == true) |
|
238 |
newFlags |= F_DYNAMIC; |
|
239 |
else |
|
240 |
newFlags &= ~F_DYNAMIC; |
|
241 |
||
1133 | 242 |
__INST(flags) = __MKSMALLINT(newFlags); |
623 | 243 |
%} |
244 |
! |
|
245 |
||
246 |
literals:aLiteralArray |
|
247 |
"set the literal array for evaluation - DANGER ALERT" |
|
248 |
||
249 |
literals := aLiteralArray |
|
250 |
! |
|
251 |
||
252 |
markFlag |
|
253 |
"return the mark bits value as a boolean" |
|
254 |
||
255 |
%{ /* NOCONTEXT */ |
|
256 |
||
257 |
/* made this a primitive to get define in stc.h */ |
|
258 |
||
1133 | 259 |
RETURN ((__intVal(__INST(flags)) & F_MARKBIT) ? true : false); |
623 | 260 |
%} |
261 |
! |
|
262 |
||
263 |
markFlag:aBoolean |
|
264 |
"set/clear the mark flag bit. |
|
265 |
This bit is not used by the VM, but instead free to mark codeObjects |
|
266 |
for any (debugging/tracing) use. For example, the coverage test uses |
|
267 |
these to mark reached methods. (inspired by a note in c.l.s)" |
|
268 |
||
269 |
%{ /* NOCONTEXT */ |
|
270 |
||
1133 | 271 |
int newFlags = __intVal(__INST(flags)); |
623 | 272 |
|
273 |
/* made this a primitive to get define in stc.h */ |
|
274 |
if (aBoolean == true) |
|
275 |
newFlags |= F_MARKBIT; |
|
276 |
else |
|
277 |
newFlags &= ~F_MARKBIT; |
|
278 |
||
1133 | 279 |
__INST(flags) = __MKSMALLINT(newFlags); |
623 | 280 |
%} |
281 |
! ! |
|
282 |
||
328 | 283 |
!CompiledCode methodsFor:'queries'! |
284 |
||
1196
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
285 |
decompileTo:aStream |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
286 |
Decompiler notNil ifTrue:[ |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
287 |
Autoload autoloadFailedSignal handle:[:ex | |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
288 |
ex return |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
289 |
] do:[ |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
290 |
Decompiler autoload. |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
291 |
]. |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
292 |
]. |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
293 |
(Decompiler isNil or:[Decompiler isLoaded not]) ifTrue:[ |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
294 |
^ false |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
295 |
]. |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
296 |
|
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
297 |
Decompiler decompile:self to:aStream. |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
298 |
^ true |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
299 |
|
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
300 |
"Created: 16.4.1996 / 20:25:40 / cg" |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
301 |
"Modified: 16.4.1996 / 20:31:26 / cg" |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
302 |
! |
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
303 |
|
1195
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
304 |
isExecutable |
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
305 |
"return true, if this method is executable. |
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
306 |
I.e. neither an invalidated nor an unloaded method" |
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
307 |
|
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
308 |
self isInvalid ifTrue:[^ false]. |
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
309 |
^ self byteCode notNil or:[self code notNil] |
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
310 |
|
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
311 |
"Created: 16.4.1996 / 17:52:16 / cg" |
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
312 |
! |
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
313 |
|
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
314 |
isUnloaded |
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
315 |
"return true, if the methods machine code has been unloaded |
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
316 |
from the system (i.e. it is not executable)." |
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
317 |
|
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
318 |
^ (self code isNil and:[self byteCode isNil]) |
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
319 |
|
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
320 |
"Created: 16.4.1996 / 17:51:47 / cg" |
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
321 |
! |
618e2cf3fb56
moved some protocol to upper levels; generalized queries
Claus Gittinger <cg@exept.de>
parents:
1190
diff
changeset
|
322 |
|
328 | 323 |
messages |
324 |
"return a Set of all symbols referenced by this thingy. |
|
325 |
(this is more than the message selectors, since also global names |
|
326 |
and symbols found in immediate arrays are included)." |
|
327 |
||
328 |
|symbolSet| |
|
329 |
||
330 |
symbolSet := IdentitySet new. |
|
331 |
literals notNil ifTrue:[ |
|
332 |
literals do: [ :lit | |
|
370 | 333 |
lit isSymbol ifTrue: [ |
328 | 334 |
symbolSet add: lit |
335 |
] ifFalse: [ |
|
370 | 336 |
lit isArray ifTrue: [ |
328 | 337 |
lit traverse: [ :el | |
370 | 338 |
el isSymbol ifTrue: [symbolSet add: el] |
328 | 339 |
] |
340 |
] |
|
341 |
] |
|
342 |
] |
|
343 |
]. |
|
344 |
^ symbolSet |
|
345 |
||
346 |
" |
|
347 |
(CompiledCode compiledMethodAt:#messages) messages |
|
348 |
" |
|
1190
4ad1c8d6d94d
moved & added some query methods (from method) to upper abstract classes
Claus Gittinger <cg@exept.de>
parents:
1182
diff
changeset
|
349 |
! |
4ad1c8d6d94d
moved & added some query methods (from method) to upper abstract classes
Claus Gittinger <cg@exept.de>
parents:
1182
diff
changeset
|
350 |
|
4ad1c8d6d94d
moved & added some query methods (from method) to upper abstract classes
Claus Gittinger <cg@exept.de>
parents:
1182
diff
changeset
|
351 |
referencesGlobal:aGlobalSymbol |
4ad1c8d6d94d
moved & added some query methods (from method) to upper abstract classes
Claus Gittinger <cg@exept.de>
parents:
1182
diff
changeset
|
352 |
"return true, if this method references the global |
4ad1c8d6d94d
moved & added some query methods (from method) to upper abstract classes
Claus Gittinger <cg@exept.de>
parents:
1182
diff
changeset
|
353 |
bound to aGlobalSymbol." |
4ad1c8d6d94d
moved & added some query methods (from method) to upper abstract classes
Claus Gittinger <cg@exept.de>
parents:
1182
diff
changeset
|
354 |
|
4ad1c8d6d94d
moved & added some query methods (from method) to upper abstract classes
Claus Gittinger <cg@exept.de>
parents:
1182
diff
changeset
|
355 |
|lits| |
4ad1c8d6d94d
moved & added some query methods (from method) to upper abstract classes
Claus Gittinger <cg@exept.de>
parents:
1182
diff
changeset
|
356 |
|
4ad1c8d6d94d
moved & added some query methods (from method) to upper abstract classes
Claus Gittinger <cg@exept.de>
parents:
1182
diff
changeset
|
357 |
(lits := self literals) isNil ifTrue:[^ false]. |
4ad1c8d6d94d
moved & added some query methods (from method) to upper abstract classes
Claus Gittinger <cg@exept.de>
parents:
1182
diff
changeset
|
358 |
^ (lits identityIndexOf:aGlobalSymbol startingAt:1) ~~ 0 |
4ad1c8d6d94d
moved & added some query methods (from method) to upper abstract classes
Claus Gittinger <cg@exept.de>
parents:
1182
diff
changeset
|
359 |
|
4ad1c8d6d94d
moved & added some query methods (from method) to upper abstract classes
Claus Gittinger <cg@exept.de>
parents:
1182
diff
changeset
|
360 |
"Created: 16.4.1996 / 16:36:32 / cg" |
328 | 361 |
! ! |
362 |
||
1182
d8f8e18928a5
only CompiledCode, Method & Block are fixed - subclasses may look different
Claus Gittinger <cg@exept.de>
parents:
1133
diff
changeset
|
363 |
!CompiledCode class methodsFor:'documentation'! |
d8f8e18928a5
only CompiledCode, Method & Block are fixed - subclasses may look different
Claus Gittinger <cg@exept.de>
parents:
1133
diff
changeset
|
364 |
|
d8f8e18928a5
only CompiledCode, Method & Block are fixed - subclasses may look different
Claus Gittinger <cg@exept.de>
parents:
1133
diff
changeset
|
365 |
version |
1196
7b3eeec128d3
moved decompilation into codeObject (allows handling of alien codeObjects)
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
366 |
^ '$Header: /cvs/stx/stx/libbasic/Attic/CompCode.st,v 1.26 1996-04-16 18:44:18 cg Exp $' |
1182
d8f8e18928a5
only CompiledCode, Method & Block are fixed - subclasses may look different
Claus Gittinger <cg@exept.de>
parents:
1133
diff
changeset
|
367 |
! ! |
623 | 368 |
CompiledCode initialize! |