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

Issue 2574003003: Add optional message argument to assert statements in the VM. (Closed)

Created:
4 years ago by hausner
Modified:
4 years ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Lasse Reichstein Nielsen
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add optional message argument to assert statements in the VM. Add flag --assert-message to control the feature. BUG=#24215 R=regis@google.com Committed: https://github.com/dart-lang/sdk/commit/2c0b605a961bfe0ef6919e43489870df99791325

Patch Set 1 #

Total comments: 12

Patch Set 2 : wip #

Patch Set 3 : wip #

Total comments: 2

Patch Set 4 : Update dart2js status file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -34 lines) Patch
M runtime/lib/errors.cc View 1 2 4 chunks +6 lines, -3 lines 0 comments Download
M runtime/lib/errors_patch.dart View 1 2 3 chunks +25 lines, -18 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/code_generator.cc View 2 chunks +2 lines, -1 line 0 comments Download
M runtime/vm/parser.cc View 1 2 2 chunks +68 lines, -8 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M sdk/lib/core/errors.dart View 1 chunk +3 lines, -1 line 0 comments Download
A tests/language/assert_message_test.dart View 1 1 chunk +104 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
hausner
4 years ago (2016-12-13 22:52:15 UTC) #3
regis
Still a few open questions. https://codereview.chromium.org/2574003003/diff/1/runtime/lib/errors_patch.dart File runtime/lib/errors_patch.dart (right): https://codereview.chromium.org/2574003003/diff/1/runtime/lib/errors_patch.dart#newcode28 runtime/lib/errors_patch.dart:28: static _doThrowNew(int assertionStart, int ...
4 years ago (2016-12-13 23:26:52 UTC) #4
hausner
PTAL. https://codereview.chromium.org/2574003003/diff/1/runtime/lib/errors_patch.dart File runtime/lib/errors_patch.dart (right): https://codereview.chromium.org/2574003003/diff/1/runtime/lib/errors_patch.dart#newcode28 runtime/lib/errors_patch.dart:28: static _doThrowNew(int assertionStart, int assertionEnd, Object message) On ...
4 years ago (2016-12-14 16:59:36 UTC) #5
regis
lgtm
4 years ago (2016-12-14 17:28:55 UTC) #6
hausner
Thank you. https://codereview.chromium.org/2574003003/diff/40001/runtime/lib/errors_patch.dart File runtime/lib/errors_patch.dart (right): https://codereview.chromium.org/2574003003/diff/40001/runtime/lib/errors_patch.dart#newcode28 runtime/lib/errors_patch.dart:28: static _throwNew(int assertionStart, int assertionEnd, Object message) ...
4 years ago (2016-12-14 18:30:24 UTC) #7
hausner
Committed patchset #4 (id:60001) manually as 2c0b605a961bfe0ef6919e43489870df99791325 (presubmit successful).
4 years ago (2016-12-14 19:05:24 UTC) #9
Lasse Reichstein Nielsen
4 years ago (2016-12-14 20:47:18 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/2574003003/diff/40001/runtime/lib/errors_patc...
File runtime/lib/errors_patch.dart (right):

https://codereview.chromium.org/2574003003/diff/40001/runtime/lib/errors_patc...
runtime/lib/errors_patch.dart:28: static _throwNew(int assertionStart, int
assertionEnd, Object message) {
Yes, I don't know why, but I couldn't get it working without the extra
indirection.

Powered by Google App Engine
This is Rietveld 408576698