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

Issue 260713008: Add support for javascript incompatibility warnings. (Closed)

Created:
6 years, 7 months ago by regis
Modified:
6 years, 7 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add support for javascript incompatibility warnings (work in progress). For now, warnings are only issued when applicable for type tests, type casts, and toString. Fix newly reported lint errors. R=srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=36001

Patch Set 1 #

Patch Set 2 : #

Total comments: 22

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+601 lines, -61 lines) Patch
M runtime/lib/errors_patch.dart View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M runtime/lib/object.cc View 1 2 3 5 chunks +64 lines, -0 lines 0 comments Download
M runtime/vm/code_generator.cc View 1 2 3 4 chunks +27 lines, -6 lines 0 comments Download
M runtime/vm/compiler.cc View 1 2 3 4 chunks +35 lines, -18 lines 0 comments Download
M runtime/vm/exceptions.h View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M runtime/vm/exceptions.cc View 1 2 3 4 chunks +51 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_builder.h View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 6 chunks +74 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 4 chunks +10 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 3 5 chunks +31 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 chunks +7 lines, -1 line 0 comments Download
M runtime/vm/object.cc View 1 2 3 6 chunks +28 lines, -3 lines 0 comments Download
M runtime/vm/parser.h View 1 2 3 4 chunks +7 lines, -7 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 12 chunks +20 lines, -17 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 3 1 chunk +1 line, -0 lines 1 comment Download
M tests/standalone/issue14236_test.dart View 1 Binary file 0 comments Download
A tests/standalone/javascript_compatibility_errors_test.dart View 1 2 1 chunk +145 lines, -0 lines 0 comments Download
A tests/standalone/javascript_compatibility_warnings_test.dart View 1 2 1 chunk +68 lines, -0 lines 0 comments Download
M tests/standalone/standalone.status View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
regis
6 years, 7 months ago (2014-05-08 17:45:20 UTC) #1
srdjan
https://codereview.chromium.org/260713008/diff/20001/runtime/lib/errors_patch.dart File runtime/lib/errors_patch.dart (right): https://codereview.chromium.org/260713008/diff/20001/runtime/lib/errors_patch.dart#newcode342 runtime/lib/errors_patch.dart:342: String toString() => _msg; Maybe: "Javascript Compatibility Error: $_msg"; ...
6 years, 7 months ago (2014-05-08 18:11:05 UTC) #2
regis
Thanks! PTAL https://codereview.chromium.org/260713008/diff/20001/runtime/lib/errors_patch.dart File runtime/lib/errors_patch.dart (right): https://codereview.chromium.org/260713008/diff/20001/runtime/lib/errors_patch.dart#newcode342 runtime/lib/errors_patch.dart:342: String toString() => _msg; On 2014/05/08 18:11:05, ...
6 years, 7 months ago (2014-05-09 21:03:41 UTC) #3
srdjan
LGTM https://codereview.chromium.org/260713008/diff/40001/runtime/vm/exceptions.cc File runtime/vm/exceptions.cc (right): https://codereview.chromium.org/260713008/diff/40001/runtime/vm/exceptions.cc#newcode749 runtime/vm/exceptions.cc:749: bool Exceptions::MayCheckForJSWarning(const ICData& ic_data) { This method does ...
6 years, 7 months ago (2014-05-09 21:37:35 UTC) #4
regis
Thanks! https://codereview.chromium.org/260713008/diff/40001/runtime/vm/exceptions.cc File runtime/vm/exceptions.cc (right): https://codereview.chromium.org/260713008/diff/40001/runtime/vm/exceptions.cc#newcode749 runtime/vm/exceptions.cc:749: bool Exceptions::MayCheckForJSWarning(const ICData& ic_data) { On 2014/05/09 21:37:36, ...
6 years, 7 months ago (2014-05-09 22:39:30 UTC) #5
regis
Committed patchset #4 manually as r36001 (presubmit successful).
6 years, 7 months ago (2014-05-09 22:42:19 UTC) #6
Florian Schneider
https://codereview.chromium.org/260713008/diff/50022/runtime/vm/symbols.h File runtime/vm/symbols.h (right): https://codereview.chromium.org/260713008/diff/50022/runtime/vm/symbols.h#newcode257 runtime/vm/symbols.h:257: V(JavascriptCompatibilityError, "_JavascriptCompatibilityError") \ DBC: If you want to save ...
6 years, 7 months ago (2014-05-12 09:25:45 UTC) #7
regis
6 years, 7 months ago (2014-05-12 15:37:04 UTC) #8
Message was sent while issue was closed.
On 2014/05/12 09:25:45, Florian Schneider wrote:
> https://codereview.chromium.org/260713008/diff/50022/runtime/vm/symbols.h
> File runtime/vm/symbols.h (right):
> 
>
https://codereview.chromium.org/260713008/diff/50022/runtime/vm/symbols.h#new...
> runtime/vm/symbols.h:257: V(JavascriptCompatibilityError,
> "_JavascriptCompatibilityError")             \
> DBC: If you want to save time, try appending the new symbol at the end of the
> symbols list instead of inserting it here: you won't need to regenerate
> issue14236_test.dart, and it shows how broken this test is.

Thanks for the tip!

Powered by Google App Engine
This is Rietveld 408576698