mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
final phase
This commit is contained in:
parent
0ed259a80d
commit
c663a35e16
27 changed files with 222 additions and 183 deletions
|
@ -2,7 +2,7 @@ use roc_builtins::bitcode::{FloatWidth, IntWidth};
|
|||
use roc_mono::layout::{Layout, UnionLayout};
|
||||
|
||||
use crate::wasm_module::ValueType;
|
||||
use crate::{PTR_SIZE, PTR_TYPE};
|
||||
use crate::{PTR_SIZE, PTR_TYPE, TARGET_INFO};
|
||||
|
||||
/// Manually keep up to date with the Zig version we are using for builtins
|
||||
pub const BUILTINS_ZIG_VERSION: ZigVersion = ZigVersion::Zig8;
|
||||
|
@ -47,8 +47,8 @@ impl WasmLayout {
|
|||
use UnionLayout::*;
|
||||
use ValueType::*;
|
||||
|
||||
let size = layout.stack_size(PTR_SIZE);
|
||||
let alignment_bytes = layout.alignment_bytes(PTR_SIZE);
|
||||
let size = layout.stack_size(TARGET_INFO);
|
||||
let alignment_bytes = layout.alignment_bytes(TARGET_INFO);
|
||||
|
||||
match layout {
|
||||
Layout::Builtin(Int(int_width)) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue