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

Issue 10970015: Throw an exception when invalid source file location is encountered. (Closed)

Created:
8 years, 3 months ago by podivilov
Modified:
8 years, 2 months ago
Reviewers:
ahe, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Throw an exception when invalid source file location is encountered. Currently, compiler is crashed in SourceMapBuilder with unhelpful stack trace. Throwing an exception in ssa builder will help us to fix crashes that occur in the wild. R=ahe@google.com,kasperl@google.com BUG=5184 Committed: https://code.google.com/p/dart/source/detail?r=12765

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -10 lines) Patch
M lib/compiler/implementation/source_map_builder.dart View 2 chunks +3 lines, -1 line 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 3 chunks +21 lines, -9 lines 0 comments Download
M lib/compiler/implementation/warnings.dart View 1 chunk +5 lines, -0 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
podivilov
ping
8 years, 2 months ago (2012-09-24 07:56:35 UTC) #1
ahe
LGTM! http://codereview.chromium.org/10970015/diff/1/lib/compiler/implementation/warnings.dart File lib/compiler/implementation/warnings.dart (right): http://codereview.chromium.org/10970015/diff/1/lib/compiler/implementation/warnings.dart#newcode258 lib/compiler/implementation/warnings.dart:258: static const INVALID_SOURCE_FILE_LOCATION = const MessageKind(''' Please add ...
8 years, 2 months ago (2012-09-24 08:54:18 UTC) #2
podivilov
8 years, 2 months ago (2012-09-24 09:44:01 UTC) #3
http://codereview.chromium.org/10970015/diff/1/lib/compiler/implementation/wa...
File lib/compiler/implementation/warnings.dart (right):

http://codereview.chromium.org/10970015/diff/1/lib/compiler/implementation/wa...
lib/compiler/implementation/warnings.dart:258: static const
INVALID_SOURCE_FILE_LOCATION = const MessageKind('''
On 2012/09/24 08:54:18, ahe wrote:
> Please add this above COMPILER_CRASHED.

Done.

Powered by Google App Engine
This is Rietveld 408576698