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

Issue 1404183002: Add support for 'dart.library.X' environment variables in dart2js. (Closed)

Created:
5 years, 2 months ago by floitsch
Modified:
4 years, 11 months ago
CC:
reviews_dartlang.org, sigurdm
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Fix comment. #

Patch Set 3 : Add more tests. #

Total comments: 3

Patch Set 4 : Add test. #

Total comments: 2

Patch Set 5 : Merge with master #

Patch Set 6 : Use sdkLibraries. #

Total comments: 2

Patch Set 7 : Refactor code. #

Total comments: 2

Patch Set 8 : Avoid 2nd lookup if the key is in the map. #

Patch Set 9 : Upload after revert and rebase. #

Patch Set 10 : Adapt test. #

Total comments: 2

Patch Set 11 : Remove import. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -1 line) Patch
M pkg/compiler/lib/src/apiimpl.dart View 1 2 3 4 5 6 7 2 chunks +28 lines, -1 line 0 comments Download
A tests/compiler/dart2js/library_env_test.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +152 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
A tests/language/library_env_test.dart View 1 2 1 chunk +87 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
floitsch
I still need to write up the DEP before committing.
5 years, 2 months ago (2015-10-14 16:11:39 UTC) #2
Johnni Winther
lgtm https://codereview.chromium.org/1404183002/diff/40001/tests/language/library_env_test.dart File tests/language/library_env_test.dart (right): https://codereview.chromium.org/1404183002/diff/40001/tests/language/library_env_test.dart#newcode1 tests/language/library_env_test.dart:1: // Copyright (c) 2015, the Dart project authors. ...
5 years, 2 months ago (2015-10-16 09:34:31 UTC) #3
floitsch
PTAL (just the new test). https://codereview.chromium.org/1404183002/diff/40001/tests/language/library_env_test.dart File tests/language/library_env_test.dart (right): https://codereview.chromium.org/1404183002/diff/40001/tests/language/library_env_test.dart#newcode1 tests/language/library_env_test.dart:1: // Copyright (c) 2015, ...
5 years, 2 months ago (2015-10-16 19:05:07 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/1404183002/diff/60001/pkg/compiler/lib/src/apiimpl.dart File pkg/compiler/lib/src/apiimpl.dart (right): https://codereview.chromium.org/1404183002/diff/60001/pkg/compiler/lib/src/apiimpl.dart#newcode573 pkg/compiler/lib/src/apiimpl.dart:573: } How do environment lookups at runtime ("new String.fromEnvironment(..)") ...
5 years, 2 months ago (2015-10-18 11:45:54 UTC) #6
sigurdm
https://codereview.chromium.org/1404183002/diff/40001/pkg/compiler/lib/src/apiimpl.dart File pkg/compiler/lib/src/apiimpl.dart (right): https://codereview.chromium.org/1404183002/diff/40001/pkg/compiler/lib/src/apiimpl.dart#newcode44 pkg/compiler/lib/src/apiimpl.dart:44: /// this prefix and the name (without the 'dart:'. ...
5 years, 2 months ago (2015-10-19 07:26:26 UTC) #8
Johnni Winther
lgtm https://codereview.chromium.org/1404183002/diff/60001/pkg/compiler/lib/src/apiimpl.dart File pkg/compiler/lib/src/apiimpl.dart (right): https://codereview.chromium.org/1404183002/diff/60001/pkg/compiler/lib/src/apiimpl.dart#newcode573 pkg/compiler/lib/src/apiimpl.dart:573: } On 2015/10/18 11:45:54, Lasse Reichstein Nielsen wrote: ...
5 years, 2 months ago (2015-10-19 08:07:56 UTC) #9
floitsch
Merged with master and switched to using sdkLibraries. PTAL.
4 years, 11 months ago (2016-01-07 19:09:03 UTC) #10
sigurdm
LGTM https://codereview.chromium.org/1404183002/diff/100001/pkg/compiler/lib/src/apiimpl.dart File pkg/compiler/lib/src/apiimpl.dart (right): https://codereview.chromium.org/1404183002/diff/100001/pkg/compiler/lib/src/apiimpl.dart#newcode595 pkg/compiler/lib/src/apiimpl.dart:595: if (result == null && !environment.containsKey(name) && The ...
4 years, 11 months ago (2016-01-08 09:45:11 UTC) #11
floitsch
https://codereview.chromium.org/1404183002/diff/100001/pkg/compiler/lib/src/apiimpl.dart File pkg/compiler/lib/src/apiimpl.dart (right): https://codereview.chromium.org/1404183002/diff/100001/pkg/compiler/lib/src/apiimpl.dart#newcode595 pkg/compiler/lib/src/apiimpl.dart:595: if (result == null && !environment.containsKey(name) && On 2016/01/08 ...
4 years, 11 months ago (2016-01-08 15:51:01 UTC) #12
Lasse Reichstein Nielsen
https://codereview.chromium.org/1404183002/diff/120001/pkg/compiler/lib/src/apiimpl.dart File pkg/compiler/lib/src/apiimpl.dart (right): https://codereview.chromium.org/1404183002/diff/120001/pkg/compiler/lib/src/apiimpl.dart#newcode595 pkg/compiler/lib/src/apiimpl.dart:595: if (environment.containsKey(name)) return environment[name]; Could this be: String result ...
4 years, 11 months ago (2016-01-11 13:58:36 UTC) #13
floitsch
https://codereview.chromium.org/1404183002/diff/120001/pkg/compiler/lib/src/apiimpl.dart File pkg/compiler/lib/src/apiimpl.dart (right): https://codereview.chromium.org/1404183002/diff/120001/pkg/compiler/lib/src/apiimpl.dart#newcode595 pkg/compiler/lib/src/apiimpl.dart:595: if (environment.containsKey(name)) return environment[name]; On 2016/01/11 13:58:35, Lasse Reichstein ...
4 years, 11 months ago (2016-01-11 14:18:29 UTC) #14
floitsch
Updated so that it avoids the second lookup if the key is found.
4 years, 11 months ago (2016-01-11 20:32:00 UTC) #15
floitsch
Committed patchset #8 (id:140001) manually as 369899c8ffca28f28a1af3cc323d1111c1a4a48a (presubmit successful).
4 years, 11 months ago (2016-01-12 12:58:54 UTC) #17
floitsch
I had to revert and adapt the test. PTAL (especially at the test).
4 years, 11 months ago (2016-01-12 16:16:40 UTC) #19
sigurdm
LGTM https://codereview.chromium.org/1404183002/diff/180001/tests/compiler/dart2js/library_env_test.dart File tests/compiler/dart2js/library_env_test.dart (right): https://codereview.chromium.org/1404183002/diff/180001/tests/compiler/dart2js/library_env_test.dart#newcode30 tests/compiler/dart2js/library_env_test.dart:30: DART2JS_PLATFORM, Import no longer needed
4 years, 11 months ago (2016-01-13 13:00:48 UTC) #20
floitsch
https://codereview.chromium.org/1404183002/diff/180001/tests/compiler/dart2js/library_env_test.dart File tests/compiler/dart2js/library_env_test.dart (right): https://codereview.chromium.org/1404183002/diff/180001/tests/compiler/dart2js/library_env_test.dart#newcode30 tests/compiler/dart2js/library_env_test.dart:30: DART2JS_PLATFORM, On 2016/01/13 13:00:48, sigurdm wrote: > Import no ...
4 years, 11 months ago (2016-01-13 15:34:33 UTC) #21
floitsch
4 years, 11 months ago (2016-01-13 15:34:51 UTC) #23
Message was sent while issue was closed.
Committed patchset #11 (id:200001) manually as
e775fa093207913f0fea911842c3840b065ead93 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698