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

Issue 2245323004: Make Uri._makeQuery easier to analyze (Closed)

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

Description

Make Uri._makeQuery easier to analyze In many programs dart2js can tell that [queryParameters] is always null. It is too hard for dart2js to infer from the previous conditions that the last test 'query != null' must always be true. By changing the liveness predicate for the forEach code to be a function of one variable, we can help dart2js understand that the forEach code is dead when queryParameters is null. BUG= R=lrn@google.com Committed: https://github.com/dart-lang/sdk/commit/1381749356ec1b4c0d0a75c7fe579639946b72c8

Patch Set 1 #

Total comments: 2

Patch Set 2 : nest ifs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M sdk/lib/core/uri.dart View 1 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
sra1
4 years, 4 months ago (2016-08-16 21:23:09 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/2245323004/diff/1/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/2245323004/diff/1/sdk/lib/core/uri.dart#newcode1388 sdk/lib/core/uri.dart:1388: if (query != null) return _normalize(query, start, end, _queryCharTable); ...
4 years, 4 months ago (2016-08-17 10:53:12 UTC) #3
Lasse Reichstein Nielsen
... but if you don't want to change it, what we have now isn't worse ...
4 years, 4 months ago (2016-08-17 10:53:51 UTC) #4
sra1
https://codereview.chromium.org/2245323004/diff/1/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/2245323004/diff/1/sdk/lib/core/uri.dart#newcode1388 sdk/lib/core/uri.dart:1388: if (query != null) return _normalize(query, start, end, _queryCharTable); ...
4 years, 4 months ago (2016-08-17 17:41:35 UTC) #5
sra1
4 years, 4 months ago (2016-08-17 17:45:23 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
1381749356ec1b4c0d0a75c7fe579639946b72c8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698