|
2 | 2 |
|
3 | 3 |
|
4 | 4 | // FIXME: Most of these should be uints.
|
5 |
| -const int rc_base_field_refcnt = 0; |
| 5 | +const rc_base_field_refcnt: int = 0; |
6 | 6 |
|
7 | 7 |
|
8 | 8 | // FIXME: import from std::dbg when imported consts work.
|
9 |
| -const uint const_refcount = 0x7bad_face_u; |
| 9 | +const const_refcount: uint = 0x7bad_face_u; |
10 | 10 |
|
11 |
| -const int task_field_refcnt = 0; |
| 11 | +const task_field_refcnt: int = 0; |
12 | 12 |
|
13 |
| -const int task_field_stk = 2; |
| 13 | +const task_field_stk: int = 2; |
14 | 14 |
|
15 |
| -const int task_field_runtime_sp = 3; |
| 15 | +const task_field_runtime_sp: int = 3; |
16 | 16 |
|
17 |
| -const int task_field_rust_sp = 4; |
| 17 | +const task_field_rust_sp: int = 4; |
18 | 18 |
|
19 |
| -const int task_field_gc_alloc_chain = 5; |
| 19 | +const task_field_gc_alloc_chain: int = 5; |
20 | 20 |
|
21 |
| -const int task_field_dom = 6; |
| 21 | +const task_field_dom: int = 6; |
22 | 22 |
|
23 |
| -const int n_visible_task_fields = 7; |
| 23 | +const n_visible_task_fields: int = 7; |
24 | 24 |
|
25 |
| -const int dom_field_interrupt_flag = 1; |
| 25 | +const dom_field_interrupt_flag: int = 1; |
26 | 26 |
|
27 |
| -const int frame_glue_fns_field_mark = 0; |
| 27 | +const frame_glue_fns_field_mark: int = 0; |
28 | 28 |
|
29 |
| -const int frame_glue_fns_field_drop = 1; |
| 29 | +const frame_glue_fns_field_drop: int = 1; |
30 | 30 |
|
31 |
| -const int frame_glue_fns_field_reloc = 2; |
| 31 | +const frame_glue_fns_field_reloc: int = 2; |
32 | 32 |
|
33 |
| -const int box_rc_field_refcnt = 0; |
| 33 | +const box_rc_field_refcnt: int = 0; |
34 | 34 |
|
35 |
| -const int box_rc_field_body = 1; |
| 35 | +const box_rc_field_body: int = 1; |
36 | 36 |
|
37 |
| -const int general_code_alignment = 16; |
| 37 | +const general_code_alignment: int = 16; |
38 | 38 |
|
39 |
| -const int vec_elt_rc = 0; |
| 39 | +const vec_elt_rc: int = 0; |
40 | 40 |
|
41 |
| -const int vec_elt_alloc = 1; |
| 41 | +const vec_elt_alloc: int = 1; |
42 | 42 |
|
43 |
| -const int vec_elt_fill = 2; |
| 43 | +const vec_elt_fill: int = 2; |
44 | 44 |
|
45 |
| -const int vec_elt_pad = 3; |
| 45 | +const vec_elt_pad: int = 3; |
46 | 46 |
|
47 |
| -const int vec_elt_data = 4; |
| 47 | +const vec_elt_data: int = 4; |
48 | 48 |
|
49 |
| -const int tydesc_field_first_param = 0; |
| 49 | +const tydesc_field_first_param: int = 0; |
50 | 50 |
|
51 |
| -const int tydesc_field_size = 1; |
| 51 | +const tydesc_field_size: int = 1; |
52 | 52 |
|
53 |
| -const int tydesc_field_align = 2; |
| 53 | +const tydesc_field_align: int = 2; |
54 | 54 |
|
55 |
| -const int tydesc_field_copy_glue = 3; |
| 55 | +const tydesc_field_copy_glue: int = 3; |
56 | 56 |
|
57 |
| -const int tydesc_field_drop_glue = 4; |
| 57 | +const tydesc_field_drop_glue: int = 4; |
58 | 58 |
|
59 |
| -const int tydesc_field_free_glue = 5; |
| 59 | +const tydesc_field_free_glue: int = 5; |
60 | 60 |
|
61 |
| -const int tydesc_field_sever_glue = 6; |
| 61 | +const tydesc_field_sever_glue: int = 6; |
62 | 62 |
|
63 |
| -const int tydesc_field_mark_glue = 7; |
| 63 | +const tydesc_field_mark_glue: int = 7; |
64 | 64 |
|
65 | 65 |
|
66 | 66 | // FIXME no longer used in rustc, drop when rustboot is gone
|
67 |
| -const int tydesc_field_obj_drop_glue = 8; |
| 67 | +const tydesc_field_obj_drop_glue: int = 8; |
68 | 68 |
|
69 |
| -const int tydesc_field_is_stateful = 9; |
| 69 | +const tydesc_field_is_stateful: int = 9; |
70 | 70 |
|
71 |
| -const int tydesc_field_cmp_glue = 10; |
| 71 | +const tydesc_field_cmp_glue: int = 10; |
72 | 72 |
|
73 |
| -const int n_tydesc_fields = 11; |
| 73 | +const n_tydesc_fields: int = 11; |
74 | 74 |
|
75 |
| -const uint cmp_glue_op_eq = 0u; |
| 75 | +const cmp_glue_op_eq: uint = 0u; |
76 | 76 |
|
77 |
| -const uint cmp_glue_op_lt = 1u; |
| 77 | +const cmp_glue_op_lt: uint = 1u; |
78 | 78 |
|
79 |
| -const uint cmp_glue_op_le = 2u; |
| 79 | +const cmp_glue_op_le: uint = 2u; |
80 | 80 |
|
81 |
| -const int obj_field_vtbl = 0; |
| 81 | +const obj_field_vtbl: int = 0; |
82 | 82 |
|
83 |
| -const int obj_field_box = 1; |
| 83 | +const obj_field_box: int = 1; |
84 | 84 |
|
85 |
| -const int obj_body_elt_tydesc = 0; |
| 85 | +const obj_body_elt_tydesc: int = 0; |
86 | 86 |
|
87 |
| -const int obj_body_elt_typarams = 1; |
| 87 | +const obj_body_elt_typarams: int = 1; |
88 | 88 |
|
89 |
| -const int obj_body_elt_fields = 2; |
| 89 | +const obj_body_elt_fields: int = 2; |
90 | 90 |
|
91 | 91 | // The base object to which an anonymous object is attached.
|
92 |
| -const int obj_body_elt_with_obj = 3; |
| 92 | +const obj_body_elt_with_obj: int = 3; |
93 | 93 |
|
94 | 94 | // The two halves of a closure: code and environment.
|
95 |
| -const int fn_field_code = 0; |
96 |
| -const int fn_field_box = 1; |
| 95 | +const fn_field_code: int = 0; |
| 96 | +const fn_field_box: int = 1; |
97 | 97 |
|
98 |
| -const int closure_elt_tydesc = 0; |
| 98 | +const closure_elt_tydesc: int = 0; |
99 | 99 |
|
100 |
| -const int closure_elt_target = 1; |
| 100 | +const closure_elt_target: int = 1; |
101 | 101 |
|
102 |
| -const int closure_elt_bindings = 2; |
| 102 | +const closure_elt_bindings: int = 2; |
103 | 103 |
|
104 |
| -const int closure_elt_ty_params = 3; |
| 104 | +const closure_elt_ty_params: int = 3; |
105 | 105 |
|
106 |
| -const uint ivec_default_length = 4u; |
| 106 | +const ivec_default_length: uint = 4u; |
107 | 107 |
|
108 |
| -const uint ivec_elt_len = 0u; |
| 108 | +const ivec_elt_len: uint = 0u; |
109 | 109 |
|
110 |
| -const uint ivec_elt_alen = 1u; |
| 110 | +const ivec_elt_alen: uint = 1u; |
111 | 111 |
|
112 |
| -const uint ivec_elt_elems = 2u; |
| 112 | +const ivec_elt_elems: uint = 2u; |
113 | 113 |
|
114 |
| -const uint ivec_heap_stub_elt_zero = 0u; |
| 114 | +const ivec_heap_stub_elt_zero: uint = 0u; |
115 | 115 |
|
116 |
| -const uint ivec_heap_stub_elt_alen = 1u; |
| 116 | +const ivec_heap_stub_elt_alen: uint = 1u; |
117 | 117 |
|
118 |
| -const uint ivec_heap_stub_elt_ptr = 2u; |
| 118 | +const ivec_heap_stub_elt_ptr: uint = 2u; |
119 | 119 |
|
120 |
| -const uint ivec_heap_elt_len = 0u; |
| 120 | +const ivec_heap_elt_len: uint = 0u; |
121 | 121 |
|
122 |
| -const uint ivec_heap_elt_elems = 1u; |
| 122 | +const ivec_heap_elt_elems: uint = 1u; |
123 | 123 |
|
124 |
| -const int worst_case_glue_call_args = 7; |
| 124 | +const worst_case_glue_call_args: int = 7; |
125 | 125 |
|
126 | 126 | fn memcpy_glue_name() -> str { ret "rust_memcpy_glue"; }
|
127 | 127 |
|
|
0 commit comments