diff options
author | Filip Pizlo <fpizlo@apple.com> | 2013-03-21 18:11:56 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-26 17:49:24 +0100 |
commit | 2e536fc35017d3f52e071da231e4fe7deddd4f88 (patch) | |
tree | fb0bd072173e6ef0cb24aaad538c47527eb9fabf /Source/JavaScriptCore/runtime/Operations.h | |
parent | 9c05c146dbd30c46b86a7e1e6665df93e01cd426 (diff) | |
download | qtwebkit-2e536fc35017d3f52e071da231e4fe7deddd4f88.tar.gz |
Strange results calculating a square root in a loop
https://bugs.webkit.org/show_bug.cgi?id=104247
<rdar://problem/12826880>
Reviewed by Oliver Hunt.
Source/JavaScriptCore:
Fixed the CFG simplification phase to ignore dead GetLocals in the first of the blocks
under the merge. This fixes the assertion, and is also cleaner: our general rule is
to not "revive" things that we've already proved to be dead.
Also fixed some rotted debug code.
* dfg/DFGCFGSimplificationPhase.cpp:
(JSC::DFG::CFGSimplificationPhase::fixPossibleGetLocal):
* dfg/DFGStructureCheckHoistingPhase.cpp:
(JSC::DFG::StructureCheckHoistingPhase::run):
LayoutTests:
* fast/js/dfg-cfg-simplify-redundant-dead-get-local-expected.txt: Added.
* fast/js/dfg-cfg-simplify-redundant-dead-get-local.html: Added.
* fast/js/jsc-test-list:
* fast/js/script-tests/dfg-cfg-simplify-redundant-dead-get-local.js: Added.
(getDist):
(calcError):
Change-Id: I70b28d61e3fcbbb551d9e71d458efe654149c12c
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/runtime/Operations.h')
0 files changed, 0 insertions, 0 deletions