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

Issue 2137323003: [turbofan] Support subtraction displacements in BaseWithIndexAndDisplacementMatcher (Closed)

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

Description

[turbofan] Support subtraction displacements in BaseWithIndexAndDisplacementMatcher Previously, the following schedule fragment: 1: Parameter[0](0) 2: Parameter[1](0) 7: Int32Constant[1] 8: Int32Sub(2, 7) 9: Load[kRepTagged|kTypeAny](1, 8) would generate the following code (on ia32): mov eax,[ebp+0x8] mov ecx,[ebp+0xc] sub eax,0x1 mov eax,[eax+ecx*1] Now it generates: mov eax,[ebp+0x8] mov ecx,[ebp+0xc] mov eax,[eax+ecx*1-1] Similar pattern matching also now works on x64. BUG=v8:5192 LOG=N Committed: https://crrev.com/574f6fe127fac2a22c4c909177bf0f3c30085bb0 Cr-Commit-Position: refs/heads/master@{#37701}

Patch Set 1 #

Patch Set 2 : Tweaks #

Patch Set 3 : x64 support #

Patch Set 4 : cleanup #

Patch Set 5 : Rebase #

Patch Set 6 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -78 lines) Patch
M src/compiler/ia32/instruction-selector-ia32.cc View 1 2 3 4 5 6 chunks +16 lines, -8 lines 0 comments Download
M src/compiler/instruction-selector-impl.h View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M src/compiler/node-matchers.h View 1 2 3 4 5 9 chunks +107 lines, -54 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 2 3 4 5 9 chunks +22 lines, -12 lines 0 comments Download
M test/unittests/compiler/node-matchers-unittest.cc View 1 2 3 4 5 5 chunks +49 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
danno
ptal
4 years, 5 months ago (2016-07-12 11:01:46 UTC) #5
epertoso
lgtm
4 years, 5 months ago (2016-07-12 15:45:12 UTC) #6
Benedikt Meurer
LGTM, although I dislike the use of bools... so bonus points if you enumerize it ...
4 years, 5 months ago (2016-07-12 17:45:25 UTC) #7
danno
Feedback addressed. Bonus points received!
4 years, 5 months ago (2016-07-13 07:53:58 UTC) #8
Benedikt Meurer
Nice, thanks.
4 years, 5 months ago (2016-07-13 07:56:44 UTC) #9
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/2137323003/100001
4 years, 5 months ago (2016-07-13 07:58:21 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-13 08:00:49 UTC) #14
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 08:00:52 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 08:03:51 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/574f6fe127fac2a22c4c909177bf0f3c30085bb0
Cr-Commit-Position: refs/heads/master@{#37701}

Powered by Google App Engine
This is Rietveld 408576698