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

Issue 1636233002: fixes #427, static fields emitted outside the scope of their class (Closed)

Created:
4 years, 11 months ago by Jennifer Messerly
Modified:
4 years, 11 months ago
Reviewers:
vsm
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fixes #427, static fields emitted outside the scope of their class mainly, this backs off of some readability optimizations around static and top-level fields that were too aggressive. On their own, they were okay, but they collide with the library-cycle issues. Once we can remove that issue, we could consider restoring some of this. In the meantime, simplicity is good. The new operation in the declaration loader is to allow us to see if an initializer has all its dependencies satisfied, but without changing any ordering if they are not. R=vsm@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/8ff0b180027043a258d565643d87db1ff3c23b64

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments #

Patch Set 3 : merged #

Patch Set 4 : merged2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+960 lines, -732 lines) Patch
M lib/runtime/dart/_interceptors.js View 1 chunk +1 line, -1 line 0 comments Download
M lib/runtime/dart/_internal.js View 2 chunks +7 lines, -3 lines 0 comments Download
M lib/runtime/dart/async.js View 18 chunks +287 lines, -268 lines 0 comments Download
M lib/runtime/dart/collection.js View 3 chunks +9 lines, -9 lines 0 comments Download
M lib/runtime/dart/convert.js View 4 chunks +17 lines, -9 lines 0 comments Download
M lib/runtime/dart/core.js View 5 chunks +44 lines, -16 lines 0 comments Download
M lib/runtime/dart/html.js View 29 chunks +408 lines, -315 lines 0 comments Download
M lib/runtime/dart/typed_data.js View 1 chunk +6 lines, -2 lines 0 comments Download
M lib/src/codegen/js_codegen.dart View 1 2 18 chunks +91 lines, -73 lines 0 comments Download
M lib/src/codegen/js_module_item_order.dart View 6 chunks +37 lines, -11 lines 0 comments Download
M test/codegen/expect/closure.js View 1 chunk +6 lines, -6 lines 0 comments Download
M test/codegen/expect/collection/priority_queue.js View 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/collection/src/unmodifiable_wrappers.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/collection/wrappers.txt View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M test/codegen/expect/es6_modules.js View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M test/codegen/expect/fieldtest.js View 1 chunk +23 lines, -7 lines 0 comments Download
M test/codegen/expect/language-all.js View Binary file 0 comments Download
M test/codegen/expect/sunflower/painter.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/codegen/expect/sunflower/sunflower.js View 1 chunk +13 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
Jennifer Messerly
4 years, 11 months ago (2016-01-27 01:39:22 UTC) #4
vsm
lgtm https://codereview.chromium.org/1636233002/diff/1/lib/src/codegen/js_codegen.dart File lib/src/codegen/js_codegen.dart (right): https://codereview.chromium.org/1636233002/diff/1/lib/src/codegen/js_codegen.dart#newcode844 lib/src/codegen/js_codegen.dart:844: // they are made static. "made lazy"? https://codereview.chromium.org/1636233002/diff/1/lib/src/codegen/js_codegen.dart#newcode2213 ...
4 years, 11 months ago (2016-01-27 14:29:30 UTC) #5
Jennifer Messerly
Thanks! I've tried to clarify some of the comments. https://codereview.chromium.org/1636233002/diff/1/lib/src/codegen/js_codegen.dart File lib/src/codegen/js_codegen.dart (right): https://codereview.chromium.org/1636233002/diff/1/lib/src/codegen/js_codegen.dart#newcode844 lib/src/codegen/js_codegen.dart:844: ...
4 years, 11 months ago (2016-01-27 17:26:28 UTC) #6
Jennifer Messerly
4 years, 11 months ago (2016-01-27 17:35:45 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
8ff0b180027043a258d565643d87db1ff3c23b64 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698