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

Issue 2862483003: Do not enter contexts implicitly (Closed)

Created:
3 years, 7 months ago by Jens Widell
Modified:
3 years, 7 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

Do not enter contexts implicitly Blink uses Isolate::GetEnteredContext() to implement HTML's "entry context" concept, and thus depends on it not being changed except explicitly (by Blink.) To support this, stop entering contexts implicitly in all external API entry points; rather just set the context as current. The only thing that changes the entered context is now Context::Enter()/Context::Exit() (and Context::Scope.) BUG=v8:6307 Review-Url: https://codereview.chromium.org/2862483003 Cr-Commit-Position: refs/heads/master@{#45064} Committed: https://chromium.googlesource.com/v8/v8/+/40d01184a18a599392691c0eb931720628a44e80

Patch Set 1 #

Patch Set 2 : Add test #

Patch Set 3 : Use correct NewInstance() overload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -4 lines) Patch
M src/api.cc View 1 chunk +7 lines, -4 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
Jens Widell
PTAL
3 years, 7 months ago (2017-05-03 08:11:11 UTC) #2
jochen (gone - plz use gerrit)
what about all the call-sites of Context::Enter/Exit (and ::Scope) inside v8? will you remove them ...
3 years, 7 months ago (2017-05-03 10:37:39 UTC) #3
Jens Widell
On 2017/05/03 at 10:37:39, jochen wrote: > what about all the call-sites of Context::Enter/Exit (and ...
3 years, 7 months ago (2017-05-03 11:09:26 UTC) #4
Jens Widell
On 2017/05/03 11:09:26, Jens Widell wrote: > On 2017/05/03 at 10:37:39, jochen wrote: > > ...
3 years, 7 months ago (2017-05-03 13:15:56 UTC) #5
jochen (gone - plz use gerrit)
lgtm
3 years, 7 months ago (2017-05-03 13:18:27 UTC) #6
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/2862483003/20001
3 years, 7 months ago (2017-05-03 13:20:27 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/17767)
3 years, 7 months ago (2017-05-03 13:26:37 UTC) #10
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/2862483003/40001
3 years, 7 months ago (2017-05-03 13:30:47 UTC) #13
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 13:59:41 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/40d01184a18a599392691c0eb931720628a...

Powered by Google App Engine
This is Rietveld 408576698