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

Issue 2400853003: dart2js: Constant fold num.round() (Closed)

Created:
4 years, 2 months ago by sra1
Modified:
4 years, 2 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 6

Patch Set 2 : address code review comments #

Patch Set 3 : baseline #

Patch Set 4 : Avoid hard cases #

Patch Set 5 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -18 lines) Patch
M pkg/compiler/lib/src/constant_system_dart.dart View 3 chunks +13 lines, -11 lines 0 comments Download
M pkg/compiler/lib/src/constants/constant_system.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/constant_system_javascript.dart View 1 2 3 4 2 chunks +40 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart View 1 4 chunks +30 lines, -6 lines 0 comments Download
A tests/compiler/dart2js_extra/round_constant_folding_test.dart View 1 1 chunk +167 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
sra1
This hits nearly 200 times in a customer app that uses DateTime a lot.
4 years, 2 months ago (2016-10-07 04:40:50 UTC) #4
sra1
This is an obvious improvement in light of the round() CL. A handful of improvements ...
4 years, 2 months ago (2016-10-07 06:09:34 UTC) #5
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/2400853003/diff/20001/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart File pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart (right): https://codereview.chromium.org/2400853003/diff/20001/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart#newcode778 pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart:778: if (receiver.isNumberOrNull(compiler)) { consider adding a small comment ...
4 years, 2 months ago (2016-10-07 14:47:18 UTC) #6
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2400853003/diff/20001/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart File pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart (right): https://codereview.chromium.org/2400853003/diff/20001/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart#newcode779 pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart:779: clearAllSideEffects(instruction); related question - is it safe to do ...
4 years, 2 months ago (2016-10-07 15:16:33 UTC) #7
sra1
https://codereview.chromium.org/2400853003/diff/20001/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart File pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart (right): https://codereview.chromium.org/2400853003/diff/20001/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart#newcode778 pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart:778: if (receiver.isNumberOrNull(compiler)) { On 2016/10/07 14:47:18, Siggi Cherem (dart-lang) ...
4 years, 2 months ago (2016-10-07 19:50:58 UTC) #8
sra1
Committed patchset #2 (id:40001) manually as 3d28d0841319243838f057309cee8171411ab028 (presubmit successful).
4 years, 2 months ago (2016-10-07 20:39:32 UTC) #10
sra1
4 years, 2 months ago (2016-10-08 01:23:06 UTC) #15
Message was sent while issue was closed.
Committed patchset #5 (id:140001) manually as
c91cbe1fc532a715e69fdb4933499e6c469a165c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698