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

Issue 2018913004: Promises: Remove additional array for storing deferred objects (Closed)

Created:
4 years, 6 months ago by gsathya
Modified:
4 years, 6 months ago
Reviewers:
Dan Ehrenberg, adamk
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Promises: Remove additional array for storing deferred objects There are 2 possible states for the deferred symbol -- 1) UNDEFINED -- This is the zero state, no deferred object is attached to this symbol. When we want to add a new deferred we directly attach it to this symbol. 2) symbol with attached deferred object -- New deferred objects are not attached to this symbol, but instead they are directly attached to the resolve, reject callback arrays. At this point, the deferred symbol's state is stale, and the deferreds should be read from the reject, resolve callbacks. BUG=v8:5046 Committed: https://crrev.com/e3bd4a396b44eb490360f14bcbdc1b36482c8558 Cr-Commit-Position: refs/heads/master@{#36623}

Patch Set 1 #

Patch Set 2 : Add the actual changes #

Total comments: 1

Patch Set 3 : Add space around + #

Total comments: 1

Patch Set 4 : Merge calls to array.push #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -16 lines) Patch
M src/js/promise.js View 1 2 3 4 chunks +24 lines, -16 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018913004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018913004/20001
4 years, 6 months ago (2016-05-27 22:32:24 UTC) #2
gsathya
4 years, 6 months ago (2016-05-27 22:32:53 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-27 22:55:15 UTC) #7
adamk
Ah, so the approach is just to keep an extra reference to the deferred, but ...
4 years, 6 months ago (2016-05-27 23:04:51 UTC) #8
gsathya
On 2016/05/27 23:04:51, adamk wrote: > Ah, so the approach is just to keep an ...
4 years, 6 months ago (2016-05-27 23:11:11 UTC) #9
adamk
On 2016/05/27 23:11:11, gsathya wrote: > On 2016/05/27 23:04:51, adamk wrote: > > Ah, so ...
4 years, 6 months ago (2016-05-27 23:24:19 UTC) #10
gsathya
On 2016/05/27 23:24:19, adamk wrote: > On 2016/05/27 23:11:11, gsathya wrote: > > On 2016/05/27 ...
4 years, 6 months ago (2016-05-31 18:19:28 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018913004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018913004/60001
4 years, 6 months ago (2016-05-31 18:19:51 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-05-31 18:49:20 UTC) #16
commit-bot: I haz the power
4 years, 6 months ago (2016-05-31 18:49:57 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e3bd4a396b44eb490360f14bcbdc1b36482c8558
Cr-Commit-Position: refs/heads/master@{#36623}

Powered by Google App Engine
This is Rietveld 408576698