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

Issue 2932513003: Add getTarget method to CompilerCommandLine (Closed)

Created:
3 years, 6 months ago by Dmitry Stefantsov
Modified:
3 years, 6 months ago
Reviewers:
ahe, scheglov
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com, Kevin Millikin (Google)
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add getTarget method to CompilerCommandLine The method is used to create an instance of a backend target class. CompilerCommandLine already has the necessary information for this ("target" name string and "strongMode" flag). Additionally, a backed target instance is now not created in fasta.dart/parseScriptInFileSystem, but should be passed at the call site. R=ahe@google.com, scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/aa8ca9244a3cc5fa7c3816a9340558e7d2f37ae1

Patch Set 1 #

Total comments: 8

Patch Set 2 : Cache backend target eagerly during verification #

Total comments: 2

Patch Set 3 : Fix typo in error message #

Patch Set 4 : Adjust CL to the changes in "master" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -30 lines) Patch
M pkg/front_end/lib/src/fasta/compile_platform.dart View 1 2 chunks +2 lines, -7 lines 0 comments Download
M pkg/front_end/lib/src/fasta/compiler_command_line.dart View 1 2 3 chunks +16 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/fasta.dart View 1 6 chunks +16 lines, -19 lines 0 comments Download
M pkg/front_end/lib/src/fasta/vm.dart View 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Dmitry Stefantsov
3 years, 6 months ago (2017-06-08 13:27:57 UTC) #2
ahe
LGTM with comments! https://codereview.chromium.org/2932513003/diff/1/pkg/front_end/lib/src/fasta/compiler_command_line.dart File pkg/front_end/lib/src/fasta/compiler_command_line.dart (right): https://codereview.chromium.org/2932513003/diff/1/pkg/front_end/lib/src/fasta/compiler_command_line.dart#newcode66 pkg/front_end/lib/src/fasta/compiler_command_line.dart:66: } Suggestion: backend_targets.Target target = backend_targets.getTarget( ...
3 years, 6 months ago (2017-06-08 14:49:37 UTC) #3
scheglov
lgtm
3 years, 6 months ago (2017-06-08 18:47:24 UTC) #4
Dmitry Stefantsov
Thanks for the comments, Peter! I agree with them and applied the changes. https://codereview.chromium.org/2932513003/diff/1/pkg/front_end/lib/src/fasta/compiler_command_line.dart File ...
3 years, 6 months ago (2017-06-09 08:24:40 UTC) #5
ahe
lgtm One small typo below. https://codereview.chromium.org/2932513003/diff/20001/pkg/front_end/lib/src/fasta/compiler_command_line.dart File pkg/front_end/lib/src/fasta/compiler_command_line.dart (right): https://codereview.chromium.org/2932513003/diff/20001/pkg/front_end/lib/src/fasta/compiler_command_line.dart#newcode72 pkg/front_end/lib/src/fasta/compiler_command_line.dart:72: "Target '${targetName} not recognized. ...
3 years, 6 months ago (2017-06-09 08:29:18 UTC) #6
Dmitry Stefantsov
https://codereview.chromium.org/2932513003/diff/20001/pkg/front_end/lib/src/fasta/compiler_command_line.dart File pkg/front_end/lib/src/fasta/compiler_command_line.dart (right): https://codereview.chromium.org/2932513003/diff/20001/pkg/front_end/lib/src/fasta/compiler_command_line.dart#newcode72 pkg/front_end/lib/src/fasta/compiler_command_line.dart:72: "Target '${targetName} not recognized. " On 2017/06/09 08:29:18, ahe ...
3 years, 6 months ago (2017-06-09 08:37:04 UTC) #7
Dmitry Stefantsov
3 years, 6 months ago (2017-06-09 09:04:54 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
aa8ca9244a3cc5fa7c3816a9340558e7d2f37ae1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698