Mercurial > repos > rhope
diff runtime/integer.c @ 9:52d9948def24
Limit stack use in Int32 in prep for stack unwind changes
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 16 May 2009 23:22:45 -0400 |
parents | 8d74ef7fa357 |
children | 3021dac0d8f5 |
line wrap: on
line diff
--- a/runtime/integer.c Wed May 13 23:37:19 2009 -0400 +++ b/runtime/integer.c Sat May 16 23:22:45 2009 -0400 @@ -2,8 +2,10 @@ #include "builtin.h" #include "context.h" -Method(_PL_,Int32,2, - _t_Int32 * left; _t_Int32 * right) +#define left ((_t_Int32 *)cdata->params[0]) +#define right ((_t_Int32 *)cdata->params[1]) + +MethodNoLocals(_PL_,Int32,2) call = alloc_cdata(cdata->ct, 1); CopiedParam(0, left, Int32, TYPE_INT32) Param(1, right, Int32, TYPE_INT32) @@ -13,8 +15,7 @@ release_ref((object *)right); EndFunc -Method(_MN_,Int32,2, - _t_Int32 * left; _t_Int32 * right) +MethodNoLocals(_MN_,Int32,2) call = alloc_cdata(cdata->ct, 1); CopiedParam(0, left, Int32, TYPE_INT32) Param(1, right, Int32, TYPE_INT32)