2012-12-03 18:48:01 -06:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static rc_base_field_refcnt: uint = 0u;
|
2010-09-23 17:46:31 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static task_field_refcnt: uint = 0u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static task_field_stk: uint = 2u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static task_field_runtime_sp: uint = 3u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static task_field_rust_sp: uint = 4u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static task_field_gc_alloc_chain: uint = 5u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static task_field_dom: uint = 6u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static n_visible_task_fields: uint = 7u;
|
2010-09-23 17:46:31 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static dom_field_interrupt_flag: uint = 1u;
|
2010-09-23 17:46:31 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static frame_glue_fns_field_mark: uint = 0u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static frame_glue_fns_field_drop: uint = 1u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static frame_glue_fns_field_reloc: uint = 2u;
|
2010-09-23 17:46:31 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static box_field_refcnt: uint = 0u;
|
|
|
|
pub static box_field_tydesc: uint = 1u;
|
|
|
|
pub static box_field_prev: uint = 2u;
|
|
|
|
pub static box_field_next: uint = 3u;
|
|
|
|
pub static box_field_body: uint = 4u;
|
2010-09-23 17:46:31 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static general_code_alignment: uint = 16u;
|
2010-09-23 17:46:31 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static tydesc_field_size: uint = 0u;
|
|
|
|
pub static tydesc_field_align: uint = 1u;
|
|
|
|
pub static tydesc_field_take_glue: uint = 2u;
|
|
|
|
pub static tydesc_field_drop_glue: uint = 3u;
|
|
|
|
pub static tydesc_field_free_glue: uint = 4u;
|
|
|
|
pub static tydesc_field_visit_glue: uint = 5u;
|
2013-08-11 12:29:14 -05:00
|
|
|
pub static tydesc_field_borrow_offset: uint = 6u;
|
2013-09-03 03:44:47 -05:00
|
|
|
pub static tydesc_field_name_offset: uint = 7u;
|
|
|
|
pub static n_tydesc_fields: uint = 8u;
|
2010-12-20 12:23:37 -06:00
|
|
|
|
2011-06-28 20:47:36 -05:00
|
|
|
// The two halves of a closure: code and environment.
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static fn_field_code: uint = 0u;
|
|
|
|
pub static fn_field_box: uint = 1u;
|
2010-09-23 17:46:31 -05:00
|
|
|
|
2013-06-22 02:37:40 -05:00
|
|
|
// The two fields of a trait object/trait instance: vtable and box.
|
|
|
|
// The vtable contains the type descriptor as first element.
|
2013-05-01 03:59:36 -05:00
|
|
|
pub static trt_field_vtable: uint = 0u;
|
|
|
|
pub static trt_field_box: uint = 1u;
|
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static vec_elt_fill: uint = 0u;
|
2011-06-10 21:35:59 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static vec_elt_alloc: uint = 1u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static vec_elt_elems: uint = 2u;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static slice_elt_base: uint = 0u;
|
|
|
|
pub static slice_elt_len: uint = 1u;
|
2012-04-16 18:17:51 -05:00
|
|
|
|
2013-03-22 16:00:15 -05:00
|
|
|
pub static abi_version: uint = 1u;
|