IRBlockReturnTop.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 12 Aug 2009 10:22:31 +0000
changeset 21 a5d30403049c
parent 1 0dd36941955f
child 23 377bc46cad12
permissions -rw-r--r--
Small improvement in IRFunction>>addTemps:

"{ 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$'
! !