2010-09-23 17:46:31 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
// FIXME: Most of these should be uints.
|
2010-09-23 17:46:31 -05:00
|
|
|
const int rc_base_field_refcnt = 0;
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-05-12 10:24:54 -05:00
|
|
|
// FIXME: import from std::dbg when imported consts work.
|
2010-11-09 19:49:20 -06:00
|
|
|
const uint const_refcount = 0x7bad_face_u;
|
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
const int task_field_refcnt = 0;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
const int task_field_stk = 2;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
const int task_field_runtime_sp = 3;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
const int task_field_rust_sp = 4;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
const int task_field_gc_alloc_chain = 5;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
const int task_field_dom = 6;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
const int n_visible_task_fields = 7;
|
|
|
|
|
|
|
|
const int dom_field_interrupt_flag = 1;
|
|
|
|
|
|
|
|
const int frame_glue_fns_field_mark = 0;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
const int frame_glue_fns_field_drop = 1;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
const int frame_glue_fns_field_reloc = 2;
|
|
|
|
|
|
|
|
const int box_rc_field_refcnt = 0;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
const int box_rc_field_body = 1;
|
|
|
|
|
|
|
|
const int general_code_alignment = 16;
|
|
|
|
|
|
|
|
const int vec_elt_rc = 0;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
const int vec_elt_alloc = 1;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
const int vec_elt_fill = 2;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-04-02 21:03:43 -05:00
|
|
|
const int vec_elt_pad = 3;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-04-02 21:03:43 -05:00
|
|
|
const int vec_elt_data = 4;
|
2010-09-23 17:46:31 -05:00
|
|
|
|
2010-12-20 12:23:37 -06:00
|
|
|
const int tydesc_field_first_param = 0;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-12-20 12:23:37 -06:00
|
|
|
const int tydesc_field_size = 1;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-12-20 12:23:37 -06:00
|
|
|
const int tydesc_field_align = 2;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-06-28 18:52:29 -05:00
|
|
|
const int tydesc_field_copy_glue = 3;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-04-08 19:54:46 -05:00
|
|
|
const int tydesc_field_drop_glue = 4;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-04-08 19:54:46 -05:00
|
|
|
const int tydesc_field_free_glue = 5;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-04-08 19:54:46 -05:00
|
|
|
const int tydesc_field_sever_glue = 6;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-04-08 19:54:46 -05:00
|
|
|
const int tydesc_field_mark_glue = 7;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
2011-04-29 06:34:30 -05:00
|
|
|
// FIXME no longer used in rustc, drop when rustboot is gone
|
2011-04-08 19:54:46 -05:00
|
|
|
const int tydesc_field_obj_drop_glue = 8;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-12-20 12:23:37 -06:00
|
|
|
const int tydesc_field_is_stateful = 9;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-04-18 12:56:52 -05:00
|
|
|
const int tydesc_field_cmp_glue = 10;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-04-18 12:56:52 -05:00
|
|
|
const int n_tydesc_fields = 11;
|
2010-12-20 12:23:37 -06:00
|
|
|
|
2011-04-18 14:44:50 -05:00
|
|
|
const uint cmp_glue_op_eq = 0u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-04-18 14:44:50 -05:00
|
|
|
const uint cmp_glue_op_lt = 1u;
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
const uint cmp_glue_op_le = 2u;
|
2010-12-17 01:26:07 -06:00
|
|
|
|
2010-12-20 18:23:49 -06:00
|
|
|
const int obj_field_vtbl = 0;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-12-20 18:23:49 -06:00
|
|
|
const int obj_field_box = 1;
|
2010-12-17 01:26:07 -06:00
|
|
|
|
|
|
|
const int obj_body_elt_tydesc = 0;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-02-03 16:40:57 -06:00
|
|
|
const int obj_body_elt_typarams = 1;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-02-03 16:40:57 -06:00
|
|
|
const int obj_body_elt_fields = 2;
|
2010-12-17 01:26:07 -06:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
const int obj_body_elt_with_obj = 3;
|
|
|
|
|
2011-06-16 18:55:46 -05:00
|
|
|
|
|
|
|
/* The base object to which an anonymous
|
|
|
|
* object is attached */
|
|
|
|
const int fn_field_code = 0;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-12-20 18:23:49 -06:00
|
|
|
const int fn_field_box = 1;
|
2010-09-23 17:46:31 -05:00
|
|
|
|
2011-01-05 20:57:28 -06:00
|
|
|
const int closure_elt_tydesc = 0;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-01-05 20:57:28 -06:00
|
|
|
const int closure_elt_target = 1;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-01-05 20:57:28 -06:00
|
|
|
const int closure_elt_bindings = 2;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-01-05 20:57:28 -06:00
|
|
|
const int closure_elt_ty_params = 3;
|
|
|
|
|
2011-06-15 16:14:33 -05:00
|
|
|
const uint ivec_default_length = 4u;
|
2011-06-10 21:35:59 -05:00
|
|
|
|
|
|
|
const uint ivec_elt_len = 0u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-06-10 21:35:59 -05:00
|
|
|
const uint ivec_elt_alen = 1u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-06-10 21:35:59 -05:00
|
|
|
const uint ivec_elt_elems = 2u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-06-10 21:35:59 -05:00
|
|
|
const uint ivec_heap_stub_elt_zero = 0u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-06-10 21:35:59 -05:00
|
|
|
const uint ivec_heap_stub_elt_alen = 1u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-06-10 21:35:59 -05:00
|
|
|
const uint ivec_heap_stub_elt_ptr = 2u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-06-10 21:35:59 -05:00
|
|
|
const uint ivec_heap_elt_len = 0u;
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
const uint ivec_heap_elt_elems = 1u;
|
2011-01-05 20:57:28 -06:00
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
const int worst_case_glue_call_args = 7;
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
fn memcpy_glue_name() -> str { ret "rust_memcpy_glue"; }
|
2011-01-18 17:38:35 -06:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
fn bzero_glue_name() -> str { ret "rust_bzero_glue"; }
|
2011-03-02 18:42:09 -06:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
fn yield_glue_name() -> str { ret "rust_yield_glue"; }
|
2011-01-17 19:24:33 -06:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
fn no_op_type_glue_name() -> str { ret "rust_no_op_type_glue"; }
|
2010-09-23 17:46:31 -05:00
|
|
|
//
|
|
|
|
// Local Variables:
|
|
|
|
// mode: rust
|
|
|
|
// fill-column: 78;
|
|
|
|
// indent-tabs-mode: nil
|
|
|
|
// c-basic-offset: 4
|
|
|
|
// buffer-file-coding-system: utf-8-unix
|
2011-03-25 17:07:27 -05:00
|
|
|
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
|
2010-09-23 17:46:31 -05:00
|
|
|
// End:
|
|
|
|
//
|