Revision: 8803
Author: [email protected]
Date: Wed Aug 3 03:40:03 2011
Log: Check phi uses of the arguments object after redundant phies
elimination.
This allows to handle code like:
var a = arguments;
while (smth) a[i];
without bailout.
[email protected]
Review URL: http://codereview.chromium.org/7465078
http://code.google.com/p/v8/source/detail?r=8803
Modified:
/branches/bleeding_edge/src/hydrogen.cc
=======================================
--- /branches/bleeding_edge/src/hydrogen.cc Tue Aug 2 02:32:28 2011
+++ /branches/bleeding_edge/src/hydrogen.cc Wed Aug 3 03:40:03 2011
@@ -2311,11 +2311,11 @@
graph()->OrderBlocks();
graph()->AssignDominators();
graph()->PropagateDeoptimizingMark();
+ graph()->EliminateRedundantPhis();
if (!graph()->CheckPhis()) {
Bailout("Unsupported phi use of arguments object");
return NULL;
}
- graph()->EliminateRedundantPhis();
if (FLAG_eliminate_dead_phis) graph()->EliminateUnreachablePhis();
if (!graph()->CollectPhis()) {
Bailout("Unsupported phi use of uninitialized constant");
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev