[DFG] isDouble() and isNumerical() should return true with KnownNumberUse UseKind.

https://bugs.webkit.org/show_bug.cgi?id=119794

Patch by Julien Brianceau <jbrianceau@nds.com> on 2013-08-15
Reviewed by Filip Pizlo.

This patch fixes ASSERTs failures in debug builds for sh4 and mips architecture.

* dfg/DFGUseKind.h:
(JSC::DFG::isNumerical):
(JSC::DFG::isDouble):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154141 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c2360f49
2013-08-15 Julien Brianceau <jbrianceau@nds.com>
[DFG] isDouble() and isNumerical() should return true with KnownNumberUse UseKind.
https://bugs.webkit.org/show_bug.cgi?id=119794
Reviewed by Filip Pizlo.
This patch fixes ASSERTs failures in debug builds for sh4 and mips architecture.
* dfg/DFGUseKind.h:
(JSC::DFG::isNumerical):
(JSC::DFG::isDouble):
2013-08-15 Filip Pizlo <fpizlo@apple.com>
http://trac.webkit.org/changeset/154120 accidentally changed DFGCapabilities to read the resolve type from operand 4, not 3; it should be 3.
......
......@@ -124,6 +124,7 @@ ALWAYS_INLINE bool isNumerical(UseKind kind)
case KnownInt32Use:
case RealNumberUse:
case NumberUse:
case KnownNumberUse:
return true;
default:
return false;
......@@ -136,6 +137,7 @@ ALWAYS_INLINE bool isDouble(UseKind kind)
case KnownInt32Use:
case RealNumberUse:
case NumberUse:
case KnownNumberUse:
return true;
default:
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment