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

Issue 10911042: Fixed parsing of parameterized type test assert statement in production mode. (Closed)

Created:
8 years, 3 months ago by Tom Ball
Modified:
8 years, 3 months ago
Reviewers:
hausner
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fixed parsing of parameterized type test assert statement in production mode. BUG=3741 TEST=Verified with bug's test, plus all VM tests. Committed: https://code.google.com/p/dart/source/detail?r=11843

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -1 line) Patch
A runtime/tests/vm/dart/assert_with_type_test_or_cast_test.dart View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 1 chunk +11 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Tom Ball
8 years, 3 months ago (2012-08-31 22:55:29 UTC) #1
hausner
LGTM with comment. If you want me to take another look after you address the ...
8 years, 3 months ago (2012-08-31 23:31:35 UTC) #2
Tom Ball
Added support for type casts, and a test that checks both types of expressions.
8 years, 3 months ago (2012-09-04 21:05:03 UTC) #3
hausner
8 years, 3 months ago (2012-09-04 21:16:05 UTC) #4
This looks good now. As a bonus, you could run the test twice, once with
assertions enabled, once disabled. In the first case, the expressions get parsed
and at runtime evaluated, in the second case the expressions get skipped.

To achieve this, you can add these two comment lines at the beginning of the
dart test:

// VMOptions=
// VMOptions=--enable_asserts

LGTM.

Powered by Google App Engine
This is Rietveld 408576698