py: Calculate maximum exception stack size in compiler.

This commit is contained in:
Damien George
2014-03-27 10:55:21 +00:00
parent 945a01c4e3
commit 8dcc0c7924
5 changed files with 77 additions and 44 deletions

View File

@@ -36,7 +36,8 @@ typedef struct _scope_t {
int num_dict_params;
*/
int num_locals;
int stack_size;
int stack_size; // maximum size of the locals stack
int exc_stack_size; // maximum size of the exception stack
uint unique_code_id;
uint emit_options;
} scope_t;