Commit graph

50252 commits

Author SHA1 Message Date
Ben Konyi
55e34cb2b0 Migrated test block 55 to Dart 2.0.
Bug:
Change-Id: I781d22614ea06b599dd9bbe6d03f820f0cfea544
Reviewed-on: https://dart-review.googlesource.com/5482
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-09-18 22:08:58 +00:00
Zachary Anderson
63067123df [standalone] Restore behavior of malformed -D option
fixes #30726

Change-Id: I9ac18e19b9d588df906eaea4de86ada0a3edc2c6
Reviewed-on: https://dart-review.googlesource.com/6166
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2017-09-18 21:04:48 +00:00
Konstantin Shcheglov
c22ec3702f Use forKernel constructor in super invocations.
R=brianwilkerson@google.com

Bug:
Change-Id: Id13ade26e1d6d2214f39d8ca51f85dabd6fa0f31
Reviewed-on: https://dart-review.googlesource.com/6760
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-18 20:38:42 +00:00
Konstantin Shcheglov
f2ff362c71 Fix for resynthesizing FutureOr in not strong mode.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I239bb013cb04c6e1ab07d644e3cca16119885321
Reviewed-on: https://dart-review.googlesource.com/6743
Reviewed-by: Paul Berry <paulberry@google.com>
2017-09-18 20:26:38 +00:00
Emily Fortuna
942963fa2e Add TypeVariable analysis in closure conversion.
Bug:
Change-Id: I4155ceb042295934cc3c9125d275dc5f034675dd
Reviewed-on: https://dart-review.googlesource.com/6025
Commit-Queue: Emily Fortuna <efortuna@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-09-18 20:26:33 +00:00
Harry Terkelsen
b49dd9fe98 register SUPER_NO_SUCH_METHOD feature when appropriate
Change-Id: If620aa0bb051d8bd014070e0a2c3e4c525dc6729
Reviewed-on: https://dart-review.googlesource.com/6643
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Emily Fortuna <efortuna@google.com>
Commit-Queue: Harry Terkelsen <het@google.com>
2017-09-18 19:54:12 +00:00
Zachary Anderson
f93d55e638 [Fuchsia] Only copy timeline event name when needed
Change-Id: Iaad17dd617dbc5b49d715a9d8efd1540caf54320
Reviewed-on: https://dart-review.googlesource.com/6740
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2017-09-18 19:47:31 +00:00
Konstantin Shcheglov
feb02ba034 Resynthesize types of function typed formal parameters.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I1afb45879afc67806dfb3d6fe18b172fd2b3c01a
Reviewed-on: https://dart-review.googlesource.com/6645
Reviewed-by: Paul Berry <paulberry@google.com>
2017-09-18 19:36:30 +00:00
Konstantin Shcheglov
cd2d54e1f3 Mark non_error_resolver_kernel_test as failing on Windows.
R=brianwilkerson@google.com

Bug:
Change-Id: Id52df29076684b47b98d532d61ba4671b93eb2a7
Reviewed-on: https://dart-review.googlesource.com/6647
Reviewed-by: William Hesse <whesse@google.com>
2017-09-18 19:24:49 +00:00
Gary Roumanis
07e9cfedad Load exception event
Dispatch load exception so that others can react without capturing the corresponding error. Will be used in conjunction with https://github.com/dart-lang/test/pull/682

Bug:
Change-Id: I19458ac01ba013cac6ad5408b3b763777e50ca4e
Reviewed-on: https://dart-review.googlesource.com/6644
Reviewed-by: Jake Macdonald <jakemac@google.com>
Commit-Queue: Gary Roumanis <grouma@google.com>
2017-09-18 19:12:52 +00:00
Jaime Wren
89b700eddd Migrated test block 54 to Dart 2.0
Some status files touched, and some constructor initializations re-ordedered to get DDC to pass.

Some context: https://www.dartlang.org/guides/language/effective-dart/usage#do-place-the-super-call-last-in-a-constructor-initialization-list

