Status: New
Owner: ----
CC: [email protected]
Labels: Type-Bug Priority-Medium
New issue 3117 by [email protected]: optimizer produces IC for
comparisons with undefined stored in a local variable
http://code.google.com/p/v8/issues/detail?id=3117
function loop1(a, b) {
var U;
var x;
var y;
for (var i = 0; i < 1000; i++) {
x = (a === U);
y = (b === U);
// Some trivial juggling to avoid constant folding.
var t = a; a = b; b = t;
}
return [x, y]; // To avoid DCE
}
This produces generic compare with constant undefined through an IC.
function loop2(a, b) {
var x;
var y;
for (var i = 0; i < 1000; i++) {
x = (a === undefined);
y = (b === undefined);
// Some trivial juggling to avoid constant folding.
var t = a; a = b; b = t;
}
return [x, y]; // To avoid DCE
}
This produces pointer comparison with no IC.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.