Commit Graph

1822 Commits

Author SHA1 Message Date
Ryan Macnak 53f7bb175e Revert "Make --sync-async the default for the VM."
This reverts commit 1ddf553eb6.

Reason for revert: Failing service tests

Original change's description:
> Make --sync-async the default for the VM.
> 
> Change-Id: Ic6d7bbc27835ea7b197cccf05724adb99e95dd51
> Reviewed-on: https://dart-review.googlesource.com/57580
> Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
> Reviewed-by: Martin Kustermann <kustermann@google.com>

TBR=vegorov@google.com,kustermann@google.com,floitsch@google.com

Change-Id: I062cb40badf0d1cf1808bee152fdd4074b00179d
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/58380
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2018-06-04 21:04:20 +00:00
Florian Loitsch 1ddf553eb6 Make --sync-async the default for the VM.
Change-Id: Ic6d7bbc27835ea7b197cccf05724adb99e95dd51
Reviewed-on: https://dart-review.googlesource.com/57580
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2018-06-04 18:05:20 +00:00
Martin Kustermann a16563931c [VM] Mark 3 more tests as pass, crash
Issue https://github.com/dart-lang/sdk/issues/33156

Change-Id: Iefbfd15e428c004244d86e0a544a174d31cbea78
Reviewed-on: https://dart-review.googlesource.com/55880
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-05-18 08:00:21 +00:00
Martin Kustermann 38cb4cbc0a [VM] Update status file to make hot-reload builders green
Change-Id: I2f2e66c4affe0f9737e5a14e05da45ad574e23e7
Reviewed-on: https://dart-review.googlesource.com/55685
Reviewed-by: Martin Kustermann <kustermann@google.com>
2018-05-17 12:17:59 +00:00
Vyacheslav Egorov c0015fe23f [gardening] Skip tests that are meaningless in AOT configuration.
Deferred libraries are loaded eagerly by VM compiler.

Closes https://github.com/dart-lang/sdk/issues/27587

Change-Id: I2dc0615be563f38bd4b859a89e9630de2ee84850
Reviewed-on: https://dart-review.googlesource.com/52424
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
2018-04-26 00:46:42 +00:00
Alexander Thomas 3851591642 [infra] Keep comments intact when updating status files.
* Preserve empty lines in the file header.
* Add empty entry to the tool's newly created sections.
* Remove extra empty line at the end of the file.

