Commit Graph

53966 Commits

Author SHA1 Message Date
Konstantin Shcheglov a412f24e41 Add tests for highlighting implicit instance creation.
And in general run analysis server tests with `previewDart2 = true`.

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

Change-Id: I063d667e96a46d60d3b10aa1a87b4c7a7d2252e5
Reviewed-on: https://dart-review.googlesource.com/42101
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-02-16 20:52:01 +00:00
Ryan Macnak 04100796c1 [vm, aot] Further debugging aids for null function encountered when writing DWARF inlining data.
Bug: https://github.com/dart-lang/sdk/issues/31952
Change-Id: Iaf677c2dd15567772d1bb9f2482e749ef1139fe2
Reviewed-on: https://dart-review.googlesource.com/42060
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2018-02-16 20:48:59 +00:00
Zach Anderson 0d5cf900b0 [infra,flutter] Adds semantically meaningful custom version strings
See https://github.com/flutter/flutter/issues/14751

Change-Id: I3b35c2a32c0dd1301e92abe23b1c6fe2c2e04a6c
Reviewed-on: https://dart-review.googlesource.com/42026
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2018-02-16 20:44:48 +00:00
Dmitry Stefantsov 629bef0a91 Apply special rules to assignability check for async bodies
Fixes #32185

Bug: http://www.dartbug.com/32185
Change-Id: I07d35679d08c4aef38029b83f0d495cf05a02366
Reviewed-on: https://dart-review.googlesource.com/41940
Reviewed-by: Kevin Millikin <kmillikin@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
2018-02-16 20:14:18 +00:00
Konstantin Shcheglov dcefeb17b6 Set ClassElement implicit instance creation.
I also changed tests to be a bit more specific - test whether elements
are class and constructor where one is expected. Not found additional
problems though.

R=brianwilkerson@google.com

Change-Id: I95cf57e46620149740d6c748a6065b3b2e00409e
Reviewed-on: https://dart-review.googlesource.com/42027
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-02-16 19:49:57 +00:00
Brian Wilkerson 3d183f6999 Add support for selection ranges to ChangeBuilder
Change-Id: Icd4c1bcf2ecb66020a9a7f478a037c478e8a109f
Reviewed-on: https://dart-review.googlesource.com/42024
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-02-16 19:23:06 +00:00
Konstantin Shcheglov b17ac68b60 Add <Widget> type arguments for wrapping with Column/Row.
R=brianwilkerson@google.com, devoncarew@google.com

Change-Id: I6e8ee33c453e552965d14ecb95391eb55b7b0bc6
Reviewed-on: https://dart-review.googlesource.com/42025
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-02-16 18:45:17 +00:00
Konstantin Shcheglov 6e912ff3ed Don't cast to LibraryElementImpl.
Also run PreviewDart2Test with analysis driver, that's how it is actually
used.

R=brianwilkerson@google.com

Change-Id: I6757d7435c376a07fa1ef00b495b5fab0d118924
Reviewed-on: https://dart-review.googlesource.com/42023
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-02-16 18:17:07 +00:00
Alexander Markov 31b0cc6ac1 [vm,aot] Generate more efficient code for UnboxInt64 if it takes Smi
Change-Id: I7e2b1cabfa749cd781927a32e652f1f59a1c7667
Reviewed-on: https://dart-review.googlesource.com/41925
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2018-02-16 17:57:57 +00:00
Konstantin Shcheglov 6790cc30ef Highlight class names in instance creations as constructors.
This is needed for better highlighting optional new/const. I think the
main reason is that 'new' is highlighed and we knew that this is a
new instance creation. Constructors are also highlighed in the default
color scheme. But class names are not. So, to make code look colorful
again, we need to highlight class names in instance creations.

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

Change-Id: I8fde0b4aa5243e94d7ba575a74d52d31d3b665bb
Reviewed-on: https://dart-review.googlesource.com/42021
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-02-16 17:50:27 +00:00
kmillikin b36633357c Make the Kernel clone visitor more robust
Instead of extending the TreeVisitor which provides an incorrect
implementation of all methods, merely implement the TreeVisitor to
require an implementation in CloneVisitor.

Change-Id: Ied7d3b8062ee380e766c737e844a24b0b746312d
Reviewed-on: https://dart-review.googlesource.com/41926
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
2018-02-16 16:28:47 +00:00
Vyacheslav Egorov d869604387 [vm/kernel/aot] Rename Selector.get/set into Selector.doGet/doSet.
This is a workaround for issue #32196 which breaks Flutter engine
build when frontend_server tries to train by parsing itself.

