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

Issue 2626793003: [promises] Remove unneeded PromiseCreate function from promise.js (Closed)

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

Description

[promises] Remove unneeded PromiseCreate function from promise.js This function was only needed for extrasUtils. Since it was simply calling a builtin function, just expose that builtin instead. This requires an arguments adapter frame for the builtin. As a drive-by fix, also added an arguments adapter for the extrasUtils.resolvePromise (and a regression test). Other cleanup: removed unused native context slot for PROMISE_SET_AND_CREATE. R=gsathya@chromium.org BUG=v8:5343 Review-Url: https://codereview.chromium.org/2626793003 Cr-Commit-Position: refs/heads/master@{#42284} Committed: https://chromium.googlesource.com/v8/v8/+/a0e3a8ee89c940e66ccafa6d4e9ee664d91e9a3b

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -15 lines) Patch
M src/api.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/bootstrapper.cc View 3 chunks +7 lines, -4 lines 0 comments Download
M src/contexts.h View 2 chunks +0 lines, -2 lines 0 comments Download
M src/js/promise.js View 3 chunks +0 lines, -7 lines 0 comments Download
M test/cctest/test-extra.js View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 15 (6 generated)
adamk
3 years, 11 months ago (2017-01-10 22:51:58 UTC) #1
adamk
+jochen for his thoughts on this use of extrasUtils
3 years, 11 months ago (2017-01-10 22:54:47 UTC) #3
gsathya
lgtm
3 years, 11 months ago (2017-01-10 22:59:07 UTC) #4
jochen (gone - plz use gerrit)
won't that break the v8 extras used by chromium?
3 years, 11 months ago (2017-01-11 09:52:39 UTC) #6
adamk
On 2017/01/11 09:52:39, jochen wrote: > won't that break the v8 extras used by chromium? ...
3 years, 11 months ago (2017-01-11 17:41:22 UTC) #7
domenic
It looks like the createPromise util moved to bootstrapper.cc so that's why nothing broke. This ...
3 years, 11 months ago (2017-01-11 17:57:17 UTC) #8
jochen (gone - plz use gerrit)
lgtm
3 years, 11 months ago (2017-01-12 08:32:08 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/2626793003/1
3 years, 11 months ago (2017-01-12 18:26:24 UTC) #12
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 18:57:55 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/v8/v8/+/a0e3a8ee89c940e66ccafa6d4e9ee664d91...

Powered by Google App Engine
This is Rietveld 408576698