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

Issue 1030063004: more care around generated names, fixes #60 #82 and #97 (Closed)

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

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1404 lines, -1237 lines) Patch
M lib/runtime/dart/_foreign_helper.js View 1 chunk +3 lines, -3 lines 0 comments Download
M lib/runtime/dart/_interceptors.js View 13 chunks +29 lines, -29 lines 0 comments Download
M lib/runtime/dart/_internal.js View 36 chunks +97 lines, -97 lines 2 comments Download
M lib/runtime/dart/_isolate_helper.js View 22 chunks +54 lines, -54 lines 0 comments Download
M lib/runtime/dart/_js_helper.js View 48 chunks +141 lines, -141 lines 0 comments Download
M lib/runtime/dart/_native_typed_data.js View 16 chunks +45 lines, -45 lines 0 comments Download
M lib/runtime/dart/async.js View 77 chunks +257 lines, -257 lines 0 comments Download
M lib/runtime/dart/collection.js View 57 chunks +151 lines, -151 lines 0 comments Download
M lib/runtime/dart/convert.js View 56 chunks +153 lines, -153 lines 0 comments Download
M lib/runtime/dart/core.js View 53 chunks +179 lines, -179 lines 0 comments Download
M lib/runtime/dart/isolate.js View 4 chunks +10 lines, -10 lines 0 comments Download
M lib/runtime/dart/typed_data.js View 1 chunk +2 lines, -2 lines 0 comments Download
M lib/src/codegen/js_codegen.dart View 26 chunks +92 lines, -72 lines 0 comments Download
A lib/src/codegen/js_names.dart View 1 chunk +81 lines, -0 lines 0 comments Download
M lib/src/js/js_ast.dart View 1 chunk +0 lines, -1 line 0 comments Download
M lib/src/js/printer.dart View 6 chunks +23 lines, -21 lines 0 comments Download
M test/codegen/expect/constructors.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/codegen/expect/methods.js View 1 chunk +4 lines, -4 lines 0 comments Download
A test/codegen/expect/names.js View 1 chunk +24 lines, -0 lines 0 comments Download
A test/codegen/expect/names.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/codegen/expect/server_mode/html_input.html View 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/sunflower/dom.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/codegen/expect/try_catch.js View 1 chunk +25 lines, -7 lines 0 comments Download
A + test/codegen/names.dart View 1 chunk +10 lines, -4 lines 0 comments Download
M test/codegen/try_catch.dart View 2 chunks +18 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Jennifer Messerly
5 years, 9 months ago (2015-03-26 21:53:44 UTC) #2
Jennifer Messerly
we still need to be careful to use the temporary, if we want the variable ...
5 years, 9 months ago (2015-03-26 21:55:50 UTC) #3
vsm
lgtm
5 years, 9 months ago (2015-03-27 00:19:53 UTC) #4
Jennifer Messerly
Committed patchset #1 (id:1) manually as e4524f18d0eb6d1ca61fd04678485f5d22a25a81 (presubmit successful).
5 years, 9 months ago (2015-03-27 00:47:35 UTC) #5
alexandre.ardhuin
https://codereview.chromium.org/1030063004/diff/1/lib/runtime/dart/_internal.js File lib/runtime/dart/_internal.js (right): https://codereview.chromium.org/1030063004/diff/1/lib/runtime/dart/_internal.js#newcode1663 lib/runtime/dart/_internal.js:1663: a.set(((x) => less = dart.notNull(x$) + 1, x$)(less), a.get(great)); ...
5 years, 9 months ago (2015-03-27 07:56:00 UTC) #7
Jennifer Messerly
5 years, 9 months ago (2015-03-27 14:27:22 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/1030063004/diff/1/lib/runtime/dart/_internal.js
File lib/runtime/dart/_internal.js (right):

https://codereview.chromium.org/1030063004/diff/1/lib/runtime/dart/_internal....
lib/runtime/dart/_internal.js:1663: a.set(((x) => less = dart.notNull(x$) + 1,
x$)(less), a.get(great));
On 2015/03/27 07:55:59, alexandre.ardhuin wrote:
> Shouldn't the parameter be `x$` instead of `x` ?
> 
> This happens in several places.

good catch! Missed one place we were sending the raw name straight to code.
Landed a fix.

Powered by Google App Engine
This is Rietveld 408576698