Chromium Code Reviews
DescriptionInline native String.charCodeAt in optimized code and fix a bounds-check bug.
Introduce a new IL instruction that does charCodeAt from
1- and 2-byte character strings. The existing CheckArrayBound
instructions is extended to be used for string bounds checking.
Also fix a bug with a missing compile-time bounds-check on constant
arrays.
TEST=tests/language/optimized_string_charcodeat.dart,
tests/language/optimized_constant_array_string_access.dart
Committed: https://code.google.com/p/dart/source/detail?r=14441
Patch Set 1 #Patch Set 2 : added test and fixed typo bug for 2-byte strings #Patch Set 3 : fixed a bug in indexed ops and added more tests #
Total comments: 8
Patch Set 4 : addressed comments #
Messages
Total messages: 3 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||