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

Issue 40583002: Incorporates feedback by Nicolas for UTF-8 bytes based scanner CL (Closed)

Created:
7 years, 2 months ago by lukas
Modified:
7 years, 1 month ago
Reviewers:
ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Incorporates feedback by Nicolas for UTF-8 bytes based scanner CL. R=ngeoffray@google.com Committed: https://code.google.com/p/dart/source/detail?r=29231 ----- https://chromiumcodereview.appspot.com/27510003/diff/28001/sdk/lib/_internal/compiler/implementation/scanner/scanner.dart#newcode166 /* Documentation in subclass [ArrayBasedScanner]. */ On 2013/10/18 10:19:37, ngeoffray wrote: > So do the following methods only apply to the ArrayBasedScanner? I just decided to put the documentation together with the actual implementation. Technically the implementations could go here, but Peter preferred to separate scanning code from token building code. ----- https://chromiumcodereview.appspot.com/27510003/diff/28001/sdk/lib/_internal/compiler/implementation/scanner/utf8_bytes_scanner.dart#newcode140 throw "Invalid UTF-8 byte sequence: ${bytes.sublist(startOffset, end)}"; On 2013/10/18 10:19:37, ngeoffray wrote: > Will users face this error? If yes, we should throw differently. That could only happen in a file with wrong UTF-8 encoding, in which case UTF8.decode would probably fail earlier. I could also just remove the check.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -77 lines) Patch
M sdk/lib/_internal/compiler/implementation/apiimpl.dart View 1 chunk +3 lines, -4 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 1 chunk +1 line, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/array_based_scanner.dart View 4 chunks +7 lines, -7 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/scanner.dart View 7 chunks +8 lines, -9 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/scanner_task.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/string_scanner.dart View 1 chunk +1 line, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/token.dart View 13 chunks +19 lines, -20 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/utf8_bytes_scanner.dart View 3 chunks +2 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/source_file.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 1 chunk +1 line, -2 lines 0 comments Download
M tests/compiler/dart2js/patch_test.dart View 1 chunk +3 lines, -6 lines 0 comments Download
M tests/compiler/dart2js/resolver_test.dart View 3 chunks +4 lines, -8 lines 0 comments Download
M tests/compiler/dart2js/type_checker_test.dart View 4 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
lukas
7 years, 2 months ago (2013-10-24 16:55:01 UTC) #1
ngeoffray
LGTM!
7 years, 1 month ago (2013-10-25 06:40:23 UTC) #2
lukas
7 years, 1 month ago (2013-10-25 07:09:59 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r29231 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698