Compiler-Inlining.st 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. Smalltalk createPackage: 'Compiler-Inlining'!
  2. NodeVisitor subclass: #ASTPreInliner
  3. slots: {}
  4. package: 'Compiler-Inlining'!
  5. !ASTPreInliner methodsFor: 'visiting'!
  6. visitSendNode: aNode
  7. aNode superSend ifFalse: [
  8. (IRSendInliner inlinedSelectors includes: aNode selector) ifTrue: [
  9. aNode shouldBeAliased: true.
  10. aNode receiver ifNotNil: [ :receiver |
  11. (IRSendInliner inlinedSelectorsNeedingIdempotentReceiver includes: aNode selector) ifTrue: [
  12. receiver shouldBeAliased: true ] ] ] ].
  13. ^ super visitSendNode: aNode
  14. ! !
  15. IRClosure subclass: #IRInlinedClosure
  16. slots: {}
  17. package: 'Compiler-Inlining'!
  18. !IRInlinedClosure commentStamp!
  19. I represent an inlined closure instruction.!
  20. !IRInlinedClosure methodsFor: 'testing'!
  21. isInlined
  22. ^ true
  23. ! !
  24. !IRInlinedClosure methodsFor: 'visiting'!
  25. acceptDagVisitor: aVisitor
  26. aVisitor visitIRInlinedClosure: self
  27. ! !
  28. IRSend subclass: #IRInlinedSend
  29. slots: {}
  30. package: 'Compiler-Inlining'!
  31. !IRInlinedSend commentStamp!
  32. I am the abstract super class of inlined message send instructions.!
  33. !IRInlinedSend methodsFor: 'accessing'!
  34. internalVariables
  35. "Answer a collection of internal variables required
  36. to perform the inlining"
  37. ^ #()
  38. ! !
  39. !IRInlinedSend methodsFor: 'testing'!
  40. isInlined
  41. ^ true
  42. ! !
  43. !IRInlinedSend methodsFor: 'visiting'!
  44. acceptDagVisitor: aVisitor
  45. aVisitor visitInlinedSend: self
  46. ! !
  47. IRInlinedSend subclass: #IRInlinedIfFalse
  48. slots: {}
  49. package: 'Compiler-Inlining'!
  50. !IRInlinedIfFalse commentStamp!
  51. I represent an inlined `#ifFalse:` message send instruction.!
  52. !IRInlinedIfFalse methodsFor: 'visiting'!
  53. acceptDagVisitor: aVisitor
  54. aVisitor visitIRInlinedIfFalse: self
  55. ! !
  56. IRInlinedSend subclass: #IRInlinedIfNilIfNotNil
  57. slots: {}
  58. package: 'Compiler-Inlining'!
  59. !IRInlinedIfNilIfNotNil commentStamp!
  60. I represent an inlined `#ifNil:ifNotNil:` message send instruction.!
  61. !IRInlinedIfNilIfNotNil methodsFor: 'visiting'!
  62. acceptDagVisitor: aVisitor
  63. aVisitor visitIRInlinedIfNilIfNotNil: self
  64. ! !
  65. IRInlinedSend subclass: #IRInlinedIfTrue
  66. slots: {}
  67. package: 'Compiler-Inlining'!
  68. !IRInlinedIfTrue commentStamp!
  69. I represent an inlined `#ifTrue:` message send instruction.!
  70. !IRInlinedIfTrue methodsFor: 'visiting'!
  71. acceptDagVisitor: aVisitor
  72. aVisitor visitIRInlinedIfTrue: self
  73. ! !
  74. IRInlinedSend subclass: #IRInlinedIfTrueIfFalse
  75. slots: {}
  76. package: 'Compiler-Inlining'!
  77. !IRInlinedIfTrueIfFalse commentStamp!
  78. I represent an inlined `#ifTrue:ifFalse:` message send instruction.!
  79. !IRInlinedIfTrueIfFalse methodsFor: 'visiting'!
  80. acceptDagVisitor: aVisitor
  81. aVisitor visitIRInlinedIfTrueIfFalse: self
  82. ! !
  83. IRBlockSequence subclass: #IRInlinedSequence
  84. slots: {}
  85. package: 'Compiler-Inlining'!
  86. !IRInlinedSequence commentStamp!
  87. I represent a (block) sequence inside an inlined closure instruction (instance of `IRInlinedClosure`).!
  88. !IRInlinedSequence methodsFor: 'testing'!
  89. isInlined
  90. ^ true
  91. ! !
  92. !IRInlinedSequence methodsFor: 'visiting'!
  93. acceptDagVisitor: aVisitor
  94. aVisitor visitIRInlinedSequence: self
  95. ! !
  96. IRVisitor subclass: #IRInliner
  97. slots: {}
  98. package: 'Compiler-Inlining'!
  99. !IRInliner commentStamp!
  100. I visit an IR tree, inlining message sends and block closures.
  101. Message selectors that can be inlined are answered by `IRSendInliner >> #inlinedSelectors`!
  102. !IRInliner methodsFor: 'factory'!
  103. assignmentInliner
  104. ^ IRAssignmentInliner new
  105. translator: self;
  106. yourself
  107. !
  108. nonLocalReturnInliner
  109. ^ IRNonLocalReturnInliner new
  110. translator: self;
  111. yourself
  112. !
  113. returnInliner
  114. ^ IRReturnInliner new
  115. translator: self;
  116. yourself
  117. !
  118. sendInliner
  119. ^ IRSendInliner new
  120. translator: self;
  121. yourself
  122. ! !
  123. !IRInliner methodsFor: 'testing'!
  124. shouldInlineAssignment: anIRAssignment
  125. ^ anIRAssignment isInlined not and: [
  126. anIRAssignment right isSend and: [
  127. self shouldInlineSend: anIRAssignment right ]]
  128. !
  129. shouldInlineReturn: anIRReturn
  130. ^ anIRReturn isInlined not and: [
  131. anIRReturn expression isSend and: [
  132. self shouldInlineSend: anIRReturn expression ]]
  133. !
  134. shouldInlineSend: anIRSend
  135. ^ anIRSend isInlined not and: [
  136. IRSendInliner shouldInline: anIRSend ]
  137. ! !
  138. !IRInliner methodsFor: 'visiting'!
  139. flattenedReturn: anIRNonLocalReturn
  140. | localReturn |
  141. localReturn := IRReturn new
  142. scope: anIRNonLocalReturn scope;
  143. yourself.
  144. anIRNonLocalReturn dagChildren do: [ :each | localReturn add: each ].
  145. ^ localReturn
  146. !
  147. visitIRAssignment: anIRAssignment
  148. ^ (self shouldInlineAssignment: anIRAssignment)
  149. ifTrue: [ self assignmentInliner inlineAssignment: anIRAssignment ]
  150. ifFalse: [ super visitIRAssignment: anIRAssignment ]
  151. !
  152. visitIRNonLocalReturn: anIRNonLocalReturn
  153. anIRNonLocalReturn scope canFlattenNonLocalReturns ifTrue: [
  154. | localReturn |
  155. anIRNonLocalReturn scope methodScope removeNonLocalReturn: anIRNonLocalReturn scope.
  156. localReturn := self flattenedReturn: anIRNonLocalReturn.
  157. anIRNonLocalReturn replaceWith: localReturn.
  158. ^ self visitIRReturn: localReturn ].
  159. ^ (self shouldInlineReturn: anIRNonLocalReturn)
  160. ifTrue: [ self nonLocalReturnInliner inlineReturn: anIRNonLocalReturn ]
  161. ifFalse: [ super visitIRNonLocalReturn: anIRNonLocalReturn ]
  162. !
  163. visitIRReturn: anIRReturn
  164. ^ (self shouldInlineReturn: anIRReturn)
  165. ifTrue: [ self returnInliner inlineReturn: anIRReturn ]
  166. ifFalse: [ super visitIRReturn: anIRReturn ]
  167. !
  168. visitIRSend: anIRSend
  169. ^ (self shouldInlineSend: anIRSend)
  170. ifTrue: [ self sendInliner inlineSend: anIRSend ]
  171. ifFalse: [ super visitIRSend: anIRSend ]
  172. ! !
  173. IRJSTranslator subclass: #IRInliningJSTranslator
  174. slots: {}
  175. package: 'Compiler-Inlining'!
  176. !IRInliningJSTranslator commentStamp!
  177. I am a specialized JavaScript translator able to write inlined IR instructions to JavaScript stream (`JSStream` instance).!
  178. !IRInliningJSTranslator methodsFor: 'visiting'!
  179. visitIRInlinedClosure: anIRInlinedClosure
  180. self stream nextPutVars: (anIRInlinedClosure tempDeclarations collect: [ :each |
  181. each name asVariableName ]).
  182. self visitAllChildren: anIRInlinedClosure
  183. !
  184. visitIRInlinedIfFalse: anIRInlinedIfFalse
  185. self stream nextPutIf: [
  186. self stream nextPutAll: '!!$core.assert('.
  187. self visit: anIRInlinedIfFalse dagChildren first.
  188. self stream nextPutAll: ')' ]
  189. then: [ self visit: anIRInlinedIfFalse dagChildren last ]
  190. !
  191. visitIRInlinedIfNilIfNotNil: anIRInlinedIfNilIfNotNil
  192. self stream
  193. nextPutIf: [
  194. self visit: anIRInlinedIfNilIfNotNil dagChildren first.
  195. self stream nextPutAll: ' == null || '.
  196. self visit: anIRInlinedIfNilIfNotNil dagChildren first.
  197. self stream nextPutAll: '.a$nil' ]
  198. then: [ self visit: anIRInlinedIfNilIfNotNil dagChildren second ]
  199. else: [ self visit: anIRInlinedIfNilIfNotNil dagChildren third ]
  200. !
  201. visitIRInlinedIfTrue: anIRInlinedIfTrue
  202. self stream nextPutIf: [
  203. self stream nextPutAll: '$core.assert('.
  204. self visit: anIRInlinedIfTrue dagChildren first.
  205. self stream nextPutAll: ')' ]
  206. then: [ self visit: anIRInlinedIfTrue dagChildren last ]
  207. !
  208. visitIRInlinedIfTrueIfFalse: anIRInlinedIfTrueIfFalse
  209. self stream
  210. nextPutIf: [
  211. self stream nextPutAll: '$core.assert('.
  212. self visit: anIRInlinedIfTrueIfFalse dagChildren first.
  213. self stream nextPutAll: ')' ]
  214. then: [ self visit: anIRInlinedIfTrueIfFalse dagChildren second ]
  215. else: [ self visit: anIRInlinedIfTrueIfFalse dagChildren third ]
  216. ! !
  217. Object subclass: #IRSendInliner
  218. slots: {#send. #translator}
  219. package: 'Compiler-Inlining'!
  220. !IRSendInliner commentStamp!
  221. I inline some message sends and block closure arguments. I heavily rely on #perform: to dispatch inlining methods.!
  222. !IRSendInliner methodsFor: 'accessing'!
  223. send
  224. ^ send
  225. !
  226. send: anIRSend
  227. send := anIRSend
  228. !
  229. translator
  230. ^ translator
  231. !
  232. translator: anASTTranslator
  233. translator := anASTTranslator
  234. ! !
  235. !IRSendInliner methodsFor: 'error handling'!
  236. inliningError: aString
  237. InliningError signal: aString
  238. ! !
  239. !IRSendInliner methodsFor: 'factory'!
  240. inlinedClosure
  241. ^ IRInlinedClosure new
  242. !
  243. inlinedSequence
  244. ^ IRInlinedSequence new
  245. ! !
  246. !IRSendInliner methodsFor: 'inlining'!
  247. ifFalse: anIRInstruction
  248. self mustBeNiladicClosure: anIRInstruction.
  249. ^ self inlinedSend: IRInlinedIfFalse new withBlock: anIRInstruction
  250. !
  251. ifFalse: anIRInstruction ifTrue: anotherIRInstruction
  252. self mustBeNiladicClosure: anIRInstruction.
  253. self mustBeNiladicClosure: anotherIRInstruction.
  254. ^ self inlinedSend: IRInlinedIfTrueIfFalse new withBlock: anotherIRInstruction withBlock: anIRInstruction
  255. !
  256. ifNil: anIRInstruction
  257. self mustBeNiladicClosure: anIRInstruction.
  258. ^ self
  259. inlinedSend: IRInlinedIfNilIfNotNil new
  260. withBlock: anIRInstruction
  261. withBlock: (IRClosure new
  262. scope: anIRInstruction scope copy;
  263. add: (IRBlockSequence new
  264. add: self send receiver;
  265. yourself);
  266. yourself)
  267. !
  268. ifNil: anIRInstruction ifNotNil: anotherIRInstruction
  269. self mustBeNiladicClosure: anIRInstruction.
  270. self mustBeNiladicOrUnaryClosure: anotherIRInstruction.
  271. ^ self inlinedSend: IRInlinedIfNilIfNotNil new withBlock: anIRInstruction withBlock: anotherIRInstruction
  272. !
  273. ifNotNil: anIRInstruction
  274. self mustBeNiladicOrUnaryClosure: anIRInstruction.
  275. ^ self
  276. inlinedSend: IRInlinedIfNilIfNotNil new
  277. withBlock: (IRClosure new
  278. scope: anIRInstruction scope copy;
  279. add: (IRBlockSequence new
  280. add: self send receiver;
  281. yourself);
  282. yourself)
  283. withBlock: anIRInstruction
  284. !
  285. ifNotNil: anIRInstruction ifNil: anotherIRInstruction
  286. self mustBeNiladicOrUnaryClosure: anIRInstruction.
  287. self mustBeNiladicClosure: anotherIRInstruction.
  288. ^ self inlinedSend: IRInlinedIfNilIfNotNil new withBlock: anotherIRInstruction withBlock: anIRInstruction
  289. !
  290. ifTrue: anIRInstruction
  291. self mustBeNiladicClosure: anIRInstruction.
  292. ^ self inlinedSend: IRInlinedIfTrue new withBlock: anIRInstruction
  293. !
  294. ifTrue: anIRInstruction ifFalse: anotherIRInstruction
  295. self mustBeNiladicClosure: anIRInstruction.
  296. self mustBeNiladicClosure: anotherIRInstruction.
  297. ^ self inlinedSend: IRInlinedIfTrueIfFalse new withBlock: anIRInstruction withBlock: anotherIRInstruction
  298. !
  299. inlineClosure: anIRClosure
  300. | inlinedClosure sequence statements |
  301. inlinedClosure := self inlinedClosure.
  302. inlinedClosure
  303. scope: anIRClosure scope;
  304. parent: anIRClosure parent.
  305. "Add the possible temp declarations"
  306. anIRClosure tempDeclarations do: [ :each |
  307. inlinedClosure add: each ].
  308. "Add a block sequence"
  309. sequence := self inlinedSequence.
  310. "Map the closure arguments to the receiver of the message send"
  311. anIRClosure arguments do: [ :each |
  312. inlinedClosure add: (IRTempDeclaration new name: each; yourself).
  313. sequence add: (IRAssignment new
  314. add: (IRVariable new variable: (ArgVar new scope: inlinedClosure scope; name: each; yourself));
  315. add: self send receiver;
  316. yourself) ].
  317. "To ensure the correct order of the closure instructions: first the temps then the sequence"
  318. inlinedClosure add: sequence.
  319. "Get all the statements"
  320. statements := anIRClosure sequence dagChildren.
  321. statements ifNotEmpty: [
  322. statements allButLast do: [ :each | sequence add: each ].
  323. "Inlined closures change local returns into result value itself"
  324. sequence add: statements last asInlinedBlockResult ].
  325. ^ inlinedClosure
  326. !
  327. inlineSend: anIRSend
  328. self send: anIRSend.
  329. ^ self
  330. perform: self send selector
  331. withArguments: self send arguments
  332. !
  333. inlinedClosure: closure wrapFinalValueIn: aBlock
  334. | sequence final |
  335. sequence := closure sequence.
  336. sequence dagChildren ifEmpty: [ sequence add: (IRVariable new
  337. variable: (closure scope pseudoVars at: 'nil');
  338. yourself) ].
  339. final := sequence dagChildren last.
  340. final yieldsValue ifTrue: [ sequence replace: final with: (aBlock value: final) ].
  341. ^ closure
  342. ! !
  343. !IRSendInliner methodsFor: 'private'!
  344. inlineSend: anIRSend andReplace: anIRInstruction
  345. anIRInstruction replaceWith: anIRSend.
  346. ^ self inlineSend: anIRSend
  347. !
  348. inlinedSend: inlinedSend withBlock: anIRInstruction
  349. | inlinedClosure |
  350. inlinedClosure := self translator visit: (self inlineClosure: anIRInstruction).
  351. inlinedSend
  352. add: self send receiver;
  353. add: inlinedClosure.
  354. self send replaceWith: inlinedSend.
  355. inlinedSend method internalVariables
  356. addAll: inlinedSend internalVariables.
  357. ^ inlinedSend
  358. !
  359. inlinedSend: inlinedSend withBlock: anIRInstruction withBlock: anotherIRInstruction
  360. | inlinedClosure1 inlinedClosure2 |
  361. inlinedClosure1 := self translator visit: (self inlineClosure: anIRInstruction).
  362. inlinedClosure2 := self translator visit: (self inlineClosure: anotherIRInstruction).
  363. inlinedSend
  364. add: self send receiver;
  365. add: inlinedClosure1;
  366. add: inlinedClosure2.
  367. self send replaceWith: inlinedSend.
  368. inlinedSend method internalVariables
  369. addAll: inlinedSend internalVariables.
  370. ^ inlinedSend
  371. ! !
  372. !IRSendInliner methodsFor: 'testing'!
  373. mustBeNiladicClosure: anIRInstruction
  374. anIRInstruction isClosure ifFalse: [ self inliningError: 'Message argument should be a block' ].
  375. anIRInstruction arguments size = 0 ifFalse: [ self inliningError: 'Inlined block should have zero argument' ]
  376. !
  377. mustBeNiladicOrUnaryClosure: anIRInstruction
  378. anIRInstruction isClosure ifFalse: [ self inliningError: 'Message argument should be a block' ].
  379. anIRInstruction arguments size <= 1 ifFalse: [ self inliningError: 'Inlined block should have at most one argument' ]
  380. ! !
  381. !IRSendInliner class methodsFor: 'accessing'!
  382. inlinedSelectors
  383. ^ #('ifTrue:' 'ifFalse:' 'ifTrue:ifFalse:' 'ifFalse:ifTrue:' 'ifNil:' 'ifNotNil:' 'ifNil:ifNotNil:' 'ifNotNil:ifNil:')
  384. !
  385. inlinedSelectorsNeedingIdempotentReceiver
  386. ^ #('ifNil:' 'ifNotNil:' 'ifNil:ifNotNil:' 'ifNotNil:ifNil:')
  387. !
  388. shouldInline: anIRSend
  389. (self inlinedSelectors includes: anIRSend selector) ifFalse: [ ^ false ].
  390. anIRSend receiver isSuper ifTrue: [ ^ false ].
  391. ^ anIRSend arguments allSatisfy: [ :each | each isClosure ]
  392. ! !
  393. IRSendInliner subclass: #IRAssignmentInliner
  394. slots: {#target}
  395. package: 'Compiler-Inlining'!
  396. !IRAssignmentInliner commentStamp!
  397. I inline message sends together with assignments by moving them around into the inline closure instructions.
  398. ##Example
  399. foo
  400. | a |
  401. a := true ifTrue: [ 1 ]
  402. Will produce:
  403. if($core.assert(true) {
  404. a = 1;
  405. };!
  406. !IRAssignmentInliner methodsFor: 'accessing'!
  407. target
  408. ^ target
  409. !
  410. target: anObject
  411. target := anObject
  412. ! !
  413. !IRAssignmentInliner methodsFor: 'inlining'!
  414. inlineAssignment: anIRAssignment
  415. self target: anIRAssignment left.
  416. ^ self inlineSend: anIRAssignment right andReplace: anIRAssignment
  417. !
  418. inlineClosure: anIRClosure
  419. ^ self
  420. inlinedClosure: (super inlineClosure: anIRClosure)
  421. wrapFinalValueIn: [ :final |
  422. IRAssignment new
  423. add: self target;
  424. add: final copy;
  425. yourself ]
  426. ! !
  427. IRSendInliner subclass: #IRNonLocalReturnInliner
  428. slots: {}
  429. package: 'Compiler-Inlining'!
  430. !IRNonLocalReturnInliner commentStamp!
  431. I inline message sends with inlined closure together with a return instruction.!
  432. !IRNonLocalReturnInliner methodsFor: 'inlining'!
  433. inlineClosure: anIRClosure
  434. ^ self
  435. inlinedClosure: (super inlineClosure: anIRClosure)
  436. wrapFinalValueIn: [ :final |
  437. IRNonLocalReturn new
  438. add: final copy;
  439. yourself ]
  440. !
  441. inlineReturn: anIRReturn
  442. ^ self inlineSend: anIRReturn expression andReplace: anIRReturn
  443. ! !
  444. IRSendInliner subclass: #IRReturnInliner
  445. slots: {}
  446. package: 'Compiler-Inlining'!
  447. !IRReturnInliner commentStamp!
  448. I inline message sends with inlined closure together with a return instruction.!
  449. !IRReturnInliner methodsFor: 'inlining'!
  450. inlineClosure: anIRClosure
  451. ^ self
  452. inlinedClosure: (super inlineClosure: anIRClosure)
  453. wrapFinalValueIn: [ :final |
  454. IRReturn new
  455. add: final copy;
  456. yourself ]
  457. !
  458. inlineReturn: anIRReturn
  459. ^ self inlineSend: anIRReturn expression andReplace: anIRReturn
  460. ! !
  461. CodeGenerator subclass: #InliningCodeGenerator
  462. slots: {}
  463. package: 'Compiler-Inlining'!
  464. !InliningCodeGenerator commentStamp!
  465. I am a specialized code generator that uses inlining to produce more optimized JavaScript output!
  466. !InliningCodeGenerator methodsFor: 'compiling'!
  467. inliner
  468. ^ IRInliner new
  469. !
  470. irTranslatorClass
  471. ^ IRInliningJSTranslator
  472. !
  473. preInliner
  474. ^ ASTPreInliner new
  475. !
  476. transformersDictionary
  477. ^ transformersDictionary ifNil: [ transformersDictionary := super transformersDictionary
  478. at: '3000-inlinerTagging' put: self preInliner;
  479. at: '6000-inliner' put: self inliner;
  480. at: '8000-irToJs' put: self irTranslator;
  481. yourself ]
  482. ! !
  483. SemanticError subclass: #InliningError
  484. slots: {}
  485. package: 'Compiler-Inlining'!
  486. !InliningError commentStamp!
  487. Instances of InliningError are signaled when using an `InliningCodeGenerator`in a `Compiler`.!
  488. Trait named: #TIRInlinedVisitor
  489. package: 'Compiler-Inlining'!
  490. !TIRInlinedVisitor methodsFor: 'visiting'!
  491. visitIRInlinedClosure: anIRInlinedClosure
  492. ^ self visitIRClosure: anIRInlinedClosure
  493. !
  494. visitIRInlinedSequence: anIRInlinedSequence
  495. ^ self visitIRSequence: anIRInlinedSequence
  496. ! !
  497. IRInliner setTraitComposition: {TIRInlinedVisitor} asTraitComposition!
  498. IRInliningJSTranslator setTraitComposition: {TIRInlinedVisitor} asTraitComposition!
  499. ! !
  500. !IRBlockReturn methodsFor: '*Compiler-Inlining'!
  501. asInlinedBlockResult
  502. ^ self expression
  503. ! !
  504. !IRInstruction methodsFor: '*Compiler-Inlining'!
  505. asInlinedBlockResult
  506. ^ self
  507. ! !