Author: Armin Rigo <ar...@tunes.org> Branch: shadowstack-perf-2 Changeset: r90552:05ad3cfbbde7 Date: 2017-03-05 08:56 +0100 http://bitbucket.org/pypy/pypy/changeset/05ad3cfbbde7/
Log: minimal support in llinterp diff --git a/rpython/rtyper/llinterp.py b/rpython/rtyper/llinterp.py --- a/rpython/rtyper/llinterp.py +++ b/rpython/rtyper/llinterp.py @@ -1086,6 +1086,19 @@ def op_track_alloc_stop(self, addr): checkadr(addr) + def op_gc_enter_roots_frame(self, gcdata, numcolors): + assert not hasattr(self, '_inside_roots_frame') + self._inside_roots_frame = numcolors + + def op_gc_leave_roots_frame(self): + del self._inside_roots_frame + + def op_gc_save_root(self, num, value): + assert 0 <= num < self._inside_roots_frame + + def op_gc_restore_root(self, num, value): + assert 0 <= num < self._inside_roots_frame + # ____________________________________________________________ # Overflow-detecting variants _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit