Commit Graph

64479 Commits

Author SHA1 Message Date
Dan Rubel 174395a49e NNBD "late" modifier language_2 tests
Change-Id: Iffcd2ef8042576bcfc195ab72f2743f2c3e7be07
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100261
Reviewed-by: Leaf Petersen <leafp@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-23 20:58:31 +00:00
Régis Crelier 7c18fc0c3d Revert "[gardening] Mark ffi/function_stress_test/1 test as slow."
This reverts commit 7388c3e3db.

Reason for revert: Marking as Slow is not sufficient. Filed issue instead.

Original change's description:
> [gardening] Mark ffi/function_stress_test/1 test as slow.
> 
> Change-Id: Ic5130781a75250165f92d86729c2d83c436db30e
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100280
> Reviewed-by: Régis Crelier <regis@google.com>
> Commit-Queue: Régis Crelier <regis@google.com>

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

Change-Id: I35afabb3207f094f37a9d4b32e027060070f2f91
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100284
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Régis Crelier <regis@google.com>
2019-04-23 20:14:56 +00:00
Chingjun Lau 2c4dc7a431 Support targetting flutter and flutter_runner in kernel_worker
Change-Id: I87745f48ba09a0ac8629ae6518b7dad883733447
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100180
Commit-Queue: Jake Macdonald <jakemac@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
2019-04-23 20:06:45 +00:00
Zichang Guo 2298712d62 [vm] fix position of DebugStepCheck when building break statement in flowgraph
Debugger will retrieve the saved context object when looking for IsAtAsyncJump(). The saved context object does not match the context level if setting breakpoint on "break" statement.
It is because when flowgraph builds break statement, DebugStepCheck was put after context object was restored to its parent. Then activation frame got the parent context when pausing at breakpoint.

Bug: https://github.com/dart-lang/sdk/issues/36622
Change-Id: I07508eb42ab102f9697797ef15f914de8bd1af65
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100087
Commit-Queue: Zichang Guo <zichangguo@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2019-04-23 19:59:15 +00:00
Brian Wilkerson c66a67c4a3 Rename isLazy to isLate to reflect change in keyword
Change-Id: Ic4891aa7a9d4d16719cb23a3f5e4afc928087960
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100267
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-04-23 19:36:25 +00:00
Ryan Macnak ab7e9500c7 [vm, arm64] Fix some assertions.
Change-Id: I6409013e09c607fd779dd86021053c909f20f833
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100281
Reviewed-by: Aart Bik <ajcbik@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-04-23 19:27:35 +00:00
Konstantin Shcheglov b9be35b3fc Perform override and initializer inference at the same time when required.
R=brianwilkerson@google.com

Change-Id: I54cf4d1e343439494e10cbfe2d5016cb36120df2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100269
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-23 19:25:59 +00:00
Bob Nystrom 34f0bed189 Use the correct syntax for null-aware spread in CHANGELOG.
Fix #36705.

Change-Id: Ifa2061c159199140fcc58a2718ff54e5f67cd48b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100265
Reviewed-by: Vijay Menon <vsm@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
2019-04-23 19:22:44 +00:00
Ben Konyi 04e1b0d976 [ VM ] Updated standalone VM to display message about --disable-service-auth-codes when --help --verbose is provided.
Change-Id: I88d3215ccf567a8c965298b5c9c3f7604149e9f1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100264
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2019-04-23 18:17:05 +00:00
Jaime Wren 688f029c4f Rename workspace to refactoringWorkspace in move_file.dart to clarify the type of the object.
Change-Id: Idfe7c53cfbdab59d7343c449f01c1ab4c57160db
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100266
Reviewed-by: Jaime Wren <jwren@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Jaime Wren <jwren@google.com>
Auto-Submit: Jaime Wren <jwren@google.com>
2019-04-23 17:40:42 +00:00
Régis Crelier 7388c3e3db [gardening] Mark ffi/function_stress_test/1 test as slow.
Change-Id: Ic5130781a75250165f92d86729c2d83c436db30e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100280
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Régis Crelier <regis@google.com>
2019-04-23 17:40:31 +00:00
Konstantin Shcheglov 594a0ef7a7 Perform instantiateToBounds() even for not simply bounded types.
Apparently my previous understanding was wrong.

R=brianwilkerson@google.com

Change-Id: I17ccce93d8e6b8744eaf05c80782ae4f1fe4a414
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100090
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-23 17:39:08 +00:00
Brian Wilkerson b4d17f2eee Add diagnostics related to default values
Change-Id: I4b30580e34fbf302a53778010fada54a2e100409
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99887
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-04-23 17:16:50 +00:00
Aart Bik dbfcb97fa5 [dart/vm]: sometimes a smi is just a smi
Rationale:
The IA32 codegen has the concept of "safe smis", which
can actually be larger "mints" that can be constructed
in a safe way (e.g. shifting). However, at a few places,
this caused confusion, since following code assumed
that such values can be casted to "smis" always.
This CL fixes that. Found with DartFuzz.

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

