compiler/PPCInlinedMethod.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 05 May 2015 15:07:56 +0200
changeset 450 914c2567c987
parent 438 20598d7ce9fa
child 452 9f4558b3be66
permissions -rw-r--r--
Oops, merged lost Smalltalk/X compatibility fixes

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