Commit graph

65098 commits

Author SHA1 Message Date
Stephen Adams fcc99f1e06 [dart2js] new-rti: naming of interface type parameters
Change-Id: Id8b2aaac4e7a28f3da39652fa8d00c797407fb7c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109462
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-07-17 21:11:35 +00:00
Alexander Markov f450cf399e [vm/bytecode] Add UncheckedClosureCall instruction
This improves performance of closure calls:
DeltaBlueClosures: +25.14%
DartMicroBenchMM.MaxLib +40.91%
DartMicroBenchMM.MinLib +42.58%

Change-Id: I13000e20b9433ce77bb2ba5209513de575656036
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109220
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2019-07-17 21:05:44 +00:00
Konstantin Shcheglov 8dc4148516 Add await to all assertErrors/assertNoErrorsInCode tests.
R=brianwilkerson@google.com

Change-Id: I5bf1b77ba5224ae5b250a3aa849c1e6da057ac3d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109480
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-17 20:59:14 +00:00
Konstantin Shcheglov 8e17249b62 Refactor Flutter property tests.
R=brianwilkerson@google.com

Change-Id: I8b16b8e7bc514f23ea545360db6be59d3cfef576
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109461
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-17 20:36:35 +00:00
Konstantin Shcheglov 7de08740f2 Infer types of fields and field formal parameters together.
They might depend on each other, we cannot infer one or another first.

R=brianwilkerson@google.com

Change-Id: I9639a53561ec12d556fa1b45c44cf8aeb497f618
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109460
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-17 20:30:44 +00:00
Konstantin Shcheglov 9d204ca5d8 Start adding 'Container' properties.
R=brianwilkerson@google.com

Change-Id: I88c8194545dc3944318b897616e5a500c97ae4d5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109422
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-17 20:03:54 +00:00
Brian Wilkerson 1865a3c911 Produce diagnostic when extension override argument is not assignable to the extended type
Change-Id: I05f1f6fb62e01e1e8b4655a8d36e030b411090f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109423
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-07-17 19:59:05 +00:00
Liam Appelbe 0506882b37 [vm] Fix a couple more host vs target architecture bugs
Bug: https://github.com/dart-lang/sdk/issues/36839
Change-Id: I6ba25df7b5c8ebeda89a838377cb3af167dd91ac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109421
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
2019-07-17 18:57:04 +00:00
Brian Wilkerson 227ff83571 Add a diagnostic when an extension override is used to access a static member.
Also added missing awaits to several previously committed tests.

Change-Id: Ide2d714b02e36f097f7c958b609dd780ff333253
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109420
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-07-17 17:56:14 +00:00
Ryan Macnak c3043367cd [vm] Fail more gracefully when reload removes a static target.
Bug: https://github.com/dart-lang/sdk/issues/37517
Change-Id: I83b6bed09235d2abe3e168a49ca28434b127442f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109140
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2019-07-17 17:47:34 +00:00
Ryan Macnak 8cb7e4c237 [vm] Fix gcc build.
Change-Id: I78c5826ec042212a32fe50d6fe53a78f8e05fdf6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109314
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-07-17 16:23:45 +00:00
pq 895cb7720d “most specific extension” resolution first steps
Incomplete but enough there for some initial feedback.


Change-Id: I186b376826d7ffdd8ed2be8e263231abb78cc187
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109322
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-07-17 14:56:26 +00:00
Stephen Adams 41d3971e83 [corelib] Fix truncation errors in int.modPow
Use BigInt arithmetic when intermediate products might overflow.

Web versions range-check inputs to avoid working on truncated inputs.

Bug: 37469
Change-Id: I27d2da2fff7901ce6dbfa5929c6998e87e8808e2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109360
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-07-17 13:52:25 +00:00
Stephen Adams f77093145a [corelib] Test for overflow in int.modPow()
Bug: 37469
Change-Id: If7a6cc1063ddfdab1c5a0261a7b0c5d168c081b7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109316
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-07-17 13:49:05 +00:00
Brian Wilkerson 6073489539 Add diagnostic for undefined getters and setters invoked on an extension override
Change-Id: Ib66f203836e3900e2e151dd3a8b6be1360e12d50
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109319
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-07-17 12:36:16 +00:00
Teagan Strickland 2b3336b51e [vm/compiler] Initial IL serialization implementation.
Adds the --serialize_flow_graphs_to flag, which takes a
filename to which to serialize all compiled functions.
This flag is only active for the AOT compiler.

