@@ -314,7 +314,7 @@ where
314
314
dst : & ValRaw ,
315
315
) -> Result < Return > {
316
316
assert ! ( Return :: flatten_count( ) > MAX_FLAT_RESULTS ) ;
317
- // FIXME: needs to read an i64 for memory64
317
+ // FIXME(#4311) : needs to read an i64 for memory64
318
318
let ptr = usize:: try_from ( dst. get_u32 ( ) ) ?;
319
319
if ptr % usize:: try_from ( Return :: ALIGN32 ) ? != 0 {
320
320
bail ! ( "return pointer not aligned" ) ;
@@ -1052,7 +1052,7 @@ unsafe impl Lift for char {
1052
1052
}
1053
1053
}
1054
1054
1055
- // TODO : these probably need different constants for memory64
1055
+ // FIXME(#4311) : these probably need different constants for memory64
1056
1056
const UTF16_TAG : usize = 1 << 31 ;
1057
1057
const MAX_STRING_BYTE_LENGTH : usize = ( 1 << 31 ) - 1 ;
1058
1058
@@ -1096,7 +1096,7 @@ unsafe impl Lower for str {
1096
1096
debug_assert ! ( matches!( ty, InterfaceType :: String ) ) ;
1097
1097
debug_assert ! ( offset % ( Self :: ALIGN32 as usize ) == 0 ) ;
1098
1098
let ( ptr, len) = lower_string ( cx, self ) ?;
1099
- // FIXME: needs memory64 handling
1099
+ // FIXME(#4311) : needs memory64 handling
1100
1100
* cx. get ( offset + 0 ) = u32:: try_from ( ptr) . unwrap ( ) . to_le_bytes ( ) ;
1101
1101
* cx. get ( offset + 4 ) = u32:: try_from ( len) . unwrap ( ) . to_le_bytes ( ) ;
1102
1102
Ok ( ( ) )
@@ -1366,7 +1366,7 @@ unsafe impl Lift for WasmStr {
1366
1366
#[ inline]
1367
1367
fn lift ( cx : & mut LiftContext < ' _ > , ty : InterfaceType , src : & Self :: Lower ) -> Result < Self > {
1368
1368
debug_assert ! ( matches!( ty, InterfaceType :: String ) ) ;
1369
- // FIXME: needs memory64 treatment
1369
+ // FIXME(#4311) : needs memory64 treatment
1370
1370
let ptr = src[ 0 ] . get_u32 ( ) ;
1371
1371
let len = src[ 1 ] . get_u32 ( ) ;
1372
1372
let ( ptr, len) = ( usize:: try_from ( ptr) ?, usize:: try_from ( len) ?) ;
@@ -1377,7 +1377,7 @@ unsafe impl Lift for WasmStr {
1377
1377
fn load ( cx : & mut LiftContext < ' _ > , ty : InterfaceType , bytes : & [ u8 ] ) -> Result < Self > {
1378
1378
debug_assert ! ( matches!( ty, InterfaceType :: String ) ) ;
1379
1379
debug_assert ! ( ( bytes. as_ptr( ) as usize ) % ( Self :: ALIGN32 as usize ) == 0 ) ;
1380
- // FIXME: needs memory64 treatment
1380
+ // FIXME(#4311) : needs memory64 treatment
1381
1381
let ptr = u32:: from_le_bytes ( bytes[ ..4 ] . try_into ( ) . unwrap ( ) ) ;
1382
1382
let len = u32:: from_le_bytes ( bytes[ 4 ..] . try_into ( ) . unwrap ( ) ) ;
1383
1383
let ( ptr, len) = ( usize:: try_from ( ptr) ?, usize:: try_from ( len) ?) ;
@@ -1670,7 +1670,7 @@ unsafe impl<T: Lift> Lift for WasmList<T> {
1670
1670
InterfaceType :: List ( i) => cx. types [ i] . element ,
1671
1671
_ => bad_type_info ( ) ,
1672
1672
} ;
1673
- // FIXME: needs memory64 treatment
1673
+ // FIXME(#4311) : needs memory64 treatment
1674
1674
let ptr = src[ 0 ] . get_u32 ( ) ;
1675
1675
let len = src[ 1 ] . get_u32 ( ) ;
1676
1676
let ( ptr, len) = ( usize:: try_from ( ptr) ?, usize:: try_from ( len) ?) ;
@@ -1683,7 +1683,7 @@ unsafe impl<T: Lift> Lift for WasmList<T> {
1683
1683
_ => bad_type_info ( ) ,
1684
1684
} ;
1685
1685
debug_assert ! ( ( bytes. as_ptr( ) as usize ) % ( Self :: ALIGN32 as usize ) == 0 ) ;
1686
- // FIXME: needs memory64 treatment
1686
+ // FIXME(#4311) : needs memory64 treatment
1687
1687
let ptr = u32:: from_le_bytes ( bytes[ ..4 ] . try_into ( ) . unwrap ( ) ) ;
1688
1688
let len = u32:: from_le_bytes ( bytes[ 4 ..] . try_into ( ) . unwrap ( ) ) ;
1689
1689
let ( ptr, len) = ( usize:: try_from ( ptr) ?, usize:: try_from ( len) ?) ;
0 commit comments