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

Issue 255843005: Avoid generating VariableUse nodes with non-identifier names (Closed)

Created:
6 years, 8 months ago by sra1
Modified:
6 years, 7 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Avoid generating VariableUse nodes with non-identifier names The change uses of VariableUse where the the 'name' is a JavaScript expression. This is very naughty, since the minifier can't tell which names are free in a function. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=35508

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -98 lines) Patch
M sdk/lib/_internal/compiler/implementation/js/builder.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/js/nodes.dart View 1 2 chunks +5 lines, -4 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 1 chunk +4 lines, -5 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/checked_mode_helpers.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart View 5 chunks +7 lines, -10 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/namer.dart View 3 chunks +15 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart View 1 chunk +0 lines, -30 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart View 1 chunk +7 lines, -7 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart View 1 7 chunks +12 lines, -5 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/interceptor_emitter.dart View 2 chunks +2 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/type_test_emitter.dart View 1 1 chunk +18 lines, -7 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/codegen.dart View 1 7 chunks +12 lines, -18 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sra1
Judging by the first diff in ssa/codegen.dart, you agree with this change :-) Ultimately, namer.isolateAccess ...
6 years, 8 months ago (2014-04-26 17:32:15 UTC) #1
floitsch
LGTM. https://chromiumcodereview.appspot.com/255843005/diff/80001/sdk/lib/_internal/compiler/implementation/js/nodes.dart File sdk/lib/_internal/compiler/implementation/js/nodes.dart (right): https://chromiumcodereview.appspot.com/255843005/diff/80001/sdk/lib/_internal/compiler/implementation/js/nodes.dart#newcode706 sdk/lib/_internal/compiler/implementation/js/nodes.dart:706: static RegExp _identiferOrOperatorRE = identifierOrOperatorRE (missing "i") https://chromiumcodereview.appspot.com/255843005/diff/80001/sdk/lib/_internal/compiler/implementation/js/nodes.dart#newcode707 ...
6 years, 7 months ago (2014-04-28 14:17:50 UTC) #2
sra1
https://chromiumcodereview.appspot.com/255843005/diff/80001/sdk/lib/_internal/compiler/implementation/js/nodes.dart File sdk/lib/_internal/compiler/implementation/js/nodes.dart (right): https://chromiumcodereview.appspot.com/255843005/diff/80001/sdk/lib/_internal/compiler/implementation/js/nodes.dart#newcode706 sdk/lib/_internal/compiler/implementation/js/nodes.dart:706: static RegExp _identiferOrOperatorRE = On 2014/04/28 14:17:51, floitsch wrote: ...
6 years, 7 months ago (2014-04-28 23:00:41 UTC) #3
sra1
6 years, 7 months ago (2014-04-28 23:30:37 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r35508 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698