[FIX] Code generation
Mats Nygren
nygren at sics.se
Wed Oct 4 19:16:26 UTC 2000
Hi,
a minor thing so non-inlined codegneration compiles. On Linux one also
has to dribble with gnuify which works only with inlined interpereters.
/Mats
PS from my non-attaching squeak DS
'From Squeak2.8 of 13 June 2000 [latest update: #2359] on 4 October 2000
at 10:10:51 pm'!
"Change Set: cgfix
Date: 4 October 2000
Author: Mats Nygren
Small fix for non-inlined interpreter."!
!Interpreter methodsFor: 'plugin support' stamp: 'mn 10/4/2000 21:48'!
flushExternalPrimitiveOf: methodPtr
"methodPtr is a CompiledMethod containing an external primitive. Flush
the function address and session ID of the CM"
| lit |
(self literalCountOf: methodPtr) > 0 ifFalse:[^0]. "Something's broken"
lit _ self literal: 0 ofMethod: methodPtr.
((self fetchClassOf: lit) = (self splObj: ClassArray) and:[(self
lengthOf: lit) = 4])
ifFalse:[^0]. "Something's broken"
self storeInteger: 2 ofObject: lit withValue: 0.
self storeInteger: 3 ofObject: lit withValue: 0.
! !
More information about the Squeak-dev
mailing list
|