Change-Id: I6bf308897abfb0aad965c7fbaf8f374a1ba30d41
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100089
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Aart Bik <ajcbik@google.com>
2019-04-23 16:39:02 +00:00
Paul Berry cee1e41fe8 Plumb new FeatureSet class into Scanner.
And change clients of the scanner (within the SDK) to use it.

Long term, it would be better to store the FeatureSet object directly
in the Scanner and remove the existing flags `enableGtGt` and
`enableNonNullable`.  However there are analyzer clients that
currently use these flags.  So for now, we simply plumb in the
FeatureSet as a new way of setting AstBuilder flags.  Once we've
updated clients to use FeatureSet, we'll publish a breaking version of
the analyzer that removes the old flag API.

Change-Id: I9e662f4ed45668d9acd4f56e42d7d8dae6180d48
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99975
Reviewed-by: Dan Rubel <danrubel@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-04-23 16:13:43 +00:00
Dan Rubel 293c0f42f7 NNBD "required" modifier language_2 tests
Change-Id: I2c0d53fd321dea7ed74cf9fac422ec32f9dea641
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100260
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2019-04-23 15:28:12 +00:00
Paul Berry bb2a3ca6f6 Plumb FeatureSet into ConstantVerifier
Change-Id: I40509fffcbb9d772100b1b5e4bc5461dccf5bc27
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99978
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-04-23 14:57:32 +00:00
danrubel 81b028de78 cleanup some error codes
* replace CovariantAfterFinal with ModifierOutOfOrder
* replace ConstAndCovariant with ConflictingModifiers

Change-Id: If09551a28d4bffecaf009b4e836a67dfc939c0bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100140
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2019-04-23 14:22:12 +00:00
Martin Kustermann 80d4b9a5db [vm/frontend_server] Expose protobuf aware tree shaker in frontend server
Change-Id: If195ab074278d4768d261b6f6ffd1529de1f7e2c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100241
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2019-04-23 13:40:52 +00:00
Clement Skau b7375d0360 Nit: convert singular tab into spaces in test_matrix.json.
Change-Id: I51928c505d41ecc8dd2b3e5e46679300cf6c0ef3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100242
Commit-Queue: Clement Skau <cskau@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2019-04-23 13:30:42 +00:00
Jens Johansen a58aa6f705 Fix NoSuchMethodError in observatory when setting breakpoint via debugger console
Reproduction without this fix:
Create 2 files, test1.dart and test2.dart:

```
$ cat test1.dart
import "test2.dart";

main() {
  test();
  test();
}

$ cat test2.dart
test() {
  // blank line.
  print("hello");
}
```

Launch with observatory enabled and paused at start, e.g.
`out/ReleaseX64/dart --observe --pause-isolates-on-start test1.dart`

Set a breakpoint on the second (*not* the first!) call to `test()`.
Continue execution.
Now write `break test2.dart:2` into the debugger console and you will be
presented with a stack trace looking something like this:

```
Unexpected exception:

NoSuchMethodError: method not found: 'gi4'
Receiver: Instance of 'minified:hS'
Arguments: []

StackTrace:

main.dart.js 459:3      Object.n
main.dart.js 15752:9    hS.G
main.dart.js 15901:28   hS.gi4
main.dart.js 40703:10   GE.$1
main.dart.js 43127:29   Hz.$0
main.dart.js 43100:9    pN.lG
main.dart.js 43124:12   HA.$1
main.dart.js 43127:29   Hz.$0
main.dart.js 43100:9    pN.lG
main.dart.js 43124:12   HA.$1
===== asynchronous gap ===========================
main.dart.js 14033:115  LH.cG
main.dart.js 13585:17   qm.eB
main.dart.js 13571:3    qm.kC
main.dart.js 13870:3    cQ.aV
main.dart.js 13873:27   cQ.I
main.dart.js 40226:79   P.R
===== asynchronous gap ===========================
[...]
```

This CL fixes the issue by catching the NoSuchMethod
(it will succeed for UnresolvedSourceLocation for instance)
and then using the scriptref and token position on the
abstract class Location to get the actual line.

Change-Id: Id951e2727a5edb8ba52a65959c833dcbf923406c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98667
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2019-04-23 08:58:58 +00:00
Joseph Richey 86fe7ca75c Fix build when python=python3
Right now most of the dart SDK's python is compatible with python2
or python3. This change fixes a few of the build scripts to make
that completely true (at least when building the standard build on
Linux). There are only four types of changes:
  - Bare `print` statements now use the `print ()` function
  - `commands.getoutput` becomes `subprocess.check_output` with `shell=True`
  - `xrange` becomes `range`
  - `print >> sys.stderr` becomes `sys.stderr.write`

