Commit Graph

13029 Commits

Author SHA1 Message Date
Konstantin Shcheglov bd270935a5 Check bounds of type parameters of function type aliases.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/1967583002 .
2016-05-10 10:49:25 -07:00
Johnni Winther b1f2c2cd3a Register NativeBehavior from WorldImpact.
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1957343002 .
2016-05-10 09:50:11 +02:00
Johnni Winther 24c548f5bd Skip spurious constants in deferred computation.
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1955403002 .
2016-05-10 09:41:19 +02:00
Regis Crelier 508b876ec8 Report wrong async function result type as type error in checked mode (Fixes #26133).
Add regression test.

R=hausner@google.com

Review URL: https://codereview.chromium.org/1847953002 .
2016-05-09 15:06:45 -07:00
Erik Ernst a9d90f4a09 Revert "Adds DartOptions to generic method syntax tests."
This reverts commit ae31db041d,
which seemed to cause failures on dart2js-d8-minified.

BUG=

Review URL: https://codereview.chromium.org/1960193002 .
2016-05-09 18:06:34 +02:00
Erik Ernst ae31db041d Adds DartOptions to generic method syntax tests.
This CL adds a `DartOptions` comment to the '--generic-method-syntax'
related tests specifying that option, and changes the entries for these
tests in status files to expect success for dart2js except when running
in a browser (where the option gets dropped rather than passed on to
the compiler).

BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org/1962633002 .
2016-05-09 17:15:33 +02:00
William Hesse 1d1409d4d4 Update status for dart:io file test on ARM.
BUG=https://github.com/dart-lang/sdk/issues/26109
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1963593002 .
2016-05-09 11:34:23 +02:00
Johnni Winther a5078ea5f2 Serialize ParameterElement.node and ParameterElement.initializer for type inference
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1945263003 .
2016-05-09 10:23:34 +02:00
Alan Knight 7fa1026ebc Move some WebGL suppressions from Chrome to Chrome/notMac
BUG=

Review URL: https://codereview.chromium.org/1955153002 .
2016-05-06 14:58:35 -07:00
Alan Knight 00eee4df57 Suppressions for Chrome bot
BUG=

Review URL: https://codereview.chromium.org/1955123004 .
2016-05-06 14:33:50 -07:00
Brian Wilkerson 8c244f03ad Report when members indirectly inherited through a mixin are not implemented (issue 26411)
R=scheglov@google.com

Review URL: https://codereview.chromium.org/1951363003 .
2016-05-06 11:29:44 -07:00
Ivan Posva 71f6e0fe02 - Harden code_collection_test against GCs happening at unexpected
times.

BUG=
R=hausner@google.com

Review URL: https://codereview.chromium.org/1948353004 .
2016-05-05 15:10:37 -07:00
Stephen Adams 230824610f Split int_parse_radix_test into strong and non-strong parts.
R=vsm@google.com

Review URL: https://codereview.chromium.org/1950413002 .
2016-05-05 14:36:05 -07:00
Ivan Posva 3b448fe019 - Add more information for failing test.
BUG=
R=hausner@google.com

Review URL: https://codereview.chromium.org/1952063004 .
2016-05-05 11:05:39 -07:00
Sigmund Cherem ed9826894a Do not evaluate on-demand to prevent breaking the deferred loading task
BUG= https://github.com/dart-lang/sdk/issues/26406
R=sra@google.com

Review URL: https://codereview.chromium.org/1950243002 .
2016-05-04 18:23:37 -07:00
Erik Ernst d55adbed81 Add unit test on dart2js static analysis of method type parameters.
The new test is specifically for `dart2js --generic-method-syntax ..`,
executed programmatically using 'memory_compiler.dart'.
It verifies that each method type variable is treated as if it had
been an alias for `dynamic` (so the static analysis allows almost
all usages of these type variables, silently). Note that this behavior
is unlikely to be available with any other tools, and even `dart2js`
will behave differently when generic methods are implemented fully.
Hence, the new test will only be useful as-is during a transitional
period.

R=johnniwinther@google.com

Review URL: https://codereview.chromium.org/1939053002 .
2016-05-04 15:21:17 +02:00
Johnni Winther 3f11e131ae Report UNMATCHED_TOKEN instead of EXTRANEOUS_MODIFIER
Closes #25308

R=ahe@google.com

Review URL: https://codereview.chromium.org/1943723003 .
2016-05-04 13:42:29 +02:00
Sigurd Meldgaard e47e8af364 Fix missing functionality with --allow-native-extensions
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org/1945183002 .
2016-05-04 10:53:15 +02:00
Stephen Adams 8938f98fc1 Fix test to not reach out of current dir
This lets us use the same test for DDC

TBR=vsm@google.com

Review URL: https://codereview.chromium.org/1946973002 .
2016-05-03 21:38:24 -07:00
Florian Schneider 174121435a Fix handling of negative exit codes in test.dart on Android.
BUG=dartbug.com/26375
R=kustermann@google.com

Review URL: https://codereview.chromium.org/1940213003 .
2016-05-03 16:47:22 +02:00
Florian Schneider bef7b117d6 Fix a test expectation that current year is >= 2011.
This causes test failures on devices where the date is set to earlier
than 2011.

BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org/1942263002 .
2016-05-03 14:28:21 +02:00
Johnni Winther a0a214a8e2 Update status for moved test
Review URL: https://codereview.chromium.org/1938403002 .
2016-05-03 11:43:42 +02:00
Johnni Winther f79ff62b2e Don't crash on deserialized type inference.
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1939703002 .
2016-05-03 11:29:24 +02:00
Johnni Winther 52b45145f0 Fix source information positions for deserialized patched elements.
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1935933002 .
2016-05-03 10:52:33 +02:00
Johnni Winther 0e537d8086 Refactor unittests
Move serialization tests into subfolder
Move data files into data subfolders
Move tests with errors/warnings into quarantined subfolder
Skip packages/ folder in test

The latter three improves workflow in IntelliJ; providing error/warning free analysis of unittests (by exclusion of folders).

R=sigmund@google.com

Review URL: https://codereview.chromium.org/1934883002 .
2016-05-03 10:44:13 +02:00
Terry Lucas 11fe5a3f39 update passing test
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1941313002 .
2016-05-02 19:25:31 -07:00
Erik Ernst 33478e2ab5 Rebased and retested version of CL 1915123008.
This CL is a rebased and retested version of CL 1915123008,
'Implements support for ignoring method type arguments in
resolution'. That CL caused failures on dart2js-jsshell but it is
now confirmed that the failures were caused by another CL.

Review URL: https://codereview.chromium.org/1942763002 .
2016-05-02 11:50:06 +02:00
Florian Schneider b349c2cbd6 Temporarily update test status for Android
BUG=
R=kustermann@google.com, rmacnak@google.com

Review URL: https://codereview.chromium.org/1924833003 .
2016-05-02 11:19:43 +02:00
Johnni Winther 832d87341f Handle deserialized compilation of closures
- and fix some errors in serialization and equivalence (test) of ResolvedAst

R=sigmund@google.com

Review URL: https://codereview.chromium.org/1932183003 .
2016-04-30 11:20:20 +02:00
Erik Ernst c2d18fe065 Revert "Implements support for ignoring method type arguments in resolution."
This reverts commit e44e667ca7, because that
commit introduced many timeouts on dart2js-jsshell, ia32.

Review URL: https://codereview.chromium.org/1933403002 .
2016-04-29 21:36:54 +02:00
Alan Knight 1480bd124b Ruthlessly suppress events-that-are-always-stopped
BUG=

Review URL: https://codereview.chromium.org/1936633002 .
2016-04-29 12:30:58 -07:00
Alan Knight b809a376cf Suppress flaky safari tests related to scrollbar layout
BUG=

Review URL: https://codereview.chromium.org/1939433002 .
2016-04-29 10:51:44 -07:00
Erik Ernst e44e667ca7 Implements support for ignoring method type arguments in resolution.
Extends `FunctionExpression` to hold the formal type variable
declaration syntax. Introduces `GenericElement` as a new superclass of
`TypeDeclarationElement`, allowing `FunctionElement` to have a getter
`typeVariables`. Changes `SignatureResolver.analyze` in several ways
to create and handle the new type variables. In order to avoid circular
ordering dependencies, introduced new scope classes such that the
function signatures can be computed without relying on themselves to
look up type variables (e.g., `FunctionSignatureBuildingScope`).

Finally, the mock_compiler and resolver_test.dart were adjusted to give
a `scope` argument to `new ResolverVisitor(..)` in order to get the
correct scopes in the new setup.

A few words about the approach:

The type of every method type parameter behaves as `dynamic`, because
its bound is (unconditionally, ignoring any bound syntax that might be
present) set to `const DynamicType()`. This preserves the property
that diagnostic messages about the type variables will refer to the
correct location in the source code.

Type arguments passed in send expressions are parsed but not added to
the abstract syntax and therefore not passed on to the resolution
phase; this means that all sends are treated as if they had no actual
type arguments, even when they do have them. Hence, actual method type
arguments are completely ignored.

R=johnniwinther@google.com

Review URL: https://codereview.chromium.org/1915123008 .
2016-04-29 19:46:12 +02:00
Alan Knight ff1b1174f7 Suppress obsolete co19 shadow dom event test on Chrome
BUG=

Review URL: https://codereview.chromium.org/1936583002 .
2016-04-29 10:00:02 -07:00
Johnni Winther b361d8ce97 Support compilation of Hello World
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1927963002 .
2016-04-29 12:57:45 +02:00
Johnni Winther 4c563fecbf Serialize more properties of ConstructorElement.
Review URL: https://codereview.chromium.org/1924053003 .
2016-04-29 10:00:53 +02:00
Alan Knight a9afed6521 Move WebGL test suppression to non-Mac Chrome bot
BUG=

Review URL: https://codereview.chromium.org/1934453002 .
2016-04-28 16:38:52 -07:00
Alan Knight cdb9642a12 A few more safari suppressions for now-working tests
BUG=

Review URL: https://codereview.chromium.org/1931023003 .
2016-04-28 16:33:43 -07:00
Jacob Richman ed80892471 Remove two IE11 tests that now pass.
BUG=

Review URL: https://codereview.chromium.org/1931853003 .
2016-04-28 09:45:56 -07:00
Florian Loitsch b19e00c2d4 Fix Set.from which still had a generic type on the incoming Iterable.
Follow-up fix for http://dartbug.com/21731
Also see https://codereview.chromium.org/838463002/

R=lrn@google.com

Review URL: https://codereview.chromium.org/1887883006 .
2016-04-28 15:01:04 +02:00
Jacob Richman 5c3e6a41cf Fix IE11 tests.
BUG=

Review URL: https://codereview.chromium.org/1925903002 .
2016-04-27 18:33:40 -07:00
Jacob Richman 13b7b7df70 Fix firefox co19 test expectation file.
BUG=

Review URL: https://codereview.chromium.org/1916043006 .
2016-04-27 18:29:09 -07:00
Jacob Richman 968517159c Update co19 expectations for Safari
BUG=

Review URL: https://codereview.chromium.org/1930743002 .
2016-04-27 17:54:03 -07:00
Terry Lucas d94fec9166 Update tests results
TBR=jacobr@google.com

Review URL: https://codereview.chromium.org/1924703003 .
2016-04-27 08:14:24 -07:00
Johnni Winther 4acfa253d3 Add toStructuredText to ConstantExpression and align method names with ConstantValue
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1916053003 .
2016-04-27 12:48:50 +02:00
Johnni Winther d1ca90aba6 Store constant variable initializers in elements.
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1919143002 .
2016-04-27 10:01:58 +02:00
Stephen Adams 7684794b8b Fix for issue 26243 - illegal motion of assignments in instruction merging
Fix by treating some HLocalGet instructions as pure and others as
impure.  Simply making HLocalGet impure caused a lot of code quality
regressions with the single-assignment exception and stack-trace
variables.

R=kmillikin@google.com, sigmund@google.com

Committed: https://github.com/dart-lang/sdk/commit/e9b06a9cd7e41c80b1a60cb20ea45f21b46ac40f

Reverted: https://github.com/dart-lang/sdk/commit/5fd51e63400c9e201ced8835c1d2c3c7924be975

Review URL: https://codereview.chromium.org/1914623002 .
2016-04-26 15:26:37 -07:00
Zachary Anderson ba550f1c43 Fixes NetworkInterface.list crash on Android
Previously, Socket::ListInterfaces failed to set the os_error out
parameter causing a crash in the caller. This change sets an error here.

I've also added NetworkInterface.listSupported, which returns false on
Android, and true everywhere else. ifaddrs.h continues not to exist in
the NDK, so in order to support NetworkInterface.list, we'd have to
reimplement it, or find a suitable reimplementation somewhere.

related #26329

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1916223003 .
2016-04-26 07:48:58 -07:00
Johnni Winther 4c9e6ff345 Replace _analyzeElementEagerly with Resolution.ensureResolved
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1917863002 .
2016-04-26 09:54:24 +02:00
Alan Knight adf856186f Change Dartium expectations from CompileTimeError to StaticWarning
BUG=

Review URL: https://codereview.chromium.org/1919733003 .
2016-04-25 13:11:39 -07:00