This patch allows constructs like "woot".replace('o', '0') to be statically evaluated and replaced directly with the result of the operation at compile time.  Also included is a peephole compile speed optimization in JProgram.

Suggested by: alex.tkachman
Patch by: me (based on patch by alex.tkachman)
Review by: mmendez
           alex.tkachman

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@447 8db76d5a-ed1c-0410-87a9-c151d255dfc7
12 files changed