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

Issue 1391333003: Adding support for multiple returns in compiled functions. (Closed)

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

Description

Adding support for multiple returns in compiled functions. This will allow exploration of possibilities like passing around buffer base and length. BUG=None TEST=test-multiple-return LOG=N R=mtrofin@chromium.org,titzer@chromium.org Committed: https://crrev.com/2e3c36fb1c9d1c99f7630fecee74e1fa2cfcd7c7 Cr-Commit-Position: refs/heads/master@{#31184}

Patch Set 1 #

Total comments: 8

Patch Set 2 : fixes #

Total comments: 2

Patch Set 3 : use right disassem #define #

Patch Set 4 : drop DCHECK #

Patch Set 5 : fix cargo culted test #

Patch Set 6 : formatting #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -13 lines) Patch
M src/compiler/common-operator.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/common-operator.cc View 3 chunks +37 lines, -1 line 0 comments Download
M src/compiler/instruction-selector.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/instruction-selector.cc View 1 2 3 2 chunks +10 lines, -6 lines 0 comments Download
M src/compiler/linkage.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M src/compiler/raw-machine-assembler.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/raw-machine-assembler.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A test/cctest/compiler/test-multiple-return.cc View 1 2 3 4 5 1 chunk +110 lines, -0 lines 1 comment Download
M test/unittests/compiler/common-operator-unittest.cc View 1 2 3 4 2 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 23 (8 generated)
bradn
Not quite ready. Sending out to mtrofin can help me figure out why register allocation ...
5 years, 2 months ago (2015-10-07 23:10:10 UTC) #1
titzer
looks good modulo small comments. https://codereview.chromium.org/1391333003/diff/1/src/compiler/instruction-selector.cc File src/compiler/instruction-selector.cc (right): https://codereview.chromium.org/1391333003/diff/1/src/compiler/instruction-selector.cc#newcode1023 src/compiler/instruction-selector.cc:1023: linkage()->GetReturnType()); GetReturnType(i) ? https://codereview.chromium.org/1391333003/diff/1/src/compiler/instruction-selector.h ...
5 years, 2 months ago (2015-10-07 23:57:05 UTC) #2
bradn
https://codereview.chromium.org/1391333003/diff/1/src/compiler/instruction-selector.cc File src/compiler/instruction-selector.cc (right): https://codereview.chromium.org/1391333003/diff/1/src/compiler/instruction-selector.cc#newcode1023 src/compiler/instruction-selector.cc:1023: linkage()->GetReturnType()); On 2015/10/07 23:57:05, titzer wrote: > GetReturnType(i) ? ...
5 years, 2 months ago (2015-10-08 17:13:37 UTC) #3
bradn
ptal
5 years, 2 months ago (2015-10-08 17:13:43 UTC) #4
titzer
lgtm other than small comment https://codereview.chromium.org/1391333003/diff/20001/src/compiler/instruction-selector.cc File src/compiler/instruction-selector.cc (right): https://codereview.chromium.org/1391333003/diff/20001/src/compiler/instruction-selector.cc#newcode1020 src/compiler/instruction-selector.cc:1020: DCHECK_NOT_NULL(ret->InputAt(i)); Superfluous DCHECK. We ...
5 years, 2 months ago (2015-10-08 17:18:17 UTC) #5
bradn
https://codereview.chromium.org/1391333003/diff/20001/src/compiler/instruction-selector.cc File src/compiler/instruction-selector.cc (right): https://codereview.chromium.org/1391333003/diff/20001/src/compiler/instruction-selector.cc#newcode1020 src/compiler/instruction-selector.cc:1020: DCHECK_NOT_NULL(ret->InputAt(i)); On 2015/10/08 17:18:17, titzer wrote: > Superfluous DCHECK. ...
5 years, 2 months ago (2015-10-08 17:20:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1391333003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1391333003/60001
5 years, 2 months ago (2015-10-08 17:21:28 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel/builds/7314)
5 years, 2 months ago (2015-10-08 17:32:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1391333003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1391333003/80001
5 years, 2 months ago (2015-10-08 17:59:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1391333003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1391333003/100001
5 years, 2 months ago (2015-10-08 18:07:01 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 2 months ago (2015-10-08 18:27:36 UTC) #18
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/2e3c36fb1c9d1c99f7630fecee74e1fa2cfcd7c7 Cr-Commit-Position: refs/heads/master@{#31184}
5 years, 2 months ago (2015-10-08 18:27:57 UTC) #19
MTBrandyberry
https://codereview.chromium.org/1391333003/diff/100001/test/cctest/compiler/test-multiple-return.cc File test/cctest/compiler/test-multiple-return.cc (right): https://codereview.chromium.org/1391333003/diff/100001/test/cctest/compiler/test-multiple-return.cc#newcode36 test/cctest/compiler/test-multiple-return.cc:36: locations.AddReturn(LinkageLocation::ForRegister(i)); The set of register eligible for assignment as ...
5 years, 2 months ago (2015-10-08 21:37:54 UTC) #21
titzer
On 2015/10/08 21:37:54, mtbrandyberry wrote: > https://codereview.chromium.org/1391333003/diff/100001/test/cctest/compiler/test-multiple-return.cc > File test/cctest/compiler/test-multiple-return.cc (right): > > https://codereview.chromium.org/1391333003/diff/100001/test/cctest/compiler/test-multiple-return.cc#newcode36 > ...
5 years, 2 months ago (2015-10-08 22:01:35 UTC) #22
bradn
5 years, 2 months ago (2015-10-08 22:30:48 UTC) #23
Message was sent while issue was closed.
Sorry about that, will send out a fix soon.

Powered by Google App Engine
This is Rietveld 408576698