Bug: https://dartbug.com/36882
Change-Id: Ib7e328ad93373168806539f0a61ec0a07506a51d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107400
Commit-Queue: Teagan Strickland <sstrickl@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-07-17 09:11:15 +00:00
Johnni Winther a66a3e321e [cfe+dart2js] Handle duplicated references in constant nodes.
Change-Id: If21810ea938cd697039e9549c7dbd6ac869eabc8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109260
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2019-07-17 06:26:34 +00:00
Johnni Winther d68b482f26 [cfe] Handle constructor from external libraries
Closes #37532

Change-Id: I8b07addeb1da6bc4fe165ff535944fab8c6698b2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109261
Reviewed-by: Nicholas Shahan <nshahan@google.com>
2019-07-17 06:26:34 +00:00
Dan Field 78d87bde9a Fix docs for parseIPv6Address
Bug: https://github.com/dart-lang/sdk/issues/37547
Change-Id: Id388fc10f03187ce8feb9602c34dc99449bc96b0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109317
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2019-07-17 06:08:24 +00:00
Konstantin Shcheglov d14d5f1a0c Better check for TextStyle opt-in for nested properties.
Not a huge different, just closer to what we might want in the future.
I decided to make it explicit opt-in for now, until we kow better.

R=brianwilkerson@google.com

Change-Id: Ied8defe87bfd8b35117af085389cbab7e9b7d589
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109315
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-17 01:04:27 +00:00
asiva 5765c3d231 [VM/runtime] Enable FLAG_unopt_megamorphic_calls by default, this fixes
the recent regression seen in flutter hot reload benchmarks
	     after the roll of Dart BE into flutter post 1.7 release.

Change-Id: I188fa4aafdd7cdfa6b793de9d7ab00c9dae05409
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109361
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2019-07-17 00:56:14 +00:00
Siva Annamalai 1eaaca642d Revert "[vm/compiler] Use pragmas instead of separately-maintained lists for inlining."
This reverts commit 33a757284b.

Reason for revert: This CL seems to depend on
@pragma('vm:never-inline')`
@pragma('vm:prefer-inline')`
being implemented which has been reverted.

Original change's description:
> [vm/compiler] Use pragmas instead of separately-maintained lists for inlining.
> 
> This closes https://github.com/dart-lang/sdk/issues/36571.
> 
> Change-Id: I4d77192f2c33dd4872d58ef07ccd32069b8b63df
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99154
> Commit-Queue: Teagan Strickland <sstrickl@google.com>
> Reviewed-by: Martin Kustermann <kustermann@google.com>

TBR=kustermann@google.com,sstrickl@google.com

Change-Id: Ied0686ad282f2ed772ff9adbc551f64ba8855aff
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109340
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2019-07-16 22:44:50 +00:00
Siva Annamalai 27001fb289 Revert "[vm/compiler] Implement new inlining pragmas."
This reverts commit 629f38cf87.

Reason for revert: This CL seems to depend on constant_update_2018 flag being turned on by default. The CL that turns on constant_update_2018 has been reverted, so this CL is also being reverted.

Original change's description:
> [vm/compiler] Implement new inlining pragmas.
> 
> This change introduces two new pragmas:
> 
> * `@pragma('vm:never-inline')`
> * `@pragma('vm:prefer-inline')`
> 
> These replaces the old way of specifying AlwaysInline or NeverInline
> annotations when the (now removed) --enable-inlining-annotations flag
> was used.
> 
> Bug: https://github.com/dart-lang/sdk/issues/36571
> Change-Id: I2495c72819d94e43cefc837d4eb454b7b3d4140c
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99148
> Commit-Queue: Teagan Strickland <sstrickl@google.com>
> Reviewed-by: Samir Jindel <sjindel@google.com>

TBR=sjindel@google.com,sstrickl@google.com

Change-Id: Idc8e8344adb026a308af20c8b0d0224edb891d9c
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/36571
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109320
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2019-07-16 22:33:00 +00:00
Siva Annamalai 83d2aaa072 Revert "[dart] Enable constant-update-2018"
This reverts commit 9bbd3192f4.

Reason for revert: Reverting enabling of constant-update-2018 by default as some blocking issues were found that are breaking Flutter and preventing rolls of Dart into Flutter. Once the blocking issues are addressed and fixed this CL will be relanded.

Original change's description:
> [dart] Enable constant-update-2018
> 
> Change-Id: Ib3942b4f6e336a02826305d9f81839333a5464a0
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106943
> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
> Commit-Queue: Vyacheslav Egorov <vegorov@google.com>

