Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Issue 2894433004: Enforce strict weak ordering on NaN frequencies (Closed)

Created:
3 years, 7 months ago by brucedawson
Modified:
3 years, 7 months ago
Reviewers:
Benedikt Meurer
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

Enforce strict weak ordering on NaN frequencies In crrev.com/2856103002 sentinel frequency values were introduced, using NaN as the sentinel. However the comparison function was not *fully* updated to support these - comparing two NaNs would give ambiguous results. This caused test failures when building with VS 2017, probably because of subtle changes in the arrangement of nodes in the tree. This change uses the the node ID to break ties. An alternative would be to use a non-NaN sentinel value. R=bmeurer@chromium.org BUG=chromium:722480 Review-Url: https://codereview.chromium.org/2894433004 Cr-Commit-Position: refs/heads/master@{#45415} Committed: https://chromium.googlesource.com/v8/v8/+/58ba4cefe8aeb05479dfdd0ffb65e2774a7a07b8

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M src/compiler/js-inlining-heuristic.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (7 generated)
brucedawson
This fixes some undefined behavior that was introduced a few weeks ago. PTAL.
3 years, 7 months ago (2017-05-18 18:12:56 UTC) #3
Benedikt Meurer
Nice catch, thanks! LGTM
3 years, 7 months ago (2017-05-19 05:02:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2894433004/1
3 years, 7 months ago (2017-05-19 06:08:49 UTC) #8
commit-bot: I haz the power
3 years, 7 months ago (2017-05-19 06:10:30 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/v8/v8/+/58ba4cefe8aeb05479dfdd0ffb65e2774a7...

Powered by Google App Engine
This is Rietveld 408576698