Commit graph

65178 commits

Author SHA1 Message Date
Devon Carew b5871f59bc [analyzer] update the pkg/.gitignore file to ignore the pkg/analysis_server/language_model/ dir
Change-Id: Ifbf832825a420916516c4d5cc7ced71906f09df5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110750
Reviewed-by: Ari Aye <ariaye@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2019-07-26 21:28:51 +00:00
Alexander Markov 575f5c8b90 Revert "[vm] Fix uri/path discrepancy preventing running snapshots via spawnUri"
This reverts commit c4b829ba2c.

Reason for revert: failures on several bots:

https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket.appspot.com/8906839588400817728/+/steps/test_results/0/logs/unapproved_failing_tests__logs_/0

https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket.appspot.com/8906839597885007504/+/steps/test_results/0/logs/unapproved_failing_tests__logs_/0

https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket.appspot.com/8906839588760701184/+/steps/test_results/0/logs/unapproved_failing_tests__logs_/0

Original change's description:
> [vm] Fix uri/path discrepancy preventing running snapshots via spawnUri
> 
> Change-Id: I718d7012d074b73eacfb0d4922fc744b6d2bd77b
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110547
> Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
> Reviewed-by: Ryan Macnak <rmacnak@google.com>

TBR=rmacnak@google.com,asiva@google.com,mfairhurst@google.com

Change-Id: Id43441d2259a17dff538c95d455a3839b284cad3
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110800
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2019-07-26 21:27:23 +00:00
Ben Konyi 0a73628a20 [ VM ] Fix asan failures in Isolate_getDebugName
Change-Id: Iccde0429fbbb3ecff7e68b33cc568252be511590
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110747
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Auto-Submit: Ben Konyi <bkonyi@google.com>
2019-07-26 20:58:41 +00:00
Nicholas Shahan dceeadae53 [dartdevc] Fix unevaluated constants when building SDK with kernel
Passing an empty map signals that the environment is empty and constants should
be evaluated.

Change-Id: I5611a2be81786aa7d42e24022198d52c60558cc8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110748
Reviewed-by: Mark Zhou <markzipan@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2019-07-26 20:51:21 +00:00
Konstantin Shcheglov d60345a77b Move import directive prefix offset into informative data.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: If0fb1a744eaa94fef6ab6302f393e6cd3a0cf18b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110745
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-26 20:43:16 +00:00
Mike Fairhurst c4b829ba2c [vm] Fix uri/path discrepancy preventing running snapshots via spawnUri
Change-Id: I718d7012d074b73eacfb0d4922fc744b6d2bd77b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110547
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2019-07-26 20:27:11 +00:00
Brian Wilkerson d2f1dde3c7 Merge two codes, improve some messages, and general code cleanup
In retrospect I probably should have made this three separate CLs, and
I'm happy to go back and do so if you'd prefer.

Change-Id: I816bbbc16794c86129c9b6501db4a5dce2a8e199
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110480
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-07-26 18:25:21 +00:00
Alexander Markov 16f7076547 [vm/bytecode] Generate bytecode for expression evaluation
Issue: https://github.com/dart-lang/sdk/issues/36427

Change-Id: I0a07bd8ff1be357d2962e6745c8ef1e500d45477
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109984
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2019-07-26 18:22:51 +00:00
Brian Wilkerson 6241ea1788 Disable running a test from test_all that breaks when run from a parent directory
Change-Id: I08c45f2e54c483e0cbe4bc46a9759c019c8d3f17
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110743
Auto-Submit: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Ari Aye <ariaye@google.com>
2019-07-26 18:22:39 +00:00
Brian Wilkerson a0e8fc935e Guard against NPE when checking for an implicit covariance cast in an invocation of an extension method
I'll add unit tests when the check is implemented. Note that there are
both co19 and language tests for this case.

Change-Id: Iad8499a32a6f21a58739b3179167ccce384afc86
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110780
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-07-26 17:59:53 +00:00
Brian Wilkerson 1d14f239b0 Fix one of the language tests
The identifier `in` is a reserved word and hence cannot be used as a variable name.

