IRLine.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 02 Dec 2008 09:43:42 +0000
changeset 7 0de2eaa86456
parent 6 49a61123c743
child 23 377bc46cad12
permissions -rw-r--r--
IRBytecodeGenerator emits lineno instructions only when lineno differs from the last one

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

IRInstruction subclass:#IRLine
	instanceVariableNames:'line'
	classVariableNames:''
	poolDictionaries:''
	category:'NewCompiler-IR'
!


!IRLine methodsFor:'accessing'!

line
    ^ line

    "Created: / 02-12-2008 / 08:58:59 / Jan Vrany <vranyj1@fel.cvut.cz>"
!

line:anInteger
    line := anInteger.

    "Created: / 02-12-2008 / 08:58:59 / Jan Vrany <vranyj1@fel.cvut.cz>"
! !

!IRLine methodsFor:'interpret'!

executeOn: interpreter

        ^ interpreter line: line

    "Created: / 02-12-2008 / 08:59:28 / Jan Vrany <vranyj1@fel.cvut.cz>"
! !

!IRLine class methodsFor:'documentation'!

version
    ^'$Id$'
! !