308 Commits

Author SHA1 Message Date
Chinmay Garde
59ae3ba236 Remove unused DartVM::IsKernelMapping (flutter/engine#8381) 2019-03-29 20:53:40 -07:00
Chinmay Garde
18af29469e Allow native entrypoint registration for runtime unittests. (flutter/engine#8379) 2019-03-29 17:53:49 -07:00
Chinmay Garde
39fb01b459 Allow running runtime_unittests in AOT mode. (flutter/engine#8375)
Previously, only the most basic tests were run in AOT mode.
2019-03-29 17:15:38 -07:00
Chinmay Garde
9a54dbc65a Move libdart selection into its own target in //flutter/runtime. (flutter/engine#8373)
Cleanup repeated rules.
2019-03-29 14:29:09 -07:00
Chinmay Garde
1a7c5d7bf3 GN Format all files in the engine. (flutter/engine#8369) 2019-03-29 12:44:57 -07:00
Ben Konyi
af75dc6f01 Fixed service isolate not being initialized correctly due to bad name (flutter/engine#8251)
* 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
2019-03-26 14:36:51 -07:00
Gary Qian
1d587c84cb Re-land "Buffer lifecycle in WindowData" (flutter/engine#8032) 2019-03-06 15:38:34 -08:00
Gary Qian
d689b45ab1 Revert "Buffer lifecycle in WindowData (#7999)" (flutter/engine#8010)
This reverts commit 03bec0d1b68ff57b6bf31d7cb8586837443b05fd.
2019-03-01 15:14:20 -08:00
Gary Qian
03bec0d1b6 Buffer lifecycle in WindowData (flutter/engine#7999) 2019-03-01 10:43:09 -08:00
Ben Konyi
0669ddc849 Link dart:* sources into engine for debugger source support (flutter/engine#7908)
Link dart:* sources into engine for debugger source support

Currently, dart:* libraries appear to have no source in
debuggers like Observatory. With this change, these sources will be
available in debug mode applications. Sources for dart:* libraries are
lazily loaded on a script-by-script basis.

Refer to https://dart-review.googlesource.com/c/sdk/+/93375 for the Dart
SDK change.
2019-02-26 13:28:04 -08:00
Dan Field
53102bd3a2 Test profile and release build and unit tests (flutter/engine#7880)
* Test profile build and unit tests

* update googletest, skip JIT tests on non-debug builds
2019-02-20 20:13:02 -08:00
Dan Field
4206f443f7 Revert "Shut down and restart the Dart VM as needed. (#7832)" (flutter/engine#7877)
This reverts commit 75a66f31dc2a02ccb54f10fb4477233086f4906b.
2019-02-19 16:14:18 -08:00
Chinmay Garde
75a66f31dc Shut down and restart the Dart VM as needed. (flutter/engine#7832)
The shell was already designed to cleanly shut down the VM but it couldnt
earlier as |Dart_Initialize| could never be called after a |Dart_Cleanup|. This
meant that shutting down an engine instance could not shut down the VM to save
memory because newly created engines in the process after that point couldn't
restart the VM. There can only be one VM running in a process at a time.

This patch separate the previous DartVM object into one that references a
running instance of the DartVM and a set of immutable dependencies that
components can reference even as the VM is shutting down.

Unit tests have been added to assert that non-overlapping engine launches use
difference VM instances.
2019-02-15 14:16:17 -08:00
Chinmay Garde
e361547b05 Allow the engine to redirect traces to systrace via settings. (flutter/engine#7617) 2019-01-28 17:39:31 -08:00
Chinmay Garde
3a5bd32ed8 Re-land "Wrap the user entrypoint function in a zone with native exception callback. (#7512)" (flutter/engine#7551)
This reverts commit 32ae75d8847612c26c67315104b76f3c9212e7b2 and applies relevant fixes.
2019-01-24 13:42:51 -08:00
Chinmay Garde
1f528fef75 Allow embedders to specify AOT snapshot buffers. (flutter/engine#7538) 2019-01-18 16:32:35 -08:00
Vyacheslav Egorov
32ae75d884 Revert "Wrap the user entrypoint function in a zone with native exception callback. (#7512)" (flutter/engine#7522)
This reverts commit 524a12d0468e1a536d74f866796e1cdd7ccaa35e.

Reason for revert: broken in AOT mode.

@pragma('vm:entry-point') placed on a function only instructs
the compiler to retain the function itself, but does not tell
compiler to generate and retain tear-off for this function.

In this PR _runMainZoned was marked as an entry-point but C++
code was trying to tear it off and use a closure, instead of
invoking it directly, which is not supported.
2019-01-17 11:49:20 +01:00
Chinmay Garde
524a12d046 Wrap the user entrypoint function in a zone with native exception callback. (flutter/engine#7512) 2019-01-16 16:08:51 -08:00
Chinmay Garde
a28c25617c Add unittest that runs Dart code synchronously. (flutter/engine#7495) 2019-01-15 16:22:57 -08:00
Chinmay Garde
dad7c0ddf2 Add runttime unittest that loads and runs an isolate from the kernel. (flutter/engine#7493) 2019-01-15 15:28:30 -08:00
Alexander Markov
b96edf5b9d Cleanup Dart sticky errors API and roll tonic to 4634b29a24ccfc0fcfafcc8196ef30131185ad88 (flutter/engine#7492)
This PR prepares Flutter engine for the cleanup of Dart API Dart_GetStickyError/Dart_SetStickyError/Dart_HasStickyError.
2019-01-15 15:26:20 -08:00
Dan Field
a9728ab07a Make IOManager own resource context (flutter/engine#7272)
* Make IOManager own resource context
2019-01-14 13:46:38 -08:00
Dan Field
2eae3feaaf fix up analysis for Dart in Engine (flutter/engine#7404)
* fix up analysis for Dart in Engine, particularly for tests
2019-01-11 13:50:58 -08:00
Jason Simmons
c937fa2a71 Make SetLocales more consistent with other RuntimeController methods (flutter/engine#7447) 2019-01-10 17:30:58 -08:00
Zachary Anderson
6bd9431a0c Pass deadline to embedder idle notification callback (flutter/engine#7444) 2019-01-10 14:08:43 -08:00
Chinmay Garde
074da7fd65 Allow embedders to add per shell idle notification callbacks. (flutter/engine#7427) 2019-01-09 14:33:56 -08:00
Chris Bracken
8a0cc94b1a Compile embedder unit test Dart to kernel (flutter/engine#7231)
As of the migration to Dart 2, it has been necessary to compile Dart to
kernel prior to execution. The embedder currently requires that the
resulting kernel file be named `kernel_blob.bin` and be located at the
root of the assets directory passed to the embedder API.

This patch updates the test_fixtures build rule to perform a kernel
compile using frontend_server, outputting `kernel_blob.bin` to
`fixtures/test_target_name` directory, and updates the embedder
unittests to specify the kernel file rather than the Dart source file.

Since the kernel compiler requires a `main()` function to be defined, it
also updates `simple_main.dart` from runtime_unittests to define
`main()` rather than `simple_main()`.

This also updates all existing sub-targets to be testonly.

This relands commit 4e4fb4608da95d198b0e796478462285ab974a3c, which was
reverted in commit 566db0ecb8f293bb9f7ff1fc39076b08336e0148. Rather than
running as prebuilt_dart_action, we use dart_action to ensure the
frontend snapshot it compatible with the VM on which it's executed.
2018-12-16 12:23:18 -08:00
Chris Bracken
566db0ecb8 Revert "Compile embedder unit test Dart to kernel (#7227)" (flutter/engine#7230)
This reverts commit 4e4fb4608da95d198b0e796478462285ab974a3c.

This broke dynamic release mode builds of
//flutter/runtime:runtime_fixtures_kernel (likely all product-mode
builds).
2018-12-15 14:43:26 -08:00
Chris Bracken
4e4fb4608d Compile embedder unit test Dart to kernel (flutter/engine#7227)
Compile embedder unit test Dart to kernel

As of the migration to Dart 2, it has been necessary to compile Dart to
kernel prior to execution. The embedder currently requires that the
resulting kernel file be named `kernel_blob.bin` and be located at the
root of the assets directory passed to the embedder API.

This patch updates the test_fixtures build rule to perform a kernel
compile using frontend_server, outputting `kernel_blob.bin` to
`fixtures/test_target_name` directory, and updates the embedder
unittests to specify the kernel file rather than the Dart source file.

Since the kernel compiler requires a `main()` function to be defined, it
also updates `simple_main.dart` from runtime_unittests to define
`main()` rather than `simple_main()`.

This also updates all existing sub-targets to be testonly.
2018-12-15 13:59:58 -08:00
Gary Qian
28bc1c1212 Minor Docs to runtime controller WindowData (flutter/engine#6991) 2018-12-12 17:25:56 -08:00
liyuqian
efc116e72c Support querying display refresh rate in engine (flutter/engine#7002)
The current implementation only deals with Android devices and we'll add iOS devices support soon.
2018-12-12 10:28:44 -08:00
Chris Bracken
f604da6409 Rename dart-non-checked-mode: disable-dart-asserts (flutter/engine#6977)
In Dart 2, runtime checked mode has been eliminated. Many of these type
checks have been moved to static compile-time checks, the remainder are
enforced at runtime, and are no longer optional.
2018-12-10 12:36:09 -08:00
Alexander Aprelev
839fd8348a Guard the service protocol's global handlers list with a reader/writer lock. (flutter/engine#6900)
* Revert "Revert "Guard the service protocol's global handlers list with a reader/writer lock (#6888) #6895" (#6899)"

This reverts commit bcf5e1eae123478564468b77251a2674bd0e773e and applies fix for tests on Windows.

* Reland guard the service protocol's global handlers list with a reader/writer lock.

* Remove blank line
2018-11-18 14:36:15 -08:00
Todd Volkert
bcf5e1eae1 Revert "Guard the service protocol's global handlers list with a reader/writer lock (#6888) #6895" (flutter/engine#6899) 2018-11-18 09:28:26 -08:00
Jason Simmons
f5496c0977 Guard the service protocol's global handlers list with a reader/writer lock (#6888) (flutter/engine#6895)
The service protocol holds the lock while waiting for completion of service
RPC tasks.  These tasks (specifically hot restart/RunInView) may need to
modify a handler's description data.

Task execution and ServiceProtocol::SetHandlerDescription will obtain a shared
lock to make this possible.  AddHandler and RemoveHandler will obtain an
exclusive lock in order to guard against a handler being deleted while a
service task is running.
2018-11-17 22:04:37 -08:00
Jason Simmons
7449dc427e Revert "Guard the service protocol's global handlers list with a reader/writer lock (#6888)" (flutter/engine#6893)
This reverts commit e740d7f1dbdb69dc4fd38e39c887dd3cccae7c3d.

(shared_timed_mutex is unavailable in the iOS build)
2018-11-17 12:27:06 -08:00
Jason Simmons
e740d7f1db Guard the service protocol's global handlers list with a reader/writer lock (flutter/engine#6888)
The service protocol holds the lock while waiting for completion of service
RPC tasks.  These tasks (specifically hot restart/RunInView) may need to
modify a handler's description data.

Task execution and ServiceProtocol::SetHandlerDescription will obtain a shared
lock to make this possible.  AddHandler and RemoveHandler will obtain an
exclusive lock in order to guard against a handler being deleted while a
service task is running.
2018-11-17 10:53:26 -08:00
Jason Simmons
725295dc47 Keep a copy of each engine's description that can be accessed outside the engine's UI thread (flutter/engine#6885)
The service protocol's ListViews method needs to return description data for
each engine in the process.  Previously ListViews would queue a task to each
UI thread to gather this data.  However, the UI thread might be blocked from
executing tasks (e.g. if the Dart isolate is paused), resulting in a deadlock.

This change provides a copy of the engine's description data to the
ServiceProtocol's global list of engines, allowing ListViews to run without
accessing any UI threads.

Fixes https://github.com/flutter/flutter/issues/24400
2018-11-16 14:47:40 -08:00
Alexander Aprelev
4d4a493a97 Set up secondary isolates with all kernel buffers rather than just one buffer. (flutter/engine#6832)
* Set up secondary isolates with all kernel buffers rather than just one buffer.
* Capture copy of the list
* Make sure child_isolate_preparer_ is initialized only once
2018-11-14 09:50:42 -08:00
Dan Field
681e4c6427 Flush UserSettings to window (flutter/engine#6850) 2018-11-13 23:41:56 -08:00
Michael Goderbauer
082336e7c2 Fix code smells reported by chrome's clang plugin (flutter/engine#6833) 2018-11-12 19:59:29 -08:00
Michael Goderbauer
0def82ddb0 Unify copyright lines (flutter/engine#6757) 2018-11-07 12:24:35 -08:00
Chinmay Garde
ddd0b8887a Handle Windows headers defining ERROR to 0 in log levels. (flutter/engine#6677) 2018-10-26 16:47:14 -07:00
Chinmay Garde
e52ba8b257 Ensure that Scene::toImage renders texture backed images. (flutter/engine#6636)
TL;DR: Offscreen surface is created on the render thread and device to host
transfer performed there before task completion on the UI thread.

While attempting to snapshot layer trees, the engine was attempting to use the
IO thread context. The reasoning was that this would be safe to do because any
textures uploaded to the GPU as a result of async texture upload would have
originated from this context and hence the handles would be valid in either
context. As it turns out, while the handles are valid, Skia does not support
this use-case because cross-context images transfer ownership of the image from
one context to another. So, when we made the hop from the UI thread to the IO
thread (for snapshotting), if either the UI or GPU threads released the last
reference to the texture backed image, the image would be invalid. This led to
such images being absent from the layer tree snapshot.

Simply referencing the images as they are being used on the IO thread is not
sufficient because accessing images on one context after their ownership has
already been transferred to another is not safe behavior (from Skia's
perspective, the handles are still valid in the sharegroup).

To work around these issues, it was decided that an offscreen render target
would be created on the render thread. The color attachment of this render
target could then be transferred as a cross context image to the IO thread for
the device to host tranfer.

Again, this is currently not quite possible because the only way to create
cross context images is from encoded data. Till Skia exposes the functionality
to create cross-context images from textures in one context, we do a device to
host transfer on the GPU thread. The side effect of this is that this is now
part of the frame workload (image compression, which dominate the wall time,
is still done of the IO thread).

A minor side effect of this patch is that the GPU latch needs to be waited on
before the UI thread tasks can be completed before shell initialization.
2018-10-22 17:40:24 -07:00
Aart Bik
4b7e5ce784 Roll Dart to 45f9462398ae7d2e80acd79d3f9c32c7ca6f6f97 (flutter/engine#6616)
changes included:

45f9462398 Revert "[build] Debug means debug!"
9f7ad8d082 Fix recovery when parsing complex type variables
dcb665fa6d [hhh] Apply patch to flutter engine to fix hhh buildbot build step.
781ea1be70 [vm/interpreter] Fix interpreter frame recognition in stack walking, v2
c70666a3a3 Additional tests in the analyzer_plugin optype_test.dart file, follow up from https://dart-review.googlesource.com/c/sdk/+/80362.
7a3762d4a9 Fixes for convert tests
3f9c3e6ebc Update unterminated string error message length
a502061c11 Add test and implementation for package: uris
70d5cf8578 [VM] Rehash constant tables after cid-renumbering during app-jit training
cfbb70aa1c [gardening] Mark various RawDatagramSocket/ tests as flaky
2b23fa0607 Improve the way we call inferExpression
e18aeac38c Remove NamedExpressionJudgment
b429939377 Remove CheckLibraryIsLoadedJudgment
f13537064e Remove ThrowJudgment
1bc9bbcdb6 Remove StaticInvocationJudgment
1610356382 Remove StaticGetJudgment
5aa705776b Remove desugaredError
a474f49ada Revert "[vm/interpreter] Fix interpreter frame recognition in stack walking"
e9b8e24891 [vm] Adds mutator thread asserts around bytecode reading
f0a116d339 [dart2js] Some tear-off cleanup
a0cc3e2684 [vm/interpreter] Fix interpreter frame recognition in stack walking
ef870b25e6 Dont complain about TypeImpl in switch cases
531d8235eb Initial documentation for the public API
bff11184fe dart2js co19_2 status bingo
fdca304de5 Safari status bingo
ac2036d76b Firefox status bingo
c0c3fc4c5f [dartdevc] fix #34596, hot restart can now clear field & cache state
54690c0d38 Update dartdoc to 0.24.1.
5f4511a30e Stop adding tokens to unit API signature at EOF.
2a63500865 [infra] Add flutter-analyze builder to the test matrix (#34739)
f51ccbc010 bump to linter 0.1.70
91b5862c1e [vm] Add core-jit-all snapshot kind to gen_snapshot
0f32be21bf Document single root flag
a4a3f95748 Avoid using future closure in http connect.
8f4e379665 update kernel worker to enable sync-async
bb93696c96 Simplify canParse on LSP types to only check for required fields
36551624e1 Implement fromJson() constructors for LSP types
4585b8eb44 [gardening] Mark RawDatagramSocket/any_A01_t02 co19 test flaky
d04a36b4ab [infra] Fix third_party/pkg_tested step having slash in name.
1061c83779 Optionally report scanner errors via errors list rather than in the token stream
fed5bc62b6 [co19] DEPS and .status files updated
b27e4febaf Eliminate an unnecessary boolean variable
a29c04953e Automatically run analysis server from source if launched with the SDK source tree
d07f3edd5e [vm] Disable symbolization of Dart frames in Dart_DumpNativeStackTrace.
3039fb0031 Sort LSP files
0aa2dc6ead Batch 'inherit'
2bb4284c63 Add a few more tests and comments for GnWorkspace
5dfe3c8f94 bump to linter 0.1.69
1ca91cb6db Ensure unterminated string error is reported on visible characters
ce1eac3800 Adapt analyzer/FE comparison logic to handle mixins with >2 superclass constraints.
cc750ecec1 Revert "Don't clone constant ASTs when running with Analysis Driver."
c7bc970ba7 [vm/simdbc] Clean up slot for result in InlineCacheMiss
d5e5842971 [vm/interpreter] Fix stack frame recording in native calls
5d4ce27bea [vm] Fix race between Dart::Cleanup and VerifyBootstrapClasses.
4506e1d179 add linter changes (#34817)
a53172cd47 [vm] Print isolate sticky_error during shutdown to let user know of unhandled exceptions.
22b4ec0e78 [vm/interpreter] Clean up slot for result in InlineCacheMiss
b10a36b8df [vm] Set WasCompiled at safepoint
27b3f0ba6b [vm/frontend] Allow 'package:'-scheme uris as sources for frontend_server compilation.
a3db8a904e Support running analyzer_cli in worker mode in an isolate.
3fc1f36e28 [vm] Update status files for issue 34760.
f337b254ce Support running dartdevc in worker mode in an isolate.
18f56e59cf [infra] Add configuration name to results.json
843b4c9c23 Refactoring to prepare for serialization
531bce152d Tune invariants for inferredTypesMap
822fd6a1ed Remove StringLiteralJudgment
cf84ce88d6 Remove StringConcatenationJudgment
f0ebf05092 Remove RethrowJudgment
83c6963ce2 Remove PropertyGetJudgment
2a9ba09b93 Allow abstract operator == methods in switch case constants
5d1832b20a Disallow factory constructors in mixin declarations.
055ce6f101 fix syntax error on android
130f57f7f3 missing include for android
ee975c89e2 [dart2js] Force --fast-startup holders to be fast objects
8fb17e0b6a Missing import for some linux builds
5c1a40837e Update analyzer fix sorting by priority
6e23c3b3cb Support SO_REUSEPORT and IP_MULTICAST_TTL for datagram sockets.
9a69a5c1ee Remove more unnecessary awaits (from analyzer)
5b574415f8 Fix GnWorkspace root
7f9049991b [ VM / Dart API ] Updated Dart_Invoke Dart_SetField tests to check error messages
2d397d1da6 Fix for dartbug.com/34821, variable_name_contributor.dart to complete "var SomeType |", to "someType" and "_someType", for declarations that can be denoted private.
0eb5dbffac [vm] Revert service isolate setup in main.cc
445a43b58d [ VM / Testing ] Add build flags to enable code coverage
6066ac83e3 Improve dartfix console output
da67d58110 Remove some unnecessary await expressions
f99d89b513 Update dartdoc to 0.24.0
93b1955ed0 Dartfix ui tweaks.
009eabf892 [Test tool] Add VM options to compiler arguments in VMKernelCompilerConfiguration
984c407bb3 [build] Debug means debug!
3a69805f6b Switch enums that don't have type aliases to stronger-typed values
56306b90ee Fix html changes markdown syntax:
f921f203f4 [vm/bytecode] Fix constant evaluation of factory constructors in bytecode
20f4349951 Fix for reporting INVALID_USE_OF_PROTECTED_MEMBER in documentation comments.
fade5f33f0 Regenerate code based on the server spec after updates to the generator
1996e78049 Update dart2js_info in DEPS to 0.5.13
df621a1fff Fix cast exception in TypeNameResolver (issue-34809)
f4ffb426c4 [Gardening] Mark flaky co19 tests and filed issue
4d5c5ecdbf Update synced version of pkg:test
8300248edb [VM] Ensure inferred types are set on parameters
5d78509e25 Make FieldElementImpl.isCovariant a public member on FieldElement
9ba152b69e Mark deprecated fields as such
de6f24367a Fix build from two incompatible changes landing
cfa92dc090 Remove NullJudgment
9fadaec5f8 Remove NotJudgment
e65ed1d143 Remove LogicalJudgment
0bcd98eb76 Remove FunctionExpressionJudgment
4df63225a8 Remove IsJudgment and IsNotJudgment
035aad457e Remove ConstructorInvocationJudgment
840afb4f9d Remove ConditionalJudgment
7fa8bc3fee Remove BoolJudgment
2495e2e951 [vm] Silence output from kernel::Program::ReadFromFile.
c0ec6299ad Extract enums from the spec
ea72ba3b1d Move sorting from reading to codegen
ab253a8a4e Review comments for "[vm/aot] Fix regressions from dynamic invocation forwarders in AOT."
801f28666a Remove ThisJudgment
af00f7c05d [vm/aot] Fix regressions from dynamic invocation forwarders in AOT.
349adc5b1f Reland "[VM] Use c++/kernel2kernel constant evaluator for const StaticInvocation in the kernel IR"
ed73cc379d Increase file descriptor limit when running test.py on MacOS
5ce132a912 [infra] Copy core dumps to ISOLATED_OUTDIR on shards (#34746)
a2aa6c8414 Consolidate DDC dependencies on front_end
9137fe26ac Remove deprecated_problems.dart
ed7be67cab Remove CompilerOptions.onProblem
18cb217840 Remove CompilerOptions.onError and CompilationMessage
2084c5b2a9 Add toJson() methods
d4fac1684c Remove CompilerOptions.reportMessages
c6b43d9cb6 Use ansi color in the dartfix cli output.
c8cf355c54 Bump package dart_internal's SDK constraint upper-bound to <2.2.0
2ed614819d [vm] Fix MakeUnusedSpaceTraversable in the 'Instance' filler case
c362e4862f [vm] Invalidate KernelProgramInfo caches on a reload
ac6d4f7e65 [vm] Disable conversion of large typed data to external when sending through a message port
dea6c97a08 [vm] A couple more benchmark for kernel loading
f3c51a4be0 Organize imports.
ae22eaa48b Remove unused import
abcb84ac78 Re-order the dartdoc param.
311a184cb8 Remove type merging and the only instance that used it
dd59921896 Support "{@link xxx}" in LSP spec
1f344e4ee0 Add support for "class" instead of interface
0a6d960d66 Update bazel_worker to onDiagnostic
e502edf28b Add DiagnosticMessage support API
88bde88112 Add constructors and mark all fields final
bf270577cc [fasta] Report errors on generic function types in type arguments
06f9a9e354 [VM] Introduce function and osr entrypoints to the VM's IR
22b11717ac [fasta] Fix bounds checking: non-generic types are always well-bounded
0a986f3f80 Remove a few shadow nodes.
490421d166 Fixed Service Workers and any Promise/Future API with a Dictionary parameter.
77c5677abe Don't clone constant ASTs when running with Analysis Driver.
1cabefdf5b Fix analyzer/FE comparison tool handling of mixins.
45092fd0aa Improve output of analyzer/FE comparison tool.
a4f3df6534 [vm] Fix symlinks in test cases.
180b3dd301 Remove extra spaces in copyright notices in analyzer_plugin
d127ab9a27 Get rid of places that allocate lots of _Closure instances.
5cff16bc75 Use single InheritanceManager2 instance for Linker.
d8e52e5e82 Remove last references to InheritanceManager in analyzer/server.
9f00eec55b [ VM / Mirrors ] Added type checking to enforce strong mode semantics when using dart:mirrors
2ec7c9cdb1 Skip the tests that require super mixin support
469e1e2e64 Remove unnecessary library directives
1d0d9f1d3f [vm] Fix heap corruption while reading "kernel list" file
80cddf0d53 Rename writeOverrideOfInheritedMember() to writeOverride() in DartEditBuilder.
2c352111a4 Use just TypeSystem in InheritanceManager2.
977f5c2c21 Switch KytheDartVisitor to InheritanceManager2.
bc2ea566f1 Auto generate more analyzer error codes
a2a3c36b77 Switch CREATE_MISSING_OVERRIDES to writeOverrideOfInheritedMember() and using FunctionType signatures.
aabc26bafe Revert "[VM] Use c++/kernel2kernel constant evaluator for const StaticInvocation in the kernel IR"
dac3e0d9df [dart2js] Don't create instance call-through stubs for statics
e34472db10 Remove unused import
22190e4d79 [vm] In IsolateMirror.loadUri, note that a kernel file at a URI may not contain any library with that URI.
dc9d6785de Report compile-time errors on invalid switch cases
af8d026337 Address dartfix comments and improve output
841a75698d [vm] Fix typo in previous commit
5b6220d44d [vm/compiler] Start of loop framework
0b1b09116a Simplify handling of non-shadow nodes in type inference
aa9f0f911f Update stream.dart
0e001641a9 Re-write invalid ASTs and update fix to reflect new AST structure for invalid type arguments on named constructors
48544cd77d Use InheritanceManager2 in InstanceMemberInferrer.
29ff9e4a6a [VM] Use c++/kernel2kernel constant evaluator for const StaticInvocation in the kernel IR
3199875231 Remove TypeSystemImpl.
0b78ac7f38 [VM] Add regression test for buildbot flakiness due to smi-widening optimization in VM
af7cead848 Clone default values of mixin application constructors
47c55605b8 Reland: [vm] Add a library and class cache to KernelProgramInfo
87a10d9811 Provide context for NotAType
69cf0ec97c Signal an error if a class extends a mixin
99815c8d6d Do not print --output_directory in reproduction commands
9b41728b2d Remove FileParseExceptionHandler from FileSystemState.
eee8787a8d Generate noSuchMethod forwarders for private members inherited from a class in a foreign library.
5b1fcb09df Remove d2fe ikg minimal benchmark from commit queue.
54ef78b7c5 Remove non-strong vm dill files from SDK
6177615d71 [kernel] Fix subtype relationship for generic function types
1f4dfce179 [gardening] Mark co19 LibTest/io/HttpServer/close_A05_t01 flaky
5cbb640f7c Error for type arguments after named constructor with implicit new
2fa1143600 Check classes at mixin applications
ade528c4e6 Fixed the type alias omission in the def. of simple bounds
ddf67772bb Remove warning about inferring packages URI from dart2js
18110717fe Move infer methods to visitor
bd223d0ec4 Add consistent_type_error_test
d95f63d752 Update dartfix to use new invalid type argument fix
0cdd5b9ff3 Raise warning to error: duplicate key in a const map is now an error in Dart.
f6ca2c1d8f Remove the Dart 1 tests.
9f98f5f44c Remove instantiateToBounds parameter from FunctionTypeImpl.relate.
82f31cd250 Add types to method args to avoid analysis warnings.
63c9a241e3 Upgrade WRONG_NUMBER_OF_TYPE_ARGUMENTS_CONSTRUCTOR from a warning to an error
5658d406b7 Add changelog entry for integer literals in double contexts.
6b67cd784b [vm] Make UBSAN happy for the code in Range::BitwiseOp
e4c3fa0a9c Improve recovery when parsing named constructor invocation with invalid type arguments
3e7ce992cf [vm/tfa] Implementation of type arguments tracking in TFA.
001343ce06 [vm, gc] Disable reads and writes to from-space after a scavenge.
97ffcd9a3d [vm] Disable incorrect widening of smis to int32
1a4933715e [gardening] Mark co19 LibTest/io/RawDatagramSocket/any_A03_t01 flaky
e4842a293b Remove extra spaces in headers
58c90dc488 [vm] Fix bytecode in core-jit for simarm64
fab5d0a50d In InheritanceManager remove unused, and deprecate used (in lints) methods.
2989116219 Add some special cases for types we can't/don't need to parse
49b121f20d Remove TypeParameterSerializationContext.location.
244e6c7ffc Infer package URIs
cc884b3449 Remove optional argument from FunctionTypeImpl.forTypedef.
931202df27 Improve wrapping of lists and *notes* in LSP spec comments
3e897ac3b1 [vm] Extend previous status file updates.
23e7f9d1eb Handle references to other classes in comments
472c898c87 [dartdevc] fix for-in loop variable shadowing a var used in initialzer
3fe3106489 [gardening] Fix leaks in run_vm_tests binary detected by ASAN.
a6c8b62056 Remove dummy .packages files
2f7e7a4b52 [vm] Update status files for vm-kernel-mac-product-x64 for issue 34760.
e12538fff0 Move package bundle functionality into SummaryBaseTestStrategy.
96737787e2 Add LSP spec code-gen output
5e7ea5b672 [infra] Add .vpython spec to fix gsutil on the bots (#31065)
3cf0008b13 [vm/bytecode] Remove dependencies on ASTs when running with bytecode
fc0decc262 Improvements to the Dart code generated from the LSP spec.
efcca1132b Switch ErrorVerifier and OverrideVerifier to InheritanceManager2.
c347850976 [gardening] Mark co19 LibTest/io/RawDatagramSocket/timeout_A06_t01 as flaky
5e1bf1d135 Create LibraryScope once per library analyzer.
7c7df7bfa4 Add initial version of feature specification on interface conflicts.
f2bffc6872 Revert "[infra] Upgrade gsutil to a new version (#31065)"
1809bae318 Revert "Ignore JSON exceptions when reading (empty) test results file"
787194e738 [infra] Upgrade gsutil to a new version (#31065)
265d0d9ec1 Update status files after 8648d782
23c36ed029 Elaborate that -0 means -0.0 in double context or when compiled to JS.
8648d782ae Reland "[fasta] Report errors for bounds violations"
5c9a8d8cb5 [VM] Add $target_gen_dir/gen_kernel_bytecode.dill.d to outputs of GN action, to ensure directory is created before action is run
49d7fb39ac Temporarily ignore --strong option in flutter builds
f0a30bc8d1 Revert "[vm] Add a library and class cache to KernelProgramInfo"
1c2ed4ac11 [infra] Include gsutil in vm-kernel fileset to enable coredumps on shards (#31065)
5b32ab3be6 Remove the word "strongMode" from some package:kernel libraries.
dfb8e97b86 Report errors on members hiding prefixes
235a918233 [vm] Remove Dart_LoadScript, Dart_LoadLibrary, Dart_LoadSource, etc.
90e362f63c Deprecate the last non-deprecated EMPTY_LIST
0ab8e42fea Use a special context for serializing generic function types.
c47879d354 Remove one-phase summary logic.
b9dd229e35 Convert element.dart to triple-slash comment style.
e70a7aab8a [VM] Dead code removal - Remove dead code around creation of service isolate in gen_snapshot.cc - Create service isolate from the core snapshot - exclude sources from platform dill file (saves about 2.5MB in size)
662ff7f112 [vm] Remove TokenStream, TokenValue, CompilerStats.
a933f42b9e [VM] Use Symbols::Empty() when there is no source for a script instead of creating new empty string objects. Change-Id: I8ec6702557b07c4c4ede2aece5a3f25b4cde1a5b Reviewed-on: https://dart-review.googlesource.com/c/79060 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Siva Annamalai <asiva@google.com>
72b31316e4 [observatory] Fail gracefully when a Script lacks source code.
2018-10-19 14:19:30 -07:00
Michael Klimushyn
29355af835 Programmatically set the root isolate's debug name (flutter/engine#6596)
An integration test will be added to the framework's repo as a followup.

Addresses flutter/flutter#22009
2018-10-18 14:47:24 -07:00
Chinmay Garde
fa0ee74d36 Ensure that the isolate shutdown callback occurs in an isolate scope. (flutter/engine#6572) 2018-10-17 13:37:18 -07:00
Gary Qian
b4a3ad2e28 Pass full locale list with script and variant codes to framework (flutter/engine#6557)
* Locale Passing

* Pass full locale list and script and variant codes to framework

* Working Android locale list passing and fallback
2018-10-17 10:53:01 -07:00
liyuqian
5ae3658719 Revert "Roll Dart to ac6d4f7e653deba11d4836768376537893a9e9d6. (#6549)" (flutter/engine#6568)
This reverts commit 1743aff91e7717c106bf3a0dc7150fbb9d5299ba.

We revert because it breaks the engine to framework roll. Reverting as
soon as possible allows other engine commits to roll into framework
first so we'll have smaller engine rolls which is good for triaging
regressions.

TBR: rmacnak-google
2018-10-17 10:08:23 -07:00
Dan Field
b4b702053b Advertise iOS Observatory port over mDNS/Bonjour (flutter/engine#6533)
* Publish port of observatory over mDNS
2018-10-15 17:21:01 -07:00