IRLine.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 02 Dec 2008 08:14:54 +0000
changeset 6 49a61123c743
child 23 377bc46cad12
permissions -rw-r--r--
A new IRLine pseudoinstruction added to include debugging info into the bytecode. See IRBuilderTests for examples.

"{ 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$'
! !