3 ms·
Managing JS stack frames using the GC would be very bad for performance. You almost never need to do that unless your language has something like Scheme's call/
by pcwalton 15y ago
Managing JS stack frames using the GC would be very bad for performance. You almost never need to do that unless your language has something like Scheme's call/cc. You may need to promote closed-over variables to the heap, but you don't need to migrate the entire stack frame there.