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

Issue 1765823002: [compiler] Introduce code stubs for string relational comparisons. (Closed)

Created:
4 years, 9 months ago by Benedikt Meurer
Modified:
4 years, 9 months ago
Reviewers:
epertoso
CC:
v8-mips-ports_googlegroups.com, v8-ppc-ports_googlegroups.com, 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

[compiler] Introduce code stubs for string relational comparisons. Add StringLessThanStub, StringLessThanOrEqualStub, StringGreaterThanStub and StringGreaterThanOrEqualStub, based on the CodeStubAssembler, and hook them up with TurboFan (and Ignition). The stubs are currently essentially comparable with the StringCompareStub, which is now obsolete. We can later extend these stubs to cover more interesting cases (i.e. two byte sequential string comparisons, etc.). R=epertoso@chromium.org Committed: https://crrev.com/5912e0f014bd7b7d52cdc293145a912a4ecf2cf3 Cr-Commit-Position: refs/heads/master@{#34485}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -392 lines) Patch
M src/arm/code-stubs-arm.cc View 1 chunk +0 lines, -36 lines 0 comments Download
M src/arm64/code-stubs-arm64.cc View 1 chunk +0 lines, -37 lines 0 comments Download
M src/code-factory.h View 1 chunk +5 lines, -1 line 0 comments Download
M src/code-factory.cc View 2 chunks +45 lines, -4 lines 0 comments Download
M src/code-stubs.h View 4 chunks +39 lines, -11 lines 0 comments Download
M src/code-stubs.cc View 5 chunks +217 lines, -12 lines 0 comments Download
M src/compiler/code-stub-assembler.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/compiler/code-stub-assembler.cc View 2 chunks +25 lines, -0 lines 3 comments Download
M src/compiler/linkage.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/simplified-lowering.h View 2 chunks +0 lines, -3 lines 0 comments Download
M src/compiler/simplified-lowering.cc View 3 chunks +30 lines, -57 lines 0 comments Download
M src/crankshaft/arm/lithium-codegen-arm.cc View 1 chunk +4 lines, -11 lines 0 comments Download
M src/crankshaft/arm64/lithium-codegen-arm64.cc View 1 chunk +4 lines, -12 lines 0 comments Download
M src/crankshaft/ia32/lithium-codegen-ia32.cc View 1 chunk +4 lines, -11 lines 0 comments Download
M src/crankshaft/mips/lithium-codegen-mips.cc View 1 chunk +4 lines, -13 lines 0 comments Download
M src/crankshaft/mips64/lithium-codegen-mips64.cc View 1 chunk +4 lines, -13 lines 0 comments Download
M src/crankshaft/x64/lithium-codegen-x64.cc View 1 chunk +4 lines, -11 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 chunk +0 lines, -38 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M src/mips64/code-stubs-mips64.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 chunk +0 lines, -39 lines 0 comments Download
M test/cctest/compiler/test-simplified-lowering.cc View 2 chunks +2 lines, -17 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (4 generated)
Benedikt Meurer
4 years, 9 months ago (2016-03-04 03:56:22 UTC) #1
Benedikt Meurer
Hey Enrico, Here's the follow-up CL to add support for relational string comparisons. Please take ...
4 years, 9 months ago (2016-03-04 03:58:50 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1765823002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1765823002/1
4 years, 9 months ago (2016-03-04 04:00:33 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-04 04:39:20 UTC) #6
epertoso
https://codereview.chromium.org/1765823002/diff/1/src/compiler/code-stub-assembler.cc File src/compiler/code-stub-assembler.cc (right): https://codereview.chromium.org/1765823002/diff/1/src/compiler/code-stub-assembler.cc#newcode442 src/compiler/code-stub-assembler.cc:442: void CodeStubAssembler::BranchIfInt32LessThan(Node* a, Node* b, Label* if_true, Do we ...
4 years, 9 months ago (2016-03-04 09:22:25 UTC) #7
Benedikt Meurer
https://codereview.chromium.org/1765823002/diff/1/src/compiler/code-stub-assembler.cc File src/compiler/code-stub-assembler.cc (right): https://codereview.chromium.org/1765823002/diff/1/src/compiler/code-stub-assembler.cc#newcode442 src/compiler/code-stub-assembler.cc:442: void CodeStubAssembler::BranchIfInt32LessThan(Node* a, Node* b, Label* if_true, That's not ...
4 years, 9 months ago (2016-03-04 09:25:38 UTC) #8
epertoso
lgtm https://codereview.chromium.org/1765823002/diff/1/src/compiler/code-stub-assembler.cc File src/compiler/code-stub-assembler.cc (right): https://codereview.chromium.org/1765823002/diff/1/src/compiler/code-stub-assembler.cc#newcode442 src/compiler/code-stub-assembler.cc:442: void CodeStubAssembler::BranchIfInt32LessThan(Node* a, Node* b, Label* if_true, On ...
4 years, 9 months ago (2016-03-04 09:35:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1765823002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1765823002/1
4 years, 9 months ago (2016-03-04 09:36:06 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-04 09:38:36 UTC) #12
commit-bot: I haz the power
4 years, 9 months ago (2016-03-04 09:39:37 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5912e0f014bd7b7d52cdc293145a912a4ecf2cf3
Cr-Commit-Position: refs/heads/master@{#34485}

Powered by Google App Engine
This is Rietveld 408576698