Commit graph

38637 commits

Author SHA1 Message Date
William Hesse ca6983b9af Make dartium tests continue if layout tests result uploading fails
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/2026093002 .
2016-06-01 00:58:04 +02:00
Sigmund Cherem d1d46593d5 Make test.dart override only those dependencies declared in the pubspec.yaml
file (attempt #2).

Differences from before:
 - pull in transitive dependencies that were missing
 - pass on the package-root in standalone/io/test_runner_test

BUG= http://dartbug.com/26563
R=whesse@google.com

Review URL: https://codereview.chromium.org/2019163002 .
2016-05-31 15:48:54 -07:00
Ryan Macnak 6e2c4636cd Bump the C stack pointer when building Dart frames to maintain the ARM64 ABI requirements without guessing the stack limit.
Fixes running with the profiler on ARM64.

Cf. 5d02929fa0.

BUG=http://dartbug.com/26472
R=vegorov@google.com, zra@google.com

Review URL: https://codereview.chromium.org/2014413003 .
2016-05-31 15:36:44 -07:00
Paul Berry 858407ebf0 Fix analyzer bot flakiness (correctly this time).
In f54e667773 I attempted to work around
analyzer flakiness in
co19/Language/Libraries_and_Scripts/Scripts/syntax_t11, but I
accidentally applied the change to
Language/Mixins/Mixin_Application/syntax_t11 instead.

This CL applies the workaround to the correct instance of syntax_t11.

TBR=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2022343002 .
2016-05-31 15:29:53 -07:00
Paul Berry 73c7ca9a25 Fix AST-based type inference with explicit type parameters for method calls.
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2028713003 .
2016-05-31 15:17:15 -07:00
Konstantin Shcheglov 2390d5d0c0 Resynthesize local functions lazily.
Now we can remove 'buildExecutableCommonParts'.

R=paulberry@google.com, brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2026013002 .
2016-05-31 12:23:57 -07:00
Harry Terkelsen 7b2edf83df mark more tests as missing compile-time errors
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/2027593004 .
2016-05-31 12:22:30 -07:00
Konstantin Shcheglov 1eccc0f244 Resynthesize type parameters of executables lazily.
This allows us to finish moving type parameters resynthesis to
elements and remove the workaround code.

R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org/2023043002 .
2016-05-31 12:07:09 -07:00
Zachary Anderson a89ee91480 Fixes observatory crash for DBC
Review URL: https://codereview.chromium.org/2024223002 .
2016-05-31 11:18:44 -07:00
Harry Terkelsen e9d41ebc23 declare that dart2js fails some 'yield*' tests
These tests assert that 'yield*' expressions in non-generator functions
should be a compile-time error. But the spec does not have yield as a
reserved word, so a statement like 'yield* e;' can be interpreted as an
expression statement multiplying the variable 'yield' by e. This is how
dart2js and the VM interpret yield outside of generator functions.

See the discussion in issue #25495

R=sigmund@google.com

Review URL: https://codereview.chromium.org/2024203002 .
2016-05-31 11:10:23 -07:00
Konstantin Shcheglov 79d0750417 Rollback the previous List<TypeParameterType> change and refix.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2022993002 .
2016-05-31 10:59:11 -07:00
Konstantin Shcheglov 3d70bc399e Rollback checking bounds of type parameters of function type aliases.
The line:

List<DartType> parameterTypes = element.type.typeArguments;

returns an empty list for typedefs.

For now I want to unblock Keerti.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2027723002 .
2016-05-31 10:51:23 -07:00
Paul Berry f54e667773 Co19 fixes for analyzer and runtime.
The runtime fix is from whesse@google.com.

R=whesse@google.com

Review URL: https://codereview.chromium.org/2023763008 .
2016-05-31 10:45:20 -07:00
Konstantin Shcheglov 8d639129fb Resynthesize labels lazily.
R=paulberry@google.com, brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2028693002 .
2016-05-31 10:37:51 -07:00
Regis Crelier 070bb612b3 Reference newly filed issue instead of unrelated closed issue.
R=hausner@google.com

Review URL: https://codereview.chromium.org/2028703002 .
2016-05-31 10:07:57 -07:00
Konstantin Shcheglov 1c69a71bf1 Create List<DartType> instead of List<TypeParameterType>.
FunctionTypeImpl needs List<DartType>, so we cannot use more specific
List<TypeParameterType> as is. In order to avoid conversion (and
creating additional objects), we have to use List<DartType>.

R=paulberry@google.com, brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2028443003 .
2016-05-31 09:14:21 -07:00
Konstantin Shcheglov 33d8f770ca Resynthesize typedefs lazily.
R=paulberry@google.com, brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2026743002 .
2016-05-31 09:08:11 -07:00
Erik Ernst 5b72755837 Revert "Introduces "--initializing-formal-access"."
This reverts commit b80a73775c
because introduced new failures in co19 tests.

Review URL: https://codereview.chromium.org/2021133003 .
2016-05-31 18:03:14 +02:00
Erik Ernst b80a73775c Introduces "--initializing-formal-access".
This CL adjusts the treatment of initializing formals, such that they
can be used in initializers and in constructor bodies. E.g., `x` can be
used as in `C(this.x) : y = x { var z = x + 2; }`.

It hides the new feature under the option '--initializing-formal-access'
which is used in the test 'initializing_formal_access_test.dart'.

It also adds an `example` test to `MessageKind.DUPLICATE_DEFINITION` to
verify that name clashes among initializing formals and other
parameters are detected (which was previously not the case).

Finally, it fixes a typo in a comment, `InitializingFormalParameter` ->
`InitializingFormalElement`.

R=johnniwinther@google.com

Review URL: https://codereview.chromium.org/2025853002 .
2016-05-31 15:39:02 +02:00
William Hesse 0d77bd044c Update status for failing asan and precompilation vm co19 tests
TBR=sgjesse@google.com
BUG=

Review URL: https://codereview.chromium.org/2024803002 .
2016-05-31 08:40:45 +02:00
William Hesse 10dff4ea45 Update status for co19 tests that now pass on dart2js
TBR=sgjesse@google.com
R=sgjesse@google.com
BUG=

Review URL: https://codereview.chromium.org/2024743002 .
2016-05-31 03:36:15 +02:00
William Hesse 65949097f4 Update VM status for co19 test roll
BUG=https://github.com/dart-lang/sdk/issues/26573
TBR=sgjesse@google.com

Review URL: https://codereview.chromium.org/2021153002 .
2016-05-31 01:57:33 +02:00
William Hesse 41ece1a95a Reland the roll of co19 tests
This reverts commit 020be8eca6,
updating the version of the co19 test suites to their version
3f0a4bc9a080a792cdf5f093147a900f99ea301f from May 17, 2016.

TBR=sgjesse@google.com
BUG=https://github.com/dart-lang/sdk/pull/26294

Review URL: https://codereview.chromium.org/2023953002 .
2016-05-30 22:11:30 +02:00
Konstantin Shcheglov c33d8cb169 Tweaks for Iterable.toList() invocations.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2024543002 .
2016-05-30 12:42:37 -07:00
Alexandre Ardhuin 1e356e1881 Update http.dart (#26524)
Fix #26518 (part 2)
2016-05-30 14:18:36 +02:00
Florian Schneider 2a6847de41 Make some pkg tests less timing-dependent.
Testing should not depend on how long it takes to get a response from the
analysis server.

Depending on how long an analysis step takes, these tests will randomly fail
e.g. when run in -mdebug mode, or with other VM flags that change (i.e. slow-down)
timing (--trace-compiler, --optimization-counter-threshold=5"

There are probably more problematic places like this. I just fixed the ones that
I saw failing when running with --optimization-counter-threshold=5.

BUG=#26556
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2016993004 .
2016-05-30 12:14:16 +02:00
Florian Schneider e5597652f8 Fix status for Android ARM.
That test is passing on precompiled ARM/Android.

TBR=rmacnak@google.com,

BUG=

Review URL: https://codereview.chromium.org/2023843002 .
2016-05-30 11:35:29 +02:00
Konstantin Shcheglov 29f44a502b Reorder Future.then checks in StrongTypeSystemImpl.
It is usually slightly faster to check isNotEmpty then to validate
isFutureThen condition.

R=brianwilkerson@google.com, jmesserly@google.com
BUG=

Review URL: https://codereview.chromium.org/2022513002 .
2016-05-29 12:17:45 -07:00
Konstantin Shcheglov 9820588f06 Compare error names in strong_mode_test ignoring order.
These tests were flaky.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2021613002 .
2016-05-29 12:13:02 -07:00
pq fba5cbc425 Analyzer 0.27.4-alpha.9 (API fixes) (#26562).
Restores `EmbedderUriResolver` API.

Addresses breakages in `dartdoc` and any other downstream dependencies.

See: https://github.com/dart-lang/sdk/issues/26562.

BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2021453003 .
2016-05-29 06:57:42 -07:00
Konstantin Shcheglov 3e610f2f9e Resynthesize parameters lazily.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2024453002 .
2016-05-27 19:00:47 -07:00
Sigmund Cherem dd7cfb2b62 Revert "Make test.dart override only those dependencies declared in the pubspec.yaml"
This reverts commit bcfdd3345b.

Broke standalone/io/test_runner_test, need to investigate.

BUG=

Review URL: https://codereview.chromium.org/2017093004 .
2016-05-27 17:39:17 -07:00
Sigmund Cherem bcfdd3345b Make test.dart override only those dependencies declared in the pubspec.yaml
file.

BUG= http://dartbug.com/26563
R=whesse@google.com

Review URL: https://codereview.chromium.org/2020843002 .
2016-05-27 17:19:47 -07:00
pq 55a22cf2c3 Analyzer rev to 0.27.4-alpha.8.
Version bump for flutter analyze integration.

BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2016403004 .
2016-05-27 15:35:23 -07:00
Siva Annamalai 79e4792dd6 Fix for issue 26511 (VM hangs waiting for all threads that are not already at
a safepoint to check-in)

BUG=26511
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2018673003 .
2016-05-27 15:30:34 -07:00
pq ae9a984057 Regen task graph.
BUG=
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2023543002 .
2016-05-27 15:02:56 -07:00
Konstantin Shcheglov 5317a2b526 Convert buildParameter() into a factory constructor.
Also resynthesize function typed parameter types lazily.

R=paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org/2023443003 .
2016-05-27 14:57:28 -07:00
pq c77781d27e Precompute IgnoreInfo in Scanner.
The existing support for `ignore` filtering requires the error generator task to depend on parsed sources as input.  As it happens, these parse results get flushed between the parse task and error generation, meaning that they need to be recomputed for EVERY source.  This change moves ignore detection into the scanner which now produces a new result (akin to LineInfo) that can be used at error generation time (and will not be flushed).

Local profiling shows this change making a roughly 10% improvement to overall analysis time for `flutter analyze`.  Server-based analysis should enjoy a similar benefit.

A few thoughts for further refinement:

* can we NOT produce ignore results for sources whose errors we will not generate?
* can we (and should we) improve the regexp-based approach?

BUG=
R=brianwilkerson@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org/2011183004 .
2016-05-27 14:52:20 -07:00
Konstantin Shcheglov 3b27a0368d Rewrite checker_test using reflective tests.
It is just a mechanical transformation.
The only kind of changes to the test case code is intentation.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2024433002 .
2016-05-27 14:49:14 -07:00
Harry Terkelsen df8d991188 mark webgl test failures on windows
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/2011413002 .
2016-05-27 14:07:05 -07:00
Konstantin Shcheglov 7ce8e2744f Resynthesize local variables lazily.
R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org/2017173002 .
2016-05-27 14:05:58 -07:00
Brian Wilkerson 6b04e74aa0 Guard against unresolved code (issue 26545)
R=jwren@google.com

Review URL: https://codereview.chromium.org/2013123002 .
2016-05-27 12:14:04 -07:00
Sam Rawlins c2794f634a Add YieldStatement support to ExitDetector
BUG=https://github.com/dart-lang/sdk/issues/26553
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2010283002 .
2016-05-27 11:44:00 -07:00
Matthias Hausner 7daa2a8915 Fix capturing variables in optimized compilations
Fourth(!) attempt. This CL fixes another instance where parsing a nested function modifies the parser state of the function that is being compiled.

When a local function gets compiled the second time, constant
expressions may not be parsed again, since the constant value
is found in the cache. If the expression refers to an outer
variable, it does not get captured correctly.

Fix: instead of parsing a local function repeatedly to capture
outer variables, use the local function’s context scope to mark
outer variables as captured. This fixes the bug, and makes the
compiler more efficient as well.

BUG= 26453
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2010283004 .
2016-05-27 11:27:10 -07:00
Konstantin Shcheglov f0f51ed055 Create ExecutableElementImpl.type lazily.
R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org/2015183003 .
2016-05-27 11:08:04 -07:00
Ivan Posva 0c38e23e1d - Fix product mode SIMDBC build.
BUG=

Review URL: https://codereview.chromium.org/2011363002 .
2016-05-27 10:56:11 -07:00
Harry Terkelsen ca0bedc301 remove now-passing tests from list of failures
Fixes #26557

R=sigmund@google.com

Review URL: https://codereview.chromium.org/2015273002 .
2016-05-27 10:26:45 -07:00
Florian Schneider aa05691c77 status update: process_sync_test still timing out on Windows
TBR=zra@google.com,

BUG=#24596

Review URL: https://codereview.chromium.org/2018033002 .
2016-05-27 18:53:28 +02:00
Paul Berry 4b2742448d Remove skipBrokenAstInference flag (it is no longer needed).
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2013193003 .
2016-05-27 09:04:12 -07:00
Paul Berry 84c5cd016e Fix handling of identifier sequences starting with a function parameter.
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2011323002 .
2016-05-27 08:45:51 -07:00