Commit graph

65098 commits

Author SHA1 Message Date
Paul Berry 851eaad61a Flow analysis: Rename Element to Variable.
The "elements" used by flow analysis always represent variables
anyway, and the front end has no notion called "element", so just
calling them variables is clearer.

Change-Id: Ibd450742b97aafea77d3339609f5a83090405b0d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109743
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-07-20 05:01:43 +00:00
Paul Berry 842812dd0b Flow analysis: Remove unnecessary arg to ifStatement_thenBegin
Change-Id: I56242547905825108759ef015ec96668bf75d8d2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109742
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-07-20 05:01:43 +00:00
Paul Berry 0faa3b7153 Flow analysis: Remove hack preventing variables showing as both nullable and non-nullable.
It's better to annotate the test to match the way the code is truly
behaving, and include TODO comments indicating what needs to be
changed, because then when we make the fix we'll be able to see the
behavioral difference in the diff.

Change-Id: I28faad5787f8c70d3b5f5d8fc3510b0e3fb294f2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109741
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-07-20 05:01:43 +00:00
Alexander Markov fedd74669a [vm/bytecode] Support multiple entry points when compiling from bytecode
DeltaBlueClosures +26.54%

Closes https://github.com/dart-lang/sdk/issues/36889
Issue: https://github.com/dart-lang/sdk/issues/36429

Change-Id: I8920c7985366a2c955a06013aa9f58763fcbced9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109580
Reviewed-by: Régis Crelier <regis@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2019-07-20 00:05:23 +00:00
Stephen Adams 9cd47ac2e6 [dart2js] new-rti: Generate correct $signature functions for closures
Change-Id: I0f75195be4a75b46793b1cd9ec49ecc6e783611d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109723
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-07-19 22:52:51 +00:00
Aart Bik ebc180be95 [dart/vm] Fix bug on missed exception in AOT
Rationale:
The regression test in this CL should throw
with a NoSuchMethod on null. However, before
the fix, AOT did not throw at all.

https://github.com/dart-lang/sdk/issues/37408

Change-Id: I4037b163092caf78d313815624fd3b20c20f88ca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109550
Commit-Queue: Aart Bik <ajcbik@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2019-07-19 22:43:31 +00:00
Konstantin Shcheglov 1014272f3b Extent 'alignment' property, copy from Align, virtual Container.
R=brianwilkerson@google.com

Change-Id: I9bec5b32e91f3cb77c4996f0ba0e7c2dd424316b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109724
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-19 21:41:03 +00:00
pq 75f6822c70 fix for unnamed extensions
Change-Id: I93947d66e41314e64c5f14b398fd73bf5344dccb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109722
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-07-19 18:27:54 +00:00
Liam Appelbe 3756fa6964 [vm] Fix remaining AssemblyImageWriter issues for simarm_x64
Bug: https://github.com/dart-lang/sdk/issues/36839
Change-Id: I252414c6db349d1cb546e513c9b8a5f2d9872ed4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109720
Commit-Queue: Liam Appelbe <liama@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2019-07-19 18:21:30 +00:00
Régis Crelier 1ddb120eaa [vm/bytecode] Improve bytecode debugger.
While stepping, do not stop more than once in the same token range.
Adjusted tests expecting multiple stops at same location.
Fixed emitted source position of DebugCheck opcode in async op.
Ignore all possible breakpoint positions until the first DebugCheck opcode of
the function, so as to not stop in the prologue where arguments are not yet
accessible.
Fixed look up of context level in debugger.
Use receiver to look up async op closure in frame instead of named captured
variable.
Made StoreContextVar a 'debug checked' opcode.
Implemented rewind of interpreted frames.
Marked get_source_report_test as (temporarily) failing in status file.
Removed fixed and passing regression test from status file.

Change-Id: I9396d3cf4b6accc85753bb6d227b7c068acc8df7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109558
Commit-Queue: Régis Crelier <regis@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2019-07-19 18:19:50 +00:00
Brian Wilkerson 4fc387f27e Update doc the generator to convert code blocks
Change-Id: I7b5b6c42d700762bf82331113f90091754283534
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109620
Reviewed-by: Kathy Walrath <kathyw@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-07-19 17:51:10 +00:00
Stephen Adams a089199b93 Fix for issue 37494
A bad 'dummy interceptor' optimization was applied to a super-call to
a method that is used in an intercepted class. This lead to seeing '0'
instead of the List receiver. Fix is to base decision on the target
method when available.

