aboutsummaryrefslogtreecommitdiff
path: root/src/boot/me/layout.ml
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-09 15:59:29 -0700
committerGraydon Hoare <[email protected]>2010-09-09 15:59:29 -0700
commita9e2327a18e782df524c14dc42910d61a4785324 (patch)
tree8763224ac3a4c11275dd64257aac47036c97c48d /src/boot/me/layout.ml
parentFixed lost signal notifications. (diff)
downloadrust-a9e2327a18e782df524c14dc42910d61a4785324.tar.xz
rust-a9e2327a18e782df524c14dc42910d61a4785324.zip
Switch tags to purely nominal, removing TY_iso and TY_idx. Seems to mostly work, possibly a little bumpy. Changes a lot.
Diffstat (limited to 'src/boot/me/layout.ml')
-rw-r--r--src/boot/me/layout.ml12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/boot/me/layout.ml b/src/boot/me/layout.ml
index cfd087ff..65d44d5a 100644
--- a/src/boot/me/layout.ml
+++ b/src/boot/me/layout.ml
@@ -113,7 +113,7 @@ let layout_visitor
| Il.CodeTy -> true
| Il.NilTy -> false
in
- rt_in_mem (slot_referent_type cx.ctxt_abi.Abi.abi_word_bits slot)
+ rt_in_mem (slot_referent_type cx slot)
in
let rty_sz rty = Il.referent_ty_size cx.ctxt_abi.Abi.abi_word_bits rty in
@@ -142,11 +142,11 @@ let layout_visitor
: unit =
let accum (off,align) id : (size * size) =
let slot = get_slot cx id in
- let rt = slot_referent_type cx.ctxt_abi.Abi.abi_word_bits slot in
+ let rt = slot_referent_type cx slot in
let (elt_size, elt_align) = rty_layout rt in
if vregs_ok
&& (is_subword_size elt_size)
- && (not (type_is_structured (slot_ty slot)))
+ && (not (type_is_structured cx (slot_ty slot)))
&& (not (force_slot_to_mem slot))
&& (not (Hashtbl.mem cx.ctxt_slot_aliased id))
then
@@ -171,7 +171,7 @@ let layout_visitor
else neg_sz (add_sz elt_off elt_size)
in
Stack.push
- (slot_referent_type cx.ctxt_abi.Abi.abi_word_bits slot)
+ (slot_referent_type cx slot)
slot_accum;
iflog
begin
@@ -296,10 +296,10 @@ let layout_visitor
layout_header i.id
(header_slot_ids f.Ast.fn_input_slots)
- | Ast.MOD_ITEM_tag (header_slots, _, _) ->
+ | Ast.MOD_ITEM_tag (hdr, _, _) ->
enter_frame i.id;
layout_header i.id
- (Array.map (fun sid -> sid.id) header_slots)
+ (header_slot_ids hdr)
| Ast.MOD_ITEM_obj obj ->
enter_frame i.id;