Change-Id: Ifd371214c5620a7745d5cfbf250922ca6d67bc95
Reviewed-on: https://dart-review.googlesource.com/4083
Commit-Queue: Jaime Wren <jwren@google.com>
Reviewed-by: Janice Collins <jcollins@google.com>
2017-09-18 18:39:12 +00:00
Konstantin Shcheglov
6d0452ff74 Resynthsize field in FieldFormalParameterElementImpl.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: Ied85d9f774dcace3af995be8bf9b1d179cc7eee4
Reviewed-on: https://dart-review.googlesource.com/6700
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-18 18:15:36 +00:00
Konstantin Shcheglov
6148189e44 Fix for implicit setter enclosing element.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: Ic75ea6bb2b396d4cfddc133f2e8f636fdfed9376
Reviewed-on: https://dart-review.googlesource.com/6642
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-18 17:55:58 +00:00
Konstantin Shcheglov
3b1d5b8432 Fix for resynthesizing ExecutableElement.type from Kernel.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I29542408fc4e7d5e7f43222f0fd5f19adaeb645a
Reviewed-on: https://dart-review.googlesource.com/6680
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-18 17:52:21 +00:00
Konstantin Shcheglov
d6fff5126d Fix for storing and resynthesizing import/export directive offsets.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: Icc187e2b68a765b65455c05a2d25a816123a9e92
Reviewed-on: https://dart-review.googlesource.com/6641
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-18 17:46:13 +00:00
Konstantin Shcheglov
f43c54ff22 Issue 30785. Fix for file URI on Windows in KernelContext.
R=brianwilkerson@google.com, paulberry@google.com

Bug: https://github.com/dart-lang/sdk/issues/30785
Change-Id: Iacf9cda1f26a696a745802d14183d9f06e485324
Reviewed-on: https://dart-review.googlesource.com/6640
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2017-09-18 16:59:06 +00:00
Brian Wilkerson
0995bbd6ef Pass the left paren in to listeners
Change-Id: I7de73b11c001f56fd45f60f58623c905b5a29f31
Reviewed-on: https://dart-review.googlesource.com/5325
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
Reviewed-by: Dan Rubel <danrubel@google.com>
2017-09-18 16:34:26 +00:00
Dmitry Stefantsov
2aef206f3f [kernel] Add the first draft of Kernel operational semantics in Coq
The semantics is defined for a small subset of Kernel.

Change-Id: I39b72c5671e9ca0dee86a5a6068fe745ad1728f1
Reviewed-on: https://dart-review.googlesource.com/5860
Reviewed-by: Samir Jindel <sjindel@google.com>
2017-09-18 15:16:23 +00:00
Morten Krogh-Jespersen
47d60740b2 Adding descriptions about current tools in gardening.
Change-Id: I7337fb938e1ff91be0304c7884ee38732253195e
Reviewed-on: https://dart-review.googlesource.com/6580
Commit-Queue: Morten Krogh-jespersen <mkroghj@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2017-09-18 14:49:46 +00:00
Karl Klose
5bfb095aa6 Mark analyzer unit test as failing on Windows
R=whesse@google.com

Change-Id: I4c20ca6aef3057a14e4930725dca80a13729a2c8
Reviewed-on: https://dart-review.googlesource.com/6468
Commit-Queue: Karl Klose <karlklose@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2017-09-18 13:06:46 +00:00
Karl Klose
ba09eb787c Revert "migrate function type tests"
This reverts commit ca6bec3414.

R=whesse@google.com

Change-Id: I57195534c4c32e0fcf0cd88f5171984b126be26e
Reviewed-on: https://dart-review.googlesource.com/6466
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Karl Klose <karlklose@google.com>
2017-09-18 12:05:46 +00:00
Samir Jindel
09f891b89b [kernel] Generalization of type equivalence to subtyping.
This revision includes changes from:
- [kernel] Completion of consistency proofs for type system of first subset of kernel.
due to the suckiness of gerrit.

We generalize type equivalence to subtyping. The contravariant property of
function parameter types causes properties for the totality checker. To
cicumvent this, we define a well-ordered relation on pairs of dart types and
prove subtyping respects it. We develop new lemmas and tactics for managing
proofs involving subtyping, includinging factoring out the messy business of
dealing with its convoluted recursion scheme.

Bug:
Change-Id: I18936168006617874a82eefc983f1b2d4d8af5af
Reviewed-on: https://dart-review.googlesource.com/5861
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2017-09-18 11:47:31 +00:00
Samir Jindel
12c4b62be8 [kernel] Completion of consistency proofs for type system of first subset of kernel.
Bug:
Change-Id: I5ae6fa1ddbb79b6f9dfecb53762b7ee5660c9117
Reviewed-on: https://dart-review.googlesource.com/5746
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2017-09-18 11:37:03 +00:00
Alexander Thomas
c02b19e51b Skip extremely slow tests on dart2js-d8-hostchecked builders
Bug:
Change-Id: I0daaa565a8010bed0bab18d36c0d6fef64f562d6
Reviewed-on: https://dart-review.googlesource.com/6400
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2017-09-18 11:30:26 +00:00
Jens Johansen
4d55a6779e [kernel] Offset on IfStatement
Bug:
Change-Id: I40acad4d9f66da0324dcf7da95aab05c0784faac
Reviewed-on: https://dart-review.googlesource.com/5661
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-09-18 09:31:09 +00:00
Erik Ernst
c15eed1269 Added metadata to new function type syntax parameter specifications
In https://github.com/dart-lang/sdk/issues/30732 the concern was raised
that the new Function type syntax does not support metadata on
parameter specifications (i.e., on normalParameterTypes and on
namedParameterTypes).

