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

Issue 1757013002: [crankshaft] Fix invalid ToNumber optimization. (Closed)

Created:
4 years, 9 months ago by Benedikt Meurer
Modified:
4 years, 9 months ago
Reviewers:
Jakob Kummerow
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[crankshaft] Fix invalid ToNumber optimization. We cannot optimize away ToNumber conversions based on the Type that we see in Crankshaft, as this might be the (unchecked or even pretruncated) lower bound. We can only use the HType, which is based on the definition. R=jkummerow@chromium.org BUG=chromium:590989 LOG=n Committed: https://crrev.com/0c35579093dc5e286ad89e5c7bde3aeb355def07 Cr-Commit-Position: refs/heads/master@{#34445}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -13 lines) Patch
M src/crankshaft/hydrogen.h View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/hydrogen.cc View 3 chunks +5 lines, -7 lines 0 comments Download
A test/mjsunit/regress/regress-crbug-590989-1.js View 1 chunk +18 lines, -0 lines 0 comments Download
A + test/mjsunit/regress/regress-crbug-590989-2.js View 1 chunk +4 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Benedikt Meurer
4 years, 9 months ago (2016-03-02 18:39:38 UTC) #1
Benedikt Meurer
Hey Jakob, Here's the bugfix. The second test case fails because our awesome Crankshaft/BinaryOpIC combo ...
4 years, 9 months ago (2016-03-02 18:41:23 UTC) #2
Benedikt Meurer
Please hit CQ if you're fine with it, looks like I'm going to spend the ...
4 years, 9 months ago (2016-03-02 18:42:07 UTC) #3
Jakob Kummerow
LGTM. Thanks for the quick fix!
4 years, 9 months ago (2016-03-02 19:23:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1757013002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1757013002/1
4 years, 9 months ago (2016-03-02 19:23:39 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-02 19:26:19 UTC) #7
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 19:28:14 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0c35579093dc5e286ad89e5c7bde3aeb355def07
Cr-Commit-Position: refs/heads/master@{#34445}

Powered by Google App Engine
This is Rietveld 408576698