Change-Id: I5c0d505f41ad5417bcc6a0f66663f28fed192e35
Reviewed-on: https://dart-review.googlesource.com/41983
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
2018-02-16 14:51:17 +00:00
Brian Wilkerson 0501c740ac Member overrides invoke the overridden member and the display label uses ellipses
Change-Id: I9cb2db1514a8a2798cb3ec69d3d71047573a8dd4
Reviewed-on: https://dart-review.googlesource.com/41903
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2018-02-16 14:12:27 +00:00
Vyacheslav Egorov eb997b2818 [vm/kernel] Support as{TypeError} as a constant expressions.
Under certain conditions front-end currently generates as{TypeError}
type checks in constant expressions. Support evaluating these type
checks as constant expressions instead of rejecting them.

Change-Id: Id432c4c5062d7bab89c29fef308b42b2cbd64de8
Reviewed-on: https://dart-review.googlesource.com/41761
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2018-02-16 13:37:37 +00:00
Jens Johansen ef51b33f22 Revert "[kernel] Don't always treat doubles as constants"
This reverts commit 12407c3ea0.

Reason for revert: co19/Language/Expressions/Object_Identity/double_t01 fails in -c dartkp -r dart_precompiled mode.

Original change's description:
> [kernel] Don't always treat doubles as constants
> 
> Previously, when the VM parsed a doubles from the dill file it passed
> control over to the constant evaluator which would then case the
> value and canonicalize it.
> That doesn't really seem to make sense when its not used in a const
> context, nor is it done the same way for integers for instance.
> 
> This CL changes that and treats doubles the same way as integers.
> 
> Below timings are statistics run through "ministat" based on 5 runs
> of each configuration (now and before). The timings is for running
> the dill file with the VM, i.e. the dill file was precompiled via
> fasta.
> 
> Program adding 50,000 doubles to a list and prints the last one:
> 
>         -56.6 +/- 28.2389
>         -10.9988% +/- 5.48753%
>   (~510 ms -> ~460 ms)
> 
> Program adding 1,000,000 doubles to a list and prints the last one:
> 
>         -3177.2 +/- 263.54
>         -31.4643% +/- 2.60987%
>   (~10 seconds -> ~7 seconds)
> 
> Hello world program:
> 
> No difference proven at 95.0% confidence
> 
> Change-Id: I7dd748e759b3e433bc806b2ef2505d29f0b109b6
> Reviewed-on: https://dart-review.googlesource.com/42000
> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
> Commit-Queue: Jens Johansen <jensj@google.com>

TBR=ahe@google.com,vegorov@google.com,jensj@google.com

Change-Id: If8efa9917c009f2df68a3ef00331ab45bf8bf67b
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/41981
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2018-02-16 11:08:18 +00:00
Jens Johansen 12407c3ea0 [kernel] Don't always treat doubles as constants
Previously, when the VM parsed a doubles from the dill file it passed
control over to the constant evaluator which would then case the
value and canonicalize it.
That doesn't really seem to make sense when its not used in a const
context, nor is it done the same way for integers for instance.

This CL changes that and treats doubles the same way as integers.

Below timings are statistics run through "ministat" based on 5 runs
of each configuration (now and before). The timings is for running
the dill file with the VM, i.e. the dill file was precompiled via
fasta.

Program adding 50,000 doubles to a list and prints the last one:

        -56.6 +/- 28.2389
        -10.9988% +/- 5.48753%
  (~510 ms -> ~460 ms)

Program adding 1,000,000 doubles to a list and prints the last one:

        -3177.2 +/- 263.54
        -31.4643% +/- 2.60987%
  (~10 seconds -> ~7 seconds)

Hello world program:

No difference proven at 95.0% confidence

Change-Id: I7dd748e759b3e433bc806b2ef2505d29f0b109b6
Reviewed-on: https://dart-review.googlesource.com/42000
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2018-02-16 10:21:47 +00:00
Peter von der Ahé fd19dfe5f5 Remove IncrementalClassHierarchy
Change-Id: Ie141648f8fbc97a025e90cc456265a51c3da0b04
Reviewed-on: https://dart-review.googlesource.com/41823
Reviewed-by: Kevin Millikin <kmillikin@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Peter von der Ahé <ahe@google.com>
2018-02-16 09:13:46 +00:00
Peter von der Ahé 2191139a1a Fix crash in mixin canonicalization
Change-Id: Ifcb15672816aae04833c18fa6954336e680ddda7
Reviewed-on: https://dart-review.googlesource.com/41820
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Peter von der Ahé <ahe@google.com>
2018-02-16 09:00:16 +00:00
Alexander Thomas 7488718131 Revert "[infra] Temporarily mark CQ Windows SDK builder as experimental"
This reverts commit 3493aae512.

