We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 546d975 commit a56aeddCopy full SHA for a56aedd
src/cost_model.rs
@@ -1,3 +1,5 @@
1
+use goblin_v023::mach::constants::S_LITERAL_POINTERS;
2
+
3
use crate::{
4
Instruction,
5
instructions::{extract_opcode, insts},
@@ -88,6 +90,13 @@ pub fn estimate_cycles(i: Instruction) -> u64 {
88
90
insts::OP_WIDE_DIVU => 32,
89
91
insts::OP_FAR_JUMP_REL => 3,
92
insts::OP_FAR_JUMP_ABS => 3,
93
+ // CFI
94
+ insts::OP_LPAD => 3,
95
+ insts::OP_SSRDP => 3,
96
+ insts::OP_SSPUSH => 3,
97
+ insts::OP_SSPOPCHK => 3,
98
+ insts::OP_SSAMOSWAP_W => 4,
99
+ insts::OP_SSAMOSWAP_D => 4,
100
_ => 1,
101
}
102
0 commit comments