Rune - Fix array passing, optimize constant array indices
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 20 Aug 2016 04:18:15 +0000 (21:18 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 20 Aug 2016 04:18:15 +0000 (21:18 -0700)
commite093d9c87e9d502839a7ede7cbbd7012705922de
tree73df6c91dda270bd40ea7c7f1d1440bbcfd42d34
parent79ff42842d45c8298bfb227fd373ab37ccf1ef71
Rune - Fix array passing, optimize constant array indices

* Fix array passing (arrays are pased by value), interpreter and code
  generator.

* Optimize constant array indices, removing unnecessary instructions
  which are only calculating or testing constants.
15 files changed:
docs/grammer.html
libgen/defs.h
libgen/gen_emit.c
libgen/gen_exp.c
libgen/gen_refstor.c
libgen/gen_stmt.c
libgen/run_exp.c
libgen/run_refstor.c
librune/export.h
librune/resolve.c
librune/type.c
ras/insnx86.c
tests/array.d
tests/cat.d
tests/loop.d