The implication of adding support for metadata in these locations is
that `@required` can be used on function types, which is the motivation
for submitting 30732.

We have always had support on parameter declarations in function typed
parameter declarations (`void foo(@A() int f(@A() String s))`), so in
this sense there is no new semantics to worry about (Lasse: "it doesn't
mean anything anyway!").

This CL modifies the generic-function-type-alias.md informal spec to
include this kind of metadata support.

Change-Id: I4520d330458242b31c991f62c03ca2f34f9c5e54
Reviewed-on: https://dart-review.googlesource.com/5762
Commit-Queue: Erik Ernst <eernst@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2017-09-18 09:31:08 +00:00
William Hesse
adb0e8864f Update Dart version to 2.0.0
Bug:
Change-Id: I13a8daea5f7adae670cea73d429d552c1e96c8e6
Reviewed-on: https://dart-review.googlesource.com/6461
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2017-09-18 09:31:05 +00:00
Lasse R.H. Nielsen
c620e827b7 Don't say that the Invocation object of setters/getters returns const map/list.
Currently the spec says that namedArguments of, say, a setter Invocation must
return the `const{}` map. That's badly typed for Dart 2(it should at least
be `const <Symbol,Object>{}`) and unnecessarily specific.
This change just requires the object to be empty and unmodifiable.

Also remove the spec handling invalidly overridden noSuchMethod.
That's not longer possible in Dart 2.

Change-Id: I3a983a44dd5939e42c85a53e9769f5961e03b986
Reviewed-on: https://dart-review.googlesource.com/6462
Reviewed-by: Erik Ernst <eernst@google.com>
2017-09-18 08:06:28 +00:00
Konstantin Shcheglov
50c964b819 Add option for AnalysisDriver to use KernelDriver and KernelResynthesizer.
Run NonErrorResolverTest_Driver tests with this option enabled.
We fail 163 out of 478 tests, or 35%.

R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: Iac6154a14a1357fe239b0140f9f66de792825693
Reviewed-on: https://dart-review.googlesource.com/6340
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-18 02:09:14 +00:00
Brian Wilkerson
300e1fa356 Add recovery tests and improve recovery test support
Change-Id: I20d8b41650e50c49f2146b57e71094780e96e4cd
Reviewed-on: https://dart-review.googlesource.com/6380
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-09-17 22:24:45 +00:00
Terry Lucas
358b62cd77 Migrated block 192 to Dart 2.0
R=bkonyi@google.com

Change-Id: I742f39564a8faf2ddf76817b4e493909d141f49c
Reviewed-on: https://dart-review.googlesource.com/6083
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-09-17 20:24:40 +00:00
danrubel
dc5378d3bd Update front_end messages_test
Update the test to report any messages
that have analyzerCode without a dart2jsCode

Change-Id: Icdbc5c71c25e7820d133388a8917ee373dbb611b
Reviewed-on: https://dart-review.googlesource.com/6280
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-17 14:52:42 +00:00
Paul Berry
76bfd75d51 Create a new class to handle propagation of covariance information.
This class will be expanded in future CLs to add the ability to create
forwarding stubs.

Change-Id: Icba0c19e7a5dcd3f55f559154fd0938e0190652f
Reviewed-on: https://dart-review.googlesource.com/6344
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2017-09-17 13:57:38 +00:00
Jennifer Messerly
ca6bec3414 migrate function type tests
I'd previously fixed most of these in strong mode. This also migrates the ones in the same text range.

Change-Id: Ieb637c0635502e46362594db3ce20ec414c95ffa
Reviewed-on: https://dart-review.googlesource.com/5521
Commit-Queue: Jennifer Messerly <jmesserly@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-09-16 05:28:43 +00:00
Konstantin Shcheglov
c4f6605d55 Resynthesize annotations for class type aliases and enums.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I593d6ada7176fc2c24f3e1d5d22f3acd92975594
Reviewed-on: https://dart-review.googlesource.com/5943
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-16 00:28:30 +00:00
Stephen Adams
69b50ed990 dart2js-kernel: Fix bug with finding optional parameter default values
Change-Id: Iefa443318124838aeafa9998e08d1143c1976dc4
Reviewed-on: https://dart-review.googlesource.com/6346
Reviewed-by: Emily Fortuna <efortuna@google.com>
2017-09-15 23:54:22 +00:00
Bob Nystrom
8140e1db64 Remove support for functions in asserts in DDC.
These are not supported in Dart 2.0:

