IRInstVarStore.st
changeset 1 0dd36941955f
child 8 203df4f28793
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/IRInstVarStore.st	Wed Jun 11 14:54:42 2008 +0000
@@ -0,0 +1,36 @@
+"{ 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$'
+! !