IRBlockReturnTop.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sun, 06 Dec 2009 08:24:34 +0000
changeset 23 377bc46cad12
parent 1 0dd36941955f
child 26 db19d89eef60
permissions -rw-r--r--
Moved to package cvut:stx/goodies/newcompiler to be in sync with eXept

"{ Package: 'cvut: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
    ^ '$Header: /cvs/stx/cvut/stx/goodies/newcompiler/IRBlockReturnTop.st,v 1.3 2009/10/08 11:58:58 fm Exp $'
!

version_CVS
    ^ '$Header: /cvs/stx/cvut/stx/goodies/newcompiler/IRBlockReturnTop.st,v 1.3 2009/10/08 11:58:58 fm Exp $'
!

version_SVN
    ^'§Id: IRBlockReturnTop.st 13 2009-04-16 12:48:33Z vranyj1 §'
! !