diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-03-05 15:50:01 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-03-05 15:50:11 -0800 |
| commit | 6c87c342775e4e4e4cef927adac5fc625d1faa31 (patch) | |
| tree | d931c5358c4b7c05b48d19b5700ea3bde92a7d5f /src/rt/rust_builtin.cpp | |
| parent | 15df3950ad4a1d2e9deb30d0ebdcb8dc7da00b63 (diff) | |
| download | rust-6c87c342775e4e4e4cef927adac5fc625d1faa31.tar.gz rust-6c87c342775e4e4e4cef927adac5fc625d1faa31.zip | |
Remove dead code from rt (debug_obj, rust_obj, rust_closure, rust_box_obj, rust_vtable)
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 05295bcd1a9..2a210a7fb54 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -268,28 +268,6 @@ debug_tag(type_desc *t, rust_tag *tag) { tag->variant[i]); } -struct rust_obj { - uintptr_t *vtbl; - rust_box *body; -}; - -extern "C" CDECL void -debug_obj(type_desc *t, rust_obj *obj, size_t nmethods, size_t nbytes) { - rust_task *task = rust_task_thread::get_task(); - - LOG(task, stdlib, "debug_obj with %" PRIdPTR " methods", nmethods); - debug_tydesc_helper(t); - LOG(task, stdlib, " vtbl at 0x%" PRIxPTR, obj->vtbl); - LOG(task, stdlib, " body at 0x%" PRIxPTR, obj->body); - - for (uintptr_t *p = obj->vtbl; p < obj->vtbl + nmethods; ++p) - LOG(task, stdlib, " vtbl word: 0x%" PRIxPTR, *p); - - for (uintptr_t i = 0; i < nbytes; ++i) - LOG(task, stdlib, " body byte %" PRIdPTR ": 0x%" PRIxPTR, - i, obj->body->data[i]); -} - struct rust_fn { uintptr_t *thunk; rust_box *closure; |
