diff options
| author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-05-24 15:51:22 -0400 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-05-24 15:51:22 -0400 |
| commit | fe90159b86c0a044ce0bcef534e4800ea35ba01b (patch) | |
| tree | 2b1cd2d821cb497755206fc74f6692b86ef2113c /src/rt/rust_task.cpp | |
| parent | fbc0e840e3e660c0f0acd3e738d005b2a4aec00f (diff) | |
| download | rust-fe90159b86c0a044ce0bcef534e4800ea35ba01b.tar.gz rust-fe90159b86c0a044ce0bcef534e4800ea35ba01b.zip | |
"constant propagate" rust_new_exit_task_glue to its only use.
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 13295f5ae7d..09665e11298 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -135,13 +135,13 @@ rust_task::~rust_task() cache->deref(); } +extern "C" void rust_new_exit_task_glue(); + void -rust_task::start(uintptr_t exit_task_glue, - uintptr_t spawnee_fn, +rust_task::start(uintptr_t spawnee_fn, uintptr_t args, size_t callsz) { - LOGPTR(dom, "exit-task glue", exit_task_glue); LOGPTR(dom, "from spawnee", spawnee_fn); // Set sp to last uintptr_t-sized cell of segment @@ -184,7 +184,7 @@ rust_task::start(uintptr_t exit_task_glue, *spp-- = (uintptr_t) 0x0; // retp - *spp-- = (uintptr_t) exit_task_glue; + *spp-- = (uintptr_t) rust_new_exit_task_glue; for (size_t j = 0; j < n_callee_saves; ++j) { *spp-- = (uintptr_t)NULL; |
