Re: [gwt-contrib] add option to generate overflow checks

2009-12-15 Thread John Tamplin
On Tue, Dec 15, 2009 at 4:24 AM, BobV wrote: > What is the motivation for this change? > short foo = 32767; foo++; will behave differently in dev mode and prod mode. In prod mode, foo will now have the "impossible" value of 32768, while in dev mode it will be -1. GWT does not properly handle

Re: [gwt-contrib] add option to generate overflow checks

2009-12-15 Thread BobV
What is the motivation for this change? -- Bob Vawter Google Web Toolkit Team -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] add option to generate overflow checks

2009-12-14 Thread jat
Reviewers: scottb, Description: This patch adds -XcheckOverflow to the compiler, which will generate code that checks every non-long primitive arithmetic operation to see if overflow should have occurred, and throw an assertion error. This catches the case where in production mode (where everythi