Switching over to wrappers for spawning functions of multiple arguments. Doesn't quite work yet.

This commit is contained in:
Eric Holk
2011-05-26 18:00:33 -07:00
parent 842bf7cad1
commit d49998f0ed
6 changed files with 163 additions and 59 deletions

View File

@@ -171,12 +171,7 @@ rust_task::start(uintptr_t spawnee_fn,
src += 1; // spawn-call task slot
src += 1; // spawn-call closure-or-obj slot
spp -= (args_size / sizeof(uintptr_t)) - 1;
memmove(spp, src, args_size);
spp--;
//*spp-- = (uintptr_t) *src; // vec
*spp-- = (uintptr_t) *src; // vec
*spp-- = (uintptr_t) 0x0; // closure-or-obj
*spp-- = (uintptr_t) this; // task
*spp-- = (uintptr_t) dummy_ret; // output address