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

Issue 600723005: Introduce PromiseRejectCallback. (Closed)

Created:
6 years, 2 months ago by Yang
Modified:
6 years, 2 months ago
Reviewers:
Sven Panne, aandrey, rossberg, yurys, domenic
CC:
v8-dev, Paweł Hajdan Jr., domenic1
Project:
v8
Visibility:
Public.

Description

Introduce PromiseRejectCallback. R=aandrey@chromium.org, yurys@chromium.org, rossberg@chromium.org API=v8::Isolate::SetPromiseRejectCallback, v8::Promise::HasHandler LOG=Y BUG=v8:3093 Committed: https://code.google.com/p/v8/source/detail?r=24335

Patch Set 1 #

Total comments: 2

Patch Set 2 : not omit callback for Promise.reject() #

Total comments: 1

Patch Set 3 : HasRejectHandler -> HasHandler #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : addressed comments #

Total comments: 1

Patch Set 6 : partly revert previous patch set #

Total comments: 1

Patch Set 7 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+587 lines, -130 lines) Patch
M include/v8.h View 1 2 5 chunks +25 lines, -1 line 2 comments Download
M src/api.h View 2 chunks +3 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 2 chunks +17 lines, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/linkage.cc View 2 chunks +2 lines, -1 line 0 comments Download
M src/contexts.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/debug.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/debug.cc View 1 2 3 5 6 2 chunks +26 lines, -14 lines 0 comments Download
M src/heap/heap.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/isolate.h View 3 chunks +8 lines, -0 lines 0 comments Download
M src/isolate.cc View 7 chunks +116 lines, -92 lines 0 comments Download
M src/promise.js View 1 2 3 4 6 chunks +33 lines, -16 lines 0 comments Download
M src/runtime/runtime.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/runtime/runtime.cc View 1 2 1 chunk +29 lines, -3 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 1 chunk +243 lines, -0 lines 0 comments Download
M test/cctest/test-debug.cc View 1 chunk +72 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (2 generated)
Yang
6 years, 2 months ago (2014-09-29 14:52:19 UTC) #1
Yang
On 2014/09/29 14:52:19, Yang wrote: This is the successor to https://codereview.chromium.org/607913002/.
6 years, 2 months ago (2014-09-29 14:52:48 UTC) #2
domenic_domenicdenicola.com
https://codereview.chromium.org/600723005/diff/1/src/promise.js File src/promise.js (right): https://codereview.chromium.org/600723005/diff/1/src/promise.js#newcode212 src/promise.js:212: SET_PRIVATE(promise, promiseHasHandler, true); This doesn't seem correct. The promise ...
6 years, 2 months ago (2014-09-30 10:30:42 UTC) #4
Yang
https://codereview.chromium.org/600723005/diff/1/src/promise.js File src/promise.js (right): https://codereview.chromium.org/600723005/diff/1/src/promise.js#newcode212 src/promise.js:212: SET_PRIVATE(promise, promiseHasHandler, true); On 2014/09/30 10:30:42, domenic wrote: > ...
6 years, 2 months ago (2014-09-30 10:38:51 UTC) #5
Yang
On 2014/09/30 10:38:51, Yang wrote: > https://codereview.chromium.org/600723005/diff/1/src/promise.js > File src/promise.js (right): > > https://codereview.chromium.org/600723005/diff/1/src/promise.js#newcode212 > ...
6 years, 2 months ago (2014-09-30 11:09:01 UTC) #6
yurys
https://codereview.chromium.org/600723005/diff/20001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/600723005/diff/20001/include/v8.h#newcode2859 include/v8.h:2859: bool HasRejectHandler(); Would it make sense to rename this ...
6 years, 2 months ago (2014-09-30 12:41:47 UTC) #7
Yang
On 2014/09/30 12:41:47, yurys wrote: > https://codereview.chromium.org/600723005/diff/20001/include/v8.h > File include/v8.h (right): > > https://codereview.chromium.org/600723005/diff/20001/include/v8.h#newcode2859 > ...
6 years, 2 months ago (2014-09-30 13:09:29 UTC) #8
yurys
lgtm
6 years, 2 months ago (2014-09-30 13:35:26 UTC) #9
aandrey
lgtm https://codereview.chromium.org/600723005/diff/40001/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/600723005/diff/40001/src/debug.cc#newcode2516 src/debug.cc:2516: OnException(value, false, promise); I think we should move ...
6 years, 2 months ago (2014-09-30 14:08:24 UTC) #10
Yang
Addressed/replied to comments. https://codereview.chromium.org/600723005/diff/40001/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/600723005/diff/40001/src/debug.cc#newcode2516 src/debug.cc:2516: OnException(value, false, promise); On 2014/09/30 14:08:24, ...
6 years, 2 months ago (2014-09-30 14:29:48 UTC) #11
aandrey
https://codereview.chromium.org/600723005/diff/40002/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/600723005/diff/40002/src/debug.cc#newcode2523 src/debug.cc:2523: OnException(value, false, promise); But we should also call JSObject::SetProperty(Handle<JSObject>::cast(promise) ...
6 years, 2 months ago (2014-09-30 14:43:27 UTC) #12
Yang
On 2014/09/30 14:43:27, aandrey wrote: > https://codereview.chromium.org/600723005/diff/40002/src/debug.cc > File src/debug.cc (right): > > https://codereview.chromium.org/600723005/diff/40002/src/debug.cc#newcode2523 > ...
6 years, 2 months ago (2014-09-30 14:49:58 UTC) #13
aandrey
https://codereview.chromium.org/600723005/diff/90001/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/600723005/diff/90001/src/debug.cc#newcode2503 src/debug.cc:2503: Handle<Object> promise = isolate_->GetPromiseOnStackOnThrow(); revert
6 years, 2 months ago (2014-09-30 14:55:15 UTC) #14
Yang
On 2014/09/30 14:55:15, aandrey wrote: > https://codereview.chromium.org/600723005/diff/90001/src/debug.cc > File src/debug.cc (right): > > https://codereview.chromium.org/600723005/diff/90001/src/debug.cc#newcode2503 > ...
6 years, 2 months ago (2014-09-30 14:57:57 UTC) #15
aandrey
still lgtm
6 years, 2 months ago (2014-09-30 15:00:36 UTC) #16
Yang
Committed patchset #7 (id:110001) manually as 24335 (presubmit successful).
6 years, 2 months ago (2014-09-30 15:29:34 UTC) #17
yurys
https://codereview.chromium.org/600723005/diff/110001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/600723005/diff/110001/include/v8.h#newcode4212 include/v8.h:4212: typedef void (*PromiseRejectCallback)(Handle<Promise> promise, I've just realized that it ...
6 years, 2 months ago (2014-10-01 12:41:18 UTC) #18
Sven Panne
https://codereview.chromium.org/600723005/diff/110001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/600723005/diff/110001/include/v8.h#newcode4212 include/v8.h:4212: typedef void (*PromiseRejectCallback)(Handle<Promise> promise, On 2014/10/01 12:41:18, yurys wrote: ...
6 years, 2 months ago (2014-10-01 12:49:30 UTC) #20
yurys
On 2014/10/01 12:49:30, Sven Panne wrote: > https://codereview.chromium.org/600723005/diff/110001/include/v8.h > File include/v8.h (right): > > https://codereview.chromium.org/600723005/diff/110001/include/v8.h#newcode4212 ...
6 years, 2 months ago (2014-10-01 13:01:52 UTC) #21
Yang
On 2014/10/01 12:49:30, Sven Panne wrote: > https://codereview.chromium.org/600723005/diff/110001/include/v8.h > File include/v8.h (right): > > https://codereview.chromium.org/600723005/diff/110001/include/v8.h#newcode4212 ...
6 years, 2 months ago (2014-10-01 13:01:58 UTC) #22
aandrey
On 2014/10/01 13:01:58, Yang wrote: > On 2014/10/01 12:49:30, Sven Panne wrote: > > https://codereview.chromium.org/600723005/diff/110001/include/v8.h ...
6 years, 2 months ago (2014-10-01 13:20:03 UTC) #23
Sven Panne
6 years, 2 months ago (2014-10-01 14:07:22 UTC) #24
Message was sent while issue was closed.
On 2014/10/01 13:20:03, aandrey wrote:
> or v8::Value::GetIsolate() ?

Nope... Value can be a Smi, and we can't get an Isolate from it.

Powered by Google App Engine
This is Rietveld 408576698