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

Issue 1216463003: [strong] Implement strong mode semantics for the count operation. (Closed)

Created:
5 years, 6 months ago by conradw
Modified:
5 years, 5 months ago
Reviewers:
rossberg
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[strong] Implement strong mode semantics for the count operation. Also fixes a crankshaft bug with strong implicit conversions. It turns out that the implicit conversion of oddball values is smushed into so many places in crankshaft that it would have been pretty invasive surgery to make everything fall out naturally. BUG=v8:3956 LOG=N Committed: https://crrev.com/f5cc091f8fc1f82b84f17d44bcab8e4789d24593 Cr-Commit-Position: refs/heads/master@{#29381}

Patch Set 1 #

Patch Set 2 : constant folding test + ports #

Patch Set 3 : fix (in)equality #

Patch Set 4 : fix strong mode regression, rebase #

Patch Set 5 : fix nit #

Total comments: 14

Patch Set 6 : cl feedback + eliminate runtime check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+594 lines, -104 lines) Patch
M src/arm/full-codegen-arm.cc View 1 2 chunks +8 lines, -3 lines 0 comments Download
M src/arm64/full-codegen-arm64.cc View 1 2 chunks +8 lines, -3 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 4 5 2 chunks +9 lines, -6 lines 0 comments Download
M src/hydrogen.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 7 chunks +29 lines, -13 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 4 5 6 chunks +25 lines, -13 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 chunks +8 lines, -3 lines 0 comments Download
M src/ic/ic-state.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/messages.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/mips/full-codegen-mips.cc View 1 2 chunks +8 lines, -3 lines 0 comments Download
M src/mips64/full-codegen-mips64.cc View 1 2 chunks +8 lines, -3 lines 0 comments Download
M src/ppc/full-codegen-ppc.cc View 1 2 chunks +8 lines, -3 lines 0 comments Download
M src/runtime.js View 14 chunks +14 lines, -14 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M src/x87/full-codegen-x87.cc View 1 2 chunks +8 lines, -3 lines 0 comments Download
M test/mjsunit/strong/implicit-conversions.js View 1 2 3 4 5 3 chunks +67 lines, -30 lines 0 comments Download
A test/mjsunit/strong/implicit-conversions-constants.js View 1 1 chunk +203 lines, -0 lines 0 comments Download
A test/mjsunit/strong/implicit-conversions-count.js View 1 2 3 4 5 1 chunk +168 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
conradw
PTAL, I kind of dislike the crankshaft workaround but I can't see another way around ...
5 years, 6 months ago (2015-06-26 20:23:31 UTC) #5
rossberg
https://codereview.chromium.org/1216463003/diff/140001/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/1216463003/diff/140001/src/compiler/ast-graph-builder.cc#newcode2684 src/compiler/ast-graph-builder.cc:2684: // This should never deoptimize in sloppy mode because ...
5 years, 5 months ago (2015-06-30 12:53:53 UTC) #6
conradw
This patchset also removes one of the runtime checks for compare. https://codereview.chromium.org/1216463003/diff/140001/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): ...
5 years, 5 months ago (2015-06-30 14:01:11 UTC) #7
rossberg
lgtm
5 years, 5 months ago (2015-06-30 14:05:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1216463003/160001
5 years, 5 months ago (2015-06-30 14:07:05 UTC) #10
commit-bot: I haz the power
Committed patchset #6 (id:160001)
5 years, 5 months ago (2015-06-30 14:21:59 UTC) #11
commit-bot: I haz the power
5 years, 5 months ago (2015-06-30 14:22:20 UTC) #12
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f5cc091f8fc1f82b84f17d44bcab8e4789d24593
Cr-Commit-Position: refs/heads/master@{#29381}

Powered by Google App Engine
This is Rietveld 408576698