IRClosure.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sun, 06 Dec 2009 08:24:34 +0000
changeset 23 377bc46cad12
parent 11 0a50d475c1ff
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' }"

IRFunction subclass:#IRClosure
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'NewCompiler-IR'
!


!IRClosure methodsFor:'accessing'!

environmentIr
    ^ environmentIr
!

environmentIr:something
    environmentIr := something.
! !

!IRClosure methodsFor:'accessing - defaults'!

defaultCompiledCodeClass
    "raise an error: must be redefined in concrete subclass(es)"

    ^Block

    "Modified: / 30-03-2009 / 16:36:02 / Jan Vrany <vranyj1@fel.cvut.cz>"
! !

!IRClosure methodsFor:'instructions - helpers'!

tempArgKindForLevel:level
    "Superclass IRFunction says that I am responsible to implement this method"

    ^level isZero 
        ifTrue: [#BArg]
        ifFalse:[#OBArg]

    "Modified: / 30-03-2009 / 18:36:30 / Jan Vrany <vranyj1@fel.cvut.cz>"
!

tempVarKindForLevel:level
    "Superclass IRFunction says that I am responsible to implement this method"

    ^level isZero 
        ifTrue: [#BVar]
        ifFalse:[#OBVar]

    "Modified: / 30-03-2009 / 23:05:37 / Jan Vrany <vranyj1@fel.cvut.cz>"
! !

!IRClosure methodsFor:'testing'!

isIRClosure
    ^ true
! !

!IRClosure class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/cvut/stx/goodies/newcompiler/IRClosure.st,v 1.3 2009/10/08 12:00:40 fm Exp $'
!

version_CVS
    ^ '$Header: /cvs/stx/cvut/stx/goodies/newcompiler/IRClosure.st,v 1.3 2009/10/08 12:00:40 fm Exp $'
!

version_SVN
    ^'§Id: IRClosure.st 12 2009-04-01 21:13:00Z vranyj1 §'
! !