Skip to main content

ckb_vm_definitions/
memory.rs

1pub const FLAG_FREEZED: u8 = 0b01;
2// CKB VM enforces W^X logic, if this flag is set, current memory page will
3// be marked as executable, otherwise the page will be writable.
4pub const FLAG_EXECUTABLE: u8 = 0b10;
5pub const FLAG_WXORX_BIT: u8 = 0b10;
6pub const FLAG_WRITABLE: u8 = (!FLAG_EXECUTABLE) & FLAG_WXORX_BIT;
7pub const FLAG_DIRTY: u8 = 0b100;