Skip to content

Commit ce72993

Browse files
committed
Reformat source tree (minus a couple tests that are still grumpy).
1 parent 8d38182 commit ce72993

File tree

379 files changed

+13667
-18931
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

379 files changed

+13667
-18931
lines changed

src/comp/back/abi.rs

Lines changed: 54 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,136 @@
1-
// FIXME: Most of these should be uints.
21

2+
3+
4+
// FIXME: Most of these should be uints.
35
const int rc_base_field_refcnt = 0;
46

7+
58
// FIXME: import from std::dbg when imported consts work.
69
const uint const_refcount = 0x7bad_face_u;
710

811
const int task_field_refcnt = 0;
12+
913
const int task_field_stk = 2;
14+
1015
const int task_field_runtime_sp = 3;
16+
1117
const int task_field_rust_sp = 4;
18+
1219
const int task_field_gc_alloc_chain = 5;
20+
1321
const int task_field_dom = 6;
22+
1423
const int n_visible_task_fields = 7;
1524

1625
const int dom_field_interrupt_flag = 1;
1726

1827
const int frame_glue_fns_field_mark = 0;
28+
1929
const int frame_glue_fns_field_drop = 1;
30+
2031
const int frame_glue_fns_field_reloc = 2;
2132

2233
const int box_rc_field_refcnt = 0;
34+
2335
const int box_rc_field_body = 1;
2436

2537
const int general_code_alignment = 16;
2638

2739
const int vec_elt_rc = 0;
40+
2841
const int vec_elt_alloc = 1;
42+
2943
const int vec_elt_fill = 2;
44+
3045
const int vec_elt_pad = 3;
46+
3147
const int vec_elt_data = 4;
3248

3349
const int tydesc_field_first_param = 0;
50+
3451
const int tydesc_field_size = 1;
52+
3553
const int tydesc_field_align = 2;
54+
3655
const int tydesc_field_take_glue = 3;
56+
3757
const int tydesc_field_drop_glue = 4;
58+
3859
const int tydesc_field_free_glue = 5;
60+
3961
const int tydesc_field_sever_glue = 6;
62+
4063
const int tydesc_field_mark_glue = 7;
64+
65+
4166
// FIXME no longer used in rustc, drop when rustboot is gone
4267
const int tydesc_field_obj_drop_glue = 8;
68+
4369
const int tydesc_field_is_stateful = 9;
70+
4471
const int tydesc_field_cmp_glue = 10;
72+
4573
const int n_tydesc_fields = 11;
4674

4775
const uint cmp_glue_op_eq = 0u;
76+
4877
const uint cmp_glue_op_lt = 1u;
49-
const uint cmp_glue_op_le = 2u;
5078

79+
const uint cmp_glue_op_le = 2u;
5180

5281
const int obj_field_vtbl = 0;
82+
5383
const int obj_field_box = 1;
5484

5585
const int obj_body_elt_tydesc = 0;
86+
5687
const int obj_body_elt_typarams = 1;
88+
5789
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 */
6090

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+
6297
const int fn_field_box = 1;
6398

6499
const int closure_elt_tydesc = 0;
100+
65101
const int closure_elt_target = 1;
102+
66103
const int closure_elt_bindings = 2;
104+
67105
const int closure_elt_ty_params = 3;
68106

69107
const uint ivec_default_length = 8u;
70108

71109
const uint ivec_elt_len = 0u;
110+
72111
const uint ivec_elt_alen = 1u;
112+
73113
const uint ivec_elt_elems = 2u;
114+
74115
const uint ivec_heap_stub_elt_zero = 0u;
116+
75117
const uint ivec_heap_stub_elt_alen = 1u;
118+
76119
const uint ivec_heap_stub_elt_ptr = 2u;
120+
77121
const uint ivec_heap_elt_len = 0u;
78-
const uint ivec_heap_elt_elems = 1u;
79122

123+
const uint ivec_heap_elt_elems = 1u;
80124

81125
const int worst_case_glue_call_args = 7;
82126

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"; }
90128

91-
fn yield_glue_name() -> str {
92-
ret "rust_yield_glue";
93-
}
129+
fn bzero_glue_name() -> str { ret "rust_bzero_glue"; }
94130

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"; }
98132

133+
fn no_op_type_glue_name() -> str { ret "rust_no_op_type_glue"; }
99134
//
100135
// Local Variables:
101136
// mode: rust

0 commit comments

Comments
 (0)