Remove a bit more dead code.
This commit is contained in:
parent
cebc9b359d
commit
d108bfe2ee
4 changed files with 1 additions and 18 deletions
|
|
@ -80,10 +80,7 @@ extern "C" CDECL int
|
|||
rust_start(uintptr_t main_fn, rust_crate const *crate, int argc,
|
||||
char **argv, void* crate_map) {
|
||||
|
||||
if (crate->abi_tag != ABI_X86_RUSTBOOT_CDECL)
|
||||
update_log_settings(crate_map, getenv("RUST_LOG"));
|
||||
else
|
||||
update_log_settings(NULL, getenv("RUST_LOG"));
|
||||
update_log_settings(crate_map, getenv("RUST_LOG"));
|
||||
rust_srv *srv = new rust_srv();
|
||||
rust_kernel *kernel = new rust_kernel(srv);
|
||||
kernel->start();
|
||||
|
|
|
|||
|
|
@ -215,14 +215,6 @@ rust_crate_cache::get_type_desc(size_t size,
|
|||
// FIXME (issue #136): Below is a miscalculation.
|
||||
td->is_stateful |= descs[i]->is_stateful;
|
||||
}
|
||||
if (crate->abi_tag == ABI_X86_RUSTBOOT_CDECL) {
|
||||
adjust_disp(td->copy_glue_off, descs[0], td);
|
||||
adjust_disp(td->drop_glue_off, descs[0], td);
|
||||
adjust_disp(td->free_glue_off, descs[0], td);
|
||||
adjust_disp(td->mark_glue_off, descs[0], td);
|
||||
adjust_disp(td->sever_glue_off, descs[0], td);
|
||||
adjust_disp(td->obj_drop_glue_off, descs[0], td);
|
||||
}
|
||||
HASH_ADD(hh, this->type_descs, descs, keysz, td);
|
||||
return td;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,10 +90,6 @@ static size_t const TIME_SLICE_IN_MS = 10;
|
|||
|
||||
static intptr_t const CONST_REFCOUNT = 0x7badface;
|
||||
|
||||
// ABI tags for rust_start, rust_task::start and friends.
|
||||
static uintptr_t const ABI_X86_RUSTBOOT_CDECL = 1;
|
||||
static uintptr_t const ABI_X86_RUSTC_FASTCALL = 2;
|
||||
|
||||
// This accounts for logging buffers.
|
||||
|
||||
static size_t const BUF_BYTES = 2048;
|
||||
|
|
|
|||
|
|
@ -566,7 +566,6 @@ extern "C" CDECL rust_task *
|
|||
upcall_start_task(rust_task *spawner,
|
||||
rust_task *task,
|
||||
uintptr_t exit_task_glue,
|
||||
uintptr_t spawnee_abi,
|
||||
uintptr_t spawnee_fn,
|
||||
size_t callsz) {
|
||||
LOG_UPCALL_ENTRY(spawner);
|
||||
|
|
@ -631,7 +630,6 @@ 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_abi,
|
||||
uintptr_t spawnee_fn,
|
||||
size_t callsz) {
|
||||
LOG_UPCALL_ENTRY(task);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue