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

Issue 2656363002: PPC/s390: [turbofan] Introduce JSCallForwardVarargs operator. (Closed)

Created:
3 years, 10 months ago by JaideepBajwa
Modified:
3 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

PPC/s390: [turbofan] Introduce JSCallForwardVarargs operator. Port 69747e2658f1de973ba75c60fe31b402bd6031a5 Original Commit Message: We turn a JSCallFunction node for f.apply(receiver, arguments) into a JSCallForwardVarargs node, when the arguments refers to the arguments of the outermost optimized code object, i.e. not an inlined arguments, and the apply method refers to Function.prototype.apply, and there's no other user of arguments except in frame states. We also replace the arguments node in the graph with a marker for the Deoptimizer similar to Crankshaft to make sure we don't materialize unused arguments just for the sake of deoptimization. We plan to replace this with a saner EscapeAnalysis based solution soon. R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com BUG=v8:5267, v8:5726 LOG=N Review-Url: https://codereview.chromium.org/2656363002 Cr-Commit-Position: refs/heads/master@{#42745} Committed: https://chromium.googlesource.com/v8/v8/+/e6688728578d7cbd7434400076fbc679105ef24b

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -0 lines) Patch
M src/builtins/ppc/builtins-ppc.cc View 1 chunk +70 lines, -0 lines 0 comments Download
M src/builtins/s390/builtins-s390.cc View 1 chunk +69 lines, -0 lines 3 comments Download
M src/ppc/interface-descriptors-ppc.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M src/s390/interface-descriptors-s390.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
JaideepBajwa
ptal
3 years, 10 months ago (2017-01-27 17:20:28 UTC) #1
john.yan
lgtm
3 years, 10 months ago (2017-01-27 17:23:21 UTC) #2
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/2656363002/1
3 years, 10 months ago (2017-01-27 17:24:31 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/v8/v8/+/e6688728578d7cbd7434400076fbc679105ef24b
3 years, 10 months ago (2017-01-27 17:48:42 UTC) #7
john.yan
3 years, 8 months ago (2017-04-26 16:48:20 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/2656363002/diff/1/src/builtins/s390/builtins-...
File src/builtins/s390/builtins-s390.cc (right):

https://codereview.chromium.org/2656363002/diff/1/src/builtins/s390/builtins-...
src/builtins/s390/builtins-s390.cc:2332: __ CmpSmiLiteral(ip,
Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR), r0);
ip was pointer size (LoadP) here. Maybe try to use LoadSmiLiteral + CmpP here?

https://codereview.chromium.org/2656363002/diff/1/src/builtins/s390/builtins-...
src/builtins/s390/builtins-s390.cc:2352: __ CmpP(r2, Operand::Zero());
CmpP isn't necessary here since SubP sets CC implicitly.

https://codereview.chromium.org/2656363002/diff/1/src/builtins/s390/builtins-...
src/builtins/s390/builtins-s390.cc:2369: __ CmpP(r4, Operand::Zero());
Same as above.

Powered by Google App Engine
This is Rietveld 408576698