IRInstVarAccess.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 30 Oct 2014 22:42:40 +0000
changeset 45 04a50b0d540a
parent 43 c8afb8e4c3cc
permissions -rw-r--r--
Reduced dependencies to only stx:libbasic and stx:libcomp. The latter will wanish as soon as actual bytecode assemby is implemented.

"{ Package: 'ctu:ircompiler' }"

IRAccess subclass:#IRInstVarAccess
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'IR Compiler-IR'
!

IRInstVarAccess comment:'when closures disabled, Field describes an instVar. With closures, it describes a 
fieldaccess with receiver to be accessed pushed first.'
!


!IRInstVarAccess methodsFor:'testing'!

isInstVarAccess
	^true.
!

varname
    name 
        ifNil:[
            name := self method compiledCode methodClass allInstVarNames 
                        at:self offset
        ].
    ^ name.
! !

!IRInstVarAccess class methodsFor:'documentation'!

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

version_SVN
    ^ '$Id::                                                                                                                        $'
! !