[pypy-commit] pypy unroll-if-const: all of those can raise MemoryError. Mark it as such
fijal
noreply at buildbot.pypy.org
Mon Jul 25 20:13:10 CEST 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: unroll-if-const
Changeset: r45978:184f09b79158
Date: 2011-07-25 20:13 +0200
http://bitbucket.org/pypy/pypy/changeset/184f09b79158/
Log: all of those can raise MemoryError. Mark it as such
diff --git a/pypy/rpython/rbuilder.py b/pypy/rpython/rbuilder.py
--- a/pypy/rpython/rbuilder.py
+++ b/pypy/rpython/rbuilder.py
@@ -12,7 +12,7 @@
v_arg = hop.inputconst(lltype.Signed, INIT_SIZE)
else:
v_arg = hop.inputarg(lltype.Signed, 0)
- hop.exception_cannot_occur()
+ hop.exception_is_here()
return hop.gendirectcall(self.ll_new, v_arg)
def rtype_method_append(self, hop):
@@ -22,18 +22,18 @@
else:
vlist = hop.inputargs(self, self.string_repr)
func = self.ll_append
- hop.exception_cannot_occur()
+ hop.exception_is_here()
return hop.gendirectcall(func, *vlist)
def rtype_method_append_slice(self, hop):
vlist = hop.inputargs(self, self.string_repr,
lltype.Signed, lltype.Signed)
- hop.exception_cannot_occur()
+ hop.exception_is_here()
return hop.gendirectcall(self.ll_append_slice, *vlist)
def rtype_method_append_multiple_char(self, hop):
vlist = hop.inputargs(self, self.char_repr, lltype.Signed)
- hop.exception_cannot_occur()
+ hop.exception_is_here()
return hop.gendirectcall(self.ll_append_multiple_char, *vlist)
def rtype_method_getlength(self, hop):
@@ -43,5 +43,5 @@
def rtype_method_build(self, hop):
vlist = hop.inputargs(self)
- hop.exception_cannot_occur()
+ hop.exception_is_here()
return hop.gendirectcall(self.ll_build, *vlist)
More information about the pypy-commit
mailing list