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

Issue 10801002: Add multibyte string support to debugger (Closed)

Created:
8 years, 5 months ago by hausner
Modified:
8 years, 5 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, Anton Muhin
Visibility:
Public.

Description

Add multibyte string support to debugger Issue 4110. Had to extend the JSON protocol to support code points > 0xffff. The debugger client (editor) needs to support this new escape sequence' format as well. Committed: https://code.google.com/p/dart/source/detail?r=9751

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -62 lines) Patch
M runtime/bin/dbg_connection.cc View 1 2 1 chunk +9 lines, -6 lines 0 comments Download
M runtime/platform/json.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M runtime/platform/json.cc View 1 2 4 chunks +95 lines, -53 lines 4 comments Download
M tools/ddbg.dart View 1 2 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
hausner
8 years, 5 months ago (2012-07-18 00:30:49 UTC) #1
siva
lgtm http://codereview.chromium.org/10801002/diff/3002/lib/json/json.dart File lib/json/json.dart (right): http://codereview.chromium.org/10801002/diff/3002/lib/json/json.dart#newcode300 lib/json/json.dart:300: // Non-standard 32 bit characters of format \UHHHHHHHH. ...
8 years, 5 months ago (2012-07-18 17:11:31 UTC) #2
hausner
PTAL. I eliminated the non-standard \UHHHHHHHH character encoding in JSON. I am encoding the JSON ...
8 years, 5 months ago (2012-07-18 22:20:35 UTC) #3
hausner
I turn the PTAL into a TBRA(gain) :-) Thanks!
8 years, 5 months ago (2012-07-18 23:28:49 UTC) #4
siva
lgtm http://codereview.chromium.org/10801002/diff/7002/runtime/platform/json.cc File runtime/platform/json.cc (right): http://codereview.chromium.org/10801002/diff/7002/runtime/platform/json.cc#newcode365 runtime/platform/json.cc:365: EnsureCapacity(sizeof(ch)); why do you have two calls to ...
8 years, 5 months ago (2012-07-18 23:52:24 UTC) #5
hausner
8 years, 5 months ago (2012-07-19 00:11:03 UTC) #6
Thanks!

http://codereview.chromium.org/10801002/diff/7002/runtime/platform/json.cc
File runtime/platform/json.cc (right):

http://codereview.chromium.org/10801002/diff/7002/runtime/platform/json.cc#ne...
runtime/platform/json.cc:365: EnsureCapacity(sizeof(ch));
On 2012/07/18 23:52:24, asiva wrote:
> why do you have two calls to EnsureCapacity, one here and one inside every if
> ...., isn't he one inside every if .. sufficient?
Oops, good catch. This is a left-over from a previous version.

http://codereview.chromium.org/10801002/diff/7002/runtime/platform/json.cc#ne...
runtime/platform/json.cc:465: intptr_t new_size = buf_size_ + len +
kBufferSpareCapacity;
On 2012/07/18 23:52:24, asiva wrote:
> you may want to check with Todd on this, he has been working on a set of
changes
> to guard against overflows in malloc/realloc sizes.

Filing a bug and adding a todo.

Powered by Google App Engine
This is Rietveld 408576698