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