diff -r de981640a2ec -r 0dd36941955f IRBlockReturnTop.st --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IRBlockReturnTop.st Wed Jun 11 14:54:42 2008 +0000 @@ -0,0 +1,45 @@ +"{ Package: 'stx:goodies/newcompiler' }" + +IRReturn subclass:#IRBlockReturnTop + instanceVariableNames:'successor' + classVariableNames:'' + poolDictionaries:'' + category:'NewCompiler-IR' +! + + +!IRBlockReturnTop methodsFor:'accessing'! + +successor: anObject + + successor := anObject. +! + +successorSequences + "sent to last instruction in sequence which is expected to be a jump and return instruction" + + ^ { successor } +! ! + +!IRBlockReturnTop methodsFor:'interpret'! + +executeOn: interpreter + interpreter blockReturnTop. +! ! + +!IRBlockReturnTop methodsFor:'testing'! + +isBlockReturnTop + + ^true. +! + +isRemote + ^false. +! ! + +!IRBlockReturnTop class methodsFor:'documentation'! + +version + ^'$Id$' +! !