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

Issue 1125223002: PPC: Handle the case when derived constructor is [[Call]]ed with 0 args. (Closed)

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

Description

PPC: Handle the case when derived constructor is [[Call]]ed with 0 args. Port cf53fed972896bf23c037ce7ac9f8e1512463c62 Original commit message: ArgumentsAdaptorStub for derived constructor (the one that needs new.target) works in this way: - If the constructor is invoked via the Construct stub, we know that actual arguments always include new.target. ``arguments`` object however should not include a new.target, therefore we remove it. We achieve this by decrementing the argument count. - If the constructor is invoked as a call, we do not care for a correct ``arguments`` array since the constructor will immediately throw on entrance. The bug is that the call could actually pass 0 actual arguments, but I decrement unconditionally :(. The fix is to detect this case and avoid decrementing. ``arguments`` is bogus, but it is ok as constructor throws. Long-term we should just remove mucking about with arguments for new.target and just get it from the stack. R=dslomov@chromium.org, dstence@us.ibm.com, michael_dawson@ca.ibm.com BUG= Committed: https://crrev.com/c7e02041b0bcc5c492d8129f2a6dac848299ddc2 Cr-Commit-Position: refs/heads/master@{#28269}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M src/ppc/code-stubs-ppc.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
MTBrandyberry
5 years, 7 months ago (2015-05-06 15:47:12 UTC) #1
dstence
lgtm
5 years, 7 months ago (2015-05-06 15:49:28 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1125223002/1
5 years, 7 months ago (2015-05-06 15:51:36 UTC) #4
Dmitry Lomov (no reviews)
lgtm
5 years, 7 months ago (2015-05-06 16:09:23 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 7 months ago (2015-05-06 16:14:06 UTC) #6
commit-bot: I haz the power
5 years, 7 months ago (2015-05-06 16:14:22 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c7e02041b0bcc5c492d8129f2a6dac848299ddc2
Cr-Commit-Position: refs/heads/master@{#28269}

Powered by Google App Engine
This is Rietveld 408576698