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

Issue 1144183004: [strong] Refactor ObjectStrength into a replacement for strong boolean args (Closed)

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

Description

[strong] Refactor ObjectStrength into a replacement for strong boolean args Boolean "is_strong" parameters have begun to proliferate across areas where strong mode semantics are different. This CL repurposes the existing ObjectStrength enum as a replacement for them. BUG=v8:3956 LOG=N Committed: https://crrev.com/dd8544495109804c632bfbcefc3c5c701e0a8c43 Cr-Commit-Position: refs/heads/master@{#28839}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix minor formatting nit #

Patch Set 4 : missed ia32 #

Patch Set 5 : experiment for windows #

Patch Set 6 : experiment 2 #

Patch Set 7 : exp 3 #

Patch Set 8 : if this works I will be very unhappy #

Patch Set 9 : give up on using enum as type for bitfield #

Patch Set 10 : everything should work now #

Total comments: 1

Patch Set 11 : WEAK -> NORMAL, FIRM -> STRONG #

Patch Set 12 : rebase #

Total comments: 2

Patch Set 13 : cl feedback and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -459 lines) Patch
M src/arm/code-stubs-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +8 lines, -7 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +9 lines, -9 lines 0 comments Download
M src/arm/lithium-arm.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -4 lines 0 comments Download
M src/arm64/code-stubs-arm64.cc View 6 chunks +8 lines, -6 lines 0 comments Download
M src/arm64/full-codegen-arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +10 lines, -9 lines 0 comments Download
M src/arm64/lithium-arm64.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/arm64/lithium-codegen-arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -4 lines 0 comments Download
M src/builtins.cc View 11 12 1 chunk +1 line, -1 line 0 comments Download
M src/code-factory.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/code-factory.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M src/code-stubs.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +11 lines, -8 lines 0 comments Download
M src/code-stubs.cc View 11 12 1 chunk +1 line, -2 lines 0 comments Download
M src/code-stubs-hydrogen.cc View 3 chunks +17 lines, -25 lines 0 comments Download
M src/compiler/js-generic-lowering.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -9 lines 0 comments Download
M src/factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +11 lines, -15 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +4 lines, -5 lines 0 comments Download
M src/globals.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +26 lines, -7 lines 0 comments Download
M src/hydrogen.h View 1 1 chunk +4 lines, -8 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +36 lines, -40 lines 0 comments Download
M src/hydrogen-instructions.h View 1 11 12 32 chunks +62 lines, -78 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 9 chunks +37 lines, -44 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +9 lines, -10 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -4 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/ic/ic.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -3 lines 0 comments Download
M src/ic/ic.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +9 lines, -9 lines 0 comments Download
M src/ic/ic-state.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -5 lines 0 comments Download
M src/ic/ic-state.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +11 lines, -12 lines 0 comments Download
M src/isolate.h View 11 12 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -4 lines 0 comments Download
M src/json-parser.h View 11 12 1 chunk +1 line, -1 line 0 comments Download
M src/mips/code-stubs-mips.cc View 7 chunks +8 lines, -7 lines 0 comments Download
M src/mips/full-codegen-mips.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +9 lines, -9 lines 0 comments Download
M src/mips/lithium-codegen-mips.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -4 lines 0 comments Download
M src/mips/lithium-mips.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/mips64/code-stubs-mips64.cc View 7 chunks +8 lines, -7 lines 0 comments Download
M src/mips64/full-codegen-mips64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +9 lines, -9 lines 0 comments Download
M src/mips64/lithium-codegen-mips64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -4 lines 0 comments Download
M src/mips64/lithium-mips64.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/ppc/code-stubs-ppc.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +8 lines, -7 lines 0 comments Download
M src/ppc/full-codegen-ppc.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +9 lines, -9 lines 0 comments Download
M src/ppc/lithium-codegen-ppc.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -4 lines 0 comments Download
M src/ppc/lithium-ppc.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +9 lines, -9 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -4 lines 0 comments Download
M src/x64/lithium-x64.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/x87/code-stubs-x87.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M src/x87/full-codegen-x87.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +9 lines, -10 lines 0 comments Download
M src/x87/lithium-codegen-x87.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -4 lines 0 comments Download
M test/cctest/test-heap.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-unboxed-doubles.cc View 11 12 4 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (2 generated)
conradw
PTAL
5 years, 6 months ago (2015-06-03 19:32:48 UTC) #2
arv (Not doing code reviews)
Is there a reason we need both LanguageMode and Strength? Can we just user LanguageMode ...
5 years, 6 months ago (2015-06-04 15:24:30 UTC) #3
adamk
On 2015/06/04 15:24:30, arv wrote: > Is there a reason we need both LanguageMode and ...
5 years, 6 months ago (2015-06-04 16:20:56 UTC) #4
conradw
On 2015/06/04 16:20:56, adamk wrote: > On 2015/06/04 15:24:30, arv wrote: > > Is there ...
5 years, 6 months ago (2015-06-04 18:38:31 UTC) #5
conradw
On 2015/06/04 18:38:31, conradw wrote: > On 2015/06/04 16:20:56, adamk wrote: > > On 2015/06/04 ...
5 years, 6 months ago (2015-06-04 18:51:40 UTC) #6
adamk
On 2015/06/04 18:38:31, conradw wrote: > On 2015/06/04 16:20:56, adamk wrote: > > On 2015/06/04 ...
5 years, 6 months ago (2015-06-04 20:25:11 UTC) #7
conradw
> I think you've convinced me that Strength and LanguageMode are different. But > perhaps ...
5 years, 6 months ago (2015-06-04 20:31:21 UTC) #8
conradw
Redid the names, I like Adam's suggestion that non-strong mode should be "NORMAL", since it ...
5 years, 6 months ago (2015-06-05 08:54:59 UTC) #9
conradw
On 2015/06/05 08:54:59, conradw wrote: > Redid the names, I like Adam's suggestion that non-strong ...
5 years, 6 months ago (2015-06-05 09:06:17 UTC) #10
rossberg
I, too, prefer Strength::STRONG, now that it is an enum class. The only reason I ...
5 years, 6 months ago (2015-06-08 09:27:42 UTC) #11
rossberg
https://codereview.chromium.org/1144183004/diff/220001/src/compiler/js-operator.h File src/compiler/js-operator.h (right): https://codereview.chromium.org/1144183004/diff/220001/src/compiler/js-operator.h#newcode328 src/compiler/js-operator.h:328: const Operator* LessThan(Strength strength); As discussed offline, on the ...
5 years, 6 months ago (2015-06-08 11:34:21 UTC) #12
conradw
Also NORMAL -> WEAK as per other comment https://codereview.chromium.org/1144183004/diff/220001/src/compiler/js-operator.h File src/compiler/js-operator.h (right): https://codereview.chromium.org/1144183004/diff/220001/src/compiler/js-operator.h#newcode328 src/compiler/js-operator.h:328: const ...
5 years, 6 months ago (2015-06-08 11:48:49 UTC) #13
rossberg
lgtm
5 years, 6 months ago (2015-06-08 12:10:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1144183004/240001
5 years, 6 months ago (2015-06-08 12:14:33 UTC) #16
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 6 months ago (2015-06-08 12:18:04 UTC) #17
commit-bot: I haz the power
5 years, 6 months ago (2015-06-08 12:18:25 UTC) #18
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/dd8544495109804c632bfbcefc3c5c701e0a8c43
Cr-Commit-Position: refs/heads/master@{#28839}

Powered by Google App Engine
This is Rietveld 408576698