488 Commits

Author SHA1 Message Date
Alexander Aprelev
be10ce80b6 Roll dart to c688d0c0c3ad3dece3a79ce0e115d787a94707ea. (flutter/engine#6285)
* Roll dart to c688d0c0c3ad3dece3a79ce0e115d787a94707ea.

Changes since last roll:
```
c688d0c0c3 [frontend] When serializing compiled expression proc, clone type params first.
346895eb35 Choose the right platform in the command-line fasta tool in strong mode
51d530475a [frontend] Honor embedSourceText option in incremental compiler.
06792cb91f Remove StackListener.popList
69cd7cb43f [infra] Add compare_results.dart and update_flakiness.dart.
c3c4e63ce4 Adjusted spec to use package syntax, thus eliminating bnf.sty
0315707dec Add 'set' case to type_variable_conflict_test
00f2054242 Add --repeat flag to test.py, so tests can be run multiple times
cf5cdea808 Add J/K versions CommonElements and ElementEnvironment
1681241062 Remove _ClassEnsurer
a5b71813ab Use json expectation files in dynamic tests
d560887ae5 Fix TypeError in Observatory
867c5271be Debugging dart in methods with dynamic type arguments
2e3f17fa2b Add support for the new mixin syntax to supertype constraint checking and resynthesis.
929b2fbc55 Adjust status file to account for CustomIsolates test passing now.
f0974aee20 Remove entry_points option from the test harness (should fix the precompiler bot failure).
296e4aa7e6 Split mixin_declaration_inference_valid_classes_test.dart into multiple tests.
2c427d33fc Train the dartanalyzer on less source.
41273507b2 Detect references to instance variables without declared type.
a0776096b9 Cleanup some of the build rules to not use Dart 1 mode.
3463f94ed9 Delete any existing version of a DevFS file before overwriting the file
7763ec3cd1 Surface analyzer toplevel inference limitations as DDC errors.
a386c07281 [vm/aot] Add extra call specialization pass
878017481f Roll dart_style to 1.2.0.
a890d95a26 [vm/compiler] Avoid !(x>y) -> x<=y on fp operands.
bc79674bc1 [vm/aot] Fix inferred type of implicitly initialized final fields
7df4900a94 Train the dartanalyzer tool on generating summaries.
80c1b88626 Add copyright comments in resolution tests.
bbe49524be Cache mapping from subtypes names to files where they are subtyped.
cf67e402bd Add test case reproducing issues #34498 and #34500.
81ce969060 Enable implicit constructors with optional parameters in mixin applications.
cb331064e0 Compare AnalysisOptions signatures in analyzer_cli.
eb059a76f3 Keep analyzer-specific status entries together in language_2_analyzer.status
62ce86e20c Add --test-list and --repeat options to test.py, for deflaking
9e86c1a395 Normalize strong.status
3831da8743 Include all problems in expectations
a1bd50168e Make input validation optional
6fe272314d Tweak parameters of ProcessedOptions
0a5d7b866d Update status files after de984e58.
de984e58cb Type checking for redirecting factories.
4134b95a3d [vm/tfa] Streamline handling of tear-offs in TFA
d44ffba254 [vm/tfa] Stop accepting non-empty entry points json files
30f0026022 [VM runtime] Fix type test: C is a subtype of C<FutureOr> (fixes #34482).
bbe83465ea Test that type of the ListLiteral with two different enums is inferred.
37b41bd317 Update status files after d4148159cc39d3f38d8295cf79ed736c6337d7ac
d9fcaa33b1 Implement StreamTransformer.fromBind
abb392fc0d add Pubspec.dependencyOverrides
c733ed7fd7 firefix status for LayoutTests/fast/dom/Range/getClientRects-character_t01
d4148159cc Initial valid inference checks
dcabf2cb0e Test for mixin declaration isObject and tweaks for error verifier.
```

* Update license
2018-09-20 08:46:54 -07:00
Jason Simmons
56fdcb7dbd Return null instead of throwing if an instance method is passed to PluginUtilities.getCallbackHandle (flutter/engine#6260) 2018-09-18 17:07:03 -07:00
sjindel-google
8d180f0bb2 Remove entries from dart_vm_entry_points.txt and use annotations (flutter/engine#6226)
The `dart_vm_entry_points.txt` file is now deprecated in favor of annotations.
Support for parsing and generating the entry-points files will be removed from Dart shortly.
2018-09-18 10:56:26 +02:00
Zachary Anderson
d22b813220 [fuchsia] Fixes for the Fuchsia build (flutter/engine#6273) 2018-09-17 15:42:42 -07:00
liyuqian
2db3d26f4a Remove LayerBuilder and DefaultLayerBuilder (flutter/engine#6256)
This essentially reverts https://github.com/flutter/engine/pull/4197/
as no one is (or soon will be) implementing an alternative LayerBuilder.
Let's just put everything in SceneBuilder to reduce the YAGNI
(you aren't gonna need it) smell. This will also make retained rendering
API changes much easier.
2018-09-14 15:13:00 -07:00
Ryan Macnak
a6d25b895c Reapply "Some cleanups enabled by removing support for Dart 1" (flutter/engine#6250)
Following fixes in dart-lang/sdk@91cbb57cd5
2018-09-14 09:36:13 -07:00
Jonah Williams
b258e126f3 Add scrollIndex and scrollChildren to semantics, add Android implementation (flutter/engine#6239) 2018-09-13 10:28:27 -07:00
Brian Osman
ac8e6f763f Update to newer Skia font API (flutter/engine#6236)
This function now takes an sk_sp
2018-09-12 10:47:29 -04:00
Michael Goderbauer
d6ba11b0c1 Revert "Reapply "Some cleanups enabled by removing support for Dart 1" (#6216)" (flutter/engine#6232)
This reverts commit 88aac222998fac4a7c0e57e99c48feacefc92aa6.
2018-09-12 12:07:20 +02:00
Ryan Macnak
88aac22299 Reapply "Some cleanups enabled by removing support for Dart 1." (flutter/engine#6216)
- Add missing Dart 2 flags to gen_snapshot invocation.
 - Disable brittle service test.
2018-09-10 17:03:54 -07:00
Ryan Macnak
1b76565c81 Roll Dart to ef720983530e04819b6fda0659ed7a3fdb190060. (flutter/engine#6212) 2018-09-10 14:30:55 -07:00
Ryan Macnak
75e10e3845 Revert "Some cleanups enabled by removing support for Dart. (#5621)" (flutter/engine#6205)
This reverts commit e05d573589bded526e9acf44128e35151d142b7e.
2018-09-07 17:39:51 -07:00
Ryan Macnak
e05d573589 Some cleanups enabled by removing support for Dart. (flutter/engine#5621)
- Switch core snapshot to Dart 2 and remove support for loading platform.dill.
 - Remove support for loading script snapshots.
 - Remove support for loading source.
 - Remove settings and fix names to reflect the above.
 - Remove support for loading the service isolate from source.
2018-09-07 15:44:46 -07:00
Jonah Williams
e6f0842c50 Don't map iOS reduce motion to disabled animations (flutter/engine#6194) 2018-09-07 11:20:44 -07:00
Jonah Williams
7ceee12615 Add option to invert paint colors to be used for smart invert accessibility on iOS (flutter/engine#6176) 2018-09-07 10:22:07 -07:00
Jonah Williams
cce79157ff expose bold text flag in accessibility features for iOS (flutter/engine#6072) 2018-08-28 12:38:54 -07:00
liyuqian
3766540e1e Rename clipMode to clipBehavior in compositing.dart (flutter/engine#6053)
This is a follow up of https://github.com/flutter/engine/pull/5853
2018-08-20 12:56:30 -07:00
Siva
1890290fdb Roll Dart to version 1be785ae2ddb1754a184cd638ab719e94d86b4e9 (flutter/engine#5985)
* Roll Dart to version 1be785ae2ddb1754a184cd638ab719e94d86b4e9

This rolls includes the following changes :

1be785ae2d Clean up some dead code
7b9fb893d2 [vm] Add a service method for 'invoke' as the dual to 'eval'.
099f1504fa Mention -O flag in CHANGELOG
79f69abace [vm/compiler] breakage fix: add missing break
96a1e9985f Fix the pkg bot
7818db20a7 Add analysis hint for invalid use of @visibleForTemplate code.
71d96019d1 [vm/compiler] Introduce 64-bit NEGATE - all archs.
5013a2ccc4 Remove spurious line.
ef2f777625 Mark some analyzer tests as being flaky
cf560fe17b Fix a couple of the tests failing on the analyzer with fasta parser bot
63c11693e6 [gardening] Fix language_2/type_variable_promotion_test.
d0f28884ff [VM] Fix expression evaluation implementation: Never register temporary/unused classes with the system.
e2a1807fc2 [gardening] Update status for io/compile_all_test in PRODUCT AOT mode
f7ff739448 Insert date of 2.0.0 release in Changelog
bcabad6014 [vm] Fix SIMARM64 build on Windows.
af02ccae83 [infra] Fix filesets for new vm-kernel-precomp builders
8e2f28e264 Update homebrew to drop the @2 tab and fix for 2.0
ba119d7292 [VM] Remove "$compiler == precompiler" sections from language_2_precompiler.status
f3a2c0e28f [release] Prepare changelog for 2.1.0-dev.0.0
88cba7d860 [vm/kernel/bytecode] Fix arguments descriptor for List._fromLiteral call in bytecode
bd45ec0c4b [vm, gc] Refactor PageSpace::CollectGarbage to ensure the safepoint and task count remain well-scoped even with early exits.
8195fd8c64 Repair dart2js/string_interpolation_test
a0b335ac6c Try no implicit casts in pkg/analyzer_cli.
3d25d3761b Update pub - leave packages directories alone
327db5e9ab [vm] Fix kernel_isolate use_field_guard flag for kbc
a1ca88f554 Resolve invocation arguments to parameters.

* Address source format error.
2018-08-09 16:24:16 -07:00
amirh
9d38d63147 Allow freezing a texture. (flutter/engine#5938)
This is needed to avoid jank when resizing an embedded Android view.
See
https://github.com/flutter/flutter/issues/19572#issuecomment-410400724
2018-08-07 14:43:19 -07:00
Ben Konyi
10e272f154 Persist DartCallbackCache contents across launches (flutter/engine#5947)
* Updated DartCallbackCache to write callback cache to disk which is
restored on engine startup
* Ensure cache isn't moved off disk in iOS
2018-08-07 14:37:19 -07:00
Jonah Williams
9d5862edbb Add hasImplicitScrolling SemanticFlag and support in Android bridge (flutter/engine#5941) 2018-08-06 13:57:00 -07:00
Petr Hosek
438316f98d Replace acquire+release thread annotation with excludes (flutter/engine#5944)
The behavior of acquire+release annotation handling has changed in
https://reviews.llvm.org/D49355 which breaks the build with the new
Clang. However, as has been pointed out, the acquire+release isn't
the right way to prevent double locking as the annotations negate
each other; the correct way is to use excludes or negative requires.
Using excludes annotations also requires using std::lock_guard instead
of std::unique_lock because the latter doesn't have the thread
annotations due to deferred locking which is not needed in Flutter and
so std::lock_guard is a sufficient alternative.
2018-08-05 18:25:43 -07:00
amirh
c5dfa3a45c Don't drop MotionEvents with unknown tool type. (flutter/engine#5931)
Instead, send them with the new unknown PointerDeviceKind.

We hit this when running `adb shell input tap` in tests which sends events with
an unknown tool type.

This also fills in a missing conversion for TOOL_TYPE_ERASER.
2018-08-02 16:05:55 -07:00
Chinmay Garde
3e5e79b737 Fix sundry Fuchsia build issues after the tonic/fxl migration. (flutter/engine#5920) 2018-08-01 13:29:45 -07:00
Jonah Williams
3a3f6ca0ee Initial support for more finely-grained a11y features on Window (flutter/engine#5901) 2018-07-31 18:18:19 -07:00
Jonah Williams
7fe563529c Add word movement granularities to android (flutter/engine#5902) 2018-07-30 17:53:17 -07:00
Stanislav Baranov
caf14ff364 Fix compilation trace memory management problem
This fixes issue with compilation trace buffer getting released upon return from VM code to Dart code, before it gets change to save to a file in natives.dart saveCompilationTrace().
2018-07-26 16:08:12 -07:00
Chinmay Garde
6ab2c166fd Remove all dependencies on Garnet. (flutter/engine#5869) 2018-07-26 12:49:34 -07:00
liyuqian
9ff7e1a350 Rename clip to clipBehavior in compositing.dart (flutter/engine#5868)
The is a follow up of https://github.com/flutter/engine/pull/5853
2018-07-25 15:39:01 -07:00
Jonah Williams
4cf4ffab2e Support customizing standard accessibility actions on Android. (flutter/engine#5823) 2018-07-25 15:26:02 -07:00
Chinmay Garde
62289623fc Remove //flutter/glue and use FML directly. (flutter/engine#5862) 2018-07-25 13:20:48 -07:00
liyuqian
2c526e8068 Rename clip mode to clip behavior (flutter/engine#5853)
* Rename clip mode to clip behavior

So we're consistent across flutter/flutter and flutter/engine

* Clang format
2018-07-25 09:57:10 -07:00
Jason Simmons
ebbdba1aea Migrate to a standalone Tonic repository separated from Topaz (flutter/engine#5817) 2018-07-23 11:49:35 -07:00
liyuqian
f48703bb9b Remove trailing white spaces (flutter/engine#5734)
* Remove trailing white spaces

* Fix clang-format
2018-07-20 13:47:55 -07:00
Jonah Williams
6526a25097 Semantics framework updates (flutter/engine#5601) 2018-07-20 11:17:59 -07:00
Jonah Williams
c8516387e2 Revert rollback of "add assistiveTechnologyEnabled to window" (flutter/engine#5750) 2018-07-16 09:04:20 -07:00
Jonah Williams
b07e9faa35 Revert "Add assistiveTechnologyEnabled flag to window" (flutter/engine#5746)
Reverts flutter/engine#5740
2018-07-13 15:55:49 -07:00
Jonah Williams
71e01bf548 Add assistiveTechnologyEnabled flag to window (flutter/engine#5740) 2018-07-13 13:47:31 -07:00
liyuqian
9f3465f4c3 Add ClipMode to ClipPath/ClipRRect and PhysicalShape layers (flutter/engine#5647)
For flutter/flutter#18057
2018-07-13 12:38:16 -07:00
Jonah Williams
982f46d00b fix typo in interop code (flutter/engine#5743) 2018-07-13 12:37:42 -07:00
Ben Konyi
9cec23702e Background Execution Implementation for iOS (flutter/engine#5539) 2018-07-13 10:55:24 -07:00
Jason Simmons
436c78278a Return a failure exit code in flutter_tester if an uncaught error occurs in a microtask (flutter/engine#5736) 2018-07-13 09:44:22 -07:00
Jason Simmons
d8bd42fbb3 Retain the original image's color type when encoding in raw unmodified format (flutter/engine#5735) 2018-07-12 17:12:21 -07:00
Jason Simmons
4a8d1fcafb Convert lazy SkImages to raster images when extracting pixel data (flutter/engine#5713)
Fixes https://github.com/flutter/flutter/issues/19214
2018-07-11 12:33:36 -07:00
Jonah Williams
5bf14b1e4d Custom accessibility (local context) action support for iOS and Android. (flutter/engine#5597) 2018-07-11 10:27:50 -07:00
liyuqian
605252cad0 Remove trailing white spaces (flutter/engine#5708)
So our future pull requests won't be polluted by the white space changes.
2018-07-10 14:26:14 -07:00
liyuqian
886c0120b2 Add anti-alias switch to canvas clip calls (flutter/engine#5670)
This is a reland of #5638. We removed the restoreToCount, made doAntiAlias named, and updated the comments.
2018-07-09 16:25:04 -07:00
liyuqian
8e45851a3c Revert "Add antiAlias and saveCount to clipPath and restore (#5638)" (flutter/engine#5660)
This reverts commit dfa02e5881f31bd75736d3b7bc2a21dc954d5c84.

Reason for revert: need to fix several things including the framework test in order to unblock the engine roll.

TBR: @matthew-carroll
2018-07-02 16:55:24 -07:00
liyuqian
dfa02e5881 Add antiAlias and saveCount to clipPath and restore (flutter/engine#5638)
This would enable us to solve https://github.com/flutter/flutter/issues/18057
2018-06-29 16:24:12 -07:00
Chris Bracken
0b939b3cf1 Assert in place of ArgumentError for null checks (flutter/engine#5612)
For consistency with the rest of dart:ui, check required parameters with
assert(param != null) rather than throwing ArgumentError. ArgumentError
is typically reserved for checking the validity of non-null args -- e.g.
that a list has the required number of elements.
2018-06-25 16:33:33 -07:00