Kevin Millikin
1af9f99a5f
[cfe] Compile loops in map literals
...
Add support for compiling for and for-in loops in map literals. They
are lowered to block expressions.
Change-Id: I555401257ba028543310edbd0547166d7c6a26a2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97929
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com >
2019-03-26 13:45:52 +00:00
Kevin Millikin
ac21076110
[cfe] Implement compilation of loops in lists and sets
...
Implement the translation of for and for-in loops in non-const lists
and sets. They are lowered to block expressions containing a loop.
It is impossible to target these loops with a break or continue
because they do not contain statements in their body.
Type inference is not yet implemented.
Change-Id: I35ff1650fde54cd376fe0b444891010435c74507
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97922
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com >
2019-03-26 12:16:22 +00:00
Kevin Millikin
12d789fa52
[cfe] Update test status files
...
New tests were added without status file updates.
Change-Id: Ibd8e48d6a3818e69649e881594be78afd490ba91
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97920
Commit-Queue: Kevin Millikin <kmillikin@google.com >
Commit-Queue: Jens Johansen <jensj@google.com >
Auto-Submit: Kevin Millikin <kmillikin@google.com >
Reviewed-by: Jens Johansen <jensj@google.com >
2019-03-26 10:50:01 +00:00
Kevin Millikin
e5374a688c
[cfe] Add front-end support for for and for-in
...
In collection literals, support for and for-in in Fasta's body
builder. They are removed when encountered during type inference and
their lowering to block expressions is not yet implemented.
Change-Id: I41e6a7a4aca7ffafdc12119e1503e9c0df5a6589
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97628
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com >
Reviewed-by: Aske Simon Christensen <askesc@google.com >
2019-03-26 09:45:29 +00:00
Vyacheslav Egorov
c9ecdabe5d
Revert "Combine override checks and override-based inference in one phase"
...
This reverts commit 9db4119b67 .
Revert "Change default of 'keepFields' in constant transformation to true"
This reverts commit b1e14cbe5f .
Revert "[fasta] Don't create forwarding stub if there's already a member"
This reverts commit 51da94da76 .
These commits are reverted to unblock rolls into Flutter.
b1e14cbe5f is reverted because it contained
changes that prevented clean revert of the other CLs.
Change-Id: I8d3c00f0c1b146f4debe7f1a1a7de75be154e265
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97802
Commit-Queue: Alexander Aprelev <aam@google.com >
Commit-Queue: Vyacheslav Egorov <vegorov@google.com >
Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
2019-03-25 19:40:26 +00:00
Peter von der Ahé
9db4119b67
Combine override checks and override-based inference in one phase
...
Change-Id: I2760f72f4eaa44bd192747179e843f017db30874
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97301
Commit-Queue: Peter von der Ahé <ahe@google.com >
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com >
2019-03-22 08:59:48 +00:00
Erik Ernst
2805a376b2
Added tests for superinterface variance constraints
...
Change-Id: Ib9e3fbe577c2ba49d1f8f535cbd295ec7fed8d24
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97111
Commit-Queue: Erik Ernst <eernst@google.com >
Reviewed-by: Leaf Petersen <leafp@google.com >
2019-03-21 09:34:00 +00:00
Peter von der Ahé
8af57275eb
Can't override implied setter covariantly
...
Change-Id: I1704001605f01721b01254fdc032aacebf472c80
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97304
Commit-Queue: Peter von der Ahé <ahe@google.com >
Auto-Submit: Peter von der Ahé <ahe@google.com >
Reviewed-by: Erik Ernst <eernst@google.com >
2019-03-20 10:56:33 +00:00
Kevin Millikin
4daa9b94ea
[cfe] Compile if elements in lists and sets
...
If elements are compiled to if statements. The type inference rules
including insertion of runtime checks are not yet implemented.
Change-Id: Iaa7ab709a7acacf952887b17ac1081a9fecd7cef
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97200
Commit-Queue: Kevin Millikin <kmillikin@google.com >
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com >
2019-03-20 08:43:03 +00:00
Kevin Millikin
c9e9b76d4d
Skip control-flow-collections tests on all runtimes
...
This feature is under development in the front end. Testing it on the
runtimes leads to numerous spurious status changes. Skip the tests
for now. The intent is that when a backend change causes a test to
start passing, then that test will be un-skipped.
Change-Id: I6c8c1f45315607039240c3edc61ba8340ae9cda0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96902
Commit-Queue: Kevin Millikin <kmillikin@google.com >
Commit-Queue: Alexander Thomas <athom@google.com >
Auto-Submit: Kevin Millikin <kmillikin@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2019-03-14 13:09:07 +00:00
Kevin Millikin
9aea5536fb
[cfe] Initial support for compiling if in collections
...
Support compiling if elements and map entries by constructing
IfElement or IfMapEntry when they are seen. There is no support for
lowering them to block expressions yet.
Change-Id: I74c2492fefc9703e9e2f639baad7f737bbe63721
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96786
Commit-Queue: Kevin Millikin <kmillikin@google.com >
Reviewed-by: Aske Simon Christensen <askesc@google.com >
2019-03-14 10:08:36 +00:00
Dmitry Stefantsov
1ce3e8af71
Reland "[cfe] Handle spread map entries of static type Null"
...
This is a reland of ccd2c85a1a
Original change's description:
> [cfe] Handle spread map entries of static type Null
>
> Change-Id: I164b3fa471deb65da93ecfd60ee836ec22eb93e1
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96080
> Commit-Queue: Dmitry Stefantsov <dmitryas@google.com >
> Reviewed-by: Kevin Millikin <kmillikin@google.com >
Change-Id: I4519970d8259481e137424f3506b7fb97307b14a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96134
Reviewed-by: Régis Crelier <regis@google.com >
2019-03-08 19:05:19 +00:00
Régis Crelier
afccd8cbc7
Revert "[cfe] Handle spread map entries of static type Null"
...
This reverts commit ccd2c85a1a .
Reason for revert: very red bots, gardener not going to blindly approve all redness
Original change's description:
> [cfe] Handle spread map entries of static type Null
>
> Change-Id: I164b3fa471deb65da93ecfd60ee836ec22eb93e1
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96080
> Commit-Queue: Dmitry Stefantsov <dmitryas@google.com >
> Reviewed-by: Kevin Millikin <kmillikin@google.com >
TBR=dmitryas@google.com ,askesc@google.com ,kmillikin@google.com
Change-Id: Ia8f60993222851a73291662f75556b2e4111a6f0
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96123
Reviewed-by: Régis Crelier <regis@google.com >
Commit-Queue: Régis Crelier <regis@google.com >
2019-03-08 17:19:35 +00:00
Dmitry Stefantsov
ccd2c85a1a
[cfe] Handle spread map entries of static type Null
...
Change-Id: I164b3fa471deb65da93ecfd60ee836ec22eb93e1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96080
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com >
Reviewed-by: Kevin Millikin <kmillikin@google.com >
2019-03-08 15:46:31 +00:00
Dmitry Stefantsov
52ff930338
[cfe] Desugar map spread entries in non-const map literals
...
Change-Id: Ie8f6cc0294888716f4e0349ba07320e684e26e1d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95640
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com >
Reviewed-by: Kevin Millikin <kmillikin@google.com >
2019-03-08 12:08:42 +00:00
Bob Nystrom
57f16820cd
Add tests for "await" inside spread, if, and for.
...
These don't try to comprehensively cover every interaction of async
and the new syntax, but they should test that an implementation handles
an await appearing in all the various places in the new syntax where an
expression is permitted.
Change-Id: I4852815002fcad6697f3bad4103693b1d4288d06
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94121
Commit-Queue: Bob Nystrom <rnystrom@google.com >
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com >
2019-03-06 00:10:04 +00:00
Aske Simon Christensen
99093c0610
[fasta] Required but not inferred constant context.
...
Add a new kind of constant context in the body builder for expressions
that must be constant but where constness is not inferred.
This context is used for parameter default values and initializing
expressions for non-final fields in classes containing at least one
const constructor.
Fixes https://github.com/dart-lang/sdk/issues/34191
Change-Id: I200ca88586b19335b185dad0839dfad4eef1f75f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/93520
Commit-Queue: Aske Simon Christensen <askesc@google.com >
Reviewed-by: Peter von der Ahé <ahe@google.com >
2019-03-05 09:23:57 +00:00
Aske Simon Christensen
822ebdd1e0
[fasta] Wrap non-const variable accesses inside const expressions.
...
Change-Id: I8761031da2419a47a947a02721d4ffd86ac7c531
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/93504
Reviewed-by: Peter von der Ahé <ahe@google.com >
2019-03-05 09:23:57 +00:00
Dmitry Stefantsov
2c8f70cde3
[cfe] Add type inference for spreads in set literals
...
Change-Id: I60250ec4ba7dba2381d84328095d38cf47b4ea8b
Reviewed-on: https://dart-review.googlesource.com/c/94548
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com >
Reviewed-by: Kevin Millikin <kmillikin@google.com >
2019-03-01 15:17:13 +00:00
Kevin Millikin
5f095b7039
[Fasta] Add support for spread in map literals
...
Spreads are compiled as if they were spread elements in list or set
literals. When one occurs in a map literal it is translated to a new
spread map entry.
Change-Id: Ic618b1e85e595b4c2cd65e184b9d2c49e9c34b79
Reviewed-on: https://dart-review.googlesource.com/c/94547
Commit-Queue: Kevin Millikin <kmillikin@google.com >
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com >
Reviewed-by: Aske Simon Christensen <askesc@google.com >
2019-02-28 06:05:00 +00:00
Kevin Millikin
d7a7de31bf
Update dartkb test expectations
...
Change-Id: I8137e49fc7982a65c857c206763ffecacd141cac
Reviewed-on: https://dart-review.googlesource.com/c/94545
Reviewed-by: Jens Johansen <jensj@google.com >
2019-02-27 14:26:02 +00:00
Kevin Millikin
a9ef31ba43
[Fasta] Add Kernel syntax for spread elements
...
Add spread elements to the Kernel syntax. They are currently replaced
by an invalid expression during type inference.
Change-Id: Icdb489e2c9993c6517983cfafdefc801ebb378ab
Reviewed-on: https://dart-review.googlesource.com/c/94501
Commit-Queue: Kevin Millikin <kmillikin@google.com >
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com >
2019-02-27 11:48:12 +00:00
Dan Rubel
58cea93953
Update BodyBuilder to use handleLiteralSetOrMap
...
This is the second of several CLs updating the parser and its listeners
to conform to the unified collection spec:
https://github.com/dart-lang/language/pull/200
Change-Id: I5c277d05a3726a3f5a40823cf878f025167340e6
Reviewed-on: https://dart-review.googlesource.com/c/93741
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2019-02-22 17:31:24 +00:00
Samir Jindel
c635896e1b
[vm] Fix langauge_2_kernel.status after 93301
...
Change-Id: I79f57caea89356e7505a07ebd911c8732fccd816
Reviewed-on: https://dart-review.googlesource.com/c/93542
Reviewed-by: Samir Jindel <sjindel@google.com >
Commit-Queue: Samir Jindel <sjindel@google.com >
Auto-Submit: Samir Jindel <sjindel@google.com >
2019-02-20 10:24:10 +00:00
Bob Nystrom
6cf71022a8
Add a test for type promotion in "if" collection elements.
...
Change-Id: Ibdb5002fc7646b80978ea447fedd97606476630d
Reviewed-on: https://dart-review.googlesource.com/c/93301
Commit-Queue: Bob Nystrom <rnystrom@google.com >
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com >
2019-02-20 02:03:01 +00:00
Aart Bik
9c0a73f943
[dart/vm] Skip finalization error for now
...
https://github.com/dart-lang/sdk/issues/35885
Change-Id: I79a1c77459b1cf1cdae563cd6e29697e641a57ff
Reviewed-on: https://dart-review.googlesource.com/c/92385
Reviewed-by: Alexander Markov <alexmarkov@google.com >
Commit-Queue: Aart Bik <ajcbik@google.com >
2019-02-07 23:38:08 +00:00
Kevin Millikin
8f821d408e
Fix status files for dartkp
...
These expectations were for a stale version of the precompiled
runtime.
Change-Id: Ie4bafb50b89e76df4e782d240674968f078a6c6c
Reviewed-on: https://dart-review.googlesource.com/c/92135
Reviewed-by: Samir Jindel <sjindel@google.com >
2019-02-06 13:38:21 +00:00
Kevin Millikin
6b73a02937
Fix status files for simarm and simarm64
...
Change-Id: I965b0eef9566a5c35e3b94dbe2a5cd1f86eaa250
Reviewed-on: https://dart-review.googlesource.com/c/92133
Reviewed-by: Samir Jindel <sjindel@google.com >
2019-02-06 13:16:00 +00:00
Kevin Millikin
c2778062e7
Add UI as code status file entries for simarm
...
Change-Id: I54076c4f0350e325729e780bbf0a191e46ca36cd
Reviewed-on: https://dart-review.googlesource.com/c/92127
Commit-Queue: Kevin Millikin <kmillikin@google.com >
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com >
Auto-Submit: Kevin Millikin <kmillikin@google.com >
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com >
2019-02-06 12:02:18 +00:00
Kevin Millikin
2b8560f4b2
[Fasta] Add spread and control-flow collection flags
...
Also stop skipping the corresponding tests. Add status file entries
for Fasta and VM configurations.
Change-Id: Iecc1e048915df598ba69ac79261cfc836d38f95a
Reviewed-on: https://dart-review.googlesource.com/c/92045
Commit-Queue: Kevin Millikin <kmillikin@google.com >
Auto-Submit: Kevin Millikin <kmillikin@google.com >
Reviewed-by: Aske Simon Christensen <askesc@google.com >
2019-02-06 10:30:18 +00:00
Kevin Millikin
0828d2c786
[Fasta] Implement exact types for Set literals
...
Set literals have an exact type of Set<T> for some T. An implicit
downcast to a subtype is a static error.
Change-Id: I922b078b1b9e595243520e73c7130c23fe91f454
Reviewed-on: https://dart-review.googlesource.com/c/91640
Commit-Queue: Kevin Millikin <kmillikin@google.com >
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com >
Reviewed-by: Aske Simon Christensen <askesc@google.com >
2019-02-05 07:43:52 +00:00
Bob Nystrom
c4dcd85b3a
Tests for control flow collections.
...
Change-Id: I41050143611bdb816b5d91a6cd6f668536b613df
Reviewed-on: https://dart-review.googlesource.com/c/91600
Reviewed-by: Leaf Petersen <leafp@google.com >
2019-02-02 00:34:01 +00:00
Bob Nystrom
ec343169e7
Skip the spread tests on platforms that aren't using the new test workflow.
...
These statuses should be more specific, but this should get the bots
green first.
Change-Id: Ifa734f74f866974332b2926398f2a01eb0707ac7
Reviewed-on: https://dart-review.googlesource.com/c/91767
Reviewed-by: Vijay Menon <vsm@google.com >
Commit-Queue: Bob Nystrom <rnystrom@google.com >
2019-02-01 00:30:38 +00:00
Liam Appelbe
c167cd3572
[VM] Experimental flags in dartkp tests
...
Plumb experimental flags found in a test's SharedOptions through to the
gen_kernel command invoked in dartkp tests. Also enable a whole bunch
of tests that are now passing.
Bug: https://github.com/dart-lang/sdk/issues/35602
Change-Id: I425f55ea6c84d28e085ab2c848376e396e68a225
Reviewed-on: https://dart-review.googlesource.com/c/90860
Commit-Queue: Liam Appelbe <liama@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
2019-01-25 19:47:40 +00:00
Aske Simon Christensen
1842020a69
Fix empty set/map literal disambiguation rule.
...
The criterion for an empty set/map literal without type arguments to
become a set literal was implemented as "superclass of Set and not
superclass of Map". This CL changes it to the rule now stated in the
spec: "subtype of Iterable and not subtype of Map".
Change-Id: I52d3a11e29ed9b1feb0f2b52a3f4beebe3833e31
Reviewed-on: https://dart-review.googlesource.com/c/88828
Commit-Queue: Aske Simon Christensen <askesc@google.com >
Reviewed-by: Peter von der Ahé <ahe@google.com >
2019-01-11 15:14:05 +00:00
Ben Konyi
b0900cf494
[ VM / Service ] Fixed issue where VMOptions were not being passed to app_jitk tests.
...
Fixes #35512 .
Change-Id: I34abbf0f73215b6695a0aa4ec6af6cb1c219d5e9
Reviewed-on: https://dart-review.googlesource.com/c/88429
Auto-Submit: Ben Konyi <bkonyi@google.com >
Commit-Queue: Siva Annamalai <asiva@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
2019-01-08 00:44:38 +00:00
Daco Harkes
7fd0c78c15
[gardening] Unmark language/vm/optimized_stacktrace_test
...
Re-enable language/vm/optimized_stacktrace_test to determine whether it is still a flaky issue.
Issue: https://github.com/dart-lang/sdk/issues/28276
Issue: https://github.com/dart-lang/sdk/issues/30198
Change-Id: I4b63e38f130f8320dc38564129a67b08ac5f1866
Reviewed-on: https://dart-review.googlesource.com/c/88450
Commit-Queue: Martin Kustermann <kustermann@google.com >
Auto-Submit: Daco Harkes <dacoharkes@google.com >
Reviewed-by: Martin Kustermann <kustermann@google.com >
2019-01-04 16:29:48 +00:00
Aske Simon Christensen
5a29552002
Enable set literal tests for Fasta
...
Change-Id: I1c6cad6822d5528172e3ba036774fa58e7fd6432
Reviewed-on: https://dart-review.googlesource.com/c/88185
Commit-Queue: Aske Simon Christensen <askesc@google.com >
Reviewed-by: Peter von der Ahé <ahe@google.com >
2019-01-03 13:45:36 +00:00
Martin Kustermann
52f7e9ed71
[VM] Ensure the start of the entrypoints is also 2-byte aligned
...
Fixes https://github.com/dart-lang/sdk/issues/35419
Change-Id: I1e4478573c6fc032485ad7c1ec3069e4fa946733
Reviewed-on: https://dart-review.googlesource.com/c/87404
Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
Commit-Queue: Martin Kustermann <kustermann@google.com >
2018-12-17 12:45:35 +00:00
asiva
f0babb648b
[VM] status file for dartkp failure for issue 35419
...
Change-Id: I4a285dc8d4763cbacde02d89f6d237a05a198ac9
Reviewed-on: https://dart-review.googlesource.com/c/87383
Reviewed-by: Siva Annamalai <asiva@google.com >
2018-12-14 21:26:12 +00:00
Martin Kustermann
08c386a33e
[VM] Do not use the contents of the megamorphic miss code in stack_frame
...
The megamorphic miss stub might not be initialized at the point in time
when we access it.
Fixes https://github.com/dart-lang/sdk/issues/35405
Change-Id: If20622bd4f3b14d6ece5a8de6f006d7081d6cf76
Reviewed-on: https://dart-review.googlesource.com/c/87322
Commit-Queue: Martin Kustermann <kustermann@google.com >
Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
2018-12-14 15:06:10 +00:00
Dmitry Stefantsov
e98701ea33
[fasta] Allow const constructors in mixin applications
...
Closes #33644 , closes #33645 , closes #32223 .
Bug: http://dartbug.com/33644
Bug: http://dartbug.com/33645
Bug: http://dartbug.com/32223
Change-Id: Ia30efb8f450e62bfeb65c8b7fd7e23871ef0e87e
Reviewed-on: https://dart-review.googlesource.com/c/68368
Reviewed-by: Peter von der Ahé <ahe@google.com >
Reviewed-by: Erik Ernst <eernst@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com >
2018-12-14 12:37:30 +00:00
asiva
d2578dee91
Mark language_2/deferred_optimized_test as flaky.
...
Change-Id: Iceb3ed11955fcb1e2cee88bdd87f3ac183857a46
Reviewed-on: https://dart-review.googlesource.com/c/87281
Reviewed-by: Siva Annamalai <asiva@google.com >
2018-12-14 00:21:48 +00:00
asiva
9d99b4a5ba
[Gardening] Update status file to workaround issue
...
https://github.com/dart-lang/sdk/issues/35405
Change-Id: I3c556e93dad628fe213458fe4ad91e999b842874
Reviewed-on: https://dart-review.googlesource.com/c/87262
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2018-12-13 21:08:35 +00:00
Ryan Macnak
30896b87f1
[vm] Fix crash when enum initialization hits a stack overflow.
...
Give the compiler more headroom.
Have the simulators and interpreters distinguish between the true stack limit and the limit for trigger an overflow exception.
Bug: https://github.com/dart-lang/sdk/issues/35224
Bug: https://github.com/flutter/flutter/issues/25041
Change-Id: I048d73b649b4ce1f3d9b5a33d898ee9cfe54f6ca
Reviewed-on: https://dart-review.googlesource.com/c/86821
Reviewed-by: Aart Bik <ajcbik@google.com >
Reviewed-by: Régis Crelier <regis@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2018-12-10 23:40:21 +00:00
Ryan Macnak
4463aa0038
Revert "[vm] Fix crash when enum initialization hits a stack overflow."
...
This reverts commit e59312dafa .
Reason for revert: Broken arm and arm64 simulators
Original change's description:
> [vm] Fix crash when enum initialization hits a stack overflow.
>
> Give the compiler more headroom.
>
> Have the KBC and DBC interpreters distinguish between the true stack limit and the limit for trigger an overflow exception.
>
> Bug: https://github.com/dart-lang/sdk/issues/35224
> Bug: https://github.com/flutter/flutter/issues/25041
> Change-Id: I85e72e1d3cceb70858c53567a4c8d3635e42165b
> Reviewed-on: https://dart-review.googlesource.com/c/86684
> Reviewed-by: Régis Crelier <regis@google.com >
> Commit-Queue: Ryan Macnak <rmacnak@google.com >
TBR=rmacnak@google.com ,regis@google.com ,ajcbik@google.com
Change-Id: I923cca32d34de37b761196f536873aaf81dcbc92
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/35224 , https://github.com/flutter/flutter/issues/25041
Reviewed-on: https://dart-review.googlesource.com/c/86782
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2018-12-10 18:52:10 +00:00
Ryan Macnak
e59312dafa
[vm] Fix crash when enum initialization hits a stack overflow.
...
Give the compiler more headroom.
Have the KBC and DBC interpreters distinguish between the true stack limit and the limit for trigger an overflow exception.
Bug: https://github.com/dart-lang/sdk/issues/35224
Bug: https://github.com/flutter/flutter/issues/25041
Change-Id: I85e72e1d3cceb70858c53567a4c8d3635e42165b
Reviewed-on: https://dart-review.googlesource.com/c/86684
Reviewed-by: Régis Crelier <regis@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2018-12-10 18:29:43 +00:00
Lasse Reichstein Holst Nielsen
a957c4351a
Add more tests for async*/await-for operations.
...
Change-Id: Icadb9edfe2ef40aff3808295685f961897d63c9a
Reviewed-on: https://dart-review.googlesource.com/c/86181
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com >
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com >
2018-12-10 14:38:34 +00:00
Ryan Macnak
4191437ccc
Revert "[vm] Fix crash when enum initialization hits a stack overflow."
...
This reverts commit 67b5c878b3 .
Reason for revert: Failures on KBC and ASAN.
Original change's description:
> [vm] Fix crash when enum initialization hits a stack overflow.
>
> Also, give the compiler more headroom.
>
> Bug: https://github.com/dart-lang/sdk/issues/35224
> Bug: https://github.com/flutter/flutter/issues/25041
> Change-Id: I51b24cdd79ac790c0ee951e14738a6e7b6f65647
> Reviewed-on: https://dart-review.googlesource.com/c/86584
> Commit-Queue: Ryan Macnak <rmacnak@google.com >
> Reviewed-by: Aart Bik <ajcbik@google.com >
TBR=rmacnak@google.com ,ajcbik@google.com
Change-Id: I1d4c2297154f93f16d2e33756713b30ebe024901
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/35224 , https://github.com/flutter/flutter/issues/25041
Reviewed-on: https://dart-review.googlesource.com/c/86683
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2018-12-07 21:08:33 +00:00
Ryan Macnak
67b5c878b3
[vm] Fix crash when enum initialization hits a stack overflow.
...
Also, give the compiler more headroom.
Bug: https://github.com/dart-lang/sdk/issues/35224
Bug: https://github.com/flutter/flutter/issues/25041
Change-Id: I51b24cdd79ac790c0ee951e14738a6e7b6f65647
Reviewed-on: https://dart-review.googlesource.com/c/86584
Commit-Queue: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Aart Bik <ajcbik@google.com >
2018-12-07 19:54:41 +00:00