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

Issue 2698683003: Make FunctionTemplate::HasInstance checks work with remote contexts. (Closed)

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

Description

Make instance checks understand remote contexts. https://crrev.com/2500363002 updated FunctionTemplate::HasInstance to follow the hidden prototype chain of a global proxy to the global object. However, remote contexts don't have a global object to check; instead, teach the instance check knows about the conventions of global proxy setup and have it also check the constructor's prototype. Similarly, also teach Object::FindInstanceInPrototypeChain about the unusual conventions for remote contexts. BUG=527190 Review-Url: https://codereview.chromium.org/2698683003 Cr-Commit-Position: refs/heads/master@{#43263} Committed: https://chromium.googlesource.com/v8/v8/+/692cccce2695b900f181eb2fdfe83e4dec0d4bf1

Patch Set 1 #

Patch Set 2 : Fix format. #

Total comments: 1

Patch Set 3 : Handle parent templates #

Total comments: 1

Patch Set 4 : FindInstanceInPrototypeChain #

Patch Set 5 : Add comment #

Patch Set 6 : Remove unnecessary v8 nested name specifier #

Patch Set 7 : Break dependency on CreationContext patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -8 lines) Patch
M src/api.cc View 1 2 3 4 5 6 2 chunks +45 lines, -8 lines 0 comments Download
M test/unittests/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A test/unittests/api/remote-object-unittest.cc View 1 2 3 4 5 6 1 chunk +54 lines, -0 lines 0 comments Download
M test/unittests/unittests.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (8 generated)
dcheng
https://codereview.chromium.org/2698683003/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2698683003/diff/20001/src/api.cc#newcode6577 src/api.cc:6577: // Otherwise, fallback to testing the prototype chain. I ...
3 years, 10 months ago (2017-02-16 07:12:45 UTC) #3
Yuki
LGTM on my side. Defer to jochen.
3 years, 10 months ago (2017-02-16 07:29:02 UTC) #4
dcheng
Note that with this and https://codereview.chromium.org/2693203003/ applied, the patch to use remote contexts /almost/ works. ...
3 years, 10 months ago (2017-02-16 08:00:12 UTC) #5
dcheng
On 2017/02/16 08:00:12, dcheng wrote: > Note that with this and https://codereview.chromium.org/2693203003/ applied, the > ...
3 years, 10 months ago (2017-02-16 08:01:21 UTC) #6
dcheng
PTAL, I had to update FindInstanceInPrototypeChain as well. In the long run, I think I'm ...
3 years, 10 months ago (2017-02-16 10:35:23 UTC) #8
dcheng
One other surprising thing I noticed: the cross-origin interceptors for deletes (and possibly other things) ...
3 years, 10 months ago (2017-02-16 10:40:17 UTC) #9
Yuki
On 2017/02/16 10:40:17, dcheng wrote: > One other surprising thing I noticed: the cross-origin interceptors ...
3 years, 10 months ago (2017-02-16 11:40:11 UTC) #10
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-16 12:44:12 UTC) #11
jochen (gone - plz use gerrit)
toon fyi
3 years, 10 months ago (2017-02-16 12:44:26 UTC) #13
dcheng
Updating this so it doesn't depend on the CreationContext() patch and landing based on the ...
3 years, 10 months ago (2017-02-16 21:14:09 UTC) #14
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/2698683003/110001
3 years, 10 months ago (2017-02-16 21:23:30 UTC) #17
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 21:46:27 UTC) #20
Message was sent while issue was closed.
Committed patchset #7 (id:110001) as
https://chromium.googlesource.com/v8/v8/+/692cccce2695b900f181eb2fdfe83e4dec0...

Powered by Google App Engine
This is Rietveld 408576698