DFG::Node::convertToConstant needs to clear the varargs flags
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Jan 2018 09:24:26 +0000 (09:24 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Jan 2018 09:24:26 +0000 (09:24 +0000)
commit1ca947b7fea9c254d0dfd3b731af8eb337544fc9
tree038d27a9816cf795ca3a877b77418df224d25e48
parent55b615eef536fc4e409eb551b4eb65d5ea2e2084
DFG::Node::convertToConstant needs to clear the varargs flags
https://bugs.webkit.org/show_bug.cgi?id=181697
<rdar://problem/36497332>

Reviewed by Yusuke Suzuki.

JSTests:

* stress/dfg-node-convert-to-constant-must-clear-varargs-flags.js: Added.
(doIndexOf):
(bar):
(i.bar):

Source/JavaScriptCore:

* dfg/DFGNode.h:
(JSC::DFG::Node::convertToConstant):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@227053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/stress/dfg-node-convert-to-constant-must-clear-varargs-flags.js [new file with mode: 0644]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/dfg/DFGNode.h