Status: Assigned
Owner: [email protected]
Labels: Type-Bug Priority-Medium

New issue 1883 by [email protected]: Call::ComputeTarget should skip transitions when looking for a CONSTANT_FUNCTION
http://code.google.com/p/v8/issues/detail?id=1883

Currently transitions will hide constant function and prevent inlining and calls without IC:

function A () { }
A.prototype.foo = function () { };  // constant function on the prototype.
new A().foo = 0;  // transition from the initial map.

function bar (o) { o.foo(); }

var o = new A();
bar(o);
bar(o);
bar(o);
%OptimizeFunctionOnNextCall(bar);
bar(o);  // foo will not be inlined



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

Reply via email to