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

Issue 9462001: Unify most of our utf8 implementations. This takes the implementation (Closed)

Created:
8 years, 10 months ago by dgrove
Modified:
8 years, 9 months ago
Reviewers:
dcarlson, ahe, Ivan Posva
CC:
reviews_dartlang.org, Dan Rice
Visibility:
Public.

Description

Unify most of our utf8 implementations. This takes the implementation from utils/string_encoding and moves it to utils/utf . utils/utf8 goes away. Committed: https://code.google.com/p/dart/source/detail?r=5169

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 6

Patch Set 10 : '' #

Total comments: 4

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+464 lines, -1965 lines) Patch
M frog/file_system_vm.dart View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M frog/leg/scanner/node_scanner_bench.dart View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M frog/leg/scanner/source_list.dart View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -2 lines 0 comments Download
M frog/leg/scanner/vm_scanner_bench.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M frog/leg/tools/mini_parser.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M frog/server/frog_server.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
D frog/server/utf8.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -144 lines 0 comments Download
M frog/tests/leg/src/ScannerTest.dart View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
D lib/utf/unicode.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -37 lines 0 comments Download
D lib/utf/unicode_core.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -240 lines 0 comments Download
A + lib/utf/utf.dart View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -33 lines 0 comments Download
M + lib/utf/utf16.dart View 1 2 3 4 5 6 7 8 5 chunks +6 lines, -9 lines 0 comments Download
M + lib/utf/utf32.dart View 1 2 3 4 5 4 chunks +5 lines, -9 lines 0 comments Download
M + lib/utf/utf8.dart View 1 2 3 4 5 6 1 chunk +257 lines, -4 lines 0 comments Download
A + lib/utf/utf_core.dart View 1 2 3 4 5 6 7 8 8 chunks +50 lines, -20 lines 0 comments Download
A lib/utf/utf_vm.dart View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
D lib/utf8/utf8.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -81 lines 0 comments Download
M runtime/bin/bin.gypi View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +11 lines, -11 lines 0 comments Download
M runtime/bin/builtin.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/bin/builtin.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -5 lines 0 comments Download
M runtime/bin/builtin_nolib.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/dartutils.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/main.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
D runtime/bin/utf8_sources.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -10 lines 0 comments Download
A + runtime/bin/utf_sources.gypi View 1 2 3 4 5 1 chunk +11 lines, -2 lines 0 comments Download
M tools/create_sdk.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -4 lines 0 comments Download
D utils/string_encoding/unicode.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -37 lines 0 comments Download
D utils/string_encoding/unicode_core.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -240 lines 0 comments Download
D utils/string_encoding/utf16.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -355 lines 0 comments Download
D utils/string_encoding/utf32.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -322 lines 0 comments Download
D utils/string_encoding/utf8.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -8 lines 0 comments Download
D utils/string_encoding/utf8_impl.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -261 lines 0 comments Download
M utils/tests/string_encoding/unicode_tests.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/string_encoding/utf8_benchmarks.dart View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -33 lines 0 comments Download
M utils/tests/string_encoding/utf8_tests.dart View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +74 lines, -76 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
dgrove
Peter - for now, please take a look at the frog pieces. I'm still trying ...
8 years, 10 months ago (2012-02-24 04:38:24 UTC) #1
dgrove
I needed to restructure the library a bit in order for the VM to be ...
8 years, 10 months ago (2012-02-24 19:50:09 UTC) #2
ahe
I don't see why the VM has a requirement that all libraries must be concatenated. ...
8 years, 10 months ago (2012-02-27 06:52:52 UTC) #3
Ivan Posva
https://chromiumcodereview.appspot.com/9462001/diff/14043/lib/utf/utf_core.dart File lib/utf/utf_core.dart (right): https://chromiumcodereview.appspot.com/9462001/diff/14043/lib/utf/utf_core.dart#newcode8 lib/utf/utf_core.dart:8: List<int> stringToCodepoints(String str) { Why are these functions exported ...
8 years, 10 months ago (2012-02-27 23:39:22 UTC) #4
Ivan Posva
For the record: All of the comments can be addressed in a different CL. The ...
8 years, 10 months ago (2012-02-27 23:43:32 UTC) #5
ahe
Frog changes look good, but please restore the explicit call to new String.fromCharCodes. LGTM https://chromiumcodereview.appspot.com/9462001/diff/17001/frog/file_system_vm.dart ...
8 years, 9 months ago (2012-02-29 13:23:02 UTC) #6
ahe
Oh, and... Thank you for cleaning this up, Dan! Cheers, Peter
8 years, 9 months ago (2012-02-29 13:24:07 UTC) #7
dgrove
https://chromiumcodereview.appspot.com/9462001/diff/17001/frog/file_system_vm.dart File frog/file_system_vm.dart (right): https://chromiumcodereview.appspot.com/9462001/diff/17001/frog/file_system_vm.dart#newcode25 frog/file_system_vm.dart:25: return decodeUtf8(buffer); decodeUtf8 returns a String, while string.fromCharCodes expects ...
8 years, 9 months ago (2012-03-02 12:34:29 UTC) #8
ahe
https://chromiumcodereview.appspot.com/9462001/diff/17001/frog/file_system_vm.dart File frog/file_system_vm.dart (right): https://chromiumcodereview.appspot.com/9462001/diff/17001/frog/file_system_vm.dart#newcode25 frog/file_system_vm.dart:25: return decodeUtf8(buffer); On 2012/03/02 12:34:30, dgrove wrote: > decodeUtf8 ...
8 years, 9 months ago (2012-03-05 12:55:53 UTC) #9
dgrove
Yes, this will work. But it's really ugly! We have decodeUTf8, which is designed to ...
8 years, 9 months ago (2012-03-05 13:07:42 UTC) #10
dgrove
OK :) https://chromiumcodereview.appspot.com/9462001/diff/17001/frog/file_system_vm.dart File frog/file_system_vm.dart (right): https://chromiumcodereview.appspot.com/9462001/diff/17001/frog/file_system_vm.dart#newcode25 frog/file_system_vm.dart:25: return decodeUtf8(buffer); On 2012/03/05 12:55:53, ahe wrote: ...
8 years, 9 months ago (2012-03-05 13:35:13 UTC) #11
dgrove
https://chromiumcodereview.appspot.com/9462001/diff/14043/lib/utf/utf_core.dart File lib/utf/utf_core.dart (right): https://chromiumcodereview.appspot.com/9462001/diff/14043/lib/utf/utf_core.dart#newcode8 lib/utf/utf_core.dart:8: List<int> stringToCodepoints(String str) { I will take care of ...
8 years, 9 months ago (2012-03-05 22:37:54 UTC) #12
dgrove
@dcarlson - any comments on this?
8 years, 9 months ago (2012-03-06 12:15:44 UTC) #13
dcarlson
https://chromiumcodereview.appspot.com/9462001/diff/14043/lib/utf/utf_core.dart File lib/utf/utf_core.dart (right): https://chromiumcodereview.appspot.com/9462001/diff/14043/lib/utf/utf_core.dart#newcode8 lib/utf/utf_core.dart:8: List<int> stringToCodepoints(String str) { I don't disagree. This change ...
8 years, 9 months ago (2012-03-06 15:50:01 UTC) #14
dgrove
https://chromiumcodereview.appspot.com/9462001/diff/14043/lib/utf/utf_core.dart File lib/utf/utf_core.dart (right): https://chromiumcodereview.appspot.com/9462001/diff/14043/lib/utf/utf_core.dart#newcode8 lib/utf/utf_core.dart:8: List<int> stringToCodepoints(String str) { Let's get this CL in, ...
8 years, 9 months ago (2012-03-06 15:51:40 UTC) #15
dgrove
8 years, 9 months ago (2012-03-07 21:23:49 UTC) #16
@dcarlson - is there anything more you need on this CL? (I'd love to get this
in)

On 2012/03/06 15:51:40, dgrove wrote:
>
https://chromiumcodereview.appspot.com/9462001/diff/14043/lib/utf/utf_core.dart
> File lib/utf/utf_core.dart (right):
> 
>
https://chromiumcodereview.appspot.com/9462001/diff/14043/lib/utf/utf_core.da...
> lib/utf/utf_core.dart:8: List<int> stringToCodepoints(String str) {
> Let's get this CL in, and then if you want to do this, that would be great.
> On 2012/03/06 15:50:01, dcarlson wrote:
> > I don't disagree. This change would simplify the UTF code and help us close
> > 1357.
> > 
> > What can I do to help? 
> >  
> > On 2012/02/27 23:39:22, Ivan Posva wrote:
> > > Why are these functions exported by the dart:utf library?
> > > 
> > > String.charCodes() and String.fromCharCodes() are supposed to handle this
> > > correctly. If there is some special handling needed in frog, then this
> should
> > be
> > > done in the frog library implementation of String?
> >

Powered by Google App Engine
This is Rietveld 408576698