[pypy-svn] r53588 - pypy/branch/jit-hotpath/pypy/jit/codegen/llgraph
arigo at codespeak.net
arigo at codespeak.net
Tue Apr 8 17:39:43 CEST 2008
Author: arigo
Date: Tue Apr 8 17:39:42 2008
New Revision: 53588
Modified:
pypy/branch/jit-hotpath/pypy/jit/codegen/llgraph/llimpl.py
Log:
Check index against negative values.
Modified: pypy/branch/jit-hotpath/pypy/jit/codegen/llgraph/llimpl.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/codegen/llgraph/llimpl.py (original)
+++ pypy/branch/jit-hotpath/pypy/jit/codegen/llgraph/llimpl.py Tue Apr 8 17:39:42 2008
@@ -813,6 +813,7 @@
def read_frame_var(T, base, info, index):
vars = info._obj.info.args
+ assert index >= 0
v = vars[index]
if isinstance(v, flowmodel.Constant):
val = v.value
@@ -833,6 +834,7 @@
def write_frame_var(base, info, index, value):
vars = info._obj.info.args
+ assert index >= 0
v = vars[index]
assert isinstance(v, flowmodel.Variable)
llframe = base.ptr
More information about the Pypy-commit
mailing list