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

Issue 1437373002: dart2js cps: Add CharCodeAt builtin. (Closed)

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

Description

dart2js cps: Add CharCodeAt builtin. 1. String.codeUnitAt is lowered to a bounds check and a CharCodeAt. 2. Constant-fold String.codeUnitAt. R=asgerf@google.com Committed: https://github.com/dart-lang/sdk/commit/9b580e5e1086243d291bf8c097bfe878e947b994 Reverted: https://github.com/dart-lang/sdk/commit/6db18cbbd8a68abe1b42715110943cc4f2c65190 Investigating: tools/test.py -mrelease -cdart2js -rd8 --cps-ir language/invocation_mirror_invoke_on2_test Committed: https://github.com/dart-lang/sdk/commit/17c9c97705c4d73dfb9fa0a9c42afed1df204cb6

Patch Set 1 : #

Patch Set 2 : rebase #

Patch Set 3 : Add test #

Patch Set 4 : rebase #

Total comments: 2

Patch Set 5 : base for fix #

Patch Set 6 : suppress error revealed by optimization #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -11 lines) Patch
M pkg/compiler/lib/src/common/names.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/cps_ir/builtin_operator.dart View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/type_propagation.dart View 1 2 3 4 4 chunks +49 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/codegen.dart View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/types/type_mask.dart View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A tests/compiler/dart2js/js_backend_cps_ir_codeUnitAt_test.dart View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
sra1
5 years, 1 month ago (2015-11-18 23:40:48 UTC) #3
asgerf
lgtm
5 years, 1 month ago (2015-11-19 08:50:05 UTC) #4
sra1
https://codereview.chromium.org/1437373002/diff/80001/pkg/compiler/lib/src/cps_ir/builtin_operator.dart File pkg/compiler/lib/src/cps_ir/builtin_operator.dart (right): https://codereview.chromium.org/1437373002/diff/80001/pkg/compiler/lib/src/cps_ir/builtin_operator.dart#newcode75 pkg/compiler/lib/src/cps_ir/builtin_operator.dart:75: CharCodeAt, Question: will GVN hoist this above the bounds ...
5 years, 1 month ago (2015-11-23 20:39:32 UTC) #5
asgerf
https://codereview.chromium.org/1437373002/diff/80001/pkg/compiler/lib/src/cps_ir/builtin_operator.dart File pkg/compiler/lib/src/cps_ir/builtin_operator.dart (right): https://codereview.chromium.org/1437373002/diff/80001/pkg/compiler/lib/src/cps_ir/builtin_operator.dart#newcode75 pkg/compiler/lib/src/cps_ir/builtin_operator.dart:75: CharCodeAt, On 2015/11/23 20:39:32, sra1 wrote: > Question: will ...
5 years ago (2015-11-24 11:28:31 UTC) #6
sra1
Committed patchset #4 (id:80001) manually as 9b580e5e1086243d291bf8c097bfe878e947b994 (presubmit successful).
5 years ago (2015-11-25 23:20:47 UTC) #8
sra1
5 years ago (2015-11-27 21:40:25 UTC) #11
Message was sent while issue was closed.
Committed patchset #7 (id:140001) manually as
17c9c97705c4d73dfb9fa0a9c42afed1df204cb6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698