summaryrefslogtreecommitdiffstatshomepage
path: root/py/emit.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-07 17:24:22 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-07 17:24:22 +0100
commit36db6bcf54fd32a247c85719832a9cf43e124ab5 (patch)
tree9d23c6efc069a8410d894b2a27caf88b5f2bfba8 /py/emit.h
parentca25c15d560f3f5337819bac65832cccc4752495 (diff)
downloadmicropython-36db6bcf54fd32a247c85719832a9cf43e124ab5.tar.gz
micropython-36db6bcf54fd32a247c85719832a9cf43e124ab5.zip
py, compiler: Improve passes; add an extra pass for native emitter.
Diffstat (limited to 'py/emit.h')
-rw-r--r--py/emit.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/py/emit.h b/py/emit.h
index ce7417d284..5a3b27d839 100644
--- a/py/emit.h
+++ b/py/emit.h
@@ -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)