Commit graph

50252 commits

Author SHA1 Message Date
Florian Loitsch
1483fc16fb Update co19-status file with bug number.
Change-Id: Id1a93dc120f15be82dfea91fe779f4993354a562
Reviewed-on: https://dart-review.googlesource.com/7320
Reviewed-by: Florian Loitsch <floitsch@google.com>
2017-09-20 15:51:56 +00:00
Florian Loitsch
38bf70d7ac Use generic functions in zones.
Migrated from https://chromiumcodereview.appspot.com/2893893002/

Change-Id: I0bd6dc1438eb1e6762e7760a08b5a760b07d4b10
Reviewed-on: https://dart-review.googlesource.com/4942
Reviewed-by: Florian Loitsch <floitsch@google.com>
Commit-Queue: Florian Loitsch <floitsch@google.com>
2017-09-20 15:46:06 +00:00
Paul Berry
a8afd3ab16 Remove reified_dart.dart, batch_consistency.dart, and dartk.dart.
These files all have to do with the old "dartk" front end, which is no
longer used.

Change-Id: I67041bf0a3a8a9213153123d9f79ac1632cc4d24
Reviewed-on: https://dart-review.googlesource.com/7101
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2017-09-20 15:33:16 +00:00
Morten Krogh-Jespersen
a535f656c2 Adding table outputs to consoles.
Bug:
Change-Id: Idea8360620f2f8370114ff231e6ffb38bfca9ab3
Reviewed-on: https://dart-review.googlesource.com/7262
Commit-Queue: Morten Krogh-jespersen <mkroghj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-09-20 13:02:06 +00:00
Samir Jindel
8ebdd7662f [kernel-coq] Build class and function table, allow mutually recursive functions and classes.
Bug:
Change-Id: I0d1fb82bccdf8174e4ab5ffdd38301600ecf4dd2
Reviewed-on: https://dart-review.googlesource.com/6620
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2017-09-20 12:51:34 +00:00
Erik Ernst
8562c8ff1b Adjusted spec of initializing formal type annotation
During migration of lib/mirrors/initializing_formals_test.dart to lib_2
it became apparent that strong mode makes it an error to have different
type annotations on an initializing formal and the corresponding field.
The language team discussed this and decided that we will take a middle
way: These type annotations can differ, but the initializing formal
must have a subtype.

This CL adjusts the spec to say that. In line with the rest of the
spec it is still a static warning (we will migrate all the static
warnings to errors as a separate step).

Change-Id: I66656c2933b7f86b78f0b06eadbf5edc0f58a3c6
Reviewed-on: https://dart-review.googlesource.com/7264
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2017-09-20 11:38:26 +00:00
Lasse R.H. Nielsen
83de2423ae Revert "Simplify logic for creating a single IsolateRunner in analyzer."
This reverts commit 7867fed521.

Reason for revert: 
Type error caught by DDC where the type of the function passed to isolate.run isn't what the runner expects.

Original change's description:
> Simplify logic for creating a single IsolateRunner in analyzer.
> 
> Change-Id: I8583f9947fde8f4cf87d7feb64c8eb170a19e81d
> Reviewed-on: https://dart-review.googlesource.com/6941
> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>

TBR=lrn@google.com,scheglov@google.com

Change-Id: I5a0e46e345673dee447fd848c064dd0039832fb1
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/7280
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2017-09-20 11:05:28 +00:00
Lasse Reichstein Holst Nielsen
7867fed521 Simplify logic for creating a single IsolateRunner in analyzer.
Change-Id: I8583f9947fde8f4cf87d7feb64c8eb170a19e81d
Reviewed-on: https://dart-review.googlesource.com/6941
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2017-09-20 09:14:59 +00:00
Lasse R.H. Nielsen
1d9ed20e06 Add >>> operator to specification.
Change-Id: Icade60331f708f895906dad9445878c6f32f9131
Reviewed-on: https://dart-review.googlesource.com/6621
Reviewed-by: Florian Loitsch <floitsch@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2017-09-20 07:51:46 +00:00
Stephen Adams
617f6ac197 Weaken constructor initializer assertion
Accept a missing super-constructor call if one of the constructor
initializers always throws.  This matches dynamic error code generated
for various warnings, including duplicate final initializers.

Change-Id: If188c9d8d6d02bf9667123fbf679f1c103b5ef5a
Reviewed-on: https://dart-review.googlesource.com/7240
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-09-20 02:18:21 +00:00
Ben Konyi
192579020c Migrated test block 121 to Dart 2.0.
Bug:
Change-Id: I194436597ba39b2e2b872fb58b77314ab925b3aa
Reviewed-on: https://dart-review.googlesource.com/7080
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-09-19 23:36:24 +00:00
Ryan Macnak
3d21a46b72 Limit preserialized JSON for timeline events from Dart code to the arguments.
Avoids string copies in C++ and map copies in Dart.

