[文档]classSuperFastpathMixin(VEXSlicingMixin):""" This mixin implements the superfastpath execution mode, which skips all but the last four instructions. """
[文档]defhandle_vex_block(self,irsb):# This option makes us only execute the last four instructionsifo.SUPER_FASTPATHinself.state.options:imark_counter=0foriinrange(len(irsb.statements)-1,-1,-1):iftype(irsb.statements[i])ispyvex.IRStmt.IMark:imark_counter+=1ifimark_counter>=4:self._skip_stmts=max(self._skip_stmts,i)breaksuper().handle_vex_block(irsb)