Commit Graph

2317 Commits

Author SHA1 Message Date
Jennifer Messerly 2ea6a5dd5c fix #30462, update function_type tests to understand covariant generics
In particular, the reified type of method tear-offs may substitute Object for the class type parameter. This is done when the parameter needs a covariance check. The test generator is updated to understand this distinction.

R=floitsch@google.com

Review-Url: https://codereview.chromium.org/3002773002 .
2017-08-17 13:00:34 -07:00
Alan Knight 38a103f2f0 Update test status to fix problem from https://codereview.chromium.org/2999733002
BUG=

Review-Url: https://codereview.chromium.org/3002863002 .
2017-08-17 11:23:52 -07:00
Johnni Winther 035c4d8b4a Fix typevariable_substitution2_test
Review-Url: https://codereview.chromium.org/3001113002 .
2017-08-17 16:37:54 +02:00
Jennifer Messerly ed5ced82b1 Re-land "fix #30423, covariant parameter tearoff type should be Object"
This is the original CL plus status file fixes.

Disables auto-generated function_type tests that are not working for the Dart 2 runtime behavior, and filed #30462 to track. Also removes the separate status that was skipping these tests in DDC when $checked was unset. $checked is not a thing for Dart 2, and DDC test status should never depend on it.

This reverts commit 1b0b1a4913.

R=leafp@google.com

Review-Url: https://codereview.chromium.org/3001053002 .
2017-08-16 23:23:36 -07:00
Emily Fortuna 09b215a2fd Fix the local variable lookup in the locals handler.
BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/2994363002 .
2017-08-16 16:08:21 -07:00
Janice Collins 92809f0c5b Fix bots from block 47.
https://build.chromium.org/p/client.dart/builders/dart2js-linux-d8-minified-5-5-be/builds/7016/steps/dart2js-d8%20tests/logs/stdio
https://build.chromium.org/p/client.dart/builders/dart2js-linux-d8-minified-5-5-be/builds/7016/steps/dart2js-d8-fast-startup%20tests/logs/stdio

BUG=
R=bkonyi@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2997923002 .
2017-08-16 13:56:04 -07:00
Janice Collins 52ba74db8f Migrate test block 47 and downstream dependencies to Dart 2.0.
Special items in this block:
- checked_mode_helper is a helper library that needed extensive modifications.  Fixing it up for Dart 2.0 meant simultaneously migrating
its users in blocks 113 and 163.  Renamed it to dynamic_type_helper to try to reflect what it's actually doing now.
- Many minor breakouts of compile-time errors and conversion from static warnings.
BUG=
R=bkonyi@google.com

Review-Url: https://codereview.chromium.org/2999733002 .
2017-08-16 11:23:13 -07:00
Morten Krogh-Jespersen 312ce6d002 Migrating another batch of tests to dart 2.
Start:
./language[_strong]/closure_side_effect_test.dart
End:
./language[_strong]/compile_time_constant2_test.dart

Except for tests/language_2/closure_type_test.dart, all other files has been copied automatically by the tool.

R=jcollins@google.com, whesse@google.com

PS: Forgot to run git cl upload command right after the migrate_tool, which I should have done, to make the automatic and manual changes clearer.
Review-Url: https://codereview.chromium.org/3002573002 .
2017-08-16 11:51:42 +02:00
Stephen Adams fd600fd334 Implement methods in KernelClosedWorldMixin
R=sra@google.com

Review-Url: https://codereview.chromium.org/2997843002 .
2017-08-15 14:18:46 -07:00
Morten Krogh-Jespersen 40b10124b9 Updated the status file with MissingCompileTimeError to better indicate expected behavior in dart 1
R=whesse@google.com

Review-Url: https://codereview.chromium.org/2994193002 .
2017-08-14 12:50:06 +02:00
Morten Krogh-Jespersen ff19f703e0 Patch to add some dynamic behavior. For the previous change, see
R=whesse@google.com