Change-Id: I557430e1f87573d19bfb22d7c09120139baa3731
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110581
Reviewed-by: Leaf Petersen <leafp@google.com>
2019-07-26 17:59:43 +00:00
Alexander Markov 75c2c7faf0 [vm/bytecode] Fix number of checked args when calling setters
TypeChecks.CovariantCheck +9.571%

Issue: https://github.com/dart-lang/sdk/issues/36429
Change-Id: Ib8ae0160e47d309e9f98b9ba5981c5be77c583d1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110680
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2019-07-26 17:33:11 +00:00
Konstantin Shcheglov d742779f04 Fix LeastUpperBoundTest tests for mixins.
When https://dart-review.googlesource.com/c/sdk/+/107444 landed,
it uncovered an issue in the mixin tests added in
https://dart-review.googlesource.com/c/sdk/+/110684

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

Change-Id: If67d926f9762494693220ef39c8c8d5833d1c45e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110744
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-26 17:23:38 +00:00
Johnni Winther 78224f9b0c [cfe+analyzer+dart2js] Support union markers in id-testing
Supports markers like `cfe|analyzer.` to annotated that the expected
result is for both `cfe` and `analyzer`.

Change-Id: Ie69809db5f63a9ee9b87ff1513b819fe85ce0bce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110500
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2019-07-26 17:18:01 +00:00
Johnni Winther bcfe26cba0 [cfe] Fail early on unsupported evaluated constants
The many different entrypoints to the CFE have repeatedly shown problems
with targets that do not support unevaluated constants being used
without providing an environment.