Also remove some vestiages of removed feature that allowed an embedder to add pre-encoded events to the timeline.

Change-Id: I962a67093ba461c991d9169b0391c44af1d489db
Bug: https://github.com/dart-lang/sdk/issues/30787
Reviewed-on: https://dart-review.googlesource.com/6762
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
2017-09-19 23:29:55 +00:00
Paul Berry
2d74043f3a Implement type promotion of type parameter bounds.
Fixes #30804.

Change-Id: I16094e54514b2109fda4b388083d2467a0b11bc7
Reviewed-on: https://dart-review.googlesource.com/7105
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2017-09-19 23:19:46 +00:00
Emily Fortuna
9a531f9b50 Get async/await working with the entity model.
Bug:
Change-Id: I803cb8f8a681563d76d6eed56116267f64a9ba8a
Reviewed-on: https://dart-review.googlesource.com/7106
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-09-19 22:29:34 +00:00
keertip
e4d28e60fc Update DEPS to pull in packages for zone strong changes
Bug:
Change-Id: If69f46c9f5d7643e954400b63d1b867bbae7f39b
Reviewed-on: https://dart-review.googlesource.com/7103
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
2017-09-19 21:48:23 +00:00
Vijay Menon
6ce85d5f99 Revert "Remove support for functions in asserts in DDC."
This reverts commit 8140e1db64.

Change-Id: If505903ba475324392d6c6bcdae3392f523aadc8
Reviewed-on: https://dart-review.googlesource.com/7107
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Vijay Menon <vsm@google.com>
2017-09-19 21:46:13 +00:00
Alexander Markov
26c08fb53a [VM, Compiler] Add null checks to AOT call specializer
This CL inserts CheckNull instructions into appropriate places where
calls to int and double operators are specialized in AotCallSpecializer.
These checks are required for correctness.

Also, this CL adds tranformation of CheckedSmiComparison into int64
RelationalOp/EqualityOp instructions during canonicalization, as more
accurate type information may become available at later compilation
stages. This optimization counters early insertion of CheckedSmiComparison
instructions performed by AotCallSpecializer speculatively, without
sufficient knowledge of types (with sufficient knowledge it would insert
int64 operations at the first place).

Issue: https://github.com/dart-lang/sdk/issues/30480
Change-Id: I150cd25bd5d9b4c9fc1c2e7d175025760ca9702d
Reviewed-on: https://dart-review.googlesource.com/6348
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2017-09-19 21:44:24 +00:00
pq
5fa545bc84 STATUS file tweaks for string_literals_test dart2js crashers on windoze.
Bug:
Change-Id: I50c6569db54dc36e0f97163a5c42b568eb25cfff
Reviewed-on: https://dart-review.googlesource.com/7120
Reviewed-by: Jaime Wren <jwren@google.com>
2017-09-19 21:10:21 +00:00
Dan Rubel
9c1d97bb9c update parser to use token.isModifier
Change-Id: Iee07cbde6c45b621bb13d1774c1d9f4bd97268ea
Reviewed-on: https://dart-review.googlesource.com/6840
Reviewed-by: Peter von der Ahé <ahe@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2017-09-19 20:27:03 +00:00
Emily Fortuna
5402179bd4 Properly pass on this as a free variable when inside closures.
Bug:
Change-Id: Iba32dbc40e9361030a885b50a9e816c0ac123884
Reviewed-on: https://dart-review.googlesource.com/7102
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-09-19 20:16:45 +00:00
Brian Wilkerson
f6e3e1f549 Add outline support for the test package
Change-Id: Iff938d55082b3b222cf801ea53d4eaf5feb1e094
Reviewed-on: https://dart-review.googlesource.com/6980
Reviewed-by: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-09-19 18:59:54 +00:00
pq
54c29a24f5 Fix STATUS for string_interpolate_test [TBR].
Bug:
Change-Id: Iecfc7bd23cc85d8607bca72ca95a039bb37486aa
Reviewed-on: https://dart-review.googlesource.com/7100
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2017-09-19 18:06:28 +00:00
Brian Wilkerson
c0bf4ab395 Handle recursive import/export graph in completions
Change-Id: Ia164c13f3119f569d781292353acc17243c8a464
Reviewed-on: https://dart-review.googlesource.com/7000
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2017-09-19 18:01:04 +00:00
pq
8374f9825b Fix block 156 test migration STATUS file expectations [TBR].
Bug:
Change-Id: I9e6e915a90b55fbe96da54278da16587aee9e4aa
Reviewed-on: https://dart-review.googlesource.com/7040
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2017-09-19 17:12:37 +00:00
Stephen Adams
899e2eab15 update rank_stacks comment
TBR=sigmund@google.com

