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

Issue 306053003: Add API support for passing a C++ function as a microtask callback (Closed)

Created:
6 years, 6 months ago by adamk
Modified:
6 years, 6 months ago
CC:
v8-dev, Paweł Hajdan Jr., rafaelw
Visibility:
Public.

Description

Add API support for passing a C++ function as a microtask callback This allows embedders to enqueue microtasks without having any v8::Context handy, as happens in Blink in some cases (such as DOM mutations due to editing triggering MutationObservers). LOG=Y R=dcarney@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21658

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -14 lines) Patch
M include/v8.h View 2 chunks +8 lines, -0 lines 0 comments Download
M src/api.cc View 1 chunk +12 lines, -0 lines 2 comments Download
M src/isolate.h View 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.cc View 2 chunks +27 lines, -13 lines 1 comment Download
M test/cctest/test-api.cc View 2 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
adamk
This could be factored slightly differently: perhaps the wrapping logic should live in isolate.cc, so ...
6 years, 6 months ago (2014-05-29 23:15:56 UTC) #1
dcarney
lgtm, with api change https://codereview.chromium.org/306053003/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/306053003/diff/1/src/api.cc#newcode6670 src/api.cc:6670: i::Handle<i::CallHandlerInfo> callback_info = if you're ...
6 years, 6 months ago (2014-06-02 07:22:10 UTC) #2
adamk
https://codereview.chromium.org/306053003/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/306053003/diff/1/src/api.cc#newcode6670 src/api.cc:6670: i::Handle<i::CallHandlerInfo> callback_info = On 2014/06/02 07:22:10, dcarney wrote: > ...
6 years, 6 months ago (2014-06-02 16:41:49 UTC) #3
adamk
On 2014/06/02 16:41:49, adamk wrote: > https://codereview.chromium.org/306053003/diff/1/src/api.cc > File src/api.cc (right): > > https://codereview.chromium.org/306053003/diff/1/src/api.cc#newcode6670 > ...
6 years, 6 months ago (2014-06-02 18:51:20 UTC) #4
dcarney
> I looked at this harder and I don't see any place that this requirement ...
6 years, 6 months ago (2014-06-02 21:11:04 UTC) #5
adamk
On 2014/06/02 21:11:04, dcarney wrote: > > I looked at this harder and I don't ...
6 years, 6 months ago (2014-06-02 21:25:27 UTC) #6
dcarney
> I apologize if I'm being dense, but from what I can tell storing a ...
6 years, 6 months ago (2014-06-03 06:42:10 UTC) #7
adamk
6 years, 6 months ago (2014-06-03 20:12:26 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 manually as r21658.

Powered by Google App Engine
This is Rietveld 408576698