[pypy-commit] pypy stmgc-c4: Crash more cleanly when trying to translate on 32-bit (duh)

arigo noreply at buildbot.pypy.org
Mon Sep 9 16:02:47 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: stmgc-c4
Changeset: r66860:07dc1406b5e1
Date: 2013-09-09 16:02 +0200
http://bitbucket.org/pypy/pypy/changeset/07dc1406b5e1/

Log:	Crash more cleanly when trying to translate on 32-bit (duh)

diff --git a/rpython/jit/backend/x86/assembler.py b/rpython/jit/backend/x86/assembler.py
--- a/rpython/jit/backend/x86/assembler.py
+++ b/rpython/jit/backend/x86/assembler.py
@@ -2406,7 +2406,8 @@
         # read_barrier:
         # (obj->h_revision != stm_private_rev_num)
         #     && (FXCACHE_AT(obj) != obj)))
-        assert not IS_X86_32 # XXX: todo
+        if IS_X86_32:   # XXX: todo
+            todo()
         jz_location = 0
         jz_location2 = 0
         jnz_location = 0
@@ -2889,5 +2890,8 @@
 
 cond_call_register_arguments = [edi, esi, edx, ecx]
 
+def todo():
+    CRASH   # not done yet
+
 class BridgeAlreadyCompiled(Exception):
     pass


More information about the pypy-commit mailing list