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

Issue 1342213003: Add optional message to assert in Dart2js - continued (Closed)

Created:
5 years, 3 months ago by sra1
Modified:
5 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add optional message to assert in Dart2js - continued This CL takes https://chromiumcodereview.appspot.com/1325843003/ and makes some changes: - distinguish enableUserAssertions from enableTypeAssertions - better type inference for disabled assertions R=lrn@google.com Committed: https://github.com/dart-lang/sdk/commit/d5b2b393f3d2b3fe99c5ac1d1d9493b11a5eec8e Committed: https://github.com/dart-lang/sdk/commit/0b9e80edbfed607b0ee4c2c9f58b62772457b804 (with --assert-message flag)

Patch Set 1 : Original by lrn #

Patch Set 2 : Initial changes #

Patch Set 3 : Add dart2js test #

Total comments: 4

Patch Set 4 : fix dart2js unit tests #

Patch Set 5 : baseline for resubmit #

Patch Set 6 : Add --assert-message flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+428 lines, -298 lines) Patch
M pkg/compiler/lib/src/apiimpl.dart View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/closure.dart View 1 chunk +0 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/commandline_options.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/common/backend_api.dart View 1 chunk +0 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/common/codegen.dart View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/common/registry.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/common/resolution.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/compiler.dart View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/dart2js.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/dart_backend/placeholder_collector.dart View 2 chunks +1 line, -4 lines 0 comments Download
M pkg/compiler/lib/src/diagnostics/messages.dart View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/inferrer/inferrer_visitor.dart View 1 2 3 2 chunks +8 lines, -11 lines 0 comments Download
M pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart View 1 2 3 1 chunk +0 lines, -14 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 2 3 4 chunks +13 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/parser/listener.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/parser/node_listener.dart View 1 chunk +10 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/parser/parser.dart View 1 chunk +13 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/resolution/members.dart View 1 2 3 4 5 3 chunks +15 lines, -32 lines 0 comments Download
M pkg/compiler/lib/src/resolution/registry.dart View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/resolution/resolution_result.dart View 1 2 3 2 chunks +1 line, -10 lines 0 comments Download
M pkg/compiler/lib/src/resolution/semantic_visitor.dart View 1 2 3 1 chunk +0 lines, -26 lines 0 comments Download
M pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart View 3 chunks +0 lines, -25 lines 0 comments Download
M pkg/compiler/lib/src/resolution/send_structure.dart View 1 2 3 1 chunk +0 lines, -29 lines 0 comments Download
M pkg/compiler/lib/src/resolution/tree_elements.dart View 1 2 3 3 chunks +0 lines, -13 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 1 2 3 3 chunks +31 lines, -20 lines 0 comments Download
M pkg/compiler/lib/src/tree/nodes.dart View 3 chunks +26 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree/prettyprint.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree/unparser.dart View 1 chunk +12 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/typechecker.dart View 1 2 3 3 chunks +6 lines, -23 lines 0 comments Download
M pkg/compiler/lib/src/universe/selector.dart View 1 2 3 2 chunks +1 line, -6 lines 0 comments Download
M pkg/compiler/lib/src/world.dart View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M sdk/lib/_internal/js_runtime/lib/js_helper.dart View 1 2 chunks +32 lines, -10 lines 0 comments Download
M sdk/lib/core/errors.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/analyze_unused_dart2js_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/backend_dart/dart_printer_test.dart View 1 chunk +7 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir.dart View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 1 2 3 4 5 4 chunks +5 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/mock_libraries.dart View 1 2 chunks +4 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/semantic_visitor_test.dart View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/semantic_visitor_test_send_data.dart View 1 2 3 1 chunk +4 lines, -12 lines 0 comments Download
M tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart View 1 2 3 1 chunk +0 lines, -18 lines 0 comments Download
A tests/compiler/dart2js/type_inference7_test.dart View 1 1 chunk +79 lines, -0 lines 0 comments Download
A tests/compiler/dart2js_extra/assert_with_message_test.dart View 1 2 3 4 5 1 chunk +109 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
sra1
5 years, 3 months ago (2015-09-16 00:14:20 UTC) #5
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/1342213003/diff/100001/pkg/compiler/lib/src/ssa/builder.dart File pkg/compiler/lib/src/ssa/builder.dart (right): https://codereview.chromium.org/1342213003/diff/100001/pkg/compiler/lib/src/ssa/builder.dart#newcode2614 pkg/compiler/lib/src/ssa/builder.dart:2614: if (!node.hasMessage) { Document that this does assertHelper(condition); ...
5 years, 3 months ago (2015-09-16 06:00:57 UTC) #6
Lasse Reichstein Nielsen
There should also be an "--assert-message" flag necessary to enable this feature (according to issue ...
5 years, 3 months ago (2015-09-16 06:03:52 UTC) #7
Johnni Winther
https://codereview.chromium.org/1342213003/diff/100001/pkg/compiler/lib/src/resolution/members.dart File pkg/compiler/lib/src/resolution/members.dart (right): https://codereview.chromium.org/1342213003/diff/100001/pkg/compiler/lib/src/resolution/members.dart#newcode507 pkg/compiler/lib/src/resolution/members.dart:507: visit(node.message); The fastest way is the add an option ...
5 years, 3 months ago (2015-09-16 16:48:39 UTC) #8
sra1
https://codereview.chromium.org/1342213003/diff/100001/pkg/compiler/lib/src/resolution/members.dart File pkg/compiler/lib/src/resolution/members.dart (right): https://codereview.chromium.org/1342213003/diff/100001/pkg/compiler/lib/src/resolution/members.dart#newcode507 pkg/compiler/lib/src/resolution/members.dart:507: visit(node.message); On 2015/09/16 16:48:38, Johnni Winther wrote: > The ...
5 years, 3 months ago (2015-09-16 17:33:30 UTC) #9
Siggi Cherem (dart-lang)
On 2015/09/16 17:33:30, sra1 wrote: > https://codereview.chromium.org/1342213003/diff/100001/pkg/compiler/lib/src/resolution/members.dart > File pkg/compiler/lib/src/resolution/members.dart (right): > > https://codereview.chromium.org/1342213003/diff/100001/pkg/compiler/lib/src/resolution/members.dart#newcode507 > ...
5 years, 3 months ago (2015-09-16 19:10:29 UTC) #10
sra1
Committed patchset #4 (id:120001) manually as d5b2b393f3d2b3fe99c5ac1d1d9493b11a5eec8e (presubmit successful).
5 years, 3 months ago (2015-09-16 22:16:14 UTC) #11
sra1
Committed patchset #6 (id:160001) manually as 0b9e80edbfed607b0ee4c2c9f58b62772457b804 (presubmit successful).
5 years, 3 months ago (2015-09-16 23:47:53 UTC) #12
sra1
5 years, 3 months ago (2015-09-17 03:47:54 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1342213003/diff/100001/pkg/compiler/lib/src/s...
File pkg/compiler/lib/src/ssa/builder.dart (right):

https://codereview.chromium.org/1342213003/diff/100001/pkg/compiler/lib/src/s...
pkg/compiler/lib/src/ssa/builder.dart:2614: if (!node.hasMessage) {
On 2015/09/16 06:00:56, Lasse Reichstein Nielsen wrote:
> Document that this does
>   assertHelper(condition);
> like below? (or is the code obvious? :)

Done.

Powered by Google App Engine
This is Rietveld 408576698