rt: Remove evecs from the shape code

This commit is contained in:
Patrick Walton 2011-09-02 10:49:03 -07:00
parent 10ea787772
commit 00470fef12
2 changed files with 0 additions and 55 deletions

View file

@ -333,10 +333,6 @@ public:
in_dp),
result(0) {}
void walk_evec(bool is_pod, uint16_t sp_size) {
walk_vec(is_pod, get_evec_data_range(dp));
}
void walk_vec(bool is_pod, uint16_t sp_size) {
walk_vec(is_pod, get_vec_data_range(dp));
}

View file

@ -33,7 +33,6 @@ const uint8_t SHAPE_I32 = 6u;
const uint8_t SHAPE_I64 = 7u;
const uint8_t SHAPE_F32 = 8u;
const uint8_t SHAPE_F64 = 9u;
const uint8_t SHAPE_EVEC = 10u;
const uint8_t SHAPE_VEC = 11u;
const uint8_t SHAPE_TAG = 12u;
const uint8_t SHAPE_BOX = 13u;
@ -237,7 +236,6 @@ protected:
inline size_align get_size_align(const uint8_t *&addr);
private:
void walk_evec();
void walk_vec();
void walk_tag();
void walk_box();
@ -335,7 +333,6 @@ ctxt<T>::walk() {
case SHAPE_I64: WALK_NUMBER(int64_t); break;
case SHAPE_F32: WALK_NUMBER(float); break;
case SHAPE_F64: WALK_NUMBER(double); break;
case SHAPE_EVEC: walk_evec(); break;
case SHAPE_VEC: walk_vec(); break;
case SHAPE_TAG: walk_tag(); break;
case SHAPE_BOX: walk_box(); break;
@ -378,19 +375,6 @@ ctxt<T>::get_variant_sp(tag_info &tinfo, uint32_t variant_id) {
return std::make_pair(variant_ptr, variant_end);
}
template<typename T>
void
ctxt<T>::walk_evec() {
bool is_pod = *sp++;
uint16_t sp_size = get_u16_bump(sp);
const uint8_t *end_sp = sp + sp_size;
static_cast<T *>(this)->walk_evec(is_pod, sp_size);
sp = end_sp;
}
template<typename T>
void
ctxt<T>::walk_vec() {
@ -514,9 +498,6 @@ public:
const type_param *params, const uint8_t *end_sp);
void walk_var(uint8_t param);
void walk_evec(bool is_pod, uint16_t sp_size) {
DPRINT("evec<"); walk(); DPRINT(">");
}
void walk_vec(bool is_pod, uint16_t sp_size) {
DPRINT("vec<"); walk(); DPRINT(">");
}
@ -571,9 +552,6 @@ public:
void walk_fn() { sa.set(sizeof(void *)*2, sizeof(void *)); }
void walk_obj() { sa.set(sizeof(void *)*2, sizeof(void *)); }
void walk_evec(bool is_pod, uint16_t sp_size) {
sa.set(sizeof(void *), sizeof(void *));
}
void walk_vec(bool is_pod, uint16_t sp_size) {
sa.set(sizeof(void *), sizeof(void *));
}
@ -781,9 +759,7 @@ protected:
void walk_obj_contents(ptr &dp);
void walk_variant(tag_info &tinfo, uint32_t variant);
static std::pair<uint8_t *,uint8_t *> get_evec_data_range(ptr dp);
static std::pair<uint8_t *,uint8_t *> get_vec_data_range(ptr dp);
static std::pair<ptr_pair,ptr_pair> get_evec_data_range(ptr_pair &dp);
static std::pair<ptr_pair,ptr_pair> get_vec_data_range(ptr_pair &dp);
public:
@ -803,9 +779,6 @@ public:
static_cast<T *>(this)->walk_struct(end_sp);
}
void walk_evec(bool is_pod, uint16_t sp_size) {
DATA_SIMPLE(void *, walk_evec(is_pod, sp_size));
}
void walk_vec(bool is_pod, uint16_t sp_size) {
DATA_SIMPLE(void *, walk_vec(is_pod, sp_size));
}
@ -865,13 +838,6 @@ data<T,U>::walk_variant(tag_info &tinfo, uint32_t variant_id) {
variant_ptr_and_end);
}
template<typename T,typename U>
std::pair<uint8_t *,uint8_t *>
data<T,U>::get_evec_data_range(ptr dp) {
rust_evec *vp = bump_dp<rust_evec *>(dp);
return std::make_pair(vp->data, vp->data + vp->fill);
}
template<typename T,typename U>
std::pair<uint8_t *,uint8_t *>
data<T,U>::get_vec_data_range(ptr dp) {
@ -880,16 +846,6 @@ data<T,U>::get_vec_data_range(ptr dp) {
return std::make_pair(data, data + ptr->fill);
}
template<typename T,typename U>
std::pair<ptr_pair,ptr_pair>
data<T,U>::get_evec_data_range(ptr_pair &dp) {
std::pair<uint8_t *,uint8_t *> fst = get_evec_data_range(dp.fst);
std::pair<uint8_t *,uint8_t *> snd = get_evec_data_range(dp.snd);
ptr_pair start(fst.first, snd.first);
ptr_pair end(fst.second, snd.second);
return std::make_pair(start, end);
}
template<typename T,typename U>
std::pair<ptr_pair,ptr_pair>
data<T,U>::get_vec_data_range(ptr_pair &dp) {
@ -1014,13 +970,6 @@ private:
out(other.out),
prefix("") {}
void walk_evec(bool is_pod, uint16_t sp_size) {
if (!get_dp<void *>(dp))
out << prefix << "(null)";
else
walk_vec(is_pod, get_evec_data_range(dp));
}
void walk_vec(bool is_pod, uint16_t sp_size) {
if (!get_dp<void *>(dp))
out << prefix << "(null)";