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

Issue 9810027: Allow constant folding of && and ||. (Closed)

Created:
8 years, 9 months ago by karlklose
Modified:
8 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Allow constant folding of && and ||. Committed: https://code.google.com/p/dart/source/detail?r=5865

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Address comment. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -1 line) Patch
M frog/leg/compile_time_constants.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M frog/leg/operations.dart View 1 1 chunk +25 lines, -0 lines 2 comments Download
M tests/co19/co19-leg.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
karlklose
8 years, 9 months ago (2012-03-26 13:14:25 UTC) #1
ngeoffray
looks good, but http://codereview.chromium.org/9810027/diff/4001/frog/leg/operations.dart File frog/leg/operations.dart (right): http://codereview.chromium.org/9810027/diff/4001/frog/leg/operations.dart#newcode115 frog/leg/operations.dart:115: if (resultValue === null) return null; ...
8 years, 9 months ago (2012-03-26 13:19:09 UTC) #2
karlklose
http://codereview.chromium.org/9810027/diff/4001/frog/leg/operations.dart File frog/leg/operations.dart (right): http://codereview.chromium.org/9810027/diff/4001/frog/leg/operations.dart#newcode115 frog/leg/operations.dart:115: if (resultValue === null) return null; Not in the ...
8 years, 9 months ago (2012-03-26 13:24:52 UTC) #3
floitsch
LGTM.
8 years, 9 months ago (2012-03-26 18:00:13 UTC) #4
karlklose
Thanks, Nicolas and Florian.
8 years, 9 months ago (2012-03-27 07:25:10 UTC) #5
Lasse Reichstein Nielsen
dbc http://codereview.chromium.org/9810027/diff/5005/frog/leg/operations.dart File frog/leg/operations.dart (right): http://codereview.chromium.org/9810027/diff/5005/frog/leg/operations.dart#newcode110 frog/leg/operations.dart:110: Constant fold(Constant left, Constant right) { This seems ...
8 years, 9 months ago (2012-03-27 07:48:53 UTC) #6
karlklose
8 years, 9 months ago (2012-03-27 07:58:26 UTC) #7
I don't think that I am allowed to do any more for compile time constants.

Powered by Google App Engine
This is Rietveld 408576698