@@ -120,6 +120,7 @@ impl Reg {
120
120
reg_ctor ! ( i16 , Integer , 16 ) ;
121
121
reg_ctor ! ( i32 , Integer , 32 ) ;
122
122
reg_ctor ! ( i64 , Integer , 64 ) ;
123
+ reg_ctor ! ( i128 , Integer , 128 ) ;
123
124
124
125
reg_ctor ! ( f32 , Float , 32 ) ;
125
126
reg_ctor ! ( f64 , Float , 64 ) ;
@@ -493,6 +494,12 @@ pub struct FnAbi<'a, Ty> {
493
494
494
495
pub c_variadic : bool ,
495
496
497
+ /// The count of non-variadic arguments.
498
+ ///
499
+ /// Should only be different from args.len() when c_variadic is true.
500
+ /// This can be used to know wether an argument is variadic or not.
501
+ pub fixed_count : usize ,
502
+
496
503
pub conv : Conv ,
497
504
}
498
505
@@ -534,8 +541,7 @@ impl<'a, Ty> FnAbi<'a, Ty> {
534
541
"nvptx" => nvptx:: compute_abi_info ( self ) ,
535
542
"nvptx64" => nvptx64:: compute_abi_info ( self ) ,
536
543
"hexagon" => hexagon:: compute_abi_info ( self ) ,
537
- "riscv32" => riscv:: compute_abi_info ( self , 32 ) ,
538
- "riscv64" => riscv:: compute_abi_info ( self , 64 ) ,
544
+ "riscv32" | "riscv64" => riscv:: compute_abi_info ( cx, self ) ,
539
545
"wasm32" if cx. target_spec ( ) . target_os != "emscripten" => {
540
546
wasm32_bindgen_compat:: compute_abi_info ( self )
541
547
}
0 commit comments