diff options
| author | Graydon Hoare <[email protected]> | 2011-04-02 19:03:43 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-04-02 19:05:12 -0700 |
| commit | 8e9c5b96fbaa338e0b60e3e8c0127e0b3e4cee76 (patch) | |
| tree | c893449b391e9aec1c6aa3299ab975b4cd053be0 /src/boot/me/semant.ml | |
| parent | Gitignore the recommended build directory (diff) | |
| download | rust-8e9c5b96fbaa338e0b60e3e8c0127e0b3e4cee76.tar.xz rust-8e9c5b96fbaa338e0b60e3e8c0127e0b3e4cee76.zip | |
Change rust_vec to have a 16-byte header, to 16-byte-align vec-body data. Major perf win.
Diffstat (limited to 'src/boot/me/semant.ml')
| -rw-r--r-- | src/boot/me/semant.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/me/semant.ml b/src/boot/me/semant.ml index 3419bb34..6a7de314 100644 --- a/src/boot/me/semant.ml +++ b/src/boot/me/semant.ml @@ -2382,7 +2382,7 @@ and fn_rty (cx:ctxt) (opaque_box_body:bool) : Il.referent_ty = and vec_sty (word_bits:Il.bits) : Il.scalar_ty = let word = word_rty word_bits in let ptr = Il.ScalarTy (Il.AddrTy Il.OpaqueTy) in - Il.AddrTy (Il.StructTy [| word; word; word; ptr |]) + Il.AddrTy (Il.StructTy [| word; word; word; word; ptr |]) and referent_type ?parent_tags:parent_tags @@ -2442,7 +2442,7 @@ and referent_type | Ast.TY_mach (TY_i64) | Ast.TY_mach (TY_f64) -> sv Il.Bits64 - | Ast.TY_str -> sp (Il.StructTy [| word; word; word; ptr |]) + | Ast.TY_str -> sp (Il.StructTy [| word; word; word; word; ptr |]) | Ast.TY_vec _ -> s (vec_sty word_bits) | Ast.TY_tup tt -> tup tt | Ast.TY_rec tr -> tup (Array.map snd tr) |