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

Issue 2893653005: js_runtime: loadDeferredLibrary: don't call initializer of repeated empty parts (Closed)

Created:
3 years, 7 months ago by sra1
Modified:
3 years, 7 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

js_runtime: loadDeferredLibrary: don't call initializer of repeated empty parts Pre-filtering hunks to initialized ended up calling some initializations multiple times. This happened for empty parts, so was harmless after https://github.com/dart-lang/sdk/commit/4af03b1a658675c8490e8c4c3721e6a2991c17e9 Simplify logic to reduce use of corelib functions. There is no real need to be creating closures and calling all of List.generate, where, and map. BUG= R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/7983454299a3e2ee89fd5e3ae20f4a389d39a4b1

Patch Set 1 #

Total comments: 2

Patch Set 2 : rename to urisToLoad #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -17 lines) Patch
M sdk/lib/_internal/js_runtime/lib/js_helper.dart View 1 1 chunk +22 lines, -17 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
sra1
3 years, 7 months ago (2017-05-18 20:43:43 UTC) #3
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/2893653005/diff/1/sdk/lib/_internal/js_runtime/lib/js_helper.dart File sdk/lib/_internal/js_runtime/lib/js_helper.dart (right): https://codereview.chromium.org/2893653005/diff/1/sdk/lib/_internal/js_runtime/lib/js_helper.dart#newcode3661 sdk/lib/_internal/js_runtime/lib/js_helper.dart:3661: List<String> unloadedUris = <String>[]; nit: rename to urisToLoad ...
3 years, 7 months ago (2017-05-18 20:54:37 UTC) #4
sra1
https://codereview.chromium.org/2893653005/diff/1/sdk/lib/_internal/js_runtime/lib/js_helper.dart File sdk/lib/_internal/js_runtime/lib/js_helper.dart (right): https://codereview.chromium.org/2893653005/diff/1/sdk/lib/_internal/js_runtime/lib/js_helper.dart#newcode3661 sdk/lib/_internal/js_runtime/lib/js_helper.dart:3661: List<String> unloadedUris = <String>[]; On 2017/05/18 20:54:37, Siggi Cherem ...
3 years, 7 months ago (2017-05-18 21:16:16 UTC) #5
sra1
3 years, 7 months ago (2017-05-18 21:16:53 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
7983454299a3e2ee89fd5e3ae20f4a389d39a4b1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698