Reason for revert: The Windows bots have access to the VS toolchain again.
https://bugs.chromium.org/p/chromium/issues/detail?id=812927

Original change's description:
> [infra] Temporarily mark CQ Windows SDK builder as experimental
> 
> TBR=whesse@google.com
> 
> Change-Id: I95042b0ec8cb056ef2a825ba81c5258c0789df7c
> Reviewed-on: https://dart-review.googlesource.com/41821
> Reviewed-by: Alexander Thomas <athom@google.com>

TBR=whesse@google.com,athom@google.com

Change-Id: I2f064b40536fd771d0b87aa4756f9596ccaace76
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/41980
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2018-02-16 07:57:41 +00:00
Alexander Markov dc1b07af7f [vm,aot] Refine types of uses after specializing a call
After replacing a call with specialized instruction it makes sense
to update types of uses immediately to open more opportunities for
specialization of calls which use result of a replaced call.

Issue: https://github.com/dart-lang/sdk/issues/30480
Change-Id: I87d64ff190cebd4fcd1d2ac678859f2bc6612f6d
Reviewed-on: https://dart-review.googlesource.com/41602
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-02-16 01:25:08 +00:00
Konstantin Shcheglov 670c288711 Issue 32162. Fix for crash in generic function type argument of unresolved class.
R=brianwilkerson@google.com

Bug: https://github.com/dart-lang/sdk/issues/32162
Change-Id: I0a2df5bf5a08b52a7eb47e1b8265b9bbbf65e599
Reviewed-on: https://dart-review.googlesource.com/41922
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-02-16 01:01:16 +00:00
Alexander Markov a9586c6147 [vm,aot] Recognize haveSameRuntimeType pattern after devirtualization
This CL teaches AotCallSpecializer to recognize and optimize
haveSameRuntimeType pattern after TFA devirtualizes 'operator=='.

Issue: https://github.com/dart-lang/sdk/issues/30480
Change-Id: I172384c8113d2f0954ac141e8f2c1050bc850306
Reviewed-on: https://dart-review.googlesource.com/41572
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-02-16 00:26:50 +00:00
pq 3dd7eae4c8 Add @required prefix to required params.
See: https://github.com/flutter/flutter/issues/10219
Change-Id: If8bd55b5a3557f8c49430079b790727f7ba25217
Reviewed-on: https://dart-review.googlesource.com/41924
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-02-16 00:13:30 +00:00
Konstantin Shcheglov 4039224d5c Don't set the exit position for Flutter Quick Assists.
We decided that we don't want to move caret under the user.

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

Bug: https://github.com/dart-lang/sdk/issues/32184
Change-Id: I86199bb060fbbbb8e521572d046b3fcdef80f74d
Reviewed-on: https://dart-review.googlesource.com/41920
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2018-02-15 23:54:06 +00:00
Jacob MacDonald 0bda5c9015 get source_map_stack_trace working for the external world
Bug:
Change-Id: I7385f2f1f11742ce5f90cce67b863ba066074679
Reviewed-on: https://dart-review.googlesource.com/41921
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
2018-02-15 22:45:26 +00:00
Konstantin Shcheglov d9a44c9dc7 Revert "Normalize Windows drive letters to uppercase for analysis"
This reverts commit 56acaee9b1.

See https://github.com/dart-lang/sdk/issues/32186

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

Change-Id: I76c673758e4b9acd22044985b4054b5504f4a205
Reviewed-on: https://dart-review.googlesource.com/41902
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-02-15 22:10:56 +00:00
asiva 0ee460a6b0 Fix memory leak in check snapshot unit test (was reported in the asan build).
Change-Id: I289e189afd5d27fd1ad230270a29d838dd6b77bd
Reviewed-on: https://dart-review.googlesource.com/41905
Reviewed-by: Siva Annamalai <asiva@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2018-02-15 22:06:19 +00:00
Emily Fortuna c9d1d87708 Fix redness of dart2js bots as a result of Dima's FE change.
Change-Id: Icc4d3f820f2670197feb21c6320575e042951f8a
Reviewed-on: https://dart-review.googlesource.com/41904
Reviewed-by: Emily Fortuna <efortuna@google.com>
2018-02-15 19:32:38 +00:00
Alexander Markov 32fb103713 [vm/aot] Recognize int operations after devirtualization
TFA devirtualizes calls to int methods and converts them to
static calls to _IntegerImplementation methods.

