Status: New
Owner: ----

New issue 1631 by max99x: Stack size limit too low
http://code.google.com/p/v8/issues/detail?id=1631

When trying to run CPython compiled to Javascript using Emscripten, v8 hits a stack size limit in 100 calls, unlike other browsers.

I believe the cause of this is that there are currently a lot of redundant locals in the code due to the 1-to-1 nature of Emscripten compilation. This should be fixed once Closure Compiler issue 492 (http://code.google.com/p/closure-compiler/issues/detail?id=492) is fixed. Nonetheless, other engines don't seem to have a problem with this.

To reproduce:
1. Go to http://max99x.github.com/empythoned/ on Chrome 13+.
2. Enter "import re; print re.compile(r'x(y(z))*')" and hit Execute.
3. See no output and a stack limit error in the console.
4. Repeat the same on Firefox 6+ and get proper results (initialization is 2x as fast too).

Other engines:
* v8/Chromium 13: FAIL
* v8 trunk: FAIL
* SpiderMonkey/Firefox 6: SUCCESS
* SpiderMonkey trunk: SUCCESS
* Carakan/Opera 11.5: SUCCESS (but very slow)


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to