Starts work on addressing (but does not completely fix):
https://github.com/dart-lang/sdk/issues/28793

See related issue:
https://fuchsia-review.googlesource.com/c/fuchsia/+/272925

This change applys to both the `dev` and `master` branches.

Change-Id: Ibd3eb9b1f57520d2d745f05c2ac430b1d20943da

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

GitOrigin-RevId: beab165294982a7e369daf6d61aea63efcab1b9b
Change-Id: I6d240749a9ba0889b5a45a08f3c4c2c20291f484
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99707
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2019-04-23 07:48:15 +00:00
Alexander Thomas 475c918f0a [infra] Run analyzer unit tests only on analyzer builders
These unit tests are already run on the analyzer builders. There is no
additional test coverage by running them twice.

Change-Id: Ief2c854ba0e73f1cb48aab603e045eeb97d54a39
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99021
Auto-Submit: Alexander Thomas <athom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2019-04-23 07:09:44 +00:00
Keerti Parthasarathy 1f1592edce Add manifest checks for touchscreen feature
Change-Id: Ib849eccdbad6f41e22dbffeca755099cb3926f8a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100160
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-23 00:32:54 +00:00
Ryan Macnak 630058286f [build] Fix deps for dart_io.
Change-Id: If7d173e9f6d332273bb85e73f90673613d34a1d2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99979
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-04-23 00:24:24 +00:00
Alexander Markov 5ee20c99ac [vm/aot/tfa] Workaround for crash in getStaticType
Issues: b/131091988, https://github.com/dart-lang/sdk/issues/34496
Change-Id: I9ef8edfff39848e6f240402682d119fe35f7f776
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99972
Reviewed-by: Aart Bik <ajcbik@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2019-04-22 22:49:24 +00:00
Jenny Messerly 2c304d997f [dartdevc] fix #36372, make JS Array constructor property usable from JS
The `new array.constructor()` pattern is occasionally used in JS
(presumably, to get the array subtype if one is available). GopherJS in
particular does this. This fixes DDC's generic `JSArray<T>` to support
this pattern, for all values of T. This also makes JSArray work like
all other "native" types in DDC, where the "constructor" property
is the JS constructor for that native type.

Change-Id: I5270bd648d3d60cf07b8548fcd8c9b9d1a3018d4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99940
Auto-Submit: Jenny Messerly <jmesserly@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Jenny Messerly <jmesserly@google.com>
2019-04-22 22:43:14 +00:00
Konstantin Shcheglov ef9c25c08b Support codeOffset/Length for CompilationUnit and other nodes.
R=brianwilkerson@google.com

Change-Id: I155662712bf72f2823bb0a3b35b1de341f27670d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99977
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-22 22:03:39 +00:00
Konstantin Shcheglov 80bed430c8 Extract AnalysisDriver tests that work with summary1 into a separate test class.
R=brianwilkerson@google.com

Change-Id: I4c078d189b3c1bd7c0da3cfbe87490c2cedbc40f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99976
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-22 21:39:09 +00:00
Konstantin Shcheglov 39662f8108 Set ElementAnnotation for directives.
R=brianwilkerson@google.com

Change-Id: Idfd06b4bd987796e32982083d2a4453777a77cda
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99974
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-22 21:22:09 +00:00
Konstantin Shcheglov c7279d347b Always lazy create TypeParameterTypeImpl.
Also, not every FunctionType has element, so change FunctionTypeImpl.fresh().

R=brianwilkerson@google.com

Change-Id: Id760d2f94d6fc0c4dad56a1d139068177cce8a0e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99973
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-22 21:08:38 +00:00
Konstantin Shcheglov 27b64953d5 Fixes for applying resolution for fields metadata.
R=brianwilkerson@google.com

Change-Id: I6154b5dc78b802cc9ebe184132f697fc8a7c4b02
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100088
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-22 20:56:21 +00:00
Konstantin Shcheglov 385406ac92 Give LinkedElementFactory its AnalysisSession, fixes for nameOffset.
R=brianwilkerson@google.com

Change-Id: I0cf24dd2b1662fbe50478aea6e21da874d83598f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99971
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-22 20:56:10 +00:00
danrubel 8b6d04b2ee sort tests
Change-Id: I598ea625cc7dce757906f2f7fbef0c5d186ee462
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99969
Commit-Queue: Paul Berry <paulberry@google.com>
Auto-Submit: Dan Rubel <danrubel@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2019-04-22 20:54:23 +00:00
Konstantin Shcheglov c89e71cd40 The default return type for []= is void.
R=brianwilkerson@google.com

