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

Issue 11146013: Fix JS minifier to lift var declarations within functions. Still disabled. (Closed)

Created:
8 years, 2 months ago by erikcorry
Modified:
8 years, 2 months ago
Reviewers:
floitsch, ngeoffray, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix JS minifier to lift var declarations within functions. Still disabled. R=kasperl@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=13654

Patch Set 1 #

Patch Set 2 : #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -101 lines) Patch
M lib/compiler/implementation/js/printer.dart View 10 chunks +68 lines, -10 lines 3 comments Download
M tests/compiler/dart2js/class_codegen_test.dart View 2 chunks +3 lines, -3 lines 1 comment Download
M tests/compiler/dart2js/code_motion_test.dart View 2 chunks +5 lines, -5 lines 0 comments Download
M tests/compiler/dart2js/compiler_helper.dart View 2 chunks +27 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/gvn_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/inverse_operator_test.dart View 1 chunk +1 line, -2 lines 0 comments Download
M tests/compiler/dart2js/no_constructor_body_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/ssa_phi_codegen_test.dart View 1 chunk +18 lines, -34 lines 0 comments Download
M tests/compiler/dart2js/type_guard_unuser_test.dart View 4 chunks +12 lines, -12 lines 0 comments Download
M tests/compiler/dart2js/type_inference2_test.dart View 1 chunk +1 line, -2 lines 1 comment Download
M tests/compiler/dart2js/type_inference3_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/type_inference4_test.dart View 1 chunk +1 line, -1 line 1 comment Download
M tests/compiler/dart2js/type_inference5_test.dart View 1 chunk +1 line, -1 line 1 comment Download
M tests/compiler/dart2js/type_inference_test.dart View 2 chunks +24 lines, -25 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
erikcorry
8 years, 2 months ago (2012-10-15 10:32:45 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/11146013/diff/17/lib/compiler/implementation/js/printer.dart File lib/compiler/implementation/js/printer.dart (right): https://codereview.chromium.org/11146013/diff/17/lib/compiler/implementation/js/printer.dart#newcode799 lib/compiler/implementation/js/printer.dart:799: void functionOut(Fun fun) { "out" doesn't seem to ...
8 years, 2 months ago (2012-10-15 11:17:18 UTC) #2
ngeoffray
8 years, 2 months ago (2012-10-15 14:20:01 UTC) #3
https://codereview.chromium.org/11146013/diff/17/tests/compiler/dart2js/class...
File tests/compiler/dart2js/class_codegen_test.dart (right):

https://codereview.chromium.org/11146013/diff/17/tests/compiler/dart2js/class...
tests/compiler/dart2js/class_codegen_test.dart:57: A(a) : this.a = a {}
Why this change? (and the ones in the other tests?) I believe we still want to
have a nice pretty printer that keeps variable names, and it feels easier for
the tests to use that one instead of a minifier.

Powered by Google App Engine
This is Rietveld 408576698