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

Issue 1410633006: [turbofan] Implement the call protocol properly for direct calls. (Closed)

Created:
5 years, 1 month ago by Benedikt Meurer
Modified:
5 years, 1 month ago
Reviewers:
Michael Starzinger
CC:
v8-reviews_googlegroups.com, danno, Camillo Bruni
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Implement the call protocol properly for direct calls. The callees are expected to properly set the number of actual arguments passed to the callee, which is now represented correctly in the TurboFan graphs by a new Parameter right before the context Parameter. Currently this is only being used for outgoing calls. Note that this requires disabling two of the TF code stub tests, because of the JavaScript graphs are not automagically compatible with abitrary (incoming) code stub interface descriptors. If we want to support JS code stubs at all, then we need to find a sane way to feed in this information. Drive-by-fix: Don't insert a direct call to a classConstructor. R=mstarzinger@chromium.org BUG=v8:4413, v8:4428 LOG=n Committed: https://crrev.com/30aca03ad104e748a0d4d55a93fdcf76ea9f302a Cr-Commit-Position: refs/heads/master@{#31789}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -15 lines) Patch
M src/arm/macro-assembler-arm.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/arm64/macro-assembler-arm64.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M src/compiler/js-inlining.cc View 1 4 chunks +19 lines, -5 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 2 chunks +10 lines, -1 line 0 comments Download
M src/compiler/linkage.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/linkage.cc View 1 3 chunks +11 lines, -3 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/mips/macro-assembler-mips.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/mips64/macro-assembler-mips64.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/ppc/macro-assembler-ppc.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/x87/macro-assembler-x87.h View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/cctest.status View 1 chunk +6 lines, -0 lines 0 comments Download
M test/unittests/compiler/instruction-selector-unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (3 generated)
Benedikt Meurer
5 years, 1 month ago (2015-11-04 13:27:40 UTC) #1
Benedikt Meurer
Hey Michi, This is the CL we were looking into. Please take a look. Thanks, ...
5 years, 1 month ago (2015-11-04 13:29:32 UTC) #2
Michael Starzinger
LGTM, only nits, modulo unit test failures. https://codereview.chromium.org/1410633006/diff/1/src/compiler/js-inlining.cc File src/compiler/js-inlining.cc (right): https://codereview.chromium.org/1410633006/diff/1/src/compiler/js-inlining.cc#newcode139 src/compiler/js-inlining.cc:139: // Context ...
5 years, 1 month ago (2015-11-04 13:43:14 UTC) #4
Benedikt Meurer
Done, thx. https://codereview.chromium.org/1410633006/diff/1/src/compiler/js-inlining.cc File src/compiler/js-inlining.cc (right): https://codereview.chromium.org/1410633006/diff/1/src/compiler/js-inlining.cc#newcode139 src/compiler/js-inlining.cc:139: // Context is last argument. On 2015/11/04 ...
5 years, 1 month ago (2015-11-04 13:51:09 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410633006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410633006/20001
5 years, 1 month ago (2015-11-04 13:51:23 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-04 14:08:50 UTC) #9
commit-bot: I haz the power
5 years, 1 month ago (2015-11-04 14:09:11 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/30aca03ad104e748a0d4d55a93fdcf76ea9f302a
Cr-Commit-Position: refs/heads/master@{#31789}

Powered by Google App Engine
This is Rietveld 408576698