mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-17 17:55:28 +03:00
rose_program: merge RECORD_ANCHORED instruction into ANCHORED_DELAY
This commit is contained in:
@@ -72,6 +72,7 @@ void RoseInstrAnchoredDelay::write(void *dest, RoseEngineBlob &blob,
|
||||
RoseInstrBase::write(dest, blob, offset_map);
|
||||
auto *inst = static_cast<impl_type *>(dest);
|
||||
inst->groups = groups;
|
||||
inst->anch_id = anch_id;
|
||||
inst->done_jump = calc_jump(offset_map, this, target);
|
||||
}
|
||||
|
||||
@@ -248,13 +249,6 @@ void RoseInstrPushDelayed::write(void *dest, RoseEngineBlob &blob,
|
||||
inst->index = index;
|
||||
}
|
||||
|
||||
void RoseInstrRecordAnchored::write(void *dest, RoseEngineBlob &blob,
|
||||
const OffsetMap &offset_map) const {
|
||||
RoseInstrBase::write(dest, blob, offset_map);
|
||||
auto *inst = static_cast<impl_type *>(dest);
|
||||
inst->id = id;
|
||||
}
|
||||
|
||||
void RoseInstrSomAdjust::write(void *dest, RoseEngineBlob &blob,
|
||||
const OffsetMap &offset_map) const {
|
||||
RoseInstrBase::write(dest, blob, offset_map);
|
||||
|
||||
Reference in New Issue
Block a user