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

Issue 1130283002: [strong] Disallow implicit conversions for comparison (Closed)

Created:
5 years, 7 months ago by conradw
Modified:
5 years, 7 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] Disallow implicit conversions for comparison Implements the strong mode proposal's restrictions on implicit conversions for the binary >, >=, <, and <= operators. BUG=v8:3956 LOG=N Committed: https://crrev.com/03ef40b46cfebdd10b31e2baf1d5d10d4c8c5cce Cr-Commit-Position: refs/heads/master@{#28370}

Patch Set 1 #

Patch Set 2 : fix arm64, break my own test on ia32, x64, x86 #

Patch Set 3 : unbreak test #

Patch Set 4 : fix bad undefined behaviour with good(?) undefined behaviour #

Patch Set 5 : minor cleanup #

Total comments: 10

Patch Set 6 : fix MixedComparison test #

Patch Set 7 : cl feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+657 lines, -195 lines) Patch
M src/arm/code-stubs-arm.cc View 7 chunks +25 lines, -9 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M src/arm/lithium-arm.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/arm64/code-stubs-arm64.cc View 1 6 chunks +25 lines, -9 lines 0 comments Download
M src/arm64/full-codegen-arm64.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M src/arm64/lithium-arm64.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/arm64/lithium-codegen-arm64.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/builtins.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/code-factory.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/code-factory.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M src/code-stubs.h View 3 chunks +12 lines, -7 lines 0 comments Download
M src/compiler/js-generic-lowering.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 3 8 chunks +29 lines, -17 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/ic/ic.h View 2 chunks +4 lines, -2 lines 0 comments Download
M src/ic/ic.cc View 4 chunks +10 lines, -6 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 6 chunks +24 lines, -9 lines 0 comments Download
M src/mips/full-codegen-mips.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M src/mips/lithium-codegen-mips.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/mips/lithium-mips.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/mips64/code-stubs-mips64.cc View 6 chunks +24 lines, -9 lines 0 comments Download
M src/mips64/full-codegen-mips64.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M src/mips64/lithium-codegen-mips64.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/mips64/lithium-mips64.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/ppc/code-stubs-ppc.cc View 6 chunks +22 lines, -4 lines 0 comments Download
M src/ppc/full-codegen-ppc.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M src/ppc/lithium-codegen-ppc.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/ppc/lithium-ppc.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime.js View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 2 3 8 chunks +30 lines, -17 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/x64/lithium-x64.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/x87/code-stubs-x87.cc View 1 2 3 7 chunks +30 lines, -18 lines 0 comments Download
M src/x87/full-codegen-x87.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M src/x87/lithium-codegen-x87.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/x87/lithium-x87.h View 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/compiler/test-js-typed-lowering.cc View 1 2 3 4 5 1 chunk +12 lines, -10 lines 0 comments Download
M test/mjsunit/strong/implicit-conversions.js View 1 5 chunks +96 lines, -21 lines 0 comments Download
M test/mjsunit/strong/implicit-conversions-inlining.js View 5 chunks +219 lines, -12 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
conradw
PTAL
5 years, 7 months ago (2015-05-08 11:53:28 UTC) #2
rossberg
https://codereview.chromium.org/1130283002/diff/80001/src/code-stubs.h File src/code-stubs.h (right): https://codereview.chromium.org/1130283002/diff/80001/src/code-stubs.h#newcode1472 src/code-stubs.h:1472: CompareICStub(Isolate* isolate, Token::Value op, bool strong, Use LanguageMode here ...
5 years, 7 months ago (2015-05-08 13:54:36 UTC) #3
conradw
https://codereview.chromium.org/1130283002/diff/80001/src/code-stubs.h File src/code-stubs.h (right): https://codereview.chromium.org/1130283002/diff/80001/src/code-stubs.h#newcode1472 src/code-stubs.h:1472: CompareICStub(Isolate* isolate, Token::Value op, bool strong, On 2015/05/08 13:54:36, ...
5 years, 7 months ago (2015-05-08 14:08:21 UTC) #4
rossberg
lgtm
5 years, 7 months ago (2015-05-12 14:34:11 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130283002/120001
5 years, 7 months ago (2015-05-12 14:43:29 UTC) #7
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 7 months ago (2015-05-12 15:24:02 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 15:24:11 UTC) #9
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/03ef40b46cfebdd10b31e2baf1d5d10d4c8c5cce
Cr-Commit-Position: refs/heads/master@{#28370}

Powered by Google App Engine
This is Rietveld 408576698