Bug: 37494
Change-Id: I07e5555cbe0083d7dd2510dc5bb0cba99201cd0d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109553
Reviewed-by: Mayank Patke <fishythefish@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-07-19 17:09:30 +00:00
pq 2faee21edb diagnostic for static extension member access
Change-Id: I5380fa6240434ff398cdbd7efeae32b11336cf69
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109681
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-19 16:57:23 +00:00
Samir Jindel c6f3d972b8 [vm] Support flushing icache on all ARM platforms.
Change-Id: Id6987dca1e284179096de3b74e7b537ca93bd2bc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109701
Commit-Queue: Samir Jindel <sjindel@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-07-19 15:56:09 +00:00
Daco Harkes 48d92b3176 [vm/ffi] Fix GC relocation bug
Issue: https://github.com/dart-lang/sdk/issues/37511

Change-Id: Ibabe6a49b6fe38032da544a6520bdc398d496ba0
Cq-Include-Trybots: luci.dart.try:vm-ffi-android-debug-arm-try, app-kernel-linux-debug-x64-try, vm-kernel-linux-debug-simdbc64-try,vm-kernel-linux-debug-ia32-try,vm-dartkb-linux-debug-simarm64-try,vm-kernel-win-debug-x64-try,vm-kernel-win-debug-ia32-try,vm-dartkb-linux-debug-x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-ffi-android-product-arm-try,vm-ffi-android-release-arm-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108805
Auto-Submit: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Samir Jindel <sjindel@google.com>
Commit-Queue: Samir Jindel <sjindel@google.com>
2019-07-19 15:17:50 +00:00
Daco Harkes fbf13f561f [benchmarks/ffi] Add micro and macro benchmarks for dart:ffi
Adds micro benchmarks to measure low level (1) C memory reads and writes from Dart and (2) calls from Dart into C. This CL also adds a macro benchmark to measure overall performance using BoringSSL to digest data. The shared libraries are precompiled for Linux and live in cipd packages. The benchmarks run on all hardware architectures (with the exception of Linux'es hardfp on Arm32: https://github.com/dart-lang/sdk/issues/36309).

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

Change-Id: I8dfb30cc66a26a2942bb09194c5eb0da0b6ca1b5
Cq-Include-Trybots: luci.dart.try:benchmark-linux-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108724
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
Auto-Submit: Daco Harkes <dacoharkes@google.com>
2019-07-19 14:59:57 +00:00
Konstantin Shcheglov c1bb024479 Basic support for Container.alignment property.
R=brianwilkerson@google.com

Change-Id: I509df0b9c5d97e00a2f6ec50f31db1d07396f4ea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109660
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-19 14:42:36 +00:00
pq 634aa461a0 remove extension field checks
follow-up from: https://dart-review.googlesource.com/c/sdk/+/109322/3/pkg/analyzer/lib/src/dart/resolver/method_invocation_resolver.dart#241

and some test renames

Change-Id: Ia22768ed60cf85a0b3d6244ff044ff31af17aad6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109680
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-07-19 14:30:06 +00:00
Brian Wilkerson 760c3a0006 Store the declared element locally for unnamed extensions
We normally store the declared element for a declaration in the name of
the declaration. We still do that when there _is_ a name for an extension,
but we also store it directly on the extension so that we can handle
unnamed extensions.

Change-Id: Id8a8bc01be5d2fbfd86ea5ec4ff150165b31a9bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109554
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-07-19 12:40:06 +00:00
Stephen Adams d114c96920 [dart2js] new-rti: Use recipes in types table
Change-Id: If4c1624ea7113e102d2a516496cd65a134b9b737
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109522
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-07-19 02:11:16 +00:00
Alexander Markov 09418f4402 [vm/tests] Re-enable tests for multiple entry points, take 2.
Closes https://github.com/dart-lang/sdk/issues/37144

This is a re-land of 00eb034de7.

Change-Id: Ib46d4590de460a520415280b3253e75d8f947b81
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109584
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2019-07-19 00:21:35 +00:00
Ryan Macnak 395e074899 [vm] When clearing ICData, also reset the megamorphic bit.
After a reset due to reload, an ICData could end up with a single entry and have its megamorphic bit set with the MegamorphicCache having several entries. The compiler might specialize based on the ICData's single target and then insert guards based on the several classes in CallTargets. the

Bug: https://github.com/dart-lang/sdk/issues/37548
Bug: https://github.com/dart-lang/sdk/issues/37575
Change-Id: I3c22517ffc8c6936fcb90c6f11b2af3ba96cadfe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109556
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-07-19 00:02:15 +00:00
Stephen Adams be36a031c6 [dart2js] Support user-defined 'operator >>>'
Change-Id: Ic2e9392731b01727ec4500aa9a31d535d9c68143
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109000
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-07-18 23:52:35 +00:00
Alexander Markov 38deecec39 Revert "[vm/tests] Re-enable tests for multiple entry points"
This reverts commit 00eb034de7.

Reason for revert: test failure on vm-kernel-optcounter-threshold-linux-release-x64 bot

Original change's description:
> [vm/tests] Re-enable tests for multiple entry points
> 
> Closes https://github.com/dart-lang/sdk/issues/37144
> 
> Change-Id: I9935db44cf01dda106c9211978dca33aac7fcb16
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109551
> Reviewed-by: Ryan Macnak <rmacnak@google.com>
> Commit-Queue: Alexander Markov <alexmarkov@google.com>

TBR=rmacnak@google.com,alexmarkov@google.com,sjindel@google.com

Change-Id: I582c014c4e02216be1575609aa950e8afb7e0702
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109600
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2019-07-18 23:16:21 +00:00
Devon Carew 6e34c365c8 [analyzer] update the package:analyzer pubspec description
Change-Id: I16e6793f83b1dbb4779d75728704af6b32721cc9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109555
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2019-07-18 23:06:26 +00:00
Nate Bosch 6bc8f0ee9b Update to latest package:watcher
The tag 0.9.7+12 was never published on pub. The tag 0.9.7+12-pub is
what is published. The version published on pub contains some internal
style fixes and removes unused code.

Change-Id: Ic196316e83ada99f02f461feeae9215ee3db3701
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109307
Auto-Submit: Nate Bosch <nbosch@google.com>
Reviewed-by: Gary Roumanis <grouma@google.com>
Commit-Queue: Gary Roumanis <grouma@google.com>
2019-07-18 22:41:15 +00:00
Konstantin Shcheglov 07e5b20ec9 Insert new named arguments sorted.
R=brianwilkerson@google.com

Change-Id: I56d321160f21ebe20219fcc61288a0ebde1a21f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109583
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-18 22:16:58 +00:00
Alexander Markov 00eb034de7 [vm/tests] Re-enable tests for multiple entry points
Closes https://github.com/dart-lang/sdk/issues/37144

Change-Id: I9935db44cf01dda106c9211978dca33aac7fcb16
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109551
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2019-07-18 22:11:10 +00:00
Konstantin Shcheglov d57ebb0e1c Fix reporting FLUTTER_GET_WIDGET_DESCRIPTION_NO_WIDGET.
R=brianwilkerson@google.com

Change-Id: Id4d84ab6240b4eb9444201c7cb7fca5d1743dacc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109552
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-18 21:55:00 +00:00
Konstantin Shcheglov 2d4973ca17 Format the function body containing the updated property.
R=brianwilkerson@google.com

Change-Id: I7f4f1bfa07b663d6079b639bc9003f2828c04e13
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109541
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-18 21:07:00 +00:00
Devon Carew ddc9b9d492 [analyzer] tweaks to the dartfix UI
Change-Id: I32b61f1331b6c3c4fe37ced3dd1a5d68ebcb9d4c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109547
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2019-07-18 20:47:00 +00:00
Brian Wilkerson 54bd280070 Treat dynamic and void as if they were in the SDK
This fixes an NPE I just ran into. I didn't add a test, but the bug
occurs when the extended type is `dynamic`. I'm guessing that the same
bug would occur if the extended type were `void`.

Change-Id: I5b22a9c3ccc7d656f5e1eed23a430d1fe5671b7f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109582
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-07-18 20:33:21 +00:00
Konstantin Shcheglov b0463ea7e0 Add DartFileEditBuilder.format(SourceRange)
R=brianwilkerson@google.com

Change-Id: I65228f586119385e32d944d608cf21b6bd0dae87
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109549
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-18 20:18:22 +00:00
Konstantin Shcheglov 89a17f218b Make getDescription() async.
We need to request additional elements for editors, and this is async
operation.

R=brianwilkerson@google.com

Change-Id: I451e80e32cf00fa0070f93123b33f0ee4b0ef759
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109545
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-18 19:58:10 +00:00
Kathy Walrath bcc8de64f1 Reveal the TransferableTypedData description
Contributes to #37237.

Closes #37567
https://github.com/dart-lang/sdk/pull/37567

GitOrigin-RevId: fef7b3c3beecd3368ab079bd6d90583d68926e52
Change-Id: Id32d46e0dba8f926856d4e615271bb7a72668ab9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109546
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Kathy Walrath <kathyw@google.com>
2019-07-18 19:00:49 +00:00
pq 5ce47abf86 extension type bounds instantiation (and failing param type test)
Change-Id: Ieb94e5838581b4f38ff1624e0c1778ef395003a9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109581
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-07-18 18:59:29 +00:00
Konstantin Shcheglov 61dfbf6816 Change DartFileEditBuilderImpl to work with full ResolvedUnitResult.
To make formatting work we need to know the content, and we already
included much of ResolvedUnitResult.

R=brianwilkerson@google.com

Change-Id: I26b79328c01b973803b7bc86b3b810055f6ad431
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109543
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-18 18:24:09 +00:00
Nicholas Shahan fd38424fa4 [dartdevc] Immediately throw when encountering an unevaluated constant
Visiting an `UnevaluatedConstant` at this point is a signal something
has gone wrong in the constant evaluation. This should help us identify
hidden issues when flipping the constants-update-2018 flag back on.

Change-Id: Idd8db4c60785f00b22c29292db53783582ed8af1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109104
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2019-07-18 17:32:00 +00:00
Aart Bik 873cc9a787 [dart/vm] peek prior to constant class evaluation
Rationale:
Only look for "external" and "pragma" to avoid
cyclic or unloaded class evaluation

https://github.com/dart-lang/sdk/issues/37533
https://github.com/dart-lang/sdk/issues/36220


Change-Id: I78ef5dcd2c7e7dee0d196394320e994f8aa8a695
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109300
Commit-Queue: Aart Bik <ajcbik@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2019-07-18 17:17:49 +00:00
Konstantin Shcheglov ddafed27cb Support for enum values.
R=brianwilkerson@google.com

Change-Id: I1f95bfb8bd469981a9a6b4444670189a6619405a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109540
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-18 17:12:15 +00:00
Nicholas Shahan e1e3daa52d [dartdevc] Add --summarize-text flag to ddb script and pass through to DDK
Cleanup handling of paths with the aims to help the script work when run
from an arbitrary directory.

Change-Id: I1a319e7a16e5e021f06457d15807bc4c3245f677
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109521
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2019-07-18 16:35:35 +00:00
Brian Wilkerson d32a4dbe57 Minor updates to existing docs
These are based on recent comments, and might not be appropriate.

Change-Id: I634dc30a29459f3ab41dae99233d27c9954b9347
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109542
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Auto-Submit: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Kathy Walrath <kathyw@google.com>
2019-07-18 15:43:55 +00:00
Terry Lucas 3a7101e16b Support TouchEvents and PointerEvent, also fixed innerText.
Bug: 36092
Change-Id: I74e3fb256e6be4dc8d919ac158327583f4d84a89
R=vsm@google.com
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108521
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Terry Lucas <terry@google.com>
2019-07-18 14:24:05 +00:00
pq 6dfd5766de error code for ambiguous extension method accesses
Change-Id: I97b0bc8ba32d1cb0ee3b361525f4c161845f1d01
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109463
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-18 03:50:27 +00:00
Ryan Macnak 63120303a7 [vm] Guard against double finalization from annotations on fields.
Bug: https://github.com/dart-lang/sdk/issues/37544
Change-Id: Ie3620dd9adf8382afc018cf764965b4ff74d2b75
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109440
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-07-18 00:39:47 +00:00
Zichang Guo f664a80850 [vm/socket] check nulls of rawsocket before operation
Bug: https://github.com/dart-lang/sdk/issues/37522
Change-Id: Id5dcef1a859b18df8e626cd2f773c0cf06b472de
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109481
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Zichang Guo <zichangguo@google.com>
2019-07-18 00:09:27 +00:00
pq ff03f01759 null_closures dartfix
EDIT: this is not working as is but puzzled as to why.

Dan: perhaps you could take a look?

Tracking issue: https://github.com/dart-lang/sdk/issues/37558

Thanks!


Change-Id: I7498159568807e05c22ba23550b6b0f74cf86e81
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108964
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-07-18 00:07:59 +00:00
Stephen Adams 671bcffa3f [js_runtime] Run dartfmt
TBR=fishythefish@google.com

Change-Id: Id1d70f17482d9b5a63f8fdf12e294612f8664a57
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109500
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
Auto-Submit: Stephen Adams <sra@google.com>
2019-07-17 23:08:58 +00:00
Liam Appelbe 6bf1f8e280 [vm] Fix WriteByteSequence for simarm_x64
Bug: https://github.com/dart-lang/sdk/issues/36839
Change-Id: Ibf9ffda6be7a6585d90b4fb1430ae0b227609af6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109482
Commit-Queue: Liam Appelbe <liama@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2019-07-17 23:03:18 +00:00
Brian Wilkerson b4e66ed3d0 Add highlighting for extensions
Change-Id: Ifa790e8e0830276cd794aa903aa5b2a9c1e03a97
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109464
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-07-17 22:03:07 +00:00