compiler/PPCInlinedMethod.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 27 May 2015 03:30:35 +0100
changeset 474 62b5330d8b23
parent 452 9f4558b3be66
child 477 b18b6cc7aabc
child 502 1e45d3c96ec5
permissions -rw-r--r--
More fixes for inlining of nodes

"{ Package: 'stx:goodies/petitparser/compiler' }"

"{ NameSpace: Smalltalk }"

PPCMethod subclass:#PPCInlinedMethod
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Core'
!

!PPCInlinedMethod methodsFor:'as yet unclassified'!

call
    ^ self code
!

code
    ^ buffer contents trimRight
!

isInline
    ^ true
! !

!PPCInlinedMethod methodsFor:'code generation - variables'!

allocateReturnVariable
    self error: 'return variable must be assigned by the non-inlined method....'

   "Created: / 23-04-2015 / 21:06:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

allocateTemporaryVariableNamed:aString
    self error: 'sorry, I can''t allocate variables....'

   "Created: / 23-04-2015 / 21:06:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !