[INFER] Don't call syncData for known doubles, bug 642198. r=bhackett

This commit is contained in:
Jan de Mooij 2011-03-16 15:29:04 -07:00
parent 5db6d556af
commit 7402e9d136
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,9 @@
function test() {
for(var e=1.2; true; e=20.2) {
if (e > 10)
break;
}
}
test();

View File

@ -647,7 +647,7 @@ FrameState::syncForBranch(jsbytecode *target, Uses uses)
JS_ASSERT_IF(!fe->isType(JSVAL_TYPE_DOUBLE), fe->type.synced());
if (!fe->data.synced() && alloc->synced(reg))
syncData(fe);
syncFe(fe);
if (fe->dataInRegister(reg))
continue;