https://codereview.chromium.org/3001433002
Review-Url: https://codereview.chromium.org/2996833002 .
2017-08-10 16:49:13 +02: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
Karl Klose e4060debaa [Gardening] Mark language_2/regress_30339_test as failing on dart2js-drt-checked
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/3000673002 .
2017-08-10 11:29:50 +02:00
Emily Fortuna 3aee4694ab Added ThisVariable in scoping and the captured scope of initialized fields.
BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/2998673002 .
2017-08-09 09:09:38 -07:00
Jennifer Messerly 03d578ed85 update status for passing ddc tests
Review-Url: https://codereview.chromium.org/2997653002 .
2017-08-08 22:57:51 -07:00
Régis Crelier e0805221da Update DDC status file for new regression test.
Review-Url: https://codereview.chromium.org/2998633002 .
2017-08-08 10:04:38 -07:00
Régis Crelier a18b318fed [VM parser] Insert missing result type check in async functions using arrow
style instead of 'return' keyword (fixes #30339).
Add regression test.

R=asiva@google.com, cbernaschina@google.com

Review-Url: https://codereview.chromium.org/2993223002 .
2017-08-08 09:15:28 -07:00
Stephen Adams 20d05b68aa Run update_status to sort status file
TBR=sigmund@google.com

BUG=

Review-Url: https://codereview.chromium.org/2990333002 .
2017-08-07 12:44:41 -07:00
Bob Nystrom 850b80a84e Fix analyzer status for cast_test.
Also add another configuration in the migration test runner to catch
this in the future.

Review-Url: https://codereview.chromium.org/2993123003 .
2017-08-04 18:37:18 -07: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 9a0c11c26b Split language_2.status into multiple files.
This mainly splits along compiler lines, but uses runtime for a couple
of things -- VM and Flutter mainly.

I did most of the work automatically by hacking up the migration script
to re-migrate the existing file, but I also went through and manually
cleaned the result up as best I could.

R=bkonyi@google.com, jcollins@google.com

Review-Url: https://codereview.chromium.org/2993043002 .
2017-08-04 11:33:01 -07:00
Sigmund Cherem edc1054ae1 Normalize status files for dart2js_with_kernel
This is only moving status lines around to ensure we only have 2 sections for
$dart2js_with_kernel per file: minified and host-checked.  Some entries are now
duplicated because we no longer have the $dart2js_with_kernel (non-checked)
section.

R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2993083002 .
2017-08-04 09:41:08 -07:00
Emily Fortuna 4929f282b3 Make minification Entity-friendly.
BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2996463002 .
2017-08-03 19:19:21 -07:00
Jennifer Messerly d28725fe99 fix ddc bot status
Review-Url: https://codereview.chromium.org/2991403003 .
2017-08-03 16:52:57 -07:00
Jennifer Messerly 62303b6711 enable batch mode for dartdevc tests, also fix status so ddc bots pass
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2987393002 .
2017-08-03 14:39:45 -07:00
Emily Fortuna b74f53aa74 Revert "Updated test status after fixing closure call generation."
This reverts commit 6839f6f79f.

BUG=

Review-Url: https://codereview.chromium.org/2986383003 .
2017-08-03 12:06:01 -07:00
Emily Fortuna 6839f6f79f Updated test status after fixing closure call generation.
BUG=
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2993603002 .
2017-08-03 10:45:17 -07:00
Johnni Winther 64aceae73a Update language_2.status for vm-kernel and vm-precomp
Review-Url: https://codereview.chromium.org/2991293002 .
2017-08-03 11:19:47 +02:00
Florian Loitsch f16c187649 Update the function_type tests for Dart 2.0.
Mainly ensures that `dynamic Function(int)` and `int Function(int)` aren't treated as assignable.

R=sigmund@google.com

Committed: https://github.com/dart-lang/sdk/commit/46418dc31ab124fe4f6a4f24809ff7ef8afd34ff
Reverted:
Committed: https://github.com/dart-lang/sdk/commit/05bb0edf41ec1f96c069f8a8876c091e3b03d716
Review-Url: https://codereview.chromium.org/2987133002 .
2017-08-03 10:54:41 +02:00
Jennifer Messerly 676cf46c44 Fix DDC buildbot so it is green
This is an attempt to get DDC's bot (https://travis-ci.org/dart-lang/sdk) green and restore test coverage, without affecting the Analyzer --strong buildbot. DDC and Analyzer can generally use the same status entries, as they are running nearly identical strong mode analysis. This fixes DDC's test builder to understand status codes in the same way analyzer does, as that was causing mismatch in statuses.

This does not fix the problem that we're skipping tests instead of recording the status. So there is a bit of test coverage lost, but it restores most of DDC's coverage. We can tackle the skips either in a follow up, or as we migrate tests from *_strong to *_2.

This is a partial revert of  "Revert status file changes from 58a6227198d2aa927df19f1b4862f8d0017d6da4" in commit 7be946cf3d.

Review-Url: https://codereview.chromium.org/2990213002 .
2017-08-02 19:57:56 -07:00
Bob Nystrom dbd48de07d Fix a couple of things causing bot redness:
- Migrate over built_in_identifier_test since it imports a helper
  library that was migrated.
- Fix some status file entries.

Also:

- Removed some old commented out status entries.
- Fix a bug in migration script.

R=jcollins@google.com

Review-Url: https://codereview.chromium.org/2992903002 .
2017-08-02 14:54:07 -07:00
Bob Nystrom 9d4be00986 Migrate block 44.
R=bkonyi@google.com

Review-Url: https://codereview.chromium.org/2985243002 .
2017-08-02 13:45:45 -07:00
Florian Loitsch 05bb0edf41 Revert "Update the function_type tests for Dart 2.0."
This reverts commit 46418dc31a.

Review-Url: https://codereview.chromium.org/2986313002 .
2017-08-02 17:45:03 +02:00
Florian Loitsch 46418dc31a Update the function_type tests for Dart 2.0.
Mainly ensures that `dynamic Function(int)` and `int Function(int)` aren't treated as assignable.

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2987133002 .
2017-08-02 17:07:27 +02: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
Johnni Winther 0056bdfdbb [gardening] Update status for assertion_test on drt
Review-Url: https://codereview.chromium.org/2987273002 .
2017-08-01 15:09:41 +02:00
Alan Knight e81f653a3e Some dartk async tests are passing now. Unsuppress
BUG=

Review-Url: https://codereview.chromium.org/2988123002 .
2017-07-28 18:04:33 -07:00
Alan Knight d5d867235d More status fixes
BUG=

Review-Url: https://codereview.chromium.org/2987083002 .
2017-07-28 17:54:33 -07:00
Bob Nystrom e626e73fda assert_with_message_test is failing on dart2js in checked mode.
R=alanknight@google.com

Review-Url: https://codereview.chromium.org/2987063002 .
2017-07-28 15:42:20 -07:00
Bob Nystrom ad7e4df362 Migrate block 39 language/async_backwards ... /async_star_take.
R=bkonyi@google.com

Review-Url: https://codereview.chromium.org/2990973002 .
2017-07-28 14:28:57 -07:00
Bob Nystrom fe2f6fd58c Fix test status.
R=bkonyi@google.com

Review-Url: https://codereview.chromium.org/2992023002 .
2017-07-28 14:10:54 -07:00
Bob Nystrom 13b19460bb Fix status of analyzer checked test.
Review-Url: https://codereview.chromium.org/2985303002 .
2017-07-28 13:23:47 -07:00
Bob Nystrom f32d1b2bcd Migrate block 37, language/arithmetic2 ... /async_await_syntax_test.
R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/2992003002 .
2017-07-28 11:16:23 -07:00
Sigmund Cherem b1065335cd Use dart2js_plaform.dill from the sdk.
This will enable --use-kernel tests in the dart2js bots.

After this change, running our tests will change a little bit, either of these
would work:

Option A: --use-sdk (host-checked not allowed)

python tools/test.py -m release \
   -c dart2js -r d8 --dart2js-batch --report \
   --dart2js-with-kernel --use-sdk \
   language corelib library_2 corelib_2 \
   dart2js_native dart2js_extra

Option B: pass --library-root, --host-check works here.
python tools/test.py -m release \
   -c dart2js -r d8 --dart2js-batch --report \
   --dart2js-with-kernel --host-checked \
   --dart2js_options="--library-root=out/ReleaseX64/dart-sdk/" \
   language corelib library_2 corelib_2 \
   dart2js_native dart2js_extra

In the future, when fasta supports compiling sdk with @patch files, we will
be able to remove the --library-root option and simply compile the SDK from
sources at that point.

BUG=
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2988063002 .
2017-07-28 10:07:08 -07:00
Erik Corry e431e93e87 Revert two Kernel changes that were causing test failures.
Example failure:
python tools/test.py -m release -c dartk --builder-tag no_ipv6 \
    language/function_type/function_type63_test

Revert "Serialize typedef parameters (including function typed ones) to Kernel and use it to resynthesize typedefs from Kernel."
This reverts commit afc392b66d.
Reverts https://codereview.chromium.org/2990783002

Revert "Add Member.documentationComment and use it to resynthesize documentation from Kernel."
This reverts commit 47ecf72272.
Reverts https://codereview.chromium.org/2990873002

Also reverts some attempts to fix test files:
302b410364
https://codereview.chromium.org/2984343002
05ccf27015
https://codereview.chromium.org/2992683002
f71dcd7834
https://codereview.chromium.org/2984363003

Also had to revert some test changes that were committed on top of a red buildbot, in order to try to get back to a place where bots were green:

23952fdf56
https://codereview.chromium.org/2990773002
557cab2a3e
https://codereview.chromium.org/2985173002

R=johnniwinther@google.com, karlklose@google.com
BUG=

Review-Url: https://codereview.chromium.org/2986093002 .
2017-07-28 14:08:23 +02:00
Bob Nystrom 05ccf27015 Fix analyzer test status in checked mode.
Review-Url: https://codereview.chromium.org/2992683002 .
2017-07-27 18:44:44 -07:00
Bob Nystrom 302b410364 Migrate missed file.
It's using a helper library that was migrated, so this should fix the
red bots.

Review-Url: https://codereview.chromium.org/2984343002 .
2017-07-27 16:22:16 -07:00