2010-09-23 15:46:31 -07:00
|
|
|
|
2011-06-15 11:19:50 -07:00
|
|
|
|
|
|
|
|
|
|
|
// FIXME: Most of these should be uints.
|
2011-07-27 14:19:39 +02:00
|
|
|
const rc_base_field_refcnt: int = 0;
|
2010-09-23 15:46:31 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const task_field_refcnt: int = 0;
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const task_field_stk: int = 2;
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const task_field_runtime_sp: int = 3;
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const task_field_rust_sp: int = 4;
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const task_field_gc_alloc_chain: int = 5;
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const task_field_dom: int = 6;
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const n_visible_task_fields: int = 7;
|
2010-09-23 15:46:31 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const dom_field_interrupt_flag: int = 1;
|
2010-09-23 15:46:31 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const frame_glue_fns_field_mark: int = 0;
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const frame_glue_fns_field_drop: int = 1;
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const frame_glue_fns_field_reloc: int = 2;
|
2010-09-23 15:46:31 -07:00
|
|
|
|
2012-02-01 18:52:08 -08:00
|
|
|
const box_field_refcnt: int = 0;
|
|
|
|
const box_field_tydesc: int = 1;
|
|
|
|
const box_field_prev: int = 2;
|
|
|
|
const box_field_next: int = 3;
|
|
|
|
const box_field_body: int = 4;
|
2010-09-23 15:46:31 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const general_code_alignment: int = 16;
|
2010-09-23 15:46:31 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const tydesc_field_first_param: int = 0;
|
|
|
|
const tydesc_field_size: int = 1;
|
|
|
|
const tydesc_field_align: int = 2;
|
2011-08-19 10:24:13 +02:00
|
|
|
const tydesc_field_take_glue: int = 3;
|
2011-07-27 14:19:39 +02:00
|
|
|
const tydesc_field_drop_glue: int = 4;
|
|
|
|
const tydesc_field_free_glue: int = 5;
|
2011-08-24 17:05:53 +02:00
|
|
|
const tydesc_field_unused: int = 6;
|
2011-08-22 11:41:49 +02:00
|
|
|
const tydesc_field_sever_glue: int = 7;
|
|
|
|
const tydesc_field_mark_glue: int = 8;
|
2011-09-22 22:15:25 -07:00
|
|
|
const tydesc_field_unused2: int = 9;
|
2012-02-07 14:37:10 +01:00
|
|
|
const tydesc_field_unused_2: int = 10;
|
2011-08-04 11:25:09 -07:00
|
|
|
const tydesc_field_shape: int = 11;
|
|
|
|
const tydesc_field_shape_tables: int = 12;
|
|
|
|
const tydesc_field_n_params: int = 13;
|
2012-01-13 10:58:31 +01:00
|
|
|
const tydesc_field_obj_params: int = 14; // FIXME unused
|
2011-08-24 18:36:51 -07:00
|
|
|
const n_tydesc_fields: int = 15;
|
2010-12-20 10:23:37 -08:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const cmp_glue_op_eq: uint = 0u;
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const cmp_glue_op_lt: uint = 1u;
|
2011-04-18 12:44:50 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const cmp_glue_op_le: uint = 2u;
|
2010-12-16 23:26:07 -08:00
|
|
|
|
2011-06-28 18:47:36 -07:00
|
|
|
// The two halves of a closure: code and environment.
|
2011-07-27 14:19:39 +02:00
|
|
|
const fn_field_code: int = 0;
|
|
|
|
const fn_field_box: int = 1;
|
2010-09-23 15:46:31 -07:00
|
|
|
|
2012-02-01 18:52:08 -08:00
|
|
|
// closures, see trans_closure.rs
|
|
|
|
const closure_body_ty_params: int = 0;
|
|
|
|
const closure_body_bindings: int = 1;
|
2011-01-05 18:57:28 -08:00
|
|
|
|
2011-10-25 22:23:28 -07:00
|
|
|
const vec_elt_fill: int = 0;
|
2011-06-10 19:35:59 -07:00
|
|
|
|
2011-10-25 22:23:28 -07:00
|
|
|
const vec_elt_alloc: int = 1;
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2011-10-25 22:23:28 -07:00
|
|
|
const vec_elt_elems: int = 2;
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
const worst_case_glue_call_args: int = 7;
|
2010-09-23 15:46:31 -07:00
|
|
|
|
2011-08-20 14:22:09 -07:00
|
|
|
const abi_version: uint = 1u;
|
|
|
|
|
2011-09-02 15:34:58 -07:00
|
|
|
fn memcpy_glue_name() -> str { ret "rust_memcpy_glue"; }
|
2011-01-18 15:38:35 -08:00
|
|
|
|
2011-09-02 15:34:58 -07:00
|
|
|
fn bzero_glue_name() -> str { ret "rust_bzero_glue"; }
|
2011-03-02 16:42:09 -08:00
|
|
|
|
2011-09-02 15:34:58 -07:00
|
|
|
fn yield_glue_name() -> str { ret "rust_yield_glue"; }
|
2011-01-17 17:24:33 -08:00
|
|
|
|
2011-09-02 15:34:58 -07:00
|
|
|
fn no_op_type_glue_name() -> str { ret "rust_no_op_type_glue"; }
|
2010-09-23 15:46:31 -07:00
|
|
|
//
|
|
|
|
// Local Variables:
|
|
|
|
// mode: rust
|
|
|
|
// fill-column: 78;
|
|
|
|
// indent-tabs-mode: nil
|
|
|
|
// c-basic-offset: 4
|
|
|
|
// buffer-file-coding-system: utf-8-unix
|
|
|
|
// End:
|
|
|
|
//
|