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

Issue 558853004: Preserve the contents of Dart strings with unmatched surrogate halfs by avoiding a UTF16 -> UTF8 (Closed)

Created:
6 years, 3 months ago by rmacnak
Modified:
6 years, 3 months ago
Reviewers:
turnidge, koda, Cutch
CC:
reviews_dartlang.org, turnidge, Cutch, vm-dev_dartlang.org, koda
Visibility:
Public.

Description

Preserve the contents of Dart strings with unmatched surrogate halfs by avoiding a UTF16 -> UTF8 -> UTF16 conversion. Clean up some confusion between code points and code units. BUG=http://dartbug.com/20583 BUG=http://dartbug.com/20874 R=turnidge@google.com Committed: https://code.google.com/p/dart/source/detail?r=40174

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 9

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : build #

Patch Set 9 : sync and build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -227 lines) Patch
M runtime/bin/dbg_message.cc View 2 chunks +10 lines, -10 lines 0 comments Download
M runtime/bin/vmservice/observatory/deployed/web/index.html_bootstrap.dart.js View 1 2 3 4 5 6 7 18 chunks +27 lines, -23 lines 0 comments Download
M runtime/bin/vmservice/observatory/deployed/web/index_devtools.html_bootstrap.dart.js View 1 2 3 4 5 6 7 18 chunks +27 lines, -23 lines 0 comments Download
M runtime/bin/vmservice/observatory/lib/src/elements/observatory_element.dart View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/bin/vmservice/observatory/lib/src/service/object.dart View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/bin/vmservice/observatory/test/string_escaping_test.dart View 1 2 3 4 5 6 3 chunks +8 lines, -1 line 0 comments Download
M runtime/bin/vmservice/observatory/tests/ui/inspector.dart View 1 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/platform/json.h View 1 chunk +1 line, -2 lines 0 comments Download
M runtime/platform/json.cc View 1 2 3 4 5 4 chunks +20 lines, -45 lines 0 comments Download
M runtime/tests/vm/vm.status View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/json_stream.h View 1 2 3 4 5 3 chunks +7 lines, -3 lines 0 comments Download
M runtime/vm/json_stream.cc View 1 2 3 4 5 4 chunks +28 lines, -5 lines 0 comments Download
M runtime/vm/json_test.cc View 1 2 3 4 5 2 chunks +75 lines, -0 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -10 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 7 8 6 chunks +7 lines, -42 lines 0 comments Download
M runtime/vm/object_test.cc View 1 2 1 chunk +0 lines, -60 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
rmacnak
6 years, 3 months ago (2014-09-10 18:37:53 UTC) #2
turnidge
https://codereview.chromium.org/558853004/diff/80001/runtime/bin/vmservice/observatory/lib/src/elements/observatory_element.dart File runtime/bin/vmservice/observatory/lib/src/elements/observatory_element.dart (right): https://codereview.chromium.org/558853004/diff/80001/runtime/bin/vmservice/observatory/lib/src/elements/observatory_element.dart#newcode128 runtime/bin/vmservice/observatory/lib/src/elements/observatory_element.dart:128: else if (codeUnit < 10) result.addAll("\\u000$codeUnit".codeUnits); hex v. dec ...
6 years, 3 months ago (2014-09-10 19:55:28 UTC) #3
rmacnak
https://codereview.chromium.org/558853004/diff/80001/runtime/bin/vmservice/observatory/lib/src/elements/observatory_element.dart File runtime/bin/vmservice/observatory/lib/src/elements/observatory_element.dart (right): https://codereview.chromium.org/558853004/diff/80001/runtime/bin/vmservice/observatory/lib/src/elements/observatory_element.dart#newcode128 runtime/bin/vmservice/observatory/lib/src/elements/observatory_element.dart:128: else if (codeUnit < 10) result.addAll("\\u000$codeUnit".codeUnits); On 2014/09/10 19:55:28, ...
6 years, 3 months ago (2014-09-10 21:38:49 UTC) #4
koda
https://codereview.chromium.org/558853004/diff/80001/runtime/platform/json.cc File runtime/platform/json.cc (right): https://codereview.chromium.org/558853004/diff/80001/runtime/platform/json.cc#newcode553 runtime/platform/json.cc:553: // Write a UTF-16 code unit as Finish this ...
6 years, 3 months ago (2014-09-10 21:42:07 UTC) #6
rmacnak
https://codereview.chromium.org/558853004/diff/80001/runtime/platform/json.cc File runtime/platform/json.cc (right): https://codereview.chromium.org/558853004/diff/80001/runtime/platform/json.cc#newcode553 runtime/platform/json.cc:553: // Write a UTF-16 code unit as On 2014/09/10 ...
6 years, 3 months ago (2014-09-10 21:49:59 UTC) #7
turnidge
lgtm w/ a comment. Thanks for making this change. https://codereview.chromium.org/558853004/diff/100001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/558853004/diff/100001/runtime/vm/object.cc#newcode8528 runtime/vm/object.cc:8528: ...
6 years, 3 months ago (2014-09-11 16:35:12 UTC) #8
rmacnak
https://codereview.chromium.org/558853004/diff/100001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/558853004/diff/100001/runtime/vm/object.cc#newcode8528 runtime/vm/object.cc:8528: jsobj.AddPropertyStr("name", name, name.Length()); On 2014/09/11 16:35:12, turnidge wrote: > ...
6 years, 3 months ago (2014-09-11 17:57:54 UTC) #9
rmacnak
6 years, 3 months ago (2014-09-11 18:42:19 UTC) #10
Message was sent while issue was closed.
Committed patchset #9 (id:160001) manually as 40174 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698