Comment #3 on issue 1389 by [email protected]: Incorrect result with -always-opt for x++
http://code.google.com/p/v8/issues/detail?id=1389
The problem is that the ToNumber is inserted implicitly, as part of a HRepresentationChange that is inserted in a late phase of the Hydrogen graph generation. We need to access the output of the HRepresentationChange at an earlier phase of the graph generation, to use it as the result of the expression.
Our solution will be to add a HForceRepresentationChange instruction at this early phase, which will convert to (or absorb) the later HRepresentationChange once the type of the input is known. This value is what we want to return as the result of the expression.
-- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
