graydon/rust — Issue #1012: Find a way to take or drop temporaries without spilling them
Author: marijnh
Created: 2011-10-08 07:37:03+00:00
State: open

Currently, glue functions take a pointer to a value. This means we're spilling all temporary boxes and unique pointers to the stack just in order to drop them. This is rather wasteful. If we know the type (which we do for all immediates -- generic values are never treated as immediate), we should be able to take and drop without spilling.