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_upcall.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_upcall.cpp')
| -rw-r--r-- | src/rt/rust_upcall.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index 48d6a67ce44..c86a071eddf 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -560,8 +560,7 @@ upcall_start_task(rust_task *spawner, ", spawnee 0x%" PRIxPTR ", callsz %" PRIdPTR ")", task->name, task, spawnee_fn, callsz); - task->start((uintptr_t)rust_new_exit_task_glue, spawnee_fn, - args, callsz); + task->start(spawnee_fn, args, callsz); return task; } @@ -612,18 +611,17 @@ static void *rust_thread_start(void *ptr) extern "C" CDECL maybe_proxy<rust_task> * upcall_start_thread(rust_task *task, rust_proxy<rust_task> *child_task_proxy, - uintptr_t exit_task_glue, uintptr_t spawnee_fn, size_t callsz) { LOG_UPCALL_ENTRY(task); rust_dom *parenet_dom = task->dom; rust_handle<rust_task> *child_task_handle = child_task_proxy->handle(); LOG(task, task, - "exit_task_glue: " PTR ", spawnee_fn " PTR + "spawnee_fn " PTR ", callsz %" PRIdPTR ")", - exit_task_glue, spawnee_fn, callsz); + spawnee_fn, callsz); rust_task *child_task = child_task_handle->referent(); - child_task->start(exit_task_glue, spawnee_fn, + child_task->start(spawnee_fn, task->rust_sp, callsz); #if defined(__WIN32__) HANDLE thread; |
