RESOLVED FIXED Bug 161895
[JSC] Make the rounding-related nodes support any type
https://bugs.webkit.org/show_bug.cgi?id=161895
Summary [JSC] Make the rounding-related nodes support any type
Benjamin Poulain
Reported 2016-09-13 01:07:59 PDT
[JSC] Make the rounding-related nodes support any type
Attachments
Patch (73.62 KB, patch)
2016-09-13 01:50 PDT, Benjamin Poulain
no flags
Patch (78.13 KB, patch)
2016-09-19 16:23 PDT, Benjamin Poulain
no flags
Benjamin Poulain
Comment 1 2016-09-13 01:50:06 PDT
Geoffrey Garen
Comment 2 2016-09-13 11:03:36 PDT
Comment on attachment 288680 [details] Patch r=me
WebKit Commit Bot
Comment 3 2016-09-14 14:26:36 PDT
Comment on attachment 288680 [details] Patch Clearing flags on attachment: 288680 Committed r205931: <http://trac.webkit.org/changeset/205931>
WebKit Commit Bot
Comment 4 2016-09-14 14:26:40 PDT
All reviewed patches have been landed. Closing bug.
Ryan Haddad
Comment 6 2016-09-15 08:09:27 PDT
(In reply to comment #5) > The new tests fail on 32 bit platforms, see build.webkit.org for details: Filed https://bugs.webkit.org/show_bug.cgi?id=162016
WebKit Commit Bot
Comment 7 2016-09-15 09:50:35 PDT
Re-opened since this is blocked by bug 162021
Benjamin Poulain
Comment 8 2016-09-19 16:23:50 PDT
Geoffrey Garen
Comment 9 2016-09-19 16:28:50 PDT
Comment on attachment 289275 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=289275&action=review r=me > Source/JavaScriptCore/jsc.cpp:1739 > +template<typename ValueType> > +typename std::enable_if<!std::is_fundamental<ValueType>::value>::type addOption(VM&, JSObject*, Identifier, ValueType) { } > + > +template<typename ValueType> > +typename std::enable_if<std::is_fundamental<ValueType>::value>::type addOption(VM& vm, JSObject* optionsObject, Identifier identifier, ValueType value) > +{ > + optionsObject->putDirect(vm, identifier, JSValue(value)); > +} > + > +EncodedJSValue JSC_HOST_CALL functionJSCOptions(ExecState* exec) > +{ > + JSObject* optionsObject = constructEmptyObject(exec); > +#define FOR_EACH_OPTION(type_, name_, defaultValue_, availability_, description_) \ > + addOption(exec->vm(), optionsObject, Identifier::fromString(exec, #name_), Options::name_()); > + JSC_OPTIONS(FOR_EACH_OPTION) > +#undef FOR_EACH_OPTION > + return JSValue::encode(optionsObject); > +} Did you mean to include this?
Benjamin Poulain
Comment 10 2016-09-19 16:30:17 PDT
(In reply to comment #9) > Comment on attachment 289275 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=289275&action=review > > r=me > > > Source/JavaScriptCore/jsc.cpp:1739 > > +template<typename ValueType> > > +typename std::enable_if<!std::is_fundamental<ValueType>::value>::type addOption(VM&, JSObject*, Identifier, ValueType) { } > > + > > +template<typename ValueType> > > +typename std::enable_if<std::is_fundamental<ValueType>::value>::type addOption(VM& vm, JSObject* optionsObject, Identifier identifier, ValueType value) > > +{ > > + optionsObject->putDirect(vm, identifier, JSValue(value)); > > +} > > + > > +EncodedJSValue JSC_HOST_CALL functionJSCOptions(ExecState* exec) > > +{ > > + JSObject* optionsObject = constructEmptyObject(exec); > > +#define FOR_EACH_OPTION(type_, name_, defaultValue_, availability_, description_) \ > > + addOption(exec->vm(), optionsObject, Identifier::fromString(exec, #name_), Options::name_()); > > + JSC_OPTIONS(FOR_EACH_OPTION) > > +#undef FOR_EACH_OPTION > > + return JSValue::encode(optionsObject); > > +} > > Did you mean to include this? Yep. I exposed the JSC options to the tests to change the compilation count limits based on them. In particular, when we use useMaximalFlushInsertionPhase, we should compile exactly 2 times in the worst case (once to discover the negative zero, then once with the right types). Filip asked me to update the existing tests to account for FTL-eager too (will do in a follow up).
WebKit Commit Bot
Comment 11 2016-09-19 17:50:52 PDT
Comment on attachment 289275 [details] Patch Clearing flags on attachment: 289275 Committed r206134: <http://trac.webkit.org/changeset/206134>
WebKit Commit Bot
Comment 12 2016-09-19 17:50:57 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.