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

Issue 2265073002: Handle unicode correctly in CallPrinter (Closed)

Created:
4 years, 4 months ago by jgruber
Modified:
4 years, 4 months ago
Reviewers:
Toon Verwaest
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Handle unicode correctly in CallPrinter CallPrinter currently has only a single use, namely to print the call site when throwing CalledNonCallable (ConstructedNonConstructable) errors. This ensures that unicode call sites such as "あいう"() are printed correctly by using an IncrementalStringBuilder internally. BUG=637167 Committed: https://crrev.com/a89639e79c77c2276fb20f150a7bdddcf6d572d6 Cr-Commit-Position: refs/heads/master@{#38790}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -86 lines) Patch
M src/ast/prettyprinter.h View 1 4 chunks +11 lines, -12 lines 0 comments Download
M src/ast/prettyprinter.cc View 1 11 chunks +42 lines, -70 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
jgruber
An alternative solution would be to get rid of CallPrinter entirely, and print the source ...
4 years, 4 months ago (2016-08-22 13:46:45 UTC) #4
Toon Verwaest
lgtm with comment https://codereview.chromium.org/2265073002/diff/1/src/ast/prettyprinter.cc File src/ast/prettyprinter.cc (right): https://codereview.chromium.org/2265073002/diff/1/src/ast/prettyprinter.cc#newcode405 src/ast/prettyprinter.cc:405: void CallPrinter::PrintLiteral(Object* value, bool quote) { ...
4 years, 4 months ago (2016-08-22 14:23:12 UTC) #5
jgruber
https://codereview.chromium.org/2265073002/diff/1/src/ast/prettyprinter.cc File src/ast/prettyprinter.cc (right): https://codereview.chromium.org/2265073002/diff/1/src/ast/prettyprinter.cc#newcode405 src/ast/prettyprinter.cc:405: void CallPrinter::PrintLiteral(Object* value, bool quote) { On 2016/08/22 14:23:12, ...
4 years, 4 months ago (2016-08-22 14:43:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2265073002/20001
4 years, 4 months ago (2016-08-22 14:46:36 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-22 15:13:12 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 15:13:22 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a89639e79c77c2276fb20f150a7bdddcf6d572d6
Cr-Commit-Position: refs/heads/master@{#38790}

Powered by Google App Engine
This is Rietveld 408576698