TBR=paulberry@google.com,vegorov@google.com,athom@google.com,vsm@google.com,aadilmaan@google.com

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: I5796881412cec464f450ff3894ca253c58edc4a2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109308
Reviewed-by: Siva Annamalai <asiva@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
2019-07-16 22:30:36 +00:00
Brian Wilkerson 9d98dfcb49 Resolve operators whose left operand is an extension override
Change-Id: I2731e5c95cd9c3c3e127124ad22d08a8695b1235
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109311
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-07-16 22:04:28 +00:00
Konstantin Shcheglov 202379aaee Implement getWidgetDescription and setPropertyValue in Flutter domain.
R=brianwilkerson@google.com

Change-Id: I45fdb0121bdd067856e5c9e72466d9a5c1a00e55
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109313
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-16 21:32:37 +00:00
Brian Wilkerson d624848b5c Fix resolution when there are multiple extensions in one unit
Change-Id: I8ef55ad7e74fc6a87d5d927aeea5a8a5566a7668
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109312
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-07-16 21:11:52 +00:00
Mayank Patke 96fc1b4ade [dart2js] Support positional optional params in function RTI.
Change-Id: Ieebe334706752b19fd65d0eb62460c98217ab887
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109201
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Mayank Patke <fishythefish@google.com>
2019-07-16 21:06:52 +00:00
Mayank Patke 6d9da3612c [dart2js] Polyfill Object.assign()
Change-Id: I4ae5172c2e39106be3609d5c6a569d176fdc0066
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107581
Commit-Queue: Mayank Patke <fishythefish@google.com>
Auto-Submit: Mayank Patke <fishythefish@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2019-07-16 20:57:04 +00:00
Brian Wilkerson ae9c8d00fe Add a diagnostic when extension overrides do not have exactly one argument
Change-Id: Id48e8bc04c37cd45d018d3f9ec656c4b2d7426a6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109310
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2019-07-16 20:50:39 +00:00
Konstantin Shcheglov 46eaf4b039 Extract PropertyDescription, support for nested properties.
R=brianwilkerson@google.com

Change-Id: I3bf4938136120d640aaddc64854973714db33265
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109309
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-16 20:24:06 +00:00
Zichang Guo 1509d9ad41 [vm] initialize sigaction for msan
msan didn't recognize instance initialized with memset or bzero. Initialize all the instances.

Bug: https://buganizer.corp.google.com/issues/137630695
Change-Id: I0f4adf90cd9d4daa2abe783b1e1ca892bdacb690
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109306
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Zichang Guo <zichangguo@google.com>
2019-07-16 19:46:56 +00:00
Zichang Guo 9749a83f56 [vm/websocket] check status of streamcontroller before adding
ping/pong mechenism will send reponse without checking whether stream controller is closed or not.

Bug: https://github.com/dart-lang/sdk/issues/37441
Change-Id: Iaaec052a6ad82f1bccf7a50a646867665c7e9e8e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109304
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Zichang Guo <zichangguo@google.com>
2019-07-16 19:46:48 +00:00
Brian Wilkerson 11e3897b23 Resolve extension overrides referencing a geter or setter
Change-Id: I694110e7420b5f7d6450639f0af61948b3511711
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109305
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-07-16 18:56:48 +00:00
Brian Wilkerson b93a98284e Add an error if an undefined extension method is invoked
Change-Id: Ie21f2ab2ba12d8401cd82191020979b7c6dce244
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109301
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2019-07-16 17:07:00 +00:00
Ben Konyi 664c61db34 [ VM / Service ] Handle case where a JSON RPC notification results in an error
JSON RPC notifications never receive a response by design. In the VM
service, if an error needs to be returned for a request and the request
was a notification (i.e., has no ID associated with it), null is
returned. The Dart side of the service tries to create a Response object
with the null value, resulting in an exception being thrown. This change
will swallow the errors in situations where a notification RPC is
invalid.

Change-Id: If7d889150bfec51b933474f7a66fffb25e82daed
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109200
Reviewed-by: Siva Annamalai <asiva@google.com>
2019-07-16 15:58:16 +00:00
Brian Wilkerson 2dbd6dc83b Clean up the tests for extension overrides
Change-Id: I1e74b51220b08a48788a387b8c1c60ec60cc28fb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109122
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2019-07-16 15:03:40 +00:00
Johnni Winther 6d95cb72e2 [dart2js] Test type directives
Change-Id: I4b0459bc097bb5618ab32f479a703ec35303436b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109080
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2019-07-16 14:32:37 +00:00
Johnni Winther b2ed4b3c7b [dart2js] More error tests on pragma annotations
Change-Id: Ic8d27d795f5511ef46d3c7e53a179f766529d0b3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108814
Reviewed-by: Stephen Adams <sra@google.com>
2019-07-16 14:32:37 +00:00
Johnni Winther dfa12c7456 [cfe+dart2js] Support library and error ids in annotated tests
Change-Id: Ife808a7d4aa1d4cf459ac3c04ee6ff02042442d9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108810
Reviewed-by: Stephen Adams <sra@google.com>
2019-07-16 14:32:37 +00:00
pq 24f5d1d9d8 improve applicable extension checking
Follow-up from https://dart-review.googlesource.com/c/sdk/+/109144.

