From 441a42c5d2707ae93a8be3c6be5c426e7416e50b Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 10 Jan 2012 19:04:09 -0800 Subject: update shape code to handle iface instances --- src/rt/rust_cc.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/rt/rust_cc.cpp') diff --git a/src/rt/rust_cc.cpp b/src/rt/rust_cc.cpp index bf872700f0e..a96c3739ca3 100644 --- a/src/rt/rust_cc.cpp +++ b/src/rt/rust_cc.cpp @@ -110,6 +110,11 @@ class irc : public shape::data { maybe_record_irc(ref_count_dp); } + void walk_iface() { + // an iface is always a ptr to a ref-counted obj. + shape::data::walk_box_contents(); + } + void walk_res(const shape::rust_fn *dtor, unsigned n_params, const shape::type_param *params, const uint8_t *end_sp, bool live) { @@ -497,6 +502,10 @@ class sweep : public shape::data { return; } + void walk_iface() { + shape::data::walk_box_contents(); + } + void walk_res(const shape::rust_fn *dtor, unsigned n_params, const shape::type_param *params, const uint8_t *end_sp, bool live) { -- cgit 1.4.1-3-g733a5