compiler/PPCInlinedMethod.st
changeset 515 b5316ef15274
parent 502 1e45d3c96ec5
child 516 3b81c9e53352
child 524 f6f68d32de73
equal deleted inserted replaced
502:1e45d3c96ec5 515:b5316ef15274
    10 !
    10 !
    11 
    11 
    12 !PPCInlinedMethod methodsFor:'as yet unclassified'!
    12 !PPCInlinedMethod methodsFor:'as yet unclassified'!
    13 
    13 
    14 call
    14 call
       
    15     ^ self source
       
    16 
       
    17     "Modified: / 24-07-2015 / 19:45:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
    18 !
       
    19 
       
    20 callOn: receiver
       
    21     self error: 'are you sure you want to inline code from different receiver? If so, remove me!!'.
    15     ^ self code
    22     ^ self code
    16 !
    23 !
    17 
    24 
    18 code
    25 code
    19     ^ (String streamContents:[:s | buffer codeOn:s ]) trimRight
    26     self error: 'deprecated?'.
       
    27     ^ (String streamContents:[:s |" buffer codeOn:s "]) trimRight
    20 
    28 
    21     "Modified (format): / 01-06-2015 / 21:44:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    29     "Modified (format): / 01-06-2015 / 21:44:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    22 !
    30 !
    23 
    31 
    24 isInline
    32 isInline
    25     ^ true
    33     ^ true
       
    34 !
       
    35 
       
    36 source
       
    37     ^ source isString ifTrue:[ 
       
    38         source
       
    39     ] ifFalse:[ 
       
    40         (String streamContents:[:s | source sourceOn:s ]) trimRight
       
    41     ].
       
    42 
       
    43     "Created: / 24-07-2015 / 19:46:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    26 ! !
    44 ! !
    27 
    45 
    28 !PPCInlinedMethod methodsFor:'code generation - variables'!
    46 !PPCInlinedMethod methodsFor:'code generation - variables'!
    29 
    47 
    30 allocateReturnVariable
    48 allocateReturnVariable