Nate Bosch
f2579a8ede
Add override annotations in dart2js tests
...
In preparation of enforcing these in the analysis options.
Change-Id: I316f2efea510ecc8ff1b975e96d166a5f8c0286c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96834
Commit-Queue: Nate Bosch <nbosch@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2019-03-14 00:15:46 +00:00
Ryan Macnak
217a027456
[vm, interpreter] Support unboxed fields.
...
Bug: FL-208
Change-Id: Ia6d6b913ccfc3b279ae89666bfb6f494a098b102
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96523
Reviewed-by: Alexander Markov <alexmarkov@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2019-03-13 23:29:56 +00:00
Mayank Patke
4339fe9b51
Add constant evaluation tests for IfNull.
...
Change-Id: I68229e831cea9e1c9aac548d9da8434bcacdaaff
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96710
Commit-Queue: Mayank Patke <fishythefish@google.com >
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
8adcab9fec
Add constant evaluation tests for Identity.
...
Change-Id: I9ce93147f7cdb96ce659551499a64958a77d1711
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96709
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
3552dbb429
Add constant evaluation tests for Equals.
...
Change-Id: I20be37af485f8841ec549f33c16e5680e0170444
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96708
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
27328840f9
Add constant evaluation tests for GreaterEqual.
...
Change-Id: I2e2a3b656710cd130882dd2f7480f9d532a1ba61
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96707
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
9f680cd0bd
Add constant evaluation tests for Greater.
...
Change-Id: I356b805ff69307a697e073ea4499217e11541cc5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96706
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
0950d473ad
Add constant evaluation tests for LessEqual.
...
Change-Id: If98b28bfbb32b14e1d53546642fae613aa937519
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96705
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
7ff70237d4
Add constant evaluation tests for Less.
...
Change-Id: I024905e6e90f40301d092de2e4e0e45e379b143b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96704
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
ce9a1bb24e
Add constant evaluation tests for Add.
...
Change-Id: I21b5fd03bfaee3c32573c56d8f529c933f315d14
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96703
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
2fa96dd653
Add constant evaluation tests for Divide.
...
Change-Id: Ic361816bd0cfa5a6822cb96322bb29fcf7749778
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96405
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
952421a68d
Add constant evaluation tests for TruncatingDivide.
...
Change-Id: I144967283f76570ec6312750995ca219d3a4ad09
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96404
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
9fd0ec2560
Add constant evaluation tests for Modulo.
...
Change-Id: Ia8d7fd2faee166ea71aaca5e1fc797d5d658d8c3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96403
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
9262d111fd
Add constant evaluation tests for Multiply.
...
Change-Id: I05e7c3e6b6cb4a137a03f4917b8ab7125a1e19b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96402
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
aba9392f0e
Add constant evaluation tests for Subtract.
...
Change-Id: Id818fc9c2f246b8858fb747d8955604b44348a4d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96401
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
3a38f0bb89
Add constant evaluation tests for BooleanOr.
...
Change-Id: Ib9f7b409845ff13ecaa49fd1d949ea1bf474281d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94465
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
052d6d235c
Add constant evaluation tests for BooleanAnd.
...
Change-Id: Icead29835e72027f6f9cd82f799781983843fc89
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94464
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
be5332c0a5
Add constant evaluation tests for ShiftRight.
...
Change-Id: I327d98fa496543db885549e3654844da5f9f6a16
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94463
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
4f34218ce1
Add constant evaluation tests for ShiftLeft.
...
Change-Id: Ie669c127be1f76a64dbb7a96b81b3ce7d1621733
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94462
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
3df5334137
Add constant evaluation tests for BitXor.
...
Change-Id: If5b72f5743ebde2304058ba57e50c7dee5173561
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94344
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
84d8d6b513
Add constant evaluation tests for BitOr.
...
Change-Id: I93d172601c8c3e83e3a17d4eeb90d06f2fe2fd45
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94343
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
f7972480bd
Add constant evaluation tests for BitAnd.
...
Change-Id: I162aed0534530efb04e7e743d1f29ef041f888fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94342
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
432c6c8c39
Add constant evaluation tests for Not.
...
Change-Id: I1afa07efb7f3def69f13719ee3f57cd4d8c00f2a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94341
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
2e1c78db7b
Add constant evaluation tests for Negate.
...
Change-Id: I9e23fc47538324fcd64c8e2e90e75cf12e8b0491
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94340
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
5853f129b2
Add constant evaluation tests for BitNot.
...
Change-Id: I1bc82d76073006a18109eedfc62bd53a70f1685f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94320
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Mayank Patke
aa4a2df5a2
Add structure of constant folding tests.
...
This test suite is not comprehensive by any means. The goal is to
establish the right structure for the tests (so that we get the right
inlining and constant folding behavior). Broader semantic tests will be
added later.
Change-Id: Ib028ec05f063b98046f5946272cfbfe986244d3f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94040
Reviewed-by: Stephen Adams <sra@google.com >
2019-03-13 21:36:51 +00:00
Sergey G. Grekhov
8436dca626
[co19] DEPS updated
...
Change-Id: I487418f0a8a1cad37585d985ac2da6807556b4f6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96620
Reviewed-by: Alexander Thomas <athom@google.com >
2019-03-13 12:12:06 +00:00
Daco Harkes
a43c525de2
Reland "[vm/ffi] Support Windows 64 bit"
...
Enables dart:ffi on Windows 64 bit.
Note that function_stress_test.dart fails in two different ways, these are known bugs. https://github.com/dart-lang/sdk/issues/36138
Relanding: Fixed compilation on Android.
Closes: https://github.com/dart-lang/sdk/issues/35771
Change-Id: I7d0c8b64ca8c1726b7d264d4fd9213299a9f7df6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96781
Reviewed-by: Martin Kustermann <kustermann@google.com >
Commit-Queue: Daco Harkes <dacoharkes@google.com >
2019-03-13 11:47:37 +00:00
Johnni Winther
f307524421
Support native member annotations through ir constants
...
Change-Id: I247385c951d3a794afe7e4066b3b1d1ea14a76b0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96641
Commit-Queue: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2019-03-13 09:08:27 +00:00
Peter von der Ahé
69c1d1096d
Update test as combined member signature would fail
...
Change-Id: Ifc336b706fa1315f206f2214eb233489bd21c763
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96645
Reviewed-by: Erik Ernst <eernst@google.com >
Reviewed-by: Aske Simon Christensen <askesc@google.com >
2019-03-13 06:46:21 +00:00
Zichang Guo
0bd674c374
[VM-Runtime] set environment when creating detached process
...
environ variable should be updated if user provides environment. It only update for normal processes.
Bug= https://github.com/dart-lang/sdk/issues/36132
Change-Id: I2a4639ed53e7376534578a0b1b251025ffaa2278
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96147
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Zichang Guo <zichangguo@google.com >
2019-03-12 21:09:35 +00:00
Vyacheslav Egorov
23eb57c2bf
Revert "[vm/ffi] Support Windows 64 bit"
...
This reverts commit 7f812dea1a .
Reason for revert: Flutter build is broken on Golem.
Original change's description:
> [vm/ffi] Support Windows 64 bit
>
> Enables dart:ffi on Windows 64 bit.
>
> Note that function_stress_test.dart fails in two different ways, these are known bugs. https://github.com/dart-lang/sdk/issues/36138
>
> Closes: https://github.com/dart-lang/sdk/issues/35771
> Change-Id: I73012123f2bd90b737fdc1c87c9a9630c20d5660
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95647
> Commit-Queue: Daco Harkes <dacoharkes@google.com >
> Reviewed-by: Samir Jindel <sjindel@google.com >
> Reviewed-by: Martin Kustermann <kustermann@google.com >
TBR=kustermann@google.com ,sjindel@google.com ,dacoharkes@google.com
Change-Id: I5be4538e3c99632a852e4dfb856248eb437fb3ea
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96683
Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
Commit-Queue: Vyacheslav Egorov <vegorov@google.com >
2019-03-12 19:55:17 +00:00
Daco Harkes
7f812dea1a
[vm/ffi] Support Windows 64 bit
...
Enables dart:ffi on Windows 64 bit.
Note that function_stress_test.dart fails in two different ways, these are known bugs. https://github.com/dart-lang/sdk/issues/36138
Closes: https://github.com/dart-lang/sdk/issues/35771
Change-Id: I73012123f2bd90b737fdc1c87c9a9630c20d5660
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95647
Commit-Queue: Daco Harkes <dacoharkes@google.com >
Reviewed-by: Samir Jindel <sjindel@google.com >
Reviewed-by: Martin Kustermann <kustermann@google.com >
2019-03-12 17:30:26 +00:00
Vyacheslav Egorov
b3927f66df
[gardening] Mark tests that crash as crashing
...
This blocks crash uploading which should resolve redness on Mac
which produces huge core dumps.
Change-Id: Iad3f5e1be246d0de6db0aa3eee47b2f6777f5889
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96658
Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
Commit-Queue: Vyacheslav Egorov <vegorov@google.com >
Auto-Submit: Vyacheslav Egorov <vegorov@google.com >
2019-03-12 16:31:22 +00:00
Johnni Winther
6a2aa920cd
Support pragma annotations through ir constants
...
Change-Id: I40b2662a00596ca9ebbb5301f99b541806e71515
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96280
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Commit-Queue: Johnni Winther <johnniwinther@google.com >
2019-03-12 09:28:32 +00:00
Mark Zhou
3cf7d6a9c7
[tests] Changing expected cast errors to type errors for collections tests
...
Change-Id: I0e48dba7b1612994075629c43331794bfb2d2530
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96421
Reviewed-by: Bob Nystrom <rnystrom@google.com >
Commit-Queue: Mark Zhou <markzipan@google.com >
2019-03-11 21:56:41 +00:00
Johnni Winther
440b4cd84e
Insert implicit casts when setting interface targets
...
This preserves the invariant that method invocations and property sets
with an interface target handle static types at the call site.
This is a prerequisite to improving dart2js with implicit checks.
With this we can mark dynamic invocations a statically safe and
discover when instance methods don't need to check parameter types.
Change-Id: Ife7a3f947952b3c1f73316b922b2aa107343068e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95400
Commit-Queue: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2019-03-11 13:08:34 +00:00
Johnni Winther
231c5c138e
Create codegen work item for all members
...
Ensures that constants of effectively constant instance fields are
registered also with --omit-implicit-checks.
Change-Id: Icc31799f1cc5f565321c832780f30c711e9c8c50
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96160
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2019-03-08 23:46:55 +00:00
Johnni Winther
068aa0d2e7
Support eagerly initialized static fields.
...
Change-Id: I4265fe9bcfccc6a99627e57705868a7ee1da828d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94749
Reviewed-by: Stephen Adams <sra@google.com >
Commit-Queue: Johnni Winther <johnniwinther@google.com >
2019-03-08 20:48:35 +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
Nicholas Shahan
d2d098405f
[tests] Fix some control flow collections tests
...
- Remove tests that expect ForElements in const collections.
- Add missing value (or was it the key) in map.
Change-Id: Ic61cbb4326a105618ae4ea169655411359c52045
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96020
Reviewed-by: Bob Nystrom <rnystrom@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2019-03-08 17:27:38 +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
Lasse R.H. Nielsen
2e9ff26527
Fix overflow bug in BigInt implementations.
...
Fixes #36105
Bug: http://dartbug.com/36105
Change-Id: I9adf70d11474f844d2a4fbf5fcc3754562b1cf65
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95644
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com >
Reviewed-by: Erik Ernst <eernst@google.com >
2019-03-08 16:11:08 +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
Johnni Winther
b8069cbeca
Refactor computation of modular data
...
Add ModularStrategy as a step towards loading modular data from disk.
Change-Id: I9d0baebef8899794742164be4350bedbd3da5b68
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95650
Commit-Queue: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2019-03-08 08:36:07 +00:00
Johnni Winther
889d5d9240
Fix type error in node_tracer
...
From https://dart-review.googlesource.com/c/sdk/+/94749
This is triggered by set literal testing.
Change-Id: I151f9154410790820e1f4d6301b0ccde52a72767
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95441
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Commit-Queue: Johnni Winther <johnniwinther@google.com >
2019-03-08 08:21:47 +00:00
Brian Wilkerson
a47ffd2b50
Fix some errors in the control flow collections tests
...
Change-Id: I87ba6b3d2860439c33b62c02e8f9294d65d31abc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95900
Reviewed-by: Bob Nystrom <rnystrom@google.com >
2019-03-07 21:54:55 +00:00
Aart Bik
5c7b07f783
[dart/vm] Fix bug in kernel binary flow graph builder
...
Rationale:
Found by DartFuzz. One of the trickier bugs I had to debug.
While building the flow graph from kernel, the finalizer
builder expects the program context to be in the same state
as when the finalizer was seen first, not the context seen
by the breaking/continuing statement. This was done partially,
but only partially. Finding loop context or breakable
and switchable blocks was missing. Something only
a fuzzer can find :-)
https://github.com/dart-lang/sdk/issues/36076
Change-Id: Ie63912c5fad4d3c15f6559b60cc102b237949957
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95720
Commit-Queue: Aart Bik <ajcbik@google.com >
Reviewed-by: Alexander Markov <alexmarkov@google.com >
Reviewed-by: Martin Kustermann <kustermann@google.com >
2019-03-07 20:16:18 +00:00
Samir Jindel
bdb07f4a1f
[vm/ffi] Fix garbage collection of ffi.Pointer subtypes.
...
Fixes https://github.com/dart-lang/sdk/issues/36125 .
Change-Id: Ib9069d1e15684c785b86954ed8c14e5fdde35fec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95652
Commit-Queue: Samir Jindel <sjindel@google.com >
Reviewed-by: Daco Harkes <dacoharkes@google.com >
2019-03-07 15:56:08 +00:00