Yes, the inner handlescope is for better GC. Not just the input string, but any other handles created while running that string, that aren't in a nested scope of their own, will be kept around indefinitely if the scope isn't destroyed at
each iteration.  HandleScopes are cheap to create and destroy.

http://codereview.chromium.org/7828072/

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

Reply via email to