IRReturn.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 30 Oct 2014 22:45:30 +0000
changeset 46 2fb37cf149fb
parent 43 c8afb8e4c3cc
permissions -rw-r--r--
Fixed testSendSuper

"{ Package: 'ctu:ircompiler' }"

IRInstruction subclass:#IRReturn
	instanceVariableNames:'isRemote'
	classVariableNames:''
	poolDictionaries:''
	category:'IR Compiler-IR'
!

IRReturn comment:'Instruction "returnTop" or "remoteReturn"'
!


!IRReturn methodsFor:'accessing'!

isRemote

	^ isRemote
!

isRemote: boolean

	isRemote := boolean
! !

!IRReturn methodsFor:'interpret'!

executeOn: interpreter

	^ isRemote
		ifTrue: [interpreter remoteReturn]
		ifFalse: [interpreter returnTop]
! !

!IRReturn methodsFor:'testing'!

isReturn

	^ true
! !

!IRReturn class methodsFor:'documentation'!

version_CVS
    ^ 'Header: /cvs/stx/cvut/stx/goodies/newcompiler/IRReturn.st,v 1.3 2009/10/08 12:01:32 fm Exp '
!

version_SVN
    ^ '$Id::                                                                                                                        $'
! !