Mercurial > repos > rhope
comparison runtime/object.h @ 10:0f2c4ee070fe
Changes to calldata struct for stack unwind
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 16 May 2009 23:24:24 -0400 |
parents | 8d74ef7fa357 |
children | 31f8182f3433 |
comparison
equal
deleted
inserted
replaced
9:52d9948def24 | 10:0f2c4ee070fe |
---|---|
33 rh_atomic32(refcount); | 33 rh_atomic32(refcount); |
34 blueprint *bprint; | 34 blueprint *bprint; |
35 } object; | 35 } object; |
36 | 36 |
37 typedef struct { | 37 typedef struct { |
38 object base; | 38 object base; |
39 uint32_t size; | 39 uint32_t size; |
40 } multisize; | 40 } multisize; |
41 | 41 |
42 | 42 |
43 typedef struct calldata { | 43 typedef struct calldata { |
44 rhope_func tail_func; | 44 rhope_func tail_func; |
45 struct context *ct; | 45 struct context *ct; |
46 uint32_t num_params; | 46 void *locals; |
47 uint32_t original_methodid; | 47 uint32_t original_methodid; |
48 object *params[1]; | 48 uint16_t num_params; |
49 uint16_t resume; | |
50 object *params[1]; | |
49 } calldata; | 51 } calldata; |
50 | 52 |
51 #define OBegin typedef struct { object header; | 53 #define OBegin typedef struct { object header; |
52 #define Object(name) } _t_ ## name; | 54 #define Object(name) } _t_ ## name; |
53 | 55 |