compiler/PPCInlinedMethod.st
changeset 502 1e45d3c96ec5
parent 452 9f4558b3be66
child 503 ff58cd9f1f3c
child 515 b5316ef15274
--- a/compiler/PPCInlinedMethod.st	Thu May 21 14:12:22 2015 +0100
+++ b/compiler/PPCInlinedMethod.st	Fri Jul 24 15:06:54 2015 +0100
@@ -6,7 +6,7 @@
 	instanceVariableNames:''
 	classVariableNames:''
 	poolDictionaries:''
-	category:'PetitCompiler-Core'
+	category:'PetitCompiler-Compiler-Codegen'
 !
 
 !PPCInlinedMethod methodsFor:'as yet unclassified'!
@@ -16,7 +16,9 @@
 !
 
 code
-    ^ buffer contents trimRight
+    ^ (String streamContents:[:s | buffer codeOn:s ]) trimRight
+
+    "Modified (format): / 01-06-2015 / 21:44:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 isInline
@@ -31,6 +33,12 @@
    "Created: / 23-04-2015 / 21:06:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
+allocateReturnVariableNamed: name
+    self error: 'return variable must be assigned by the non-inlined method....'
+
+    "Created: / 15-06-2015 / 17:52:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 allocateTemporaryVariableNamed:aString
     self error: 'sorry, I can''t allocate variables....'