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

Issue 2002923002: Implement assert in initializer list in VM. (Closed)

Created:
4 years, 7 months ago by Lasse Reichstein Nielsen
Modified:
4 years, 4 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

Patch Set 1 #

Patch Set 2 : Check assert in const constructor is pot-const #

Patch Set 3 : Add more tests #

Patch Set 4 : Update to match updated design document. #

Total comments: 10

Patch Set 5 : Addressed comments. PTAL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -6 lines) Patch
M runtime/lib/errors_patch.dart View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/vm/parser.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 7 chunks +23 lines, -5 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A tests/language/assert_initializer_test.dart View 1 2 3 1 chunk +228 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
Lasse Reichstein Nielsen
Turns out to be extremely easy since the VM converts initializer lists to statements already.
4 years, 7 months ago (2016-05-23 09:10:03 UTC) #2
eernst
On 2016/05/23 09:10:03, Lasse Reichstein Nielsen wrote: > Turns out to be extremely easy since ...
4 years, 7 months ago (2016-05-23 09:18:30 UTC) #3
Lasse Reichstein Nielsen
On 2016/05/23 09:18:30, eernst wrote: > And the checks that the asserted expressions are const ...
4 years, 7 months ago (2016-05-23 09:47:24 UTC) #4
eernst
On 2016/05/23 09:47:24, Lasse Reichstein Nielsen wrote: > On 2016/05/23 09:18:30, eernst wrote: > > ...
4 years, 7 months ago (2016-05-23 10:32:47 UTC) #5
Lasse Reichstein Nielsen
@asiva, @hausner Please take a look at this and the design document. If there are ...
4 years, 5 months ago (2016-07-07 12:45:50 UTC) #9
Lasse Reichstein Nielsen
https://codereview.chromium.org/2002923002/diff/60001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/2002923002/diff/60001/runtime/vm/parser.cc#newcode9227 runtime/vm/parser.cc:9227: // but ensure that the value is a bool. ...
4 years, 5 months ago (2016-07-07 12:48:41 UTC) #10
siva
What is the status of this CL, is it ready for landing in the VM ...
4 years, 5 months ago (2016-07-12 16:27:02 UTC) #11
Lasse Reichstein Nielsen
I believe the CL is ready for review and landing. It matches the current design ...
4 years, 5 months ago (2016-07-12 17:16:37 UTC) #12
Lasse Reichstein Nielsen
Ping
4 years, 4 months ago (2016-08-15 10:01:35 UTC) #13
hausner
See comments. https://codereview.chromium.org/2002923002/diff/60001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/2002923002/diff/60001/runtime/vm/parser.cc#newcode2596 runtime/vm/parser.cc:2596: if (FLAG_assert_initializer && CurrentToken() == Token::kASSERT) { ...
4 years, 4 months ago (2016-08-15 20:54:27 UTC) #14
Lasse Reichstein Nielsen
https://codereview.chromium.org/2002923002/diff/60001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/2002923002/diff/60001/runtime/vm/parser.cc#newcode3601 runtime/vm/parser.cc:3601: } else if (FLAG_assert_initializer && CurrentToken() == Token::kASSERT) { ...
4 years, 4 months ago (2016-08-23 07:05:31 UTC) #15
Lasse Reichstein Nielsen
PTAL
4 years, 4 months ago (2016-08-23 07:05:39 UTC) #16
hausner
LGTM now.
4 years, 4 months ago (2016-08-23 16:21:34 UTC) #17
Lasse Reichstein Nielsen
4 years, 4 months ago (2016-08-24 10:43:37 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
99439a336a47e34532c3c3ed0b001a54ed1069c9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698