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

Issue 1016003003: sort classes in dependency order, or load lazily if needed, fixes #78 (Closed)

Created:
5 years, 9 months ago by Jennifer Messerly
Modified:
5 years, 9 months ago
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

sort classes in dependency order, or load lazily if needed, fixes #78 this also starts using compiled code in dart_core.js (just copy+paste for Object) visitClassDeclaration was getting rather long, so it's now refactored to make the flow more clear. R=sigmund@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/97750a8a32b720f3857f473334535e0d9c56acd4

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3759 lines, -3557 lines) Patch
M lib/runtime/dart_core.js View 3 chunks +39 lines, -25 lines 0 comments Download
M lib/runtime/dart_runtime.js View 5 chunks +28 lines, -51 lines 0 comments Download
M lib/src/codegen/js_codegen.dart View 1 13 chunks +265 lines, -69 lines 0 comments Download
M lib/src/js/builder.dart View 2 chunks +8 lines, -9 lines 0 comments Download
M test/codegen/expect/dart/_interceptors.js View 4 chunks +20 lines, -20 lines 0 comments Download
M test/codegen/expect/dart/_js_helper.js View 1 2 chunks +8 lines, -3 lines 0 comments Download
M test/codegen/expect/dart/async.js View 8 chunks +2674 lines, -2674 lines 0 comments Download
M test/codegen/expect/dart/collection.js View 9 chunks +464 lines, -464 lines 0 comments Download
M test/codegen/expect/dart/convert.js View 12 chunks +110 lines, -110 lines 0 comments Download
M test/codegen/expect/dart/core.js View 1 9 chunks +92 lines, -82 lines 0 comments Download
M test/codegen/expect/server_mode/html_input.html View 1 chunk +2 lines, -2 lines 0 comments Download
M test/codegen/expect/sunflower.js View 3 chunks +21 lines, -21 lines 0 comments Download
M test/codegen/sunflower.dart View 2 chunks +27 lines, -27 lines 0 comments Download
M test/sunflower/sunflower.html View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Jennifer Messerly
5 years, 9 months ago (2015-03-18 22:51:42 UTC) #3
Siggi Cherem (dart-lang)
this is really nice! LGTM I think we can keep this technique long term too, ...
5 years, 9 months ago (2015-03-18 23:54:56 UTC) #4
Jennifer Messerly
Thanks! https://codereview.chromium.org/1016003003/diff/20001/lib/src/codegen/js_codegen.dart File lib/src/codegen/js_codegen.dart (right): https://codereview.chromium.org/1016003003/diff/20001/lib/src/codegen/js_codegen.dart#newcode424 lib/src/codegen/js_codegen.dart:424: if (library.isInSdk && !currentLibrary.isInSdk) return false; On 2015/03/18 ...
5 years, 9 months ago (2015-03-19 16:03:29 UTC) #5
Jennifer Messerly
5 years, 9 months ago (2015-03-19 17:03:27 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:40001) manually as
97750a8a32b720f3857f473334535e0d9c56acd4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698