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

Issue 201873002: Trying to make preamble for d8. (Closed)

Created:
6 years, 9 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 8 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Trying to make preamble for d8. Preamble handles timers and task queue. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=34967

Patch Set 1 #

Patch Set 2 : Use _createTimer for timer. Should enable isolate support. #

Patch Set 3 : Works, but unexpectedly fails on non-zero timers. #

Total comments: 10

Patch Set 4 : Added non-zero timers. #

Patch Set 5 : Address comments. #

Patch Set 6 : Fix typo. #

Patch Set 7 : call enterJsAsync/leaveJsAsync. All lib/async tests now run. #

Total comments: 4

Patch Set 8 : Address comments, fix typo. #

Patch Set 9 : Fix bug. Update status. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -6 lines) Patch
M sdk/lib/_internal/lib/async_patch.dart View 1 2 3 4 5 6 7 2 chunks +34 lines, -1 line 0 comments Download
M sdk/lib/_internal/lib/preambles/d8.js View 1 2 3 4 5 6 7 8 1 chunk +253 lines, -0 lines 0 comments Download
M tests/isolate/isolate.status View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M tests/lib/async/future_test.dart View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M tests/lib/lib.status View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Lasse Reichstein Nielsen
PTAL. The code almost works, but it doesn't handle non-zero timers as gracefully as the ...
6 years, 9 months ago (2014-03-18 12:30:23 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/201873002/diff/40001/sdk/lib/_internal/lib/async_patch.dart File sdk/lib/_internal/lib/async_patch.dart (right): https://codereview.chromium.org/201873002/diff/40001/sdk/lib/_internal/lib/async_patch.dart#newcode21 sdk/lib/_internal/lib/async_patch.dart:21: if (milliseconds > 0) print("T: $milliseconds"); debug code. ...
6 years, 9 months ago (2014-03-18 13:18:22 UTC) #2
Lasse Reichstein Nielsen
I added non-zero timer support too. Too many tests were failing because it thought it ...
6 years, 9 months ago (2014-03-19 10:24:41 UTC) #3
floitsch
LGTM. https://codereview.chromium.org/201873002/diff/120001/sdk/lib/_internal/lib/preambles/d8.js File sdk/lib/_internal/lib/preambles/d8.js (right): https://codereview.chromium.org/201873002/diff/120001/sdk/lib/_internal/lib/preambles/d8.js#newcode109 sdk/lib/_internal/lib/preambles/d8.js:109: now = Date.now; I don't understand this. https://codereview.chromium.org/201873002/diff/120001/sdk/lib/_internal/lib/preambles/d8.js#newcode183 ...
6 years, 9 months ago (2014-03-19 14:08:31 UTC) #4
Lasse Reichstein Nielsen
Fix bug. https://codereview.chromium.org/201873002/diff/120001/sdk/lib/_internal/lib/preambles/d8.js File sdk/lib/_internal/lib/preambles/d8.js (right): https://codereview.chromium.org/201873002/diff/120001/sdk/lib/_internal/lib/preambles/d8.js#newcode109 sdk/lib/_internal/lib/preambles/d8.js:109: now = Date.now; Comment added.
6 years, 8 months ago (2014-04-11 10:28:43 UTC) #5
Lasse Reichstein Nielsen
Committed patchset #9 manually as r34967 (presubmit successful).
6 years, 8 months ago (2014-04-11 10:29:17 UTC) #6
sra1
On 2014/04/11 10:29:17, Lasse Reichstein Nielsen wrote: > Committed patchset #9 manually as r34967 (presubmit ...
6 years, 8 months ago (2014-04-11 20:23:49 UTC) #7
Lasse Reichstein Nielsen
6 years, 8 months ago (2014-04-11 22:37:39 UTC) #8
Message was sent while issue was closed.
On 2014/04/11 20:23:49, sra1 wrote:
> On 2014/04/11 10:29:17, Lasse Reichstein Nielsen wrote:
> > Committed patchset #9 manually as r34967 (presubmit successful).
> 
> This CL, if I understand it, is to support running more tests on d8.
> However, it adds 1.2k to swarm.

That's a lot for relatively few lines added in async_patch.
Maybe those lines can be refactored, or reuse some code from the other
alternatives.

> Is it possible to refactor it to push more of the tax into preambles/d8.js ?

I hope so. If not this part, then something else.

Powered by Google App Engine
This is Rietveld 408576698