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

Issue 8287001: Add a command-line option for generating source maps. (Closed)

Created:
9 years, 2 months ago by John Lenz
Modified:
9 years, 2 months ago
Reviewers:
mmendez, zundel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add a command-line option for generating source maps. Committed: https://code.google.com/p/dart/source/detail?r=486

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -45 lines) Patch
M compiler/java/com/google/dart/compiler/CommandLineOptions.java View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/backend/js/AbstractJsBackend.java View 1 2 4 chunks +7 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/backend/js/ClosureJsBackend.java View 1 2 9 chunks +21 lines, -25 lines 2 comments Download
M compiler/java/com/google/dart/runner/DartRunner.java View 1 2 1 chunk +18 lines, -16 lines 2 comments Download
M compiler/javatests/com/google/dart/compiler/CompilerTestCase.java View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/common/GenerateSourceMapTest.java View 1 2 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
John Lenz
9 years, 2 months ago (2011-10-13 20:52:47 UTC) #1
John Lenz
On 2011/10/13 20:52:47, John Lenz wrote: ping
9 years, 2 months ago (2011-10-14 15:00:32 UTC) #2
John Lenz
On 2011/10/14 15:00:32, John Lenz wrote: > On 2011/10/13 20:52:47, John Lenz wrote: > > ...
9 years, 2 months ago (2011-10-17 16:11:15 UTC) #3
zundel
http://codereview.chromium.org/8287001/diff/3001/compiler/java/com/google/dart/compiler/CommandLineOptions.java File compiler/java/com/google/dart/compiler/CommandLineOptions.java (right): http://codereview.chromium.org/8287001/diff/3001/compiler/java/com/google/dart/compiler/CommandLineOptions.java#newcode69 compiler/java/com/google/dart/compiler/CommandLineOptions.java:69: @Option(name = "--generate-source-maps", vm uses underscores instead of dashes ...
9 years, 2 months ago (2011-10-17 17:28:46 UTC) #4
John Lenz
http://codereview.chromium.org/8287001/diff/3001/compiler/java/com/google/dart/compiler/CommandLineOptions.java File compiler/java/com/google/dart/compiler/CommandLineOptions.java (right): http://codereview.chromium.org/8287001/diff/3001/compiler/java/com/google/dart/compiler/CommandLineOptions.java#newcode69 compiler/java/com/google/dart/compiler/CommandLineOptions.java:69: @Option(name = "--generate-source-maps", On 2011/10/17 17:28:46, zundel wrote: > ...
9 years, 2 months ago (2011-10-17 18:38:35 UTC) #5
zundel
lgtm
9 years, 2 months ago (2011-10-17 19:05:24 UTC) #6
mmendez
LGTM - lets have people opt in if they want source maps. http://codereview.chromium.org/8287001/diff/6002/compiler/java/com/google/dart/compiler/backend/js/ClosureJsBackend.java File compiler/java/com/google/dart/compiler/backend/js/ClosureJsBackend.java ...
9 years, 2 months ago (2011-10-17 19:34:24 UTC) #7
John Lenz
9 years, 2 months ago (2011-10-17 20:06:29 UTC) #8
http://codereview.chromium.org/8287001/diff/6002/compiler/java/com/google/dar...
File compiler/java/com/google/dart/compiler/backend/js/ClosureJsBackend.java
(right):

http://codereview.chromium.org/8287001/diff/6002/compiler/java/com/google/dar...
compiler/java/com/google/dart/compiler/backend/js/ClosureJsBackend.java:435: if
(this.generateSourceMap(context)) {
On 2011/10/17 19:34:24, mmendez wrote:
> Nit: don't need this qualifier.

Done.

http://codereview.chromium.org/8287001/diff/6002/compiler/java/com/google/dar...
File compiler/java/com/google/dart/runner/DartRunner.java (right):

http://codereview.chromium.org/8287001/diff/6002/compiler/java/com/google/dar...
compiler/java/com/google/dart/runner/DartRunner.java:377: Reader mr =
provider.getArtifactReader(app, "", backend.getSourceMapExtension());
On 2011/10/17 19:34:24, mmendez wrote:
> This follows the existing pattern but, CharStreams.toString can throw in which
> case we'd leak the reader.  Probably only an issue if running in batch mode.
> 
> Feel free to address in a separate CL if that is easier.

Easy change. Done.

Powered by Google App Engine
This is Rietveld 408576698