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

Issue 9334007: Fix http://dartbug.com/1133: (Closed)

Created:
8 years, 10 months ago by Ivan Posva
Modified:
8 years, 10 months ago
Reviewers:
dgrove, hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix http://dartbug.com/1133: - Incrementally concat error messages to avoid hitting a maximum error message size. Committed: https://code.google.com/p/dart/source/detail?r=4135

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -58 lines) Patch
M vm/parser.h View 1 chunk +5 lines, -7 lines 0 comments Download
M vm/parser.cc View 1 1 chunk +57 lines, -51 lines 6 comments Download

Messages

Total messages: 3 (0 generated)
Ivan Posva
8 years, 10 months ago (2012-02-07 00:32:06 UTC) #1
hausner
LGTM https://chromiumcodereview.appspot.com/9334007/diff/3001/vm/parser.cc File vm/parser.cc (right): https://chromiumcodereview.appspot.com/9334007/diff/3001/vm/parser.cc#newcode5169 vm/parser.cc:5169: static RawString* FormatMessageHelper(const char* format, ...) { This ...
8 years, 10 months ago (2012-02-07 01:00:55 UTC) #2
Ivan Posva
8 years, 10 months ago (2012-02-07 04:09:55 UTC) #3
https://chromiumcodereview.appspot.com/9334007/diff/3001/vm/parser.cc
File vm/parser.cc (right):

https://chromiumcodereview.appspot.com/9334007/diff/3001/vm/parser.cc#newcode...
vm/parser.cc:5169: static RawString* FormatMessageHelper(const char* format,
...) {
On 2012/02/07 01:00:55, hausner wrote:
> This could be called Stringf(format, ...)   and the above VStringf(format,
args)
>  ;-)

Actually they might be generally useful factories on the String class. I will
move them to object.cc in a different CL.

https://chromiumcodereview.appspot.com/9334007/diff/3001/vm/parser.cc#newcode...
vm/parser.cc:5180: intptr_t token_index,
Bad indentation, will fix...

https://chromiumcodereview.appspot.com/9334007/diff/3001/vm/parser.cc#newcode...
vm/parser.cc:5197: msg_part = FormatMessageHelper(": %s: line %d pos %d: ",
On 2012/02/07 01:00:55, hausner wrote:
> Why not include the script name in this format string and use
> script_url.ToCString() as it was before your change?

Because the script_url could contain Unicode characters that we preserve the way
this is now.

Powered by Google App Engine
This is Rietveld 408576698