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

Issue 48323003: Implement fromEnvironment on bool, int, String in dart2js. (Closed)

Created:
7 years, 1 month ago by ngeoffray
Modified:
7 years, 1 month ago
CC:
reviews_dartlang.org, bakster
Visibility:
Public.

Description

Implement fromEnvironment on bool, int, String in dart2js. R=johnniwinther@google.com, kasperl@google.com Committed: https://code.google.com/p/dart/source/detail?r=29675

Patch Set 1 : #

Total comments: 25

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 7

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -9 lines) Patch
M sdk/lib/_internal/compiler/compiler.dart View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/apiimpl.dart View 1 2 3 4 5 3 chunks +5 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/compile_time_constants.dart View 1 2 3 4 5 6 7 8 1 chunk +71 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/compiler.dart View 1 2 3 4 5 3 chunks +14 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart2js.dart View 1 2 3 4 5 5 chunks +13 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/inferrer/type_graph_nodes.dart View 1 2 3 4 5 6 2 chunks +13 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/warnings.dart View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M tests/corelib/corelib.status View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
ngeoffray
7 years, 1 month ago (2013-10-30 12:59:16 UTC) #1
ahe
DBC https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/dart2js.dart File sdk/lib/_internal/compiler/implementation/dart2js.dart (right): https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/dart2js.dart#newcode179 sdk/lib/_internal/compiler/implementation/dart2js.dart:179: Match m = new RegExp('^-D(.+)=(.+)').firstMatch(argument); Terminate with $. ...
7 years, 1 month ago (2013-10-30 13:03:08 UTC) #2
ngeoffray
+rico and martin for the test script change.
7 years, 1 month ago (2013-10-30 13:08:05 UTC) #3
Lasse Reichstein Nielsen
https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/dart2js.dart File sdk/lib/_internal/compiler/implementation/dart2js.dart (right): https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/dart2js.dart#newcode179 sdk/lib/_internal/compiler/implementation/dart2js.dart:179: Match m = new RegExp('^-D(.+)=(.+)').firstMatch(argument); Terminating isn't necessary. The ...
7 years, 1 month ago (2013-10-30 13:34:48 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/dart2js.dart File sdk/lib/_internal/compiler/implementation/dart2js.dart (right): https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/dart2js.dart#newcode179 sdk/lib/_internal/compiler/implementation/dart2js.dart:179: Match m = new RegExp('^-D(.+)=(.+)').firstMatch(argument); Terminating isn't necessary. The ...
7 years, 1 month ago (2013-10-30 13:34:48 UTC) #5
kasperl
https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode665 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:665: if (value == null) { Not sure I understand ...
7 years, 1 month ago (2013-10-30 13:35:24 UTC) #6
kustermann
https://codereview.chromium.org/48323003/diff/30001/tools/testing/dart/test_suite.dart File tools/testing/dart/test_suite.dart (right): https://codereview.chromium.org/48323003/diff/30001/tools/testing/dart/test_suite.dart#newcode777 tools/testing/dart/test_suite.dart:777: } If you do it here, do it for ...
7 years, 1 month ago (2013-10-30 13:49:06 UTC) #7
kasperl
https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/dart2js.dart File sdk/lib/_internal/compiler/implementation/dart2js.dart (right): https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/dart2js.dart#newcode183 sdk/lib/_internal/compiler/implementation/dart2js.dart:183: environment[name] = true; On 2013/10/30 13:34:48, Lasse Reichstein Nielsen ...
7 years, 1 month ago (2013-10-30 13:49:56 UTC) #8
ricow1
https://codereview.chromium.org/48323003/diff/30001/tools/testing/dart/test_suite.dart File tools/testing/dart/test_suite.dart (right): https://codereview.chromium.org/48323003/diff/30001/tools/testing/dart/test_suite.dart#newcode797 tools/testing/dart/test_suite.dart:797: args = new List.from(args); we may need to add ...
7 years, 1 month ago (2013-10-30 13:51:19 UTC) #9
Søren Gjesse
https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode665 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:665: if (value == null) { In the VM implementation ...
7 years, 1 month ago (2013-10-30 13:59:13 UTC) #10
ngeoffray
https://codereview.chromium.org/48323003/diff/30001/tools/testing/dart/test_suite.dart File tools/testing/dart/test_suite.dart (right): https://codereview.chromium.org/48323003/diff/30001/tools/testing/dart/test_suite.dart#newcode777 tools/testing/dart/test_suite.dart:777: } On 2013/10/30 13:49:07, kustermann wrote: > If you ...
7 years, 1 month ago (2013-10-30 14:39:48 UTC) #11
ngeoffray
Thanks for all the comments. PTAL. https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/48323003/diff/30001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode670 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:670: return arguments[1]; On ...
7 years, 1 month ago (2013-10-30 15:13:58 UTC) #12
Søren Gjesse
https://codereview.chromium.org/48323003/diff/240001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/48323003/diff/240001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode689 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:689: return (number == null) Re-reading the specification non-parseable integer ...
7 years, 1 month ago (2013-10-30 15:21:48 UTC) #13
Lasse Reichstein Nielsen
https://codereview.chromium.org/48323003/diff/240001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/48323003/diff/240001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode688 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:688: int number = int.parse(value, onError: (_) => null); It ...
7 years, 1 month ago (2013-10-31 06:58:19 UTC) #14
ngeoffray
https://codereview.chromium.org/48323003/diff/240001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/48323003/diff/240001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode688 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:688: int number = int.parse(value, onError: (_) => null); On ...
7 years, 1 month ago (2013-10-31 07:41:18 UTC) #15
Johnni Winther
lgtm
7 years, 1 month ago (2013-10-31 08:14:20 UTC) #16
kasperl
LGTM. https://codereview.chromium.org/48323003/diff/430001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/48323003/diff/430001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode693 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:693: return (value == 'true') return constantSystem.createBool(value == 'true'); ...
7 years, 1 month ago (2013-10-31 09:11:51 UTC) #17
ngeoffray
Thanks Kasper. https://codereview.chromium.org/48323003/diff/430001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/48323003/diff/430001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode693 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:693: return (value == 'true') On 2013/10/31 09:11:51, ...
7 years, 1 month ago (2013-10-31 09:32:23 UTC) #18
kasperl
https://codereview.chromium.org/48323003/diff/430001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/48323003/diff/430001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode693 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:693: return (value == 'true') On 2013/10/31 09:32:24, ngeoffray wrote: ...
7 years, 1 month ago (2013-10-31 12:33:05 UTC) #19
ngeoffray
https://codereview.chromium.org/48323003/diff/430001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/48323003/diff/430001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode693 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:693: return (value == 'true') On 2013/10/31 12:33:05, kasperl wrote: ...
7 years, 1 month ago (2013-10-31 12:53:17 UTC) #20
ngeoffray
7 years, 1 month ago (2013-10-31 14:41:56 UTC) #21
Message was sent while issue was closed.
Committed patchset #11 manually as r29675 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698