diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-05-07 17:24:22 +0100 | 
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-05-07 17:24:22 +0100 | 
| commit | 36db6bcf54fd32a247c85719832a9cf43e124ab5 (patch) | |
| tree | 9d23c6efc069a8410d894b2a27caf88b5f2bfba8 /py/emit.h | |
| parent | ca25c15d560f3f5337819bac65832cccc4752495 (diff) | |
py, compiler: Improve passes; add an extra pass for native emitter.
Diffstat (limited to 'py/emit.h')
| -rw-r--r-- | py/emit.h | 7 | 
1 files changed, 4 insertions, 3 deletions
| @@ -35,9 +35,10 @@   */  typedef enum { -    PASS_1 = 1, // work out id's and their kind, and number of labels -    PASS_2 = 2, // work out stack size and code size and label offsets -    PASS_3 = 3, // emit code +    MP_PASS_SCOPE = 1,      // work out id's and their kind, and number of labels +    MP_PASS_STACK_SIZE = 2, // work out maximum stack size +    MP_PASS_CODE_SIZE = 3,  // work out code size and label offsets +    MP_PASS_EMIT = 4,       // emit code  } pass_kind_t;  #define MP_EMIT_STAR_FLAG_SINGLE (0x01) | 
