RESOLVED FIXED 187779
[WHLSL] The interpreter doesn't support boolean short-circuiting
https://bugs.webkit.org/show_bug.cgi?id=187779
Summary [WHLSL] The interpreter doesn't support boolean short-circuiting
Thomas Denney
Reported 2018-07-18 13:52:07 PDT
The WHLSL specification states that the boolean operations && and || should support short-circuiting, i.e. in e1 && e2, e2 is only evaluated if e1 evaluates to true, and in e1 || e2, e2 is only evaluated if e1 evaluates to false. Currently the interpreter doesn't adhere to this behavior and evaluates both operands as && and || are implemented as functions that take a pair of boolean arguments.
Attachments
Patch (3.15 KB, patch)
2018-07-18 20:35 PDT, Thomas Denney
no flags
Thomas Denney
Comment 1 2018-07-18 20:35:30 PDT
WebKit Commit Bot
Comment 2 2018-07-19 13:42:26 PDT
Comment on attachment 345320 [details] Patch Clearing flags on attachment: 345320 Committed r234001: <https://trac.webkit.org/changeset/234001>
WebKit Commit Bot
Comment 3 2018-07-19 13:42:28 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 4 2018-07-19 13:43:18 PDT
Jer Noble
Comment 5 2018-07-20 15:35:12 PDT
*** Bug 186773 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.