]> git.lizzy.rs Git - rust.git/blob - src/librustc_back/abi.rs
auto merge of #15421 : catharsis/rust/doc-ffi-minor-fixes, r=alexcrichton
[rust.git] / src / librustc_back / abi.rs
1 // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 pub static box_field_refcnt: uint = 0u;
12 pub static box_field_tydesc: uint = 1u;
13 pub static box_field_body: uint = 4u;
14
15 pub static tydesc_field_visit_glue: uint = 3u;
16
17 // The two halves of a closure: code and environment.
18 pub static fn_field_code: uint = 0u;
19 pub static fn_field_box: uint = 1u;
20
21 // The two fields of a trait object/trait instance: vtable and box.
22 // The vtable contains the type descriptor as first element.
23 pub static trt_field_vtable: uint = 0u;
24 pub static trt_field_box: uint = 1u;
25
26 pub static vec_elt_fill: uint = 0u;
27
28 pub static vec_elt_alloc: uint = 1u;
29
30 pub static vec_elt_elems: uint = 2u;
31
32 pub static slice_elt_base: uint = 0u;
33 pub static slice_elt_len: uint = 1u;