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

Issue 2866233002: [turbofan] Don't mix element accesses with incompatible representations. (Closed)

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

Description

[turbofan] Don't mix element accesses with incompatible representations. Due to speculative optimizations, the compiler can run into situations where it's asked perform impossible operations, like loading a tagged element as a float64 instead. All of this is guaranteed to be in dead code (unless there's a bug), but leads to confusion and violates assumptions in the compiler (that make perfect sense for code that is not dead). So teach LoadElimination not to mix up element accesses with incompatible representations. BUG=chromium:719479 R=jarin@chromium.org Review-Url: https://codereview.chromium.org/2866233002 Cr-Commit-Position: refs/heads/master@{#45185} Committed: https://chromium.googlesource.com/v8/v8/+/d412cade2a889f6b208c7c7c078209ea81538013

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -20 lines) Patch
M src/compiler/load-elimination.h View 4 chunks +19 lines, -7 lines 0 comments Download
M src/compiler/load-elimination.cc View 6 chunks +31 lines, -13 lines 0 comments Download
A test/mjsunit/regress/regress-crbug-719479.js View 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
Benedikt Meurer
3 years, 7 months ago (2017-05-09 08:46:56 UTC) #1
Jarin
lgtm. Should not we have the same thing for fields?
3 years, 7 months ago (2017-05-09 08:50:00 UTC) #4
Benedikt Meurer
Fields cannot contain float64 hole, so they don't violate any invariant, even if they are ...
3 years, 7 months ago (2017-05-09 08:55:52 UTC) #5
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/2866233002/1
3 years, 7 months ago (2017-05-09 08:56:12 UTC) #8
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 10:16:20 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/v8/v8/+/d412cade2a889f6b208c7c7c078209ea815...

Powered by Google App Engine
This is Rietveld 408576698