IRReturn.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 03 Nov 2008 17:02:40 +0000
changeset 3 c9845c180bd4
parent 1 0dd36941955f
child 23 377bc46cad12
permissions -rw-r--r--
Fixes IRBytecodeGenerator >> #pushLiteral and IRBuilder >> #jumpAheadTo:

"{ Package: 'stx:goodies/newcompiler' }"

IRInstruction subclass:#IRReturn
	instanceVariableNames:'isRemote'
	classVariableNames:''
	poolDictionaries:''
	category:'NewCompiler-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
    ^'$Id$'
! !