https://github.com/dart-lang/sdk/issues/30326
Change-Id: I2e177a647c43af2bf7f37ff382234b12b8c2286c
Reviewed-on: https://dart-review.googlesource.com/4182
Reviewed-by: Jennifer Messerly <jmesserly@google.com>
2017-09-15 23:37:06 +00:00
Konstantin Shcheglov
329523060f Parse annotations for enums and named mixin applications.
R=ahe@google.com, paulberry@google.com, sigmund@google.com

Bug:
Change-Id: Iadc4de193176be22ea0af8f371f578df938b423c
Reviewed-on: https://dart-review.googlesource.com/6167
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-09-15 23:27:08 +00:00
Jacob MacDonald
2506174830 update pub for latest changes
Bug:
Change-Id: I67d3ade64561f8623df4fc6ab488e33bac2db480
Reviewed-on: https://dart-review.googlesource.com/3281
Reviewed-by: Kevin Moore <kevmoo@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-09-15 22:36:44 +00:00
Sigmund Cherem
1ca12788c6 Revert "Check whether type-arguments and type-parameters length match from the body builder."
This reverts commit 321a4ec048.

Some VM tests expect to see the behavior with a raw type instead of
an invalid type. I'll revert first, then resend this CL with the default
result changed.

R=ahe@google.com

Change-Id: I2cdd855dbaec93d0a0c257f7e202518fd9b59c81
Reviewed-on: https://dart-review.googlesource.com/6342
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-09-15 22:15:09 +00:00
Stephen Adams
f6c50ca219 Allow update_all to take multiple named suites
Bug:
Change-Id: I568502690d8691d90e3ee8fbff3c2a0d0736f978
Reviewed-on: https://dart-review.googlesource.com/6341
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-09-15 21:55:47 +00:00
Carlo Bernaschina
8caa652ea7 Disable links in Cpu Profile (Table)
Closes https://github.com/dart-lang/sdk/issues/27191

Change-Id: I06bc74895d26336976ff12666bbd88122b78b625
Reviewed-on: https://dart-review.googlesource.com/6168
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2017-09-15 21:54:40 +00:00
Konstantin Shcheglov
4568034722 Don't call logEvent() in AstBuilder - it spams to the console.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I3f106f4364d1f0cb8735f25f4f50f165f3185adb
Reviewed-on: https://dart-review.googlesource.com/6240
Reviewed-by: Paul Berry <paulberry@google.com>
2017-09-15 21:50:10 +00:00
Stephen Adams
dccce129e4 dart2js-kernel: Don't crash on non-constant constants
Change-Id: I7919ccdcd72f6653d2baa3c25c5d18df982ccda4
Reviewed-on: https://dart-review.googlesource.com/5941
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-09-15 21:44:24 +00:00
Brian Wilkerson
a715f60d51 Guard against race condition
Change-Id: Ie689e8e47559760c5955987005def7aef67e8e09
Reviewed-on: https://dart-review.googlesource.com/6262
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-09-15 21:27:40 +00:00
Florian Loitsch
5f11c123d4 Incorporate Lasse's comments.
Change-Id: I4906660337dc440fd1bbc2e39b656bd2c1e1ba91
Reviewed-on: https://dart-review.googlesource.com/6320
Reviewed-by: Florian Loitsch <floitsch@google.com>
2017-09-15 21:19:01 +00:00
Stephen Adams
79d918aaf3 update dart2js kernel status
TBR=sigmund@google.com

Change-Id: Ie897e2af7153eafa10e0ddb13484e02221370ed7
Reviewed-on: https://dart-review.googlesource.com/6170
Reviewed-by: Stephen Adams <sra@google.com>
2017-09-15 21:12:18 +00:00
Florian Loitsch
dfbd0570b4 Newsletter 2017-09-15.
Change-Id: I6a76a96975a1bfb36fa62fa887e1f7d922aadd1f
Reviewed-on: https://dart-review.googlesource.com/6300
Reviewed-by: Florian Loitsch <floitsch@google.com>
2017-09-15 20:41:41 +00:00
Sigmund Cherem
321a4ec048 Check whether type-arguments and type-parameters length match from the body builder.
Bug:
Change-Id: I395365393c9032ff179d675f42ca56b7981531e0
Reviewed-on: https://dart-review.googlesource.com/5620
Reviewed-by: Peter von der Ahé <ahe@google.com>
2017-09-15 20:37:41 +00:00
George Kulakowski
5923ff4900 Reorder Fuchsia file headers and gn format
These were left out of order by the mechanical changes that were part
of Fuchsia's Magenta->Zircon rename.

Change-Id: I41c81eb889c6076ffe82102018721e5abc74e7ac
Reviewed-on: https://dart-review.googlesource.com/6165
Reviewed-by: Zach Anderson <zra@google.com>
2017-09-15 20:28:49 +00:00