Commit Graph

101 Commits

Author SHA1 Message Date
Yuichi Nishiwaki 5af1b44456 wrap irep fields with unions 2016-02-06 18:37:40 +09:00
Yuichi Nishiwaki 0fd529c968 change mangling rule for global variables 2016-02-06 04:07:37 +09:00
Yuichi Nishiwaki 1fbc38fe55 serializable code representation 2016-02-05 21:53:25 +09:00
Yuichi Nishiwaki 600a92835e add irep->ints 2016-02-05 21:41:20 +09:00
Yuichi Nishiwaki 0499b5ffb0 move pic_resolve to macro.c 2016-02-05 21:01:36 +09:00
Yuichi Nishiwaki e96465f724 remove pic_irep.ilen 2016-02-05 20:47:08 +09:00
Yuichi Nishiwaki 64788af4b9 manage ireps using reference count 2016-02-05 00:31:57 +09:00
Yuichi Nishiwaki 0fe20178ae emit OP_PUSHUNDEF 2016-02-03 20:17:20 +09:00
Yuichi Nishiwaki 5637b3e435 unify emit_c and emit_i 2016-02-02 22:34:18 +09:00
Yuichi Nishiwaki 6f3083c3ca never use size_t 2015-08-26 19:04:27 +09:00
Yuichi Nishiwaki 06af0265f6 remove pic->sGREF, sLREF, sCREF, sCALL 2015-08-25 19:37:20 +09:00
Yuichi Nishiwaki 52de9e860a inline codegen_call_vm 2015-08-10 23:53:36 +09:00
Yuichi Nishiwaki fa8557823f remove unused filed in pic_irep 2015-08-05 10:32:01 +09:00
Yuichi Nishiwaki a479ec21ec argument marked unused is used 2015-08-05 09:59:30 +09:00
Yuichi Nishiwaki 98662215e1 use pic_reg to implement pic->macros 2015-08-05 09:42:17 +09:00
Yuichi Nishiwaki 5fa24f9767 global variable table may be weak 2015-08-05 09:36:32 +09:00
Yuichi Nishiwaki 9d25be2e76 [bugfix] update prototype 2015-08-05 09:03:09 +09:00
Yuichi Nishiwaki 537e5b0eed use boxes for global variable cells 2015-08-05 08:52:28 +09:00
Yuichi Nishiwaki ee9ee2f03e add inline expansion optimization 2015-07-22 16:09:41 +09:00
Yuichi Nishiwaki 5f9a6880e2 [bugfix] rest argument does not work with local definitions 2015-07-22 16:08:54 +09:00
Yuichi Nishiwaki 51a42708b5 saner redefinition warning 2015-07-14 07:12:57 +09:00
Yuichi Nishiwaki d1e5e81580 khash doesn't need to require int32 2015-07-13 09:13:45 +09:00
Yuichi Nishiwaki d0c442d451 add picrin/opcode.h 2015-07-09 04:40:15 +09:00
Yuichi Nishiwaki 1e104921eb cache gref slot 2015-07-07 14:42:50 +09:00
Yuichi Nishiwaki 9e04a80636 add OP_GT and OP_GE 2015-07-06 19:13:00 +09:00
Yuichi Nishiwaki 7e970258f4 cleanup 2015-07-04 18:14:31 +09:00
Yuichi Nishiwaki 1a886ee50f check number of arguments at runtime 2015-07-04 18:05:57 +09:00
Yuichi Nishiwaki 1d1e41e122 refactor create_activation 2015-07-04 17:24:39 +09:00
Yuichi Nishiwaki 1c538a13f1 OP_RET's operand is no longer used 2015-07-04 14:04:16 +09:00
Yuichi Nishiwaki b01042505f remove OP_MINUS 2015-07-04 14:04:16 +09:00
Yuichi Nishiwaki c9245bbe84 optimize vm set operators 2015-07-02 05:59:54 +09:00
Yuichi Nishiwaki f622ba3db4 refactor codegen_call 2015-07-02 05:26:05 +09:00
Yuichi Nishiwaki 28b180ac3f split codegen function 2015-07-02 05:07:16 +09:00
Yuichi Nishiwaki 43f385760d simplify management of deferred forms 2015-07-02 04:36:21 +09:00
Yuichi Nishiwaki 0a0c94fb91 perform tail position analysis on the fly at codegen 2015-07-02 04:23:07 +09:00
Yuichi Nishiwaki 9c908b2622 cosmetic changes 2015-07-02 03:33:25 +09:00
Yuichi Nishiwaki d097a021e3 optimize begin emitter 2015-06-30 01:13:54 +09:00
Yuichi Nishiwaki e5f7eda432 more arena freeing during compilation 2015-06-30 01:13:54 +09:00
Yuichi Nishiwaki 849032ef1a cosmetic changes 2015-06-30 01:13:54 +09:00
Yuichi Nishiwaki 1595be099b define emit_x functions as macros 2015-06-30 01:13:54 +09:00
Yuichi Nishiwaki 62dbdb79dd cleanup 2015-06-30 01:13:54 +09:00
Yuichi Nishiwaki 428e006098 add symbol macro 2015-06-29 18:26:12 +09:00
Yuichi Nishiwaki 3428803bdb less consing 2015-06-27 19:19:43 +09:00
Yuichi Nishiwaki 885942b541 more cleanup 2015-06-27 19:10:15 +09:00
Yuichi Nishiwaki ddcf96f689 remove pic_proc_name (for a moment) 2015-06-27 19:02:18 +09:00
Yuichi Nishiwaki 36c498e7d7 cleanup analyzer 2015-06-27 18:48:21 +09:00
Yuichi Nishiwaki f98a5ab14d cleanup 2015-06-27 18:23:08 +09:00
Yuichi Nishiwaki 1bed1bd420 remove unnecessary error checks 2015-06-27 18:08:57 +09:00
Yuichi Nishiwaki 4d18610a79 refine error messages 2015-06-27 17:50:03 +09:00
Yuichi Nishiwaki 8c6496ef24 remvoe dead code 2015-06-27 16:44:05 +09:00