Commit 195a27d6 authored by Guido van Rossum's avatar Guido van Rossum

Marshal the new stacksize item in code objects.

parent 9e8faefc
...@@ -244,6 +244,7 @@ w_object(v, p) ...@@ -244,6 +244,7 @@ w_object(v, p)
w_byte(TYPE_CODE, p); w_byte(TYPE_CODE, p);
w_short(co->co_argcount, p); w_short(co->co_argcount, p);
w_short(co->co_nlocals, p); w_short(co->co_nlocals, p);
w_short(co->co_stacksize, p);
w_short(co->co_flags, p); w_short(co->co_flags, p);
w_object((object *)co->co_code, p); w_object((object *)co->co_code, p);
w_object(co->co_consts, p); w_object(co->co_consts, p);
...@@ -511,6 +512,7 @@ r_object(p) ...@@ -511,6 +512,7 @@ r_object(p)
{ {
int argcount = r_short(p); int argcount = r_short(p);
int nlocals = r_short(p); int nlocals = r_short(p);
int stacksize = r_short(p);
int flags = r_short(p); int flags = r_short(p);
object *code = NULL; object *code = NULL;
object *consts = NULL; object *consts = NULL;
...@@ -528,7 +530,7 @@ r_object(p) ...@@ -528,7 +530,7 @@ r_object(p)
if (!err_occurred()) { if (!err_occurred()) {
v = (object *) newcodeobject( v = (object *) newcodeobject(
argcount, nlocals, flags, argcount, nlocals, stacksize, flags,
code, consts, names, varnames, code, consts, names, varnames,
filename, name); filename, name);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment