[pypy-commit] pypy shadowstack-perf-2: minimal support in llinterp

arigo pypy.commits at gmail.com
Sun Mar 5 02:56:37 EST 2017


Author: Armin Rigo <arigo at 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
 


More information about the pypy-commit mailing list