IRInstVarStore.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 11 Jun 2008 14:54:42 +0000
changeset 1 0dd36941955f
child 8 203df4f28793
permissions -rw-r--r--
Initial revision. All tests pass.

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

IRInstVarAccess subclass:#IRInstVarStore
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'NewCompiler-IR'
!


!IRInstVarStore methodsFor:'interpret'!

executeOn: interpreter

	Preferences compileBlocksAsClosures 
		ifFalse: [interpreter storeInstVar: number] 
		ifTrue: [interpreter pushLiteral: number.
				interpreter send: #privStoreIn:instVar:].
		
! !

!IRInstVarStore methodsFor:'testing'!

isRead
	^false
!

isStore
	^true
! !

!IRInstVarStore class methodsFor:'documentation'!

version
    ^'$Id$'
! !