ffee99d79b Add asyncExpectThrows<T>() to async_helper.
994f535e03 [vm/bytecode/compiler] Remove excessive stack overflow checks when inlining
9ea9612ce8 Object can be used in for-in and await for elements.
4555cf788d Convert one more set of tests
a9ee08051d [dartdevc] Remove redundant parameters from helper methods
1bbd282d65 Make analyzer/tool/summary/generate.dart take an IDL path
f12715354a [co19] DEPS updated
Bugfix:
* Use the `pub` from within the built Dart SDK (not whatever's on
`$PATH`, if anything).
A few minor improvements:
* Allow running from below the src/ buildroot dir, as it's often
convenient to work from within the flutter/engine git dir.
* Echo test name before running, for slightly better debuggability.
* Minor line-wrapping for readability.
Simplifies the build and runtime requirements for the Linux shell.
Since the engine does GL extension lookup manually anway, an extension
loader library isn't necessary.
Currently, all Flutter threads are managed by the engine itself. This works for
all threads except the platform thread. On this thread, the engine cannot see
the underlying event multiplexing mechanism. Using the new task runner
interfaces, the engine can relinquish the task of setting up the event
multiplexing mechanism and instead have the embedder provide one for it during
setup.
This scheme is only wired up for the platform thread. But, the eventual goal
is to expose this message loop interoperability for all threads.
The AccessibilityViewEmbedder was not delegating a11y events coming virtual nodes(of the embedded view) that were not previously traversed by the a11y framework.
It turns out the a11y framework might leave parts of the tree untraversed in some circumstances, changed the behavior to create an originId<-->flutterId mapping on the fly when an event is delegated from a not previously traversed node.
Fixesflutter/flutter#30010.
991c9da720 [vm/ffi] Add copyright headers to sqlite example and incorporate Michael's feedback.
7a15b02935 [vm/ffi] Add demo docs for using FFI on Android.
8a92d2a8d9 Collect types deeply for deferred loading
bd99509601 [infra] Fix approve_results race condition checking failing on new builders.
440d287fa8 [infra] Run pkg/(front_end|kernel) tests only on front-end builders
4256a97a3d [co19] DEPS file updated
b7a5e478bb [vm, service] Allow choice of tags and code-verus-function when getting profile samples as timeline events.
0e485045d4 Deflake socket reads on Fuchsia
45c367d8e8 Add plugin performance data to the server status pages
57321c1590 Revert "[vm/kernel] Index all source and line starts before using them"
419243fc4e Add support for BlockExpression.
61f0f5bc43 [vm/bytecode] Declare members in bytecode
e1a689310b [dartdevc] Generating nested functions that invoke super as arrow functions (e.g., mixins)
3a3731665f Initial implementation of server support for training data
fbc70da0d3 [cfe] Add inference and type checks in for-elements in lists and sets
49a7fa1c11 [cfe] Add inference and type checks for if-elements in lists and sets
73d5c6bab0 Make the collection await for test actually return a stream.
e8fc260e93 [gardening] Clean up outdated flutter hhh patches
Follow up the framework change in flutter/flutter#29304.
Inject the accessibility element tree in the semantic node if the node is for platform views.
flutter/flutter#29302
* Fixed service isolate not being initialized correctly due to bad name
The name for the service isolate was being set to the empty string,
causing the microtask loop to not be run on the service isolate leading
to the service hanging on the first 'await'. See
https://dart-review.googlesource.com/c/sdk/+/97107 for revert due to
this issue.
* Removed unnecessary params from DartCreateAndStartServiceIsolate
f3fd1943fc [vm/ffi] Update status file for FFI sqlite sample.
28a2416320 Fix sqlite sample import.
f135a49861 [doc] dart:ffi SQLite sample
69079303cf [infra] Add a shard to the FFI builders.
1af9f99a5f [cfe] Compile loops in map literals
4c48062955 [CFE] Fail silently on invalid constructs during constant evaluation.
a8e51c5868 Bypass use of dart2js_platform.dill when experimental flags are non-default
b2a2c088d3 [infra] Add --apply-changelist option to apply_preapprovals.
ac21076110 [cfe] Implement compilation of loops in lists and sets
0a3cd80d41 Reland "Change default of 'keepFields' in constant transformation to true"
12d789fa52 [cfe] Update test status files
e5374a688c [cfe] Add front-end support for for and for-in
432e5faeda [VM / Service] Update core library source loading to use resolved_url
This allows for the specification of std::functions (using EmbedderContext::NativeEntry) with their captures as native entrypoints. Earlier, only C functions we allowed which meant that there were no captures and assertions had to use globals which could introduce bugs when used with gtest_repeat.
093c2909fe [dartdevc] Add implicit casts for SpreadElement nodes
f09097bab8 Add tests for "await for" in collection literals.
510d6f7789 Fix a bug in SDK constraint detection
db8dca4fbf dart:core: optional-new/const, named-default-separator, function-typedefs
c9ecdabe5d Revert "Combine override checks and override-based inference in one phase"
93e4ae4fdf [vm] Add flags to gen_kernel script to support old ABIs
8e0bb64bd1 [gardening] Mark reloaded files as other resources.
461d965d82 Reduce the priority of convertToAsync (issue 36327)
ab8510a0a5 [gardening] Fix arguments test for app_jit(k).
580f44aa83 [vm] Enable running FFI tests on Android in JIT-mode.
18a346c4e2 [infra] Protect against buggy approve_results versions causing an outage.
7ddeed1ba9 [gardening] Fix test harness handling of DartOptions
a13ac1b44f [infra] Fix approve_results not inserting primary keys for pre-approvals.
775dd08ae9 add some fixes to the widget transformer so it can find the flutter libs and assume the location arg exists on widget constructors
51da94da76 [fasta] Don't create forwarding stub if there's already a member
8d22c26c64 [CFE] Simplify tracking of unevaluated status.
2ce1af9cbe [CFE] Constant evaluation of newly added operators
0b3af295c0 [CFE] >>>= in fasta
b1e14cbe5f Change default of 'keepFields' in constant transformation to true
133d1b5afe [CFE] Allow 'as' and 'is' expressions as constants.
5f0de26d48 Clean up the remaining copyright notices
09ee45b4e2 Support for import prefixes.
c89642280c Infer types of fields from initializers.
9f864100aa Write / read codeOffset and codeLength for elements.
b0823ca558 Add a quick fix for the MISSING_ENUM_CONSTANT_IN_SWITCH diagnostic (issue 36290)
baa5628875 [infra] fix approve_results crashing on bad preapproval entry
9d7a0113cc Add test parts, fix for indexing enums.
26d707041a Resolve metadata on directives.
2f22932149 Use dynamic type arguments for TypeName without explicit type arguments.
36e6eb36c5 rename and reword invalid initializer error messages
290ab228b7 Resynthesize DefaultFieldFormalParameterElementImpl.
a0e0a7a150 [vm] Delete disallowed constructors/operators
bbe8adc827 [dartdevc] Support await within all CollectionElement nodes
59b8a9c4bb [vm] Free readonly header bit so it can be used for other uses.
466b6884dc add scanner/parser support for >>>=
9d616fe839 Add support for >>> in summaries
19a817e785 [analyzer] Fix utility classes ignoring await in for statement/element
dfae23d205 [dartdevc] fix#36293, call nSM on callable objects if the lookup fails
65b92e9579 [dartdevc] fix#36253, kernel backend now emits trackLibraries call
96a078ce76 Add quick fixes for new SDK constraint checks
0b4fdc46fe Compute export scopes for source libraries.
ee79ca9a74 dart2js support for loading .dill files built modularly
9c6a882af0 Add SDK constraint checks for the constant update 2018 features
a8d0a33360 Build elements for local FunctionExpression(s) and parameters while reading AST.
98dddc9daa [tests] Ensure that --enable-asserts is used whereever checked was used previously
a8831e7481 Handle _FROM_DEFERRED_LIBRARY codes for ui as code
14fcc352cd [gardening] Try troubleshoot flutter hhh buildbot.
ddcc63e1ad [Analyzer] move usage of mostSpecificTypeArgument in strong checker
c22c2b7645 Test that set/list if elements/else elements get implicit casts
c8c5eff08f [infra] Deflake tests that are both multitests and have multiple VMOptions lines
1bab46b06f [vm] Remove support for '-c', '--checked' flags and '--enable-checked-mode'
c614b99ae1 [vm] Load kernel service from ABI versioned dill file
7e170b351d [vm] Add whitespace before parenthesis.
b60eae48e5 Test that VM interpreter, bytecode, and unoptimized benchmarks can run.
2631fdf8cf [vm] Reclaim GraphMarked bit.
a447b36280 convert: remove private typedefs
485640df2e update scanner tests to use scanString
f3ac707aea report error for invalid super/this initializer
4cd410d6ac add parser listener handleErrorToken event
11a148c85e Add the ability to associate a URL with a diagnostic
87c553bf3c Ascribe constants to the member world impacts
f141914e65 Cleanup warnings in the analyzer code base
ecf5a46c96 [infra] Fix approve_results crashing on approvals for deleted tests.
849e914cb4 [infra] Fix per-CL approval not setting the expires field.
2aed6c0311 [CFE] >>> in fasta
94e214bacc [infra] Fix auto-approval breaking as of per-CL approval.
065910f0c1 [infra] Add support for pre-approvals in approved_results.json.
81b984d735 [gardening] Fix up name detection in isolate tests.
3de6276ad6 Handle deferred constants in the ssa builder
9db4119b67 Combine override checks and override-based inference in one phase
3678efae60 Test that map if elements/else elements keys/values get implicit casts
Delegate a11y events and action to/from embedded Android platfrom views.
This handles delegation of:
* AccessibilityNodeProvider#performAction
* ViewGroup#requestSendAccessibilityEvent
* View#onHoverEvent
Additionally updates the currently input accessibility focused node state that is
tracked by the a11y bridge when an embedded view's node is focused.
All embedder unit-tests have to setup the Flutter project arguments from scratch
before launching the engine. The boilerplate and having to deal with the low
level C API during each engine launch is a hinderance to writing tests.
This patch introduces an EmbedderTest fixture that sets up all the embedder side snapshots before allowing the unit test to create a FlutterConfigBuilder` that
the test can use to incrementally build and edit the Flutter project
configuration. From the given state state of a configuration, multiple engines
can be launched with their lifecylces managed by appropriate RAII wrappers.
This allows the a fully configured Flutter engine to be launched using 4 lines
of code in a fixture.
```
EmbedderConfigBuilder builder;
builder.SetSoftwareRendererConfig();
builder.SetAssetsPathFromFixture(this);
builder.SetSnapshotsFromFixture(this);
auto engine = builder.LaunchEngine();
```