Bug:
Change-Id: I5acdcdc7573106c0eea51447862bce3a0f381c6f
Reviewed-on: https://dart-review.googlesource.com/7020
Reviewed-by: Stephen Adams <sra@google.com>
2017-09-19 16:36:12 +00:00
Brian Wilkerson
d95009d14a Remove unused import to fix the bots (TBR)
Change-Id: Ia1bc12ac6ccd02a03a3d8f2a6ac95394ef7a13f3
Reviewed-on: https://dart-review.googlesource.com/7001
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-19 16:23:15 +00:00
pq
ced11f1b0c Migrate test block 153 to Dart 2.0.
Change-Id: Ide65fb47af440e32648d01f46ad6f858b9faeadf
Reviewed-on: https://dart-review.googlesource.com/3742
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-09-19 16:20:45 +00:00
Brian Wilkerson
bd33fb43bd Pass the left brace in an enum declaration to the listeners (rather than the right brace)
Change-Id: I3bec6cbde6beb1233c48e7ed8926f0e98fd8e3a5
Reviewed-on: https://dart-review.googlesource.com/6741
Reviewed-by: Dan Rubel <danrubel@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-09-19 15:35:33 +00:00
Johnni Winther
b64e409ec3 Update --dart2js-with-kernel status
Change-Id: I658b537fe4066525e1bab6d48776174a8b5397d6
Reviewed-on: https://dart-review.googlesource.com/6962
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-09-19 13:46:48 +00:00
Alexander Thomas
851f689c7c Skip co19/LayoutTests/fast/canvas/webgl/tex-image-and-sub-image-2d-with-video-rgba5551_t01 test on dart2js/chrome
Bug:
Change-Id: I8733b9aa42013315edd261eab9e147f3ec22c7d0
Reviewed-on: https://dart-review.googlesource.com/6960
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2017-09-19 13:33:23 +00:00
Aske Simon Christensen
2259cd377c Better error message for illegal qualified types
Also simplifies handleType to include only the relevant cases.

Closes https://github.com/dart-lang/sdk/issues/29940
Closes https://github.com/dart-lang/sdk/issues/29945
Closes https://github.com/dart-lang/sdk/issues/29980
Change-Id: If685437a7689aadaf980cc626be09296c74d00e9
Reviewed-on: https://dart-review.googlesource.com/6920
Reviewed-by: Peter von der Ahé <ahe@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
2017-09-19 13:20:03 +00:00
Johnni Winther
08c0d36b6d Address comments
in https://dart-review.googlesource.com/c/sdk/+/6860

Change-Id: I466e9123d152537005898f97998b62200d81ee45
Reviewed-on: https://dart-review.googlesource.com/6961
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-09-19 12:28:40 +00:00
Johnni Winther
e61f8461f3 Support --commit in compare_failures
Change-Id: Ie54419ab14b6fef9401404da1063e556e9dc2131
Reviewed-on: https://dart-review.googlesource.com/6860
Reviewed-by: Morten Krogh-jespersen <mkroghj@google.com>
2017-09-19 12:09:44 +00:00
Johnni Winther
639ddd3067 Pass rti info for local functions to the closure converter
Change-Id: I593ad134a16ee10b43b50213db9774e7c2671f22
Reviewed-on: https://dart-review.googlesource.com/6600
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Emily Fortuna <efortuna@google.com>
2017-09-19 12:00:03 +00:00
Johnni Winther
6976262fa1 [gardening] Skip analyzer/test/generated/non_error_resolver_kernel_test
Change-Id: Ia175864e0bfa19c86d56d5135a6197a9917bedff
Reviewed-on: https://dart-review.googlesource.com/6861
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-09-19 10:34:25 +00:00
Johnni Winther
563304f174 Include constructors in equivalence tests
Change-Id: I3725d6801b19b1737c60ee0d8c07f21a71d8f470
Reviewed-on: https://dart-review.googlesource.com/6582
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Emily Fortuna <efortuna@google.com>
2017-09-19 10:08:53 +00:00
Johnni Winther
f9a490128e Compute closure classes before creating JsClosedWorld.
Change-Id: I28f0188d2f6b669c1bbc77c3050c0d90230ccdf1
Reviewed-on: https://dart-review.googlesource.com/5768
Reviewed-by: Emily Fortuna <efortuna@google.com>
2017-09-19 09:03:54 +00:00
Alexander Thomas
203c339583 Use separate unittest builder for dart2js
Bug:
Change-Id: Ic5835777ec9e32a1558728c31b1fa1b8787fb386
Reviewed-on: https://dart-review.googlesource.com/6467
Reviewed-by: William Hesse <whesse@google.com>
2017-09-19 08:12:37 +00:00
Morten Krogh-Jespersen
51f78ee83c Building result tool to interpret result.log and status files.
Change-Id: If74fad44ac9253cd0046c52bf070d507964bcab8
Reviewed-on: https://dart-review.googlesource.com/3542
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-09-19 07:41:09 +00:00
Johnni Winther
5cad3ee498 Avoid continue in switch
Change-Id: Ibe6a89916efc133ef8234d0c73bbf091a103d6b4
Reviewed-on: https://dart-review.googlesource.com/6440
Reviewed-by: Emily Fortuna <efortuna@google.com>
2017-09-19 06:30:46 +00:00
Stephen Adams
eab4615f74 Add missing abstract method to interface
Fixes analyzer warning.

