Status: Accepted
Owner: [email protected]
CC: [email protected]
Labels: Type-FeatureRequest Priority-Medium

New issue 310 by mikhail.naganov: Please remove special handling of global  
code in the backend
http://code.google.com/p/v8/issues/detail?id=310

While implementing name inference for anonymous functions, I made
AstOptimizer to run for all functions, not only for local scoped. Ivan
suggests that you should remove special handling of global code in the
backend.

This is what Ivan says (see  
http://codereview.chromium.org/62146/diff/4001/4015#oldcode798):
"Originally the AstOptimizer was only tracking likely types through the
code and did advise the backend for which operations to emit inline Smi
checks. At the time this optimization was deemed unneeded for global code
that runs only once. We have since added additional functionality to the
AstOptimizer and already seen bugs because it was not run on global code. I
strongly suggest that my initial decision was a premature optimization and
that we should always run the AstOptimizer."

--
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