This CL teaches AotCallSpecializer to recognize int operations
after devirtualization.

Issue: https://github.com/dart-lang/sdk/issues/30480
Change-Id: I94be77675fdabef52861869aa4a8ef36946258ae
Reviewed-on: https://dart-review.googlesource.com/41540
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-02-15 19:14:35 +00:00
Konstantin Shcheglov 7d0877dbf6 Remove unused methods in assist/fix tests.
R=brianwilkerson@google.com

Change-Id: I6aa5ef067bb3cee4cbd8ffc01bf60bf0637f773e
Reviewed-on: https://dart-review.googlesource.com/41880
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-02-15 19:13:35 +00:00
Konstantin Shcheglov 1e999ed9fe It is OK to inline Column with a single item in 'children' into a 'child'.
R=brianwilkerson@google.com, devoncarew@google.com

Change-Id: Ifa2a300b2735ab635bbaeeee08ce21ad8a7db9b7
Reviewed-on: https://dart-review.googlesource.com/41901
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-02-15 18:25:57 +00:00
Dmitry Stefantsov 43ddb1cd99 Update more status files after landing ec9c927b18
Change-Id: I978cc28895c515ba6c6d5db9a08606b8c01993e9
Reviewed-on: https://dart-review.googlesource.com/41860
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2018-02-15 17:30:08 +00:00
Konstantin Shcheglov 95f336a667 Don't suggest imports of private libraries from other packages.
R=brianwilkerson@google.com, devoncarew@google.com

Bug: https://github.com/flutter/flutter-intellij/issues/1661
Change-Id: I5e458e8815d4f8df3e2f22bdfdc21c7203cefde0
Reviewed-on: https://dart-review.googlesource.com/41620
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-02-15 17:11:56 +00:00
Zach Anderson fe96de2858 Revert "Restore console to original state on VM exit. Fixes issue #30318."
This reverts commit c9700040c3.

Revert "[vm] Fix Fuchsia's Platform::Save/RestoreConsoleConfiguration."

This reverts commit 365f7b5a8b.

Reason for revert: newlines not printed correctly on Windows after
spawning a Dart VM process.

fixes #32172

Change-Id: I155752370bed7798fe91defdc61ccfe9f666b725
Reviewed-on: https://dart-review.googlesource.com/41840
Reviewed-by: Zach Anderson <zra@google.com>
2018-02-15 16:33:41 +00:00
Alexander Thomas 3493aae512 [infra] Temporarily mark CQ Windows SDK builder as experimental
TBR=whesse@google.com

Change-Id: I95042b0ec8cb056ef2a825ba81c5258c0789df7c
Reviewed-on: https://dart-review.googlesource.com/41821
Reviewed-by: Alexander Thomas <athom@google.com>
2018-02-15 16:13:05 +00:00
Peter von der Ahé 3c773f68bc Start on a tree factory to abstract AST node creation
Change-Id: I3db98c2f7eaa93a0df6ff848fb57d5b7e4cd2482
Reviewed-on: https://dart-review.googlesource.com/41681
Reviewed-by: Paul Berry <paulberry@google.com>
2018-02-15 15:13:29 +00:00
Brian Wilkerson 386f8b2f5f Skip remaining Dart 1.0 tests
Change-Id: I8014cdb5d5cd154f52043593e577b29a01d71e2b
Reviewed-on: https://dart-review.googlesource.com/41601
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-02-15 14:14:07 +00:00
Lasse R.H. Nielsen 1c8b2285c3 Another missing status line.
Change-Id: Iea55aee3689a346ddcbe292209b755c21e2f226f
Reviewed-on: https://dart-review.googlesource.com/41760
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2018-02-15 14:02:31 +00:00
Jens Johansen 57f6b42313 [kernel] Buffer (all) small writes when writing dill
When writing a dill file, certain things are written to the
BufferedSink via addBytes.

In the case where the BufferedSink currently has nothing buffered and is
given a input that is deemed small, prior to this CL, the data was added
directly to the underlying sink. As such a million _sink.addBytes([42])
in a row would make at least 900,000 (the buffer size is 100,000) calls
to the underlying sink.
For `new File(path).openWrite()` that takes a while.

This CL fixes it by always buffering the small writes, reducing the
number of calls to the underlying sink to 10 in the above case.