Change-Id: I748ada4ee9a6f7f9c2693d959982305c5b9d1650
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100086
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-22 20:27:24 +00:00
Ryan Macnak 971f4845d7 [build] Remove last platform -> vm and bin -> vm dependencies. Fix some ODR violations.
Change some static_libraries to source_sets to make ODR violations link-time errors.

This is needed to enable (stop suppressing) -fvisibility=hidden in Fuchsia product builds.

Change-Id: I699cec8d4b516beab9cebf9db0a522a7ff99e004
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99822
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-04-22 20:15:43 +00:00
Konstantin Shcheglov 3aef424c9c Always add imported / exported files, even if they are parts.
R=brianwilkerson@google.com

Change-Id: I884e61711c61f8d664428f13d3c699a56ed76295
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100084
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-22 19:59:22 +00:00
Konstantin Shcheglov e7a54a9759 Support for TokenType.GT_GT_GT
R=brianwilkerson@google.com

Change-Id: Ie02eb93757a4fe6e89eafab70027523e828d5208
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99968
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-22 19:45:13 +00:00
Dan Rubel ec79fc2ff4 update AstBuilder to process "late" modifier
Change-Id: I97530583b059a39d502469079940ffc5b8d4db71
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100100
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2019-04-22 19:34:33 +00:00
Brian Wilkerson 390ba6925d Allow nnbd to be enabled in tests
Change-Id: Iafe7abc132c664b0b16109b3c5d6fd8a6ac3b0c4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100083
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-04-22 19:11:08 +00:00
Konstantin Shcheglov d1b675055c Read all GenericFunctionType(s) and TypeParameter(s) is lazy AST before reading eager AST.
So, that all corresponding elements are available.

R=brianwilkerson@google.com

Change-Id: I844cc276fda574883a658cc9b150a0a74b13e63a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100120
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-22 18:55:16 +00:00
Paul Berry 17db9f986a Simplify type tests in nullable_type_ambiguous_test.dart
Change-Id: I6612a83550acf5f1920bb0467425cfb2977ea2e0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99882
Auto-Submit: Paul Berry <paulberry@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-04-22 18:50:11 +00:00
Ryan Macnak dfa56c7031 [vm, interpreter] Invoke field as a bytecode.
Simplify invocation.

Fix missing AOT exclusion of Function::HasByteCode.

Change-Id: I71f698da3531a9f53d40fdaa5d77b25a9d1c9a59
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100082
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-04-22 18:15:59 +00:00
Paul Berry 2d6313c9e4 Prepare to publish analyzer version 0.36.1
Change-Id: I84e132ff2b2635cc5703a58c88f5ab1767e4970e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99965
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-04-22 18:05:19 +00:00
Paul Berry 4a33d33297 Store FeatureSet in CompilationUnit.
Change-Id: I8c132b0ae93ee76adb5cf89f8a725db048b9e935
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100060
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Dan Rubel <danrubel@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-22 17:38:39 +00:00
Dan Rubel 08832508ec Forward "late" modifier to parser listeners
... and update parser tests to use preNonNullable feature set
to address comments in https://dart-review.googlesource.com/c/sdk/+/99963

Change-Id: I3a3293d65805807b7b95e887f829f3f0080ae3b2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99964
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2019-04-22 17:20:10 +00:00
Alexander Markov 449cdecda2 [vm/interpreter] Fix bytecode instruction formats in interpreter
Interpreter should use correct instructions formats to be able to
change instruction encoding in furture.

Change-Id: I1a096197cdf4d69e10a1a25fa2f2119daaf78627
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99922
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
2019-04-22 17:04:29 +00:00
Konstantin Shcheglov 6d9d95d938 Add GenericFunctionTypeImpl.declaredElement
R=brianwilkerson@google.com

Change-Id: I46db30d67722d4cecbff65d95fcecc0f683a13e0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100081
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-04-22 16:59:21 +00:00
Dan Rubel fd48001ace Put NNBD modifiers behind a flag
Fix https://github.com/dart-lang/sdk/issues/36691

Change-Id: I48aa72eb6a4aa63d072089baaf99d249763095fb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99963
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2019-04-22 15:31:09 +00:00
Konstantin Shcheglov a9b1d9e33b Splice resolved API nodes and unresolved function bodies.
After attempting to use DeclarationResolver to implement building
elements, I decided that this does not work well enough, and we need
a more specialized implementation. This also opens ways for interesting
optimizations in the future, e.g. we don't need to resolve any names in
APIs of nodes - they are already resolved summaries.

R=brianwilkerson@google.com

Change-Id: Ib448eb7334b469296ffb866ba27ae7edd0d4543a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100040
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-04-22 15:02:29 +00:00