Re:Dart language
by enneff on Monday October 10, 2011 @07:45PM
(#3096394)
The compiler is free to optimize this how it sees fit. Taking the address of a value doesn't necessarily move it to the heap.
[ Parent
| on HN ]
I imagine this optimization can only happen once escape analysis is performed. In the general case, address-of moves the data to the heap, or causes it to be stored on the heap in the first place. Correct?