* guards against extension dups
* improves checking to only tests types once (and migrates to using `TypeSystem.isSubtypeOf`)


Change-Id: Ibb5791dc6a52374d751315385341071fee5dde1a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109240
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-07-16 13:44:32 +00:00
pq aa14ff1bd0 correlate typo
Change-Id: I800a122b574721457194eee5f47683d47cd92b81
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109241
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-07-16 13:44:02 +00:00
Samir Jindel 5c3691e9e8 [vm] Use absolute file path to snapshot in dart_precompiled_runtime2 tool.
Change-Id: I99d13aed0cb41c6b7e226bce3fd359c86e6f17a2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108727
Commit-Queue: Samir Jindel <sjindel@google.com>
Auto-Submit: Samir Jindel <sjindel@google.com>
Reviewed-by: Clement Skau <cskau@google.com>
2019-07-16 13:16:52 +00:00
Brian Wilkerson e80f779914 Add context messages for equal map keys and set elements
Change-Id: If1a2af91f35f869f7a9df89d0729949d5098c3b9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109181
Auto-Submit: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-07-16 13:14:02 +00:00
Teagan Strickland 33a757284b [vm/compiler] Use pragmas instead of separately-maintained lists for inlining.
This closes https://github.com/dart-lang/sdk/issues/36571.

Change-Id: I4d77192f2c33dd4872d58ef07ccd32069b8b63df
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99154
Commit-Queue: Teagan Strickland <sstrickl@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-07-16 10:37:02 +00:00
Teagan Strickland 629f38cf87 [vm/compiler] Implement new inlining pragmas.
This change introduces two new pragmas:

* `@pragma('vm:never-inline')`
* `@pragma('vm:prefer-inline')`

These replaces the old way of specifying AlwaysInline or NeverInline
annotations when the (now removed) --enable-inlining-annotations flag
was used.

Bug: https://github.com/dart-lang/sdk/issues/36571
Change-Id: I2495c72819d94e43cefc837d4eb454b7b3d4140c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99148
Commit-Queue: Teagan Strickland <sstrickl@google.com>
Reviewed-by: Samir Jindel <sjindel@google.com>
2019-07-16 09:41:12 +00:00
Todd Volkert 1c4ad14fa3 Revert recent changes to File.openRead() and HttpClientResponse APIs
This changes `File.openRead()` back to returning a `Stream<List<int>>`
and `HttpClientResponse` back to implementing `Stream<List<int>>`.
These two changes broke a significant number of call sites; backing it
out enables us to keep the changes from landing in the next dev release
until we analyze whether we can roll these changes out in a softer
manner or if they're worth making at all.

Bug: https://github.com/dart-lang/sdk/issues/36900
Change-Id: I8977abcba40c58a4ca2b4a05d857512989a1e0b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109102
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Todd Volkert <tvolkert@google.com>
2019-07-16 06:05:11 +00:00
Johnni Winther 4cd16d3954 [analyzer+cfe] Use more shared code for annotated code testing.
Change-Id: Id1d234beed0059c84375bbeefb4755fac23d72c6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108817
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2019-07-16 05:41:11 +00:00
Johnni Winther d5af4ed8c2 [cfe] Remove KernelTypeBuilder and KernelFunctionTypeBuilder
TypeBuilder and FunctionTypeBuilder are only subclassed by
KernelTypeBuilder and KernelFunctionTypeBuilder, respectively, so the
distinction can be removed.

Change-Id: I2cccd0d6b08f695ecb6ccb543f858edd4919cfda
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108819
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2019-07-16 05:40:41 +00:00
Zichang Guo 0661c452cd [vm] skip profile test for simdbc
Bug: https://github.com/dart-lang/sdk/issues/36932
Change-Id: I2062da67f5d679b65ac746f424f1bb1f5450834e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109180
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Zichang Guo <zichangguo@google.com>
2019-07-16 00:15:01 +00:00