Skip to content

Commit 692e6e0

Browse files
committed
---
yaml --- r: 2614 b: refs/heads/master c: d108bfe h: refs/heads/master v: v3
1 parent f586d59 commit 692e6e0

File tree

5 files changed

+2
-19
lines changed

5 files changed

+2
-19
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: cebc9b359db16ea0370fb9f9013507a559e33bcd
2+
refs/heads/master: d108bfe2eed963dda50df916c629bfce53d6bbe1

trunk/src/rt/rust.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,7 @@ extern "C" CDECL int
8080
rust_start(uintptr_t main_fn, rust_crate const *crate, int argc,
8181
char **argv, void* crate_map) {
8282

83-
if (crate->abi_tag != ABI_X86_RUSTBOOT_CDECL)
84-
update_log_settings(crate_map, getenv("RUST_LOG"));
85-
else
86-
update_log_settings(NULL, getenv("RUST_LOG"));
83+
update_log_settings(crate_map, getenv("RUST_LOG"));
8784
rust_srv *srv = new rust_srv();
8885
rust_kernel *kernel = new rust_kernel(srv);
8986
kernel->start();

trunk/src/rt/rust_crate_cache.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,6 @@ rust_crate_cache::get_type_desc(size_t size,
215215
// FIXME (issue #136): Below is a miscalculation.
216216
td->is_stateful |= descs[i]->is_stateful;
217217
}
218-
if (crate->abi_tag == ABI_X86_RUSTBOOT_CDECL) {
219-
adjust_disp(td->copy_glue_off, descs[0], td);
220-
adjust_disp(td->drop_glue_off, descs[0], td);
221-
adjust_disp(td->free_glue_off, descs[0], td);
222-
adjust_disp(td->mark_glue_off, descs[0], td);
223-
adjust_disp(td->sever_glue_off, descs[0], td);
224-
adjust_disp(td->obj_drop_glue_off, descs[0], td);
225-
}
226218
HASH_ADD(hh, this->type_descs, descs, keysz, td);
227219
return td;
228220
}

trunk/src/rt/rust_internal.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ static size_t const TIME_SLICE_IN_MS = 10;
9090

9191
static intptr_t const CONST_REFCOUNT = 0x7badface;
9292

93-
// ABI tags for rust_start, rust_task::start and friends.
94-
static uintptr_t const ABI_X86_RUSTBOOT_CDECL = 1;
95-
static uintptr_t const ABI_X86_RUSTC_FASTCALL = 2;
96-
9793
// This accounts for logging buffers.
9894

9995
static size_t const BUF_BYTES = 2048;

trunk/src/rt/rust_upcall.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,6 @@ extern "C" CDECL rust_task *
566566
upcall_start_task(rust_task *spawner,
567567
rust_task *task,
568568
uintptr_t exit_task_glue,
569-
uintptr_t spawnee_abi,
570569
uintptr_t spawnee_fn,
571570
size_t callsz) {
572571
LOG_UPCALL_ENTRY(spawner);
@@ -631,7 +630,6 @@ extern "C" CDECL maybe_proxy<rust_task> *
631630
upcall_start_thread(rust_task *task,
632631
rust_proxy<rust_task> *child_task_proxy,
633632
uintptr_t exit_task_glue,
634-
uintptr_t spawnee_abi,
635633
uintptr_t spawnee_fn,
636634
size_t callsz) {
637635
LOG_UPCALL_ENTRY(task);

0 commit comments

Comments
 (0)