Making the targets opt-in to supporting unevaluated constants will
give the users of CFE early notice that CFE is used inconsistently
(as opposed to the backends failing when they happen to see an
UnevaluatedConstant node that they don't support).

Change-Id: I98c80df3a551823598e413e2895f5649f22f7c22
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110561
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2019-07-26 16:57:51 +00:00
Konstantin Shcheglov e1cb626127 Deprecate DartType.isEquivalentTo and replace with '=='.
There is just one use of it internally, in Angular, trivially fixable.

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

Bug: https://github.com/dart-lang/sdk/issues/35331
Change-Id: If46ca0e3a9faaeca4c4721de908ae675c651e4b7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110701
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-26 16:40:06 +00:00
Konstantin Shcheglov c49eeadd2a Remove workarounds for http://dartbug.com/37587
R=brianwilkerson@google.com, paulberry@google.com

Bug: https://github.com/dart-lang/sdk/issues/37587
Change-Id: Ic97738593996bbd1a77b1d62a967fa703ecb6e32
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110700
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-26 16:37:21 +00:00
Brian Wilkerson 8b81bb8115 Remove some unused imports
Change-Id: I516b544b3bdff07e67f444024789093907369959
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110760
Reviewed-by: Ari Aye <ariaye@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-07-26 16:32:01 +00:00
Konstantin Shcheglov a42f5a668f Include mixin superclass constraints into superinterfaces.
https://dart-review.googlesource.com/c/sdk/+/110348 uncovered an
issue that would have failed with assert() and returned null as LUB.

Found 3 failing tests while running presubmit in google3.

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

Change-Id: I7da3ad77f71262f68c5e16ab3d27e4ff43ab438f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110684
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-26 16:24:16 +00:00
Johnni Winther e9220a762b [dart2js] Cache [_ConstantNodeIndexerVisitor] on [_MemberData]
This avoids the recomputation of constant node indices on every
constant reference.

Closes #37611

Change-Id: I376a8cdb55da75e9050c544dc60d20eb7685c0c6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110563
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Auto-Submit: Johnni Winther <johnniwinther@google.com>
2019-07-26 16:23:56 +00:00
Konstantin Shcheglov 27bec56744 Add ExecutableElement(s) based InheritanceManager3, and switch analyzer to it.
Initial: 5d6bab4ed2.
Reverted: 39afa4e555
Change-Id: If611f96e6b0156ec218831dd64305e6ccf02e312
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110552
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-26 16:16:11 +00:00
Ben Konyi 545afa246c [ VM ] Fix potential races in Isolate_getDebugName
See https://dart-review.googlesource.com/c/sdk/+/108410/5/tests/lib_2/isolate/spawn_function_test.dart

Change-Id: I9f49f45c98ad3b69e6897f98e27094864c11947f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110740
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2019-07-26 16:15:51 +00:00
Ben Konyi f5400e9bcd [ Service ] Update package:vm_service description and homepage
Change-Id: I3a0365f2738b5af8733513ea25cc9a3d3e1379a6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110582
Reviewed-by: Devon Carew <devoncarew@google.com>
2019-07-26 15:50:30 +00:00
Teagan Strickland b68e5c4338 [vm] Clear native flag on dynamic invocation forwarders.
When creating a dynamic invocation forwarder, the VM clones the original
function object and then modifies the clone to create the forwarder.
Previously, the is_native flag was left untouched, but now it is
properly cleared.

Change-Id: I133ffdc0d0d3d727f7b7e47af22944e6b0574ee7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110721
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Teagan Strickland <sstrickl@google.com>
2019-07-26 15:10:08 +00:00
Martin Kustermann 7b850d213c [infra] Make tools/test.py --system=android -ax64 -cdartkp -mreleaes work
Our tools/test.py had no support for ia32/x64 android, which this CL
adds.

Issue https://github.com/dart-lang/sdk/issues/37638

Change-Id: I444c62049a26d65f54e1ccafba2526b488273c0e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110565
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Clement Skau <cskau@google.com>
2019-07-26 11:30:28 +00:00
Clement Skau 32bb7441b4 [nit] style in run_vm_tests.cc: func args comments, NULL -> nullptr.
Change-Id: Id3155c9420f3b28170de7964991f2cd3be52fcf8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110564
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Clement Skau <cskau@google.com>
2019-07-26 10:23:28 +00:00
Teagan Strickland d44076efea [vm/compiler] Add S-expression layer to serializer.
Instead of hand-writing S-expression output in the methods used by the
serializer, just create an appropriate S-expression data structure (with
handling of extra info maps) that handles serialization.

Bug: https://github.com/dart-lang/sdk/issues/36882
Change-Id: I9b56827d7452271de4b32c0c01cc2e4c4bcc0367
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109706
Commit-Queue: Teagan Strickland <sstrickl@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-07-26 09:09:18 +00:00
Konstantin Shcheglov 1365def43f Compare nullabilitySuffix in DartType equality.
I run it over internal codebase, and don't see failures.
https://test.corp.google.com/ui#id=OCL:255219117:BASE:255312965:1561602093402:afaf19f1

Change-Id: If5a33b05cc21c25501d4d721267f38f3a58cf010
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107444
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-26 05:11:56 +00:00
Nicholas Shahan 0ca1582afd Revert "[dartdevc] Temporarily skip const stress tests in DDK"
This reverts commit 8fb4240bcb.

Reason for revert: Fix has been merged.
https://dart-review.googlesource.com/c/sdk/+/109640/16

Original change's description:
> [dartdevc] Temporarily skip const stress tests in DDK
> 
> Revert this change once fixes have landed for DDK.
> 
> Issue: #37523
> Change-Id: I2855c647ceb5b9831466d8da458e6e7bcd810ee9
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110543
> Auto-Submit: Nicholas Shahan <nshahan@google.com>
> Commit-Queue: Nicholas Shahan <nshahan@google.com>
> Reviewed-by: Vijay Menon <vsm@google.com>

TBR=vsm@google.com,nshahan@google.com

Change-Id: Iace2084460eb42b0ebe05f72b8511c16fc1b28a4
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Issue: #37523
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110600
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
2019-07-25 23:50:46 +00:00
Mayank Patke 4bec4f043d [dart2js] Emit new RTI type rules.
Change-Id: I9d28a1f0244c8b3af0e9464f1fa55be79d0422a6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110380
Commit-Queue: Mayank Patke <fishythefish@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2019-07-25 23:46:37 +00:00
Konstantin Shcheglov 86dba81dec Tests for codeRange and metadata for annotations.
Implementation for summary2.

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

Change-Id: I7d092688a35702e12509a4450cbda8f5069abcef
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110583
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-25 23:10:35 +00:00
Konstantin Shcheglov 800b734ee5 Add DartType.isDartCoreNum getter.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: Iac0cfb3e3d97a0402fc52b041bac137adcc6b505
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110548
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-25 23:09:28 +00:00
Konstantin Shcheglov dcc7e038a4 Skip summary1 tests when summary2 is enabled.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: I98e44b926cd881cb24eeb1bcf1fe6028ac05c176
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110549
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-25 23:08:59 +00:00
Aart Bik 25f91383a7 [dart/fuzzer] show exit/stdout/stderr on fail
https://github.com/dart-lang/sdk/issues/37632

Change-Id: I38b996eca7f12b2f4e4d0412f1c922dd3999d60b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110584
Reviewed-by: Felicitas Hetzelt <felih@google.com>
Commit-Queue: Aart Bik <ajcbik@google.com>
2019-07-25 23:06:37 +00:00
Mark Zhou 7d6024b0ff [dartdevc] Fix for DDC overzealously expanding nested constants
Fixes https://github.com/dart-lang/sdk/issues/37523
Change-Id: I140d7d8fdce836dc0f7f2961711d70ec965e46d4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109640
Reviewed-by: Nicholas Shahan <nshahan@google.com>
2019-07-25 22:21:31 +00:00
Mike Fairhurst db25ef8a9c Report unnecessary !
Change-Id: Ie5fbe1e7697c2911eb9ff931bcf5d2e1cef9d171
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108944
Auto-Submit: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-25 21:45:09 +00:00
Liam Appelbe ac45f46ce0 Bump the ABI version and oldest supported version to the same value
ABI compatibility was broken by this change:
https://dart-review.googlesource.com/c/sdk/+/108723

The change is backwards incompatible, so we can't support any versions
older than this. We should have bumped the version when the CL was
submitted, but the bot failure was misidentified as a timeout.

Bug: https://github.com/dart-lang/sdk/issues/37630
Change-Id: I3b5563ab27f40b0876b5b7682e15e2b7d7408c2f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110541
Auto-Submit: Liam Appelbe <liama@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
2019-07-25 21:07:32 +00:00
Konstantin Shcheglov de71dd4173 Rename Reference.node2 to just 'node'.
R=brianwilkerson@google.com

Change-Id: Iddb1f3154ac7b711a3b7302f85e321cd896f61e0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110544
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-25 20:46:00 +00:00
Brian Wilkerson 95dcd5c258 Fix two bugs and refactor and extend the tests
Change-Id: Ie6e1a15c5332ab437a525fa8086e4ce58f671afd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110545
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-07-25 20:45:55 +00:00
Paul Berry 8b24e21980 Rename extension methods syntax test so that it actually runs.
The test infrastructure only runs tests whose name ends in "_test.dart".

Change-Id: I42bde31cf49318b87c270b4df9cc71fd9b89999c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110460
Reviewed-by: Leaf Petersen <leafp@google.com>
2019-07-25 20:23:10 +00:00
Konstantin Shcheglov aac3ce5573 Add failing tests for summaries and referencing / invoking static methods of extensions.
As requested in https://dart-review.googlesource.com/c/sdk/+/110363

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

Change-Id: I8f2aba0ea02e4857bba253131d2b73e17eaebcd4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110520
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-25 19:53:26 +00:00
Ben Konyi 20f17c725d [ Service ] Fix issue where FlagList was being populated with nulls in package:vm_service
Fixes https://github.com/dart-lang/vm_service_drivers/issues/255

Change-Id: I4e7e3864263d2a2120594b73369ff629fbfd810b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110546
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Kenzie Schmoll <kenzieschmoll@google.com>
2019-07-25 19:33:25 +00:00
Ryan Macnak 938d3be958 Revert "Add various missing argument checks to dart:io natives."
This reverts commit ba72890aa7.

Reason for revert: Crash in bytecode modes

Original change's description:
> Add various missing argument checks to dart:io natives.
> 
> Change type checks in embedding API functions to return UnhandledExceptionErrors instead of APIErrors so they are catchable by Dart.
> 
> Fixes invocation_fuzz_test.
> 
> Bug: https://github.com/dart-lang/sdk/issues/15274
> Bug: https://github.com/dart-lang/sdk/issues/23869
> Change-Id: Ia6103e7ffceda897e475c1a3ba534c2f4b910475
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110020
> Commit-Queue: Ryan Macnak <rmacnak@google.com>
> Reviewed-by: Siva Annamalai <asiva@google.com>

TBR=sortie@google.com,rmacnak@google.com,asiva@google.com

Change-Id: Ib52ec03caf4b177cd91bb1d366df51588bf23177
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/15274, https://github.com/dart-lang/sdk/issues/23869
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110580
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-07-25 19:18:23 +00:00
Nicholas Shahan 8fb4240bcb [dartdevc] Temporarily skip const stress tests in DDK
Revert this change once fixes have landed for DDK.

Issue: #37523
Change-Id: I2855c647ceb5b9831466d8da458e6e7bcd810ee9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110543
Auto-Submit: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
2019-07-25 19:01:37 +00:00
Ben Konyi 368b3f0ab4 Reland "[ VM / Service ] Pulled in vm_service_drivers from its own repo."
Changes from original CL:
 * Removed service_undocumented.md
 * Removed generation of wrappers for undocumented RPCs
 * Cleaned up generation code which was used for generating wrappers for undocumented RPCs
 * Removed JARs from pkg/vm_service/java/third_party

This reverts commit 477a3c4748.

Change-Id: I8d36733c8b2602e4935c3f23698d3f7c97a20187
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110135
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2019-07-25 18:46:43 +00:00
Ari Aye 5d5a0c0164 Check in token-level language model via tflite ffi
Local test run after running `gclient sync`:

ariaye@ariaye1:~/sdk/sdk$ dart pkg/analysis_server/test/services/completion/dart/language_model_test.dart
00:00 +0: calculates lookback
INFO: Initialized TensorFlow Lite runtime.
00:00 +1: predict with defaults
00:01 +2: predict with confidence scores
00:03 +3: predict when no previous tokens
00:04 +4: All tests passed!


Change-Id: I4181bea09cf8fec74d03bba4f83cd26dac818f30
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109662
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-25 18:39:51 +00:00
Konstantin Shcheglov b9ab8efca6 Implement LUB for interface types with nullability.
Using InstantiatedClass is a necessary step for fixing DartType.==
https://github.com/dart-lang/sdk/issues/37587

Change-Id: Ia959d841778b3894f50f47b7490b59b9d7ab6ba6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110348
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-25 17:48:24 +00:00
Brian Wilkerson 8fb6f68f43 Support resolution of this
Change-Id: I491703d7dd7c6eed6eebf3597ba33d10cfdb2958
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110402
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-07-25 17:23:38 +00:00
Johnni Winther 5357056a20 [cfe] Report errors when extension declarations are used as types
Change-Id: Iad0c7df54fac476c2f23af2fe4ba30ee5bf49167
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110222
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2019-07-25 17:20:54 +00:00
William Hesse f771a1f978 Skip deep constant nesting test on Windows dart2js. It crashes infrastructure.
Bug: https://github.com/dart-lang/sdk/issues/37631

These tests cause the dart2js batch mode compiler process
to resist termination somehow on Windows, which locks the dart.exe executable
and prevents sharding task cleanup.

Change-Id: Ica19e9d262f0b5b97c263205ba6fac030a3bedb7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110444
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2019-07-25 17:17:45 +00:00