OpenDreamProject / OpenDream

A project for running games made in the DM programming language
MIT License
200 stars 109 forks source link

Peephole Const Folding - Part 1 #1856

Closed ike709 closed 3 months ago

ike709 commented 3 months ago
  1. EmitPushValue() now pushes constants instead of references when possible (in line with BYOND)
  2. Peephole optimizer now attempts to const-fold various arithmetic operators
  3. Things covered by the above have been removed from the old AST folder