Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Low

New issue 425 by [email protected]: Compiling very large expressions hits  
stack limit..
http://code.google.com/p/v8/issues/detail?id=425

A very deep AST causes codegen to recurse until it hits the stack limit,
and fail to compile the expression.
This can happen due to, e.g., creating a large string by adding a large
number of string literals.

Example code that display problem (with current stack size limit):
  var x = "'x'";
  for (var i = 0; i < 1500; i++) { x += " + 'x'"; }
  eval(x);

The code generator can be fairly stack intensive, so doing a lot of
recursion can quickly exhaust the allowed stack limit, and the recursion is
controlled by user input.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

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

Reply via email to