Remove estrs and evecs from runtime. Issue #855

This commit is contained in:
Brian Anderson
2011-09-02 11:28:19 -07:00
parent e68f687179
commit 99ee0fca67
9 changed files with 38 additions and 310 deletions

View File

@@ -164,36 +164,6 @@ isaac_init(sched_or_kernel *sched, randctx *rctx)
randinit(rctx, 1);
}
// Vectors (rust-user-code level).
struct
rust_evec
{
RUST_REFCOUNTED(rust_evec)
size_t alloc;
size_t fill;
size_t pad; // Pad to align data[0] to 16 bytes.
uint8_t data[];
rust_evec(size_t alloc, size_t fill,
uint8_t const *d)
: ref_count(1),
alloc(alloc),
fill(fill)
{
if (d)
memcpy(&data[0], d, fill);
}
~rust_evec() {}
inline void *operator new(size_t size, void *mem) {
return mem;
}
};
// Strings are just exterior vecs
typedef rust_evec rust_str;
// Interior vectors (rust-user-code level).
struct