Commit Graph

64479 Commits

Author SHA1 Message Date
Ben Konyi 15b11b0183 [ VM / Service / Observatory ] The VM service now requires an authentication code by default.
Previously, a valid web socket connection would use the following URI:

`ws://127.0.0.1/ws`

Now, by default, the VM service requires a connection to be made with a
URI similar to the following:

`ws://127.0.0.1:8181/Ug_U0QVsqFs=/ws`

where `Ug_U0QVsqFs` is an authentication code generated and shared by the
service.

This behavior can be disabled with the `--disable-service-auth-codes`
flag.

Change-Id: I288aac58e3ba9d35dca8071f3f7e7a073896c271
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98433
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2019-04-09 22:57:29 +00:00
Alexander Markov e88363cffd [vm] Fix formatting and analyzer hints in pkg/vm
The following analyzer hints are fixed:

  hint • This function has a return type of 'String', but doesn't end with a return statement at pkg/vm/bin/compare_sizes.dart:140:3 • missing_return
  hint • This function has a return type of 'String', but doesn't end with a return statement at pkg/vm/bin/compare_sizes.dart:198:3 • missing_return

Change-Id: Ia34006eb023c0b3f9b60f8f38dc248cfa1c87a30
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98983
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2019-04-09 22:38:27 +00:00
pq 01967b68d7 fix convert_to_spread assist to work on empty lists
Noteworthy that this issue was flagged by an attempt to convert flutter (https://github.com/flutter/flutter/pull/30784).  Specifically, the assist here was throw a Bad Element exception:

  set fakeResults(Map<String, List<ProcessResult>> value) {
    _fakeResults = <String, List<ProcessResult>>{};
    for (String key in value.keys) {
      _fakeResults[key] = <ProcessResult>[]
        ..addAll(value[key] ?? <ProcessResult>[ProcessResult(0, 0, '', '')]);
    }
  }








Change-Id: Icec80f14160cf9ba28a4e8e39935f469e762b39f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98985
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-04-09 22:06:07 +00:00
Alexander Aprelev 01c44ffc9a [vm/compiler] Don't restore errors we are ignoring.
In particular branch offset errors on arm result in another round of compilation in "far offset" mode.
We don't want to restore those branch offset errors.

Fixes https://github.com/dart-lang/sdk/issues/36478.

Change-Id: Iaaacc9b2e617bd582fa55e49ff676bf6266cdbe5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98705
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2019-04-09 21:52:57 +00:00
Paul Berry 27ef571e5b Encapsulate more uses of NullabilityNode.nullability inside the NullabilityNode class.
This CL adds the following new members to NullabilityNode:

- A `debugSuffix` getter, to retrieve a string representation of a
  nullability node for debugging test failures.

- An `isAlwaysNullable` getter, to determine whether a NullabilityNode
  is known, by construction, to always be nullable.

- An `isNullable` getter, to determine whether constraint solving
  assigned the nullability node to be nullable.

With these new members, the two constraint variables inside the
NullabilityNode class (`nullabile` and `_nonNullIntent`) are only
referred to from within the NullabilityNode class itself, and in
tests.

Change-Id: I0f51aa2834a885fb13c6bbfe7d68cd517b65724a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98982
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-04-09 21:31:07 +00:00
Alexander Markov 852b72b65e [vm/kernel] Integrate protobuf tree shaker into kernel compilers
This change adds option --protobuf-tree-shaker to enable protobuf tree
shaker transformation in gen_kernel and Fuchsia kernel compiler.

Protobuf tree shaker requires closed world and only works with --aot
and --tfa.

Change-Id: I9fcc7934624f2d11f9b04215f1a81367f8ec82e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98781
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Sigurd Meldgaard <sigurdm@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2019-04-09 21:22:27 +00:00
Ryan Macnak 0feba40c4b [vm] Further fixes to the interpreter for ProfilerDartStackWalker.
Adjust type of Interpreter::pc_ to reduce casting.

Change-Id: I3b2098068fb4f6b5bd5cb552a857a985a06dafb3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98922
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-04-09 20:57:47 +00:00
pq 30b1326b1f allow if element conversion assist to work on conditional sub-nodes
Change-Id: Ic4e7e5cf80a5158c456c808134a0dd3706ff1385
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98981
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-04-09 20:31:37 +00:00
Ryan Macnak 819214707b [vm] Fix crash in compilation trace loading while speculatively resolving instance calls.
Some functions have a null ic_data_array even after being compiled.

Bug: FL-232
Change-Id: I03bb3d8e47b793a42222aed632a514cd2ac9e376
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98944
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2019-04-09 20:09:47 +00:00
Paul Berry 1490a90bc1 Track guards using NullabilityNode rather than ConstraintVariable.
Change-Id: Id7825ef3fdd4400d1ff0d00538b7002accaca7b9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98980
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-09 19:11:27 +00:00
Paul Berry 7f224d9fbe Track parameters that might need to be made optional/required using NullabilityNode.
Change-Id: Ibcd1aaadb9ffe16c7b7f1c3a0298c7abf2fc0c34
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98963
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-04-09 18:30:07 +00:00
Paul Berry 6c063512ae Validate that nullability is propagated from optional/required named parameters.
The code that accomplishes this is non-obvious (it relies on the fact
that we use the same constraint variable to track the nullability of
such parameters as to track their optional-ness), so it's worth having
specific tests for.

Change-Id: Ia2ccfca6ffe3f8050f14b3849e80a0e721cc143f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98961
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-09 18:30:07 +00:00
Paul Berry ed7f524afb Refactor more of the migration tool to use NullabilityNode rather than ConstraintVariable.
With this CL, the NullabilityNode class is now used for the following
purposes:

- In ConditionalDiscard, to keep track of when branches of "if"
  statements should be discarded.

- To track the nullability relationships implied by an assignment.

- To track the nullability implied by an optional parameter that lacks
  a default value.

- In _ConditionInfo, to keep track of how assert statements imply
  non-null intent.

Change-Id: Ieb05bb569258a3d16720c127a3f6038f805304c3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98960
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-09 18:30:07 +00:00
asiva 78c55022b1 [VM] - Fix for issue 36484 exposed when ExperimentalFlag.constantUpdate2018 is turned on in CFE
When ExperimentalFlag.constantUpdate2018 is turned on the static const
fields of _LocalMethodMirror are not yet set when VerifyMethodKindShifts
is invoked, ensure these fields are initialized before verifying the
values against the C++ values.

Fixes https://github.com/dart-lang/sdk/issues/36484

Change-Id: Ia144ee88c0a946e2d8824a6ee0d32bf96b2c163f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98962
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2019-04-09 18:12:27 +00:00
Sigmund Cherem a7175938c3 Remove use of package_root in analyzer/test/error_test
context: the package_root logic is not portable to how we run this test outside
the sdk in other build systems like bazel. To make it work in bazel, we
currently use const.fromEnvironment to override the location of the package
root. Due to upcoming changes to constant evaluation we can't continue using
const.fromEnvironment.

I considered 3 other options:
 * using Platform.environment
 * changing platform_root to be more sophisticated (e.g. look for a folder
 containing `test`, instead of looking for `pkg`)
 * directly defining the root at the beginning of main based on Platform.script

The latter works out of the box in bazel and is also pretty simple, so I felt it
was a good choice.

Note: there are several other tests depending on package_root that we can update
in a similar fashion. Today this is the only test that depends on package_root
that we are running internally in bazel.
Change-Id: Ie7b79a82c78605048b26b9676eac2fbd8b15aaa7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98879
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2019-04-09 16:46:57 +00:00
Johnni Winther 45a5349175 Track constant field initializers for field analysis.
Change-Id: I536975d235cbf7722b03aa7b0e2c9edd7c206484
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98852
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2019-04-09 16:30:27 +00:00
Konstantin Shcheglov 91c042c066 Implement isCovariant for fields.
R=brianwilkerson@google.com

Change-Id: I31f9b60a9d17ecd73114827a417392d912523f94
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98878
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-04-09 16:01:48 +00:00
Konstantin Shcheglov 06ed3f598c Resolve PrefixedIdentifier during linking.
R=brianwilkerson@google.com

Change-Id: I2c3b82c748867697fdf5903ea5d29b2c6041a96a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98924
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-04-09 15:55:33 +00:00
Konstantin Shcheglov 096b296390 Improve importing elements when incomplete code.
R=brianwilkerson@google.com

Change-Id: I49db7a5904ac18d38d2986a5d8ae6fb94108bbe8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98876
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-04-09 15:53:43 +00:00
Paul Berry e0a82a3c92 Make NullabilityNode.nonNullIntent read-only
Change-Id: I803a1667d39c6e3c091d248ba8d3bd6fa9918286
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98943
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-04-09 15:24:43 +00:00
Sam Rawlins f91de94d33 Add Element.hasOptionalTypeArgs; update strong_test_helper to use more
modern mixins

* Remove AbstractStrongTest.enableNewAnalysisDriver; it is always true.
* Add Element.hasOptionalTypeArgs, which requires changing
  AbstractStrongTest to use PackageMixin and PackageMapUriResolver,
  instead of the custom _TestUriResolver.

Change-Id: Iecb6e37ed5894d42ad965022a8c52e3b5f625655
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98920
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2019-04-09 15:13:33 +00:00
Paul Berry b6dbdfa62d Fix test in preparation for constant-update-2018.
This will prevent a spurious error when the flag is enabled.

Change-Id: I2f432844b5d41d7a13aff04644193341a5be69c6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98942
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-04-09 15:03:33 +00:00
Paul Berry d6e0788ff8 Make constructors for each use case of NullabilityNode.
The old constructor, which simply wrapped a ConstraintVariable, is now
private.

This is another step toward removing ConstraintVariables from the
migration tool entirely.

Change-Id: Ieb4be5b76711aaede5ca56871d52ff3b19c18d70
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98941
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-04-09 14:25:23 +00:00
Paul Berry 564687e2bd Introduce a getter on the Variables class to represent types that are a priori known to be nullable.
Change-Id: I660d02f35233a3ba8b739df8ba7746dfa20f18f3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98940
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-04-09 14:25:23 +00:00
James Lin b5545fe067 Add documentation explaining why jsonEncode and jsonDecode exist
(And do the same for `base64Encode` and `base64Decode`.)

Motivated by <https://stackoverflow.com/questions/54859595/>.

Change-Id: I776cb26b7588b3b8a18a2185460477df3a16598b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94986
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Auto-Submit: James Lin <jamesdlin@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2019-04-09 12:50:38 +00:00
Brian Wilkerson 43f301ccec Add a fix for the prefer-is-empty lint (linter issue 1504)
Change-Id: I4c13b6c7d233440fc73a2db35559c5526212e045
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98921
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-04-09 12:45:48 +00:00
Vyacheslav Egorov f4bc1c12e7 [gardening] Update 3xHEAD patch after DEPS update
Change-Id: Ic1ca7d3fa208b7ed7b2ea423a38affa339608694
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98853
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2019-04-09 12:44:18 +00:00
Dmitry Stefantsov 1daac5c976 [cfe] Do the requested clean-up after implementing ui-as-code features
Change-Id: Ife3f816ca67ef3f43c13abd5563181ed29d05ed2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98668
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Aske Simon Christensen <askesc@google.com>
2019-04-09 11:37:28 +00:00
Johnni Winther 4fc0e1f13d Use .nullType as type of null and fix null type handling in getStaticTypeAsInstanceOf
The .getStaticType results for NullLiteral and NullConstant are inconsistent. The former returns `const BottomType()` and the latter return `TypeEnvironment.nullType`.

To avoid this inconsistency and since `const BottomType()` is really the "unreachable" type, used for instance of for the type of a throw expression, the implementation is changed to consistently use the .nullType.

For this to work, getStaticTypeAsInstanceOf (and the equivalent dart2js implementation), and the `Type.fromStaticType` constructor in the VM type flow analysis have to special case the .nullType.

Change-Id: If6b806d4a39ef7b906275c43fa2089b9d140523b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98563
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2019-04-09 06:49:17 +00:00
Kevin Moore 7959be58a7 Support latest pkg:html in analyzer, analyzer_plugin
Remove use and DEPS entry for pkg:utf

Related to https://github.com/dart-lang/sdk/issues/35802

Change-Id: I025cbe15fc4dd7a14ca7163bdd84bb610e87ea5d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98874
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
2019-04-09 02:06:09 +00:00
Konstantin Shcheglov ca78eed3ea Issue 36529. Report Null typed spread in not-null-aware spreads.
R=brianwilkerson@google.com

Bug: https://github.com/dart-lang/sdk/issues/36529
Change-Id: I60c092a18b668605f53f3258f3d74c333e9d1427
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98923
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-04-09 01:53:49 +00:00
Paul Berry 241f3b253e Remove unused imports
Change-Id: I1b81a060dc5821f291da2cc36e3c274f4f2f0498
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98873
Auto-Submit: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-04-09 00:33:19 +00:00
Brian Wilkerson fb630ea246 Split an AssistKind to provide a better message
Change-Id: I75068e9d5fde21df89c999f845bc135813ea18ef
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98906
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-04-08 23:51:09 +00:00
Ryan Macnak 46ebc493b8 [vm] Some fixes to the interpreter for ProfilerDartStackWalker.
Change-Id: If0e57ac397936400199c5571fe4358b39c1fd312
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98872
Reviewed-by: Régis Crelier <regis@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-04-08 23:26:39 +00:00
Konstantin Shcheglov 6e1baa60e0 Resolve metadata for other nodes.
R=brianwilkerson@google.com

Change-Id: I86bec8e75ec24729ef7bf188bbfd3545a90c6a5d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98907
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-04-08 23:16:29 +00:00
Aart Bik b805c80c9d [dart/vm] fixed typo in "Unknown symbol"
Change-Id: I805d1012ad4f35ed177074b30c532159f79439e7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98908
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Aart Bik <ajcbik@google.com>
2019-04-08 23:01:29 +00:00
David Worsham d4ba266e66 Remove legacy mozart.internal reference
Change-Id: I996b269dca3b31ccbab2199bc4d5bd57e4f5fd23
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98868
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-04-08 22:32:59 +00:00
pq cc63d6e647 dart fix support for control_flow_collection fixes
Change-Id: I1cd2dccfcc5b5687934e98ea704184c4bb6a50a6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98866
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-04-08 21:48:29 +00:00
Brian Wilkerson 6d941f8099 Add manifest file error codes to master list of errors
Change-Id: I5f7cc79f97f04c50f1e23ea71cf22fabd3d7cadd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98904
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-04-08 21:41:09 +00:00
Konstantin Shcheglov e9765499cc Support for name offset, code offset/length, documentation.
R=brianwilkerson@google.com

Change-Id: I58671f9e9acc554e615382568d9c979cabb7c0c9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98905
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-08 21:20:28 +00:00
pq cb894430ae error code associations for ui as code lints
Change-Id: I3b320bec6fa22e502a07af84d0421009fdd12bcf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98903
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-04-08 20:45:39 +00:00
Konstantin Shcheglov 29a6ad3beb Lazy AstBinaryReader is always lazy.
We don't need another flag, moreover inter-dependencies between
type parameters require us always being lazy when we are reading any
resolved unit.

R=brianwilkerson@google.com

Change-Id: I5e2fcf547c2667ef6d2faa1827562b7a8e6c61f3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98871
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-08 20:44:54 +00:00
Vijay Menon 8f3608ca25 Enable ddb to run with experiments
Change-Id: I545fd124c212cf3e69c306609c0cff25c7c44216
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98782
Reviewed-by: Jenny Messerly <jmesserly@google.com>
Commit-Queue: Jenny Messerly <jmesserly@google.com>
2019-04-08 20:43:29 +00:00
Alexander Markov de6a7feb24 [vm] Add assertion to check if number of type arguments was calculated before setting type parameters
Issue: https://github.com/dart-lang/sdk/issues/36391
Change-Id: I615fa7f30c4745578c91425a2139908d7bd75c09
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98362
Auto-Submit: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2019-04-08 20:20:49 +00:00
Alexander Thomas 86734d476b [infra] Remove obsolete tools/infra/config directory
This used to contain the cq.cfg file that has been superceded by the
commit-queue.cfg file in the infra/config branch.

TBR=whesse@google.com

Change-Id: I00a69360cc0053319b726f057b32f1a2e33aea8a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98850
Reviewed-by: Alexander Thomas <athom@google.com>
2019-04-08 20:17:58 +00:00
Konstantin Shcheglov b23817105c Build types for function typed formal parameters.
R=brianwilkerson@google.com

Change-Id: Ieff0ab7eee8bb3baaf016defb1ebcbeb65bf7df6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98902
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-08 19:21:38 +00:00
Ryan Macnak 93b4c5ca57 [vm] Improve error message for Dart_PropagateError with no exit frame.
Change-Id: Ic8aeba9344d800b443061d6ac538a87b5f5e2bc6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98865
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-04-08 19:04:13 +00:00
Jaime Wren 3dd09e2a3d Follow up on change https://dart-review.googlesource.com/c/sdk/+/98623 to fix a failing Windows test
Change-Id: I54dfa6825768035f8d03828299764faacc06c0f6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98862
Reviewed-by: Jaime Wren <jwren@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Jaime Wren <jwren@google.com>
2019-04-08 18:30:13 +00:00
Paul Berry 94c34d3cbe Introduce a getter on the Variables class to represent types that are a priori known to be non-nullable.
Change-Id: I17a84cfbab351fdf216726ff3ac64d9dfd5fcd4f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98864
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-04-08 18:26:23 +00:00
Konstantin Shcheglov 3ffe59e1e9 Fix for URIs of parts.
R=brianwilkerson@google.com

Change-Id: I6442d06967d709398c4a1fcb85c4328e72ee8ade
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98901
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-08 17:59:51 +00:00