Change-Id: I097f490d57b0a27b3175d6bb4ef513851acc503e
Reviewed-on: https://dart-review.googlesource.com/41740
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2018-02-15 14:01:28 +00:00
Jens Johansen 00c9af8522 [fasta] Fix crash when importing nonexisting "dart:" uri
Previously, importing a nonexisting "dart:" uri resulted in a crash in
fasta. This CL introduces a test and fixes the problem.

Fixes #31172.

Change-Id: I61b2668466f2567e5e5dcaff3203f0c5ee9a885f
Reviewed-on: https://dart-review.googlesource.com/36401
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2018-02-15 14:00:17 +00:00
Lasse R.H. Nielsen 0fb1c5bc7b Mark test as failing on analyzer.
Change-Id: I7ebe8f4cbdafbf6b93fb3af2950c956c18790c6f
Reviewed-on: https://dart-review.googlesource.com/41680
Reviewed-by: Erik Ernst <eernst@google.com>
2018-02-15 11:32:59 +00:00
Peter von der Ahé 01e95adcc6 Implement default runtime and mode for Fasta and other compilers
Fixes https://github.com/dart-lang/sdk/issues/32169

Change-Id: I574aab13acedc8afe63cd5c7c055183643452013
Reviewed-on: https://dart-review.googlesource.com/41661
Reviewed-by: Kevin Millikin <kmillikin@google.com>
2018-02-15 11:19:12 +00:00
Peter von der Ahé 3e61365696 Add --legacy-mode option.
This is a step towards removing the option --strong-mode because
it's supposed to be on by default.

Change-Id: I25da0038d12e359f9c628beb2f92293295f00185
Reviewed-on: https://dart-review.googlesource.com/39983
Reviewed-by: Jens Johansen <jensj@google.com>
2018-02-15 09:54:20 +00:00
Peter von der Ahé 5d8a9e8403 Rework command-line option parsing to enable default values
Change-Id: I3e53f38e6f242351c0f41b85fbad534c00663f9e
Reviewed-on: https://dart-review.googlesource.com/39982
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Peter von der Ahé <ahe@google.com>
2018-02-15 09:27:17 +00:00
asiva b9039cd35b - Fix const ness in signature of new API function
- Access snapshot contents using the getter

Change-Id: I9c264c2bf8ab20ee1d3431e4b802e14fa92616c2
Reviewed-on: https://dart-review.googlesource.com/41642
Reviewed-by: Siva Annamalai <asiva@google.com>
2018-02-15 09:11:04 +00:00
Lasse R.H. Nielsen 06439147c4 Update some tests to work better.
Add test for strong-mode only allowing super-chaining at the end of the initializer list.

Change-Id: Ic1c99f4f24738094eec14cb9c59354716f776b1e
Reviewed-on: https://dart-review.googlesource.com/40301
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2018-02-15 08:43:34 +00:00
Vyacheslav Egorov c2899e424f [vm/kernel/aot] Keep type checks in setters for covariant fields
Fixes issue instroduced by 286b123d35

Change-Id: I10444a7ecbb5c03e052df720f3dc1694983e6423
Reviewed-on: https://dart-review.googlesource.com/41263
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-02-15 07:21:32 +00:00
asiva f1543c38ee Adjust Dart_IsDart2Snapshot API to not expect a size argument as the size
is part of the snapshot header.

Change-Id: I4b6cf3b78c122b406e09fe4234a8ea8ce81b4986
Reviewed-on: https://dart-review.googlesource.com/41641
Reviewed-by: Siva Annamalai <asiva@google.com>
2018-02-15 07:12:34 +00:00
kmillikin 3d05042639 Remove the different runtime sections for dartdevk
It's no longer necessary to guard against $runtime != none in most
cases because running test.py with --runtime=none will treat runtime
failure expectations as Pass.

Change-Id: Ieaff9957ad951066d93a3303af5499c7655d67a6
Reviewed-on: https://dart-review.googlesource.com/41567
Commit-Queue: Kevin Millikin <kmillikin@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2018-02-15 01:38:44 +00:00
Ben Konyi 5716109abd [VM / Hot-Reload] Fixed tests that were failing due to different failure messages generated by the VM parser and CFE.
Change-Id: I6840c993300b3ba36c44bfc8f5c0ce6b8043d6f7
Reviewed-on: https://dart-review.googlesource.com/41571
Reviewed-by: Siva Annamalai <asiva@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
2018-02-15 01:03:04 +00:00