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

Issue 1752133004: [proxies] throw TypeError in [[Call]] if is_callable Map bit is unset (Closed)

Created:
4 years, 9 months ago by caitp (gmail)
Modified:
4 years, 9 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

[proxies] throw TypeError if is_callable Map bit is unset Per ProxyCreate() (https://tc39.github.io/ecma262/#sec-proxycreate), a Proxy is only given a [[Call]] slot if the target has a [[Call]] slot as well. This was previously implemented correctly for [[Construct]], but not for [[Call]]. BUG=v8:4797, v8:4796, v8:1543 LOG=N R=cbruni@chromium.org, neis@chromium.org, adamk@chromium.org, littledan@chromium.org Committed: https://crrev.com/18b9c1ce705e5fe38c23bdd19fcbbfbe3121c611 Cr-Commit-Position: refs/heads/master@{#34461}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : Implement in builtins #

Total comments: 1

Patch Set 4 : Move bit test to just before Proxy instance check #

Patch Set 5 : also test F.p.call.apply() and F.p.apply.apply() #

Patch Set 6 : move bit test for MIPS/MIPS64 ports, too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -22 lines) Patch
M src/arm/builtins-arm.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M src/mips/builtins-mips.cc View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
M src/mips64/builtins-mips64.cc View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M test/mjsunit/harmony/proxies-apply.js View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
caitp (gmail)
Hi, PTAL
4 years, 9 months ago (2016-03-02 16:29:41 UTC) #1
Camillo Bruni
https://codereview.chromium.org/1752133004/diff/20001/src/runtime/runtime-proxy.cc File src/runtime/runtime-proxy.cc (right): https://codereview.chromium.org/1752133004/diff/20001/src/runtime/runtime-proxy.cc#newcode29 src/runtime/runtime-proxy.cc:29: isolate, NewTypeError(MessageTemplate::kCalledNonCallable, callsite)); Would you mind fixing it directly ...
4 years, 9 months ago (2016-03-02 17:41:03 UTC) #3
caitp (gmail)
On 2016/03/02 17:41:03, cbruni wrote: > https://codereview.chromium.org/1752133004/diff/20001/src/runtime/runtime-proxy.cc > File src/runtime/runtime-proxy.cc (right): > > https://codereview.chromium.org/1752133004/diff/20001/src/runtime/runtime-proxy.cc#newcode29 > ...
4 years, 9 months ago (2016-03-02 17:42:05 UTC) #4
caitp (gmail)
https://codereview.chromium.org/1752133004/diff/20001/src/runtime/runtime-proxy.cc File src/runtime/runtime-proxy.cc (right): https://codereview.chromium.org/1752133004/diff/20001/src/runtime/runtime-proxy.cc#newcode29 src/runtime/runtime-proxy.cc:29: isolate, NewTypeError(MessageTemplate::kCalledNonCallable, callsite)); On 2016/03/02 17:41:03, cbruni wrote: > ...
4 years, 9 months ago (2016-03-02 18:26:57 UTC) #5
Camillo Bruni
lgtm
4 years, 9 months ago (2016-03-02 18:31:11 UTC) #6
caitp (gmail)
On 2016/03/02 18:31:11, cbruni wrote: > lgtm Could you leave an FYI for the mips/ppc/x87/etc ...
4 years, 9 months ago (2016-03-02 18:33:37 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1752133004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1752133004/40001
4 years, 9 months ago (2016-03-03 12:34:41 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/11827)
4 years, 9 months ago (2016-03-03 12:38:11 UTC) #11
caitp (gmail)
+ bmeurer to check moving the kIsCallable bit test in builtins-PLATFORM
4 years, 9 months ago (2016-03-03 13:00:49 UTC) #13
Benedikt Meurer
You need to provide mips/mips64 ports as well or ask the mips people. https://codereview.chromium.org/1752133004/diff/40001/src/arm/builtins-arm.cc File ...
4 years, 9 months ago (2016-03-03 13:19:34 UTC) #14
caitp (gmail)
On 2016/03/03 13:19:34, Benedikt Meurer wrote: > You need to provide mips/mips64 ports as well ...
4 years, 9 months ago (2016-03-03 13:54:16 UTC) #15
Benedikt Meurer
Thanks. LGTM!
4 years, 9 months ago (2016-03-03 13:58:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1752133004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1752133004/100001
4 years, 9 months ago (2016-03-03 15:21:14 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 9 months ago (2016-03-03 15:22:57 UTC) #21
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 15:23:14 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/18b9c1ce705e5fe38c23bdd19fcbbfbe3121c611
Cr-Commit-Position: refs/heads/master@{#34461}

Powered by Google App Engine
This is Rietveld 408576698