Bug:
Change-Id: I404855f42190be10a11658cf8f144c2627b73117
Reviewed-on: https://dart-review.googlesource.com/6820
Reviewed-by: Stephen Adams <sra@google.com>
2017-09-19 03:35:59 +00:00
Paul Berry
a811daca97 Add serialization/deserialization for parameter type check annotations.
Change-Id: I8a156de8f0b73606172f8a4ab48c595b92116aeb
Reviewed-on: https://dart-review.googlesource.com/4604
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2017-09-19 02:07:29 +00:00
Konstantin Shcheglov
08c4cc6e61 Create (empty) initializers for variables resynthesized from Kernel.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I42df66c747b79639227f0c55f4ed67c959b15eb9
Reviewed-on: https://dart-review.googlesource.com/6769
Reviewed-by: Paul Berry <paulberry@google.com>
2017-09-19 01:48:04 +00:00
Konstantin Shcheglov
44c43773c9 Attempt to fix Windows bots for non_error_resolver_kernel_test.
TBR

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

Bug:
Change-Id: I2b764c7a5bf020f0983c1e9abb226091c888571b
Reviewed-on: https://dart-review.googlesource.com/6768
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2017-09-19 01:36:34 +00:00
Ryan Macnak
6346544bb4 Suppress false positive from reload test harness because child process does not execute Dart code.
Change-Id: I898c701f656418ba3f87f34585a473b528664933
Reviewed-on: https://dart-review.googlesource.com/6767
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2017-09-19 01:12:50 +00:00
Konstantin Shcheglov
8a90e7a113 Explicitly disable colors in CompilerContext when run KernelDriver.
Running external processes while performing compiletion is crazily
expensive and surprising. This makes NonErrorResolverTest_Kernel about
2x faster (although still 2x slower than the current AnalysisDriver
implementation).

R=ahe@google.com, paulberry@google.com, sigmund@google.com

Bug:
Change-Id: I577fc15de50eeb7eba9454cb506bb2c30cd161ff
Reviewed-on: https://dart-review.googlesource.com/6660
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-09-19 01:08:08 +00:00
Ryan Macnak
913d828db0 [standalone] Restore --snapshot without --snapshot-kind generating a script snapshot.
Broken in d7845c6a6f

Issue #30790

Change-Id: Ifbe95a88e5b06d6d7fd1061bd26975262ac97515
Reviewed-on: https://dart-review.googlesource.com/6765
Reviewed-by: Zach Anderson <zra@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2017-09-19 00:27:08 +00:00
Stephen Adams
f115e1926f Make DirectPropertyGet a compile time crash rather than a runtime crash
These are infrequent, so can be better tracked as a compile-time issue.

Change-Id: I79a25c3cad1e7b003244cc5baa1a8a788586a0af
Reviewed-on: https://dart-review.googlesource.com/6761
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-09-19 00:25:12 +00:00
Ben Konyi
dbb52fac32 Fixed failing tests on dart2js-d8-minified.
TBR=rnystrom@google.com

Bug:
Change-Id: Iafed1fb898b78a1a5d1332473f542eb0ad63b31f
Reviewed-on: https://dart-review.googlesource.com/6766
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-09-19 00:06:14 +00:00
Brian Wilkerson
98910a0887 Remove unnecessary use of utility function
Change-Id: I5db826177001cc3b9b2e0eff977e5692754b3258
Reviewed-on: https://dart-review.googlesource.com/6661
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-09-18 22:45:08 +00:00