Change-Id: I271583774d5f5497025a9d85bcadf8b0b9e39e81
Reviewed-on: https://dart-review.googlesource.com/37600
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2018-04-10 19:03:21 +00:00
Dmitry Stefantsov 0fedb9b9d8 [fasta] Disable upwards new/const completion
Change-Id: If2c14bf402bbcbacbf4cf2da351eb7234e1e0944
Reviewed-on: https://dart-review.googlesource.com/49900
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
2018-04-06 19:31:22 +00:00
Régis Crelier e64f37614e [VM runtime] Fix TypeArguments::IsUninstantiatedIdentity() not to return true
for a still unfinalized type argument vector (fixes #31944).
Update status files.

Change-Id: Ib603cd702891dc93775a5fbd09c341bb36922ab3
Reviewed-on: https://dart-review.googlesource.com/39855
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2018-02-08 02:03:24 +00:00
Régis Crelier ed1d8bd475 [VM parser] Complete support for generalized void (fixes #30516).
'void' is now allowed as type annotation for locals, fields, and formal
parameters, in addition to being previously allowed as type argument.
Update status files.

Change-Id: I6459f56824dc0a695615d8dc87c9a8a1f9be29ef
Reviewed-on: https://dart-review.googlesource.com/37651
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Régis Crelier <regis@google.com>
2018-01-31 00:56:41 +00:00
Erik Corry 25f08d3c5c Disable cyclic_type_test/03 which is failing
R=ahe@google.com

Bug: 31944
Change-Id: I7474f4356c3569a95a28110b69f274c785356203
Reviewed-on: https://dart-review.googlesource.com/35961
Commit-Queue: Erik Corry <erikcorry@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2018-01-19 15:33:25 +00:00
Vyacheslav Egorov 01658c8491 [gardening] Fix error in language.status file.
TBR=ahe@google.com

Change-Id: Ia9033eefd271d36d9945e7d0d812f925eec653be
Reviewed-on: https://dart-review.googlesource.com/35980
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-01-19 14:32:53 +00:00
Lasse R.H. Nielsen 08edf99bde Mark language/cyclic_type_test/03 as crashing on one platform.
Change-Id: Ifc612e692cedeb105e9bebdbddacaeb48f66a2cc
Reviewed-on: https://dart-review.googlesource.com/35963
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2018-01-19 14:06:32 +00:00
Alexander Markov c051a0b905 [VM, Tests] Turn Dart 2.0 fixed-size integers ON by default, v2
Dart 2.0 fixed-size integers are enabled in Dart VM in all modes.
Status of legacy tests is updated.

This CL includes ff9fc413a7 with fixes.

Change-Id: I632d8177e9d07cd82ecea75ab6c325681b3a25c9
Reviewed-on: https://dart-review.googlesource.com/32443
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2018-01-05 01:44:56 +00:00
Alexander Markov 90551f6aa5 Revert "[VM, Tests] Turn Dart 2.0 fixed-size integers ON by default"
This reverts commit ff9fc413a7.

Reason: buildbot failures.
Change-Id: I68ffde271c8ba3b212e3bf015e2e550c8c891441
Reviewed-on: https://dart-review.googlesource.com/32442
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2018-01-04 19:04:44 +00:00
Alexander Markov ff9fc413a7 [VM, Tests] Turn Dart 2.0 fixed-size integers ON by default
Dart 2.0 fixed-size integers are enabled in Dart VM in all modes.
Status of legacy tests is updated.

Change-Id: I967a413c0b81eb92cf6be78ad3ee324798288bd2
Reviewed-on: https://dart-review.googlesource.com/31406
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2018-01-04 18:02:57 +00:00
Morten Krogh-Jespersen 3db4b1070b Normalize all status files and enable presubmit hook.
This CL normalizes all status files by the status file normalizer found at
pkg/status_file/bin/normalize.dart.

To make sure all status files are kept in pristine condition, a linter is placed
on the presubmit hook. The linter can be found at pkg/status_file/bin/lint.dart.

Bug:
Change-Id: I20bdb74824be65f079b8c9ab08b7ae38394d637f
Reviewed-on: https://dart-review.googlesource.com/24112
Commit-Queue: Morten Krogh-jespersen <mkroghj@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2017-12-07 08:38:30 +00:00
Lasse R.H. Nielsen f205ec5d6c Make bots green. See issue #31496
Change-Id: I6870407fad0ca5a5ea94504b7c5b3d1c3b17c593
Reviewed-on: https://dart-review.googlesource.com/24920
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Anders Sandholm <sandholm@google.com>
2017-11-30 11:57:53 +00:00
Ryan Macnak 9b7b91ee66 Reapply "[vm] Tighten stack overflow check in the parser."
Use a smaller recursion limit that handles IA32 ASAN.

Bug: https://github.com/dart-lang/sdk/issues/31158
Change-Id: If2a5694722619d100be2e91f952210d92af4ec7c
Reviewed-on: https://dart-review.googlesource.com/24623
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2017-11-30 02:11:22 +00:00
Morten Krogh-Jespersen 39907272f6 Remove comments from status files.
This will allow for having automatic tools to alphabetize sections and entries.

Bug:
Change-Id: Ia7b7a100ca33197c4f3b1c50c11f24873dfbc09b
Reviewed-on: https://dart-review.googlesource.com/23675
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-11-28 07:56:20 +00:00
Morten Krogh-Jespersen a9a5081e10 Remove duplicate entries in same section from status files.
If two sections are syntactically equal, they are considered same section.

The discovery of duplicate entries was perfomed by the test in the CL:
https://dart-review.googlesource.com/#/c/sdk/+/21341

All removals has been done by hand to make sure the best comment was chosen.

Bug:
Change-Id: I105f6375adc1b5f555eb7c2af7d7d1e4e1922a32
Reviewed-on: https://dart-review.googlesource.com/21340
Reviewed-by: Alexander Thomas <athom@google.com>
2017-11-27 11:07:18 +00:00
Ryan Macnak 35227914a5 Further update status files for "Verify canonical objects before taking a snapshot or shutting down."
Bug: https://github.com/dart-lang/sdk/issues/31376
Change-Id: Ib0086b82cb0464c5526db44f2cd11d69021299c6
Reviewed-on: https://dart-review.googlesource.com/22280
Reviewed-by: Natalie Weizenbaum <nweiz@google.com>
2017-11-20 23:46:56 +00:00
Vyacheslav Egorov e834248640 [gardening] Restore status lines removed by accident
Bug:
Change-Id: I230a003c5300e5f4e7f5586e0582ec5c16fc6268
Reviewed-on: https://dart-review.googlesource.com/21348
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2017-11-16 11:51:21 +00:00
Ben Konyi 064d49c9a8 [Gardening] Marking issue23244_test and isolate/compile_time_error_test/none as Crash for app_jit. See issue #31376.
Bug:
Change-Id: I95997e5cb53112c5e78c2199c7c95db3bf7766ee
Reviewed-on: https://dart-review.googlesource.com/21285
Reviewed-by: Zach Anderson <zra@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-11-15 22:56:38 +00:00
Lasse R.H. Nielsen b93820ec94 Mark two app_jit/vm tests as failing.
See issue #31376.

Change-Id: I6615847f9ac48abe46d00272784c008d1f63cb98
Reviewed-on: https://dart-review.googlesource.com/21040
Reviewed-by: Erik Corry <erikcorry@google.com>
2017-11-15 11:03:35 +00:00
Vyacheslav Egorov d27c60f63c [gardening] Remove status files updates referencing fixed issue #31176
Bug:
Change-Id: Ic2dfa3c045b07835ae8ed5abd0745d3c0c72fc9a
Reviewed-on: https://dart-review.googlesource.com/20800
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2017-11-14 17:32:32 +00:00
Erik Ernst 94d4543245 Moved a comma in a test over some white space.
The multi-test language_2/assertion_initializer_const_error2_test used
to have outcomes caused by a syntax error (arising for all other cases
than `cc02` in this multi-test). This CL moves that comma such that all
subtests have the intended shape, and the test actually tests the
intended property. This causes a rather large number of status file
entries to be adjusted.

Change-Id: I2e176611813e5706e553fb51cda7553f17dfa300
Reviewed-on: https://dart-review.googlesource.com/19191
Commit-Queue: Erik Ernst <eernst@google.com>
Reviewed-by: Florian Loitsch <floitsch@google.com>
2017-11-09 14:04:08 +00:00
Bob Nystrom ba84855c0a Migrate the lingering language_strong tests over to language_2.
Change-Id: I4d60b650a2146c1d9be0fd0c5f98eac85f9e2eb1
Reviewed-on: https://dart-review.googlesource.com/16333
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-10-27 23:44:08 +00:00
Ryan Macnak 107e92d11c Revert "[vm] Tighten stack overflow check in the parser."
This reverts commit eebbac4d78.

Reason for revert: Crash on ASAN bots

Original change's description:
> [vm] Tighten stack overflow check in the parser.
> 
> A recent change increased the accuracy of the stack limit used in the stack overflow check. This allowed the parser to complete some example programs that previously tripped the limit, but the flow graph builder or optimizer (depending on mode) then experienced the overflow. Rather than sprinkle checks throughout the compiler pipeline, we now flag an error in the parser based on the amount of nesting instead of amount of call stack used.
> 
> Bug: https://github.com/dart-lang/sdk/issues/31158
> Change-Id: I794e484d736e61499fe6812cf25185ce097bcdd8
> Reviewed-on: https://dart-review.googlesource.com/15651
> Reviewed-by: Zach Anderson <zra@google.com>

TBR=rmacnak@google.com,zra@google.com

Change-Id: I232d929b24c54191d6688530c6f4c59dcccb5890
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/31158
Reviewed-on: https://dart-review.googlesource.com/16400
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2017-10-24 23:08:09 +00:00
Ryan Macnak eebbac4d78 [vm] Tighten stack overflow check in the parser.
A recent change increased the accuracy of the stack limit used in the stack overflow check. This allowed the parser to complete some example programs that previously tripped the limit, but the flow graph builder or optimizer (depending on mode) then experienced the overflow. Rather than sprinkle checks throughout the compiler pipeline, we now flag an error in the parser based on the amount of nesting instead of amount of call stack used.

Bug: https://github.com/dart-lang/sdk/issues/31158
Change-Id: I794e484d736e61499fe6812cf25185ce097bcdd8
Reviewed-on: https://dart-review.googlesource.com/15651
Reviewed-by: Zach Anderson <zra@google.com>
2017-10-24 21:38:46 +00:00
Emily Fortuna 85c8a91bb1 Dart gardening: Update test statuses for vm_precomp and simarm64 Timeouts.
Bug:
Change-Id: I4988c795eed2dfe88e56e8dea50cfc60b3466882
Reviewed-on: https://dart-review.googlesource.com/15764
Reviewed-by: Emily Fortuna <efortuna@google.com>
Commit-Queue: Emily Fortuna <efortuna@google.com>
2017-10-20 21:59:18 +00:00
Erik Corry 37eaf1cdb1 Also skip deep_nesting1_negative_test
R=whesse@google.com

Bug: 31158
Change-Id: I1dcf37c07fdaafea6394e746b7e2558112334dff
Reviewed-on: https://dart-review.googlesource.com/15160
Reviewed-by: William Hesse <whesse@google.com>
2017-10-19 15:53:31 +00:00
Erik Corry 2b3c7ef7dd Disable deep_nesting2_negative_test on precompiled runtime
Started failing after
https://github.com/dart-lang/sdk/commit/b85a7fecd02c309fa70e466a11c7f0bac14d10db

R=hesse@google.com

Bug: 31158
Change-Id: I80ee69bac34f50d6c8d2764891ebd39df59f0bc1
Reviewed-on: https://dart-review.googlesource.com/15126
Reviewed-by: William Hesse <whesse@google.com>
2017-10-19 12:37:22 +00:00
Bob Nystrom 14011f47e3 Resurrect deleted language tests.
They're back from the grave, and ready to party!

Change-Id: I088134a9be7ecabf1fbf751c015a656a15cabff9
Reviewed-on: https://dart-review.googlesource.com/12821
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2017-10-11 17:47:11 +00:00
pq 2fbb267460 Revert "Migrate test block 152 to Dart 2.0." [TBR].
This reverts commit 9744f5d212.

Change-Id: I1299f0e9ea14c776c315dd8439bd9ab255d9060b
Reviewed-on: https://dart-review.googlesource.com/5001
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2017-09-11 18:24:16 +00:00
pq 9744f5d212 Migrate test block 152 to Dart 2.0.
Change-Id: Iad60c7a650595703b0a0109d15d8971a4c209d84
Reviewed-on: https://dart-review.googlesource.com/3701
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-09-11 17:11:17 +00:00
Janice Collins 3a8a1ca54c Migrate test block 113 to Dart 2.0.
Request particular attention to generic_creation_test and generic_field_mixin6_test, but all of the following required tweaks
to the status files to pass tests:

generic_closure_test
generic_function_bounds_test
generic_function_dcall_test
generic_function_typedef_test
generic_field_mixin6_test
generalized_void_syntax_test
generic_functions_test

BUG=
R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/3008573002 .
2017-08-30 08:50:16 -07:00
Janice Collins fe7c2acd4e Migrate block 163 to Dart 2.0.
Interesting tests requiring status file or other changes:

type_variable_promotion_test
type_variable_scope_test
type_variable_static_context_negative_test - changed from negative to compile-time error
unresolved_top_level_method_negative_test - changed from negative to compile-time error
unary_plus_negative_test
unhandled_exception_negative_test
unbound_getter_test
unresolved_in_factory_negative_test -
unresolved_top_level_var_negative_test - changed from negative to compile-time error
unresolved_top_level_method_negative_test - changed from negative to compile-time error
vm/async_await_catch_stacktrace_test

BUG=
R=lrn@google.com

Review-Url: https://codereview.chromium.org/3008723002 .
2017-08-30 08:05:12 -07:00
Bob Nystrom 0cae5b30fc Migrate over the status for closure_cycles_test.
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/3008863002 .
2017-08-29 16:29:27 -07:00
Bob Nystrom 46320c5208 Migrate block 115.
Interesting changes:

- A static getter colliding with an inherited non-static setter is a
  compile error, not a type warning.

- Trying to call a setter on what is only a getter is a compile error
  with no runtime behavior.

- Add support to test.dart for negative tests in DDC.

BUG=
R=jcollins@google.com

Review-Url: https://codereview.chromium.org/3005643002 .
2017-08-28 16:17:28 -07:00
Vyacheslav Egorov 7d5231796e [VM, Precompiler] Support obfuscation of the symbolic information in precompiler
Obfuscation is controlled by obfuscate flag in Dart_IsolateFlags.

Obfuscation of identifiers is performed during script tokenization - when TokenStream is generated from the source. All kIDENT and kINTERPOL_VAR tokens are renamed consistently using a persistent obfuscation map stored in ObjectStore::obfuscation_map.

Some identifiers (pseudo-keywords, arithmetic operators, builtin recognized methods and entry-points) are not renamed to keep name based lookups from breaking. All other identifiers are renamed.

Constant instances of Symbol-s (both created via literal syntax #ident and using constant constructor const Symbol("ident")) are renamed consistently with corresponding identifiers.

Script urls and Library urls and names are also obfuscated.

Obfuscation map can be dumped as a JSON array at the end of precompilation using Dart_GetObfuscationMap API.

BUG=https://github.com/dart-lang/sdk/issues/30524
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/3003583002 .
2017-08-25 09:48:23 +02:00
Bob Nystrom 615be6451e Migrate block 114 (and some of 113).
generic_instanceof ... getter_closure_execution_order_test.

The main interesting one is generic_methods_type_expression_test. It
was testing old Dart 1.0-specific behavior and needed a lot of changes.

R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/3001803002 .
2017-08-24 10:52:29 -07:00
Morten Krogh-Jespersen 3803057169 Migrating a block of dart 2:
./language[_strong]/class_keyword_test.dart
./language[_strong]/closure_shared_state_test.dart

R=johnniwinther@google.com

NOTE: I had to bypass hooks since the analyser fails on the files that have static compile-time errors. Should I do something else?
Committed: https://github.com/dart-lang/sdk/commit/fa59030f18c5015f7e25832d9247cc2967e99aa1
Review-Url: https://codereview.chromium.org/3001433002 .
2017-08-10 15:11:33 +02:00
Morten Krogh-Jespersen f0e8bb629b Revert "Migrating a block of dart 2:"
This reverts commit fa59030f18.

TBR=sortie@google.com

Review-Url: https://codereview.chromium.org/2997723002 .
2017-08-10 14:51:18 +02:00
Morten Krogh-jespersen fa59030f18 Migrating a block of dart 2:
./language[_strong]/class_keyword_test.dart
./language[_strong]/closure_shared_state_test.dart

R=johnniwinther@google.com

NOTE: I had to bypass hooks since the analyser fails on the files that have static compile-time errors. Should I do something else?
Review-Url: https://codereview.chromium.org/3001433002 .
2017-08-10 14:43:05 +02:00
Bob Nystrom 50c087d5a6 Migrate language block 45 - call_argument ... call_with.
R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/2998493002 .
2017-08-04 17:15:26 -07:00
Bob Nystrom 243d1c74eb Migrate language block 46 - canonical_const ... char_escape.
R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/2996533003 .
2017-08-04 16:52:13 -07:00
Bob Nystrom 3c7f9852a5 Migrate block 43.
R=bkonyi@google.com

Review-Url: https://codereview.chromium.org/2990933002 .
2017-08-01 16:58:52 -07:00
Vyacheslav Egorov 33ab401cc7 Gardening: fix issues with expectations for precomp-linux-product-x64.
Fixes https://github.com/dart-lang/sdk/issues/30289

R=kustermann@google.com
BUG=

Review-Url: https://codereview.chromium.org/2987113002 .
2017-07-31 13:44:40 +02:00
Alan Knight 7694ecabb0 And properly qualify the suppressed tests
BUG=

Review-Url: https://codereview.chromium.org/2989103002 .
2017-07-28 16:54:24 -07:00
Alan Knight f3746d3548 Fix typo in status file
BUG=

Review-Url: https://codereview.chromium.org/2992723002 .
2017-07-28 16:00:20 -07:00