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

Issue 2604483002: [promises] Move PromiseHasUserDefinedRejectHandler to c++ (Closed)

Created:
4 years ago by gsathya
Modified:
3 years, 12 months ago
Reviewers:
Yang, adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[promises] Move PromiseHasUserDefinedRejectHandler to c++ BUG=v8:5343 Review-Url: https://codereview.chromium.org/2604483002 Cr-Commit-Position: refs/heads/master@{#41947} Committed: https://chromium.googlesource.com/v8/v8/+/0f5c69c5eded518dfd4af3d64b8bb2c8212826d4

Patch Set 1 #

Patch Set 2 : Remove js check #

Total comments: 4

Patch Set 3 : use getdataproperty #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -91 lines) Patch
M src/contexts.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/heap-symbols.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M src/isolate.cc View 1 2 3 chunks +84 lines, -19 lines 0 comments Download
M src/js/async-await.js View 2 chunks +1 line, -3 lines 0 comments Download
M src/js/promise.js View 3 chunks +0 lines, -65 lines 0 comments Download
M src/objects.h View 2 chunks +5 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-promise.cc View 1 2 2 chunks +10 lines, -1 line 2 comments Download

Messages

Total messages: 23 (17 generated)
gsathya
4 years ago (2016-12-22 23:23:24 UTC) #10
Yang
lgtm https://codereview.chromium.org/2604483002/diff/20001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2604483002/diff/20001/src/isolate.cc#newcode1825 src/isolate.cc:1825: if (JSReceiver::GetProperty(handler, key).ToHandle(&forwarding_handler)) { Since we do not ...
3 years, 12 months ago (2016-12-23 08:40:08 UTC) #11
gsathya
https://codereview.chromium.org/2604483002/diff/20001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2604483002/diff/20001/src/isolate.cc#newcode1825 src/isolate.cc:1825: if (JSReceiver::GetProperty(handler, key).ToHandle(&forwarding_handler)) { On 2016/12/23 08:40:08, Yang wrote: ...
3 years, 12 months ago (2016-12-23 17:59:44 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/2604483002/40001
3 years, 12 months ago (2016-12-23 18:01:57 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/v8/v8/+/0f5c69c5eded518dfd4af3d64b8bb2c8212826d4
3 years, 12 months ago (2016-12-23 18:03:40 UTC) #22
adamk
3 years, 12 months ago (2016-12-27 17:44:59 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/2604483002/diff/40001/src/runtime/runtime-pro...
File src/runtime/runtime-promise.cc (right):

https://codereview.chromium.org/2604483002/diff/40001/src/runtime/runtime-pro...
src/runtime/runtime-promise.cc:284: CONVERT_ARG_HANDLE_CHECKED(JSPromise,
promise, 0);
When using SealHandleScope you don't want to create handles, so this should be

CONVERT_ARG_CHECKED

instead

https://codereview.chromium.org/2604483002/diff/40001/src/runtime/runtime-pro...
src/runtime/runtime-promise.cc:293: CONVERT_ARG_HANDLE_CHECKED(JSPromise,
promise, 0);
Same down here.

Powered by Google App Engine
This is Rietveld 408576698