diff options
| author | Graydon Hoare <[email protected]> | 2010-12-20 16:23:49 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-12-20 16:26:38 -0800 |
| commit | 86188da3483b35ffd3d118600d55437c5233438c (patch) | |
| tree | f78e3dcdf0ad3fa0e78f527e673ce92825190ebc /src/comp/back | |
| parent | rustc: Use the passed-in tydescs for take and drop glue in parametric fns. Al... (diff) | |
| download | rust-86188da3483b35ffd3d118600d55437c5233438c.tar.xz rust-86188da3483b35ffd3d118600d55437c5233438c.zip | |
Mop up cases of s/copy/take/, remove 'binding' terminology, whitespace police, and make obj/fn structural.
Diffstat (limited to 'src/comp/back')
| -rw-r--r-- | src/comp/back/abi.rs | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/comp/back/abi.rs b/src/comp/back/abi.rs index fc44440a..3fae601b 100644 --- a/src/comp/back/abi.rs +++ b/src/comp/back/abi.rs @@ -31,7 +31,7 @@ const int vec_elt_data = 3; const int tydesc_field_first_param = 0; const int tydesc_field_size = 1; const int tydesc_field_align = 2; -const int tydesc_field_copy_glue_off = 3; +const int tydesc_field_take_glue_off = 3; const int tydesc_field_drop_glue_off = 4; const int tydesc_field_free_glue_off = 5; const int tydesc_field_sever_glue_off = 6; @@ -40,22 +40,14 @@ const int tydesc_field_obj_drop_glue_off = 8; const int tydesc_field_is_stateful = 9; -/* Both obj and fn are two-word "bindings": One word points to some static - * dispatch information (vtbl, thunk, callee), and the other points to some - * box of bound data (object-body or closure). - */ - -const int binding_field_dispatch = 0; -const int binding_field_bound_data = 1; - -const int obj_field_vtbl = binding_field_dispatch; -const int obj_field_box = binding_field_bound_data; +const int obj_field_vtbl = 0; +const int obj_field_box = 1; const int obj_body_elt_tydesc = 0; const int obj_body_elt_fields = 1; -const int fn_field_code = binding_field_dispatch; -const int fn_field_box = binding_field_bound_data; +const int fn_field_code = 0; +const int fn_field_box = 1; const int worst_case_glue_call_args = 7; |