Commit Graph

3219 Commits

Author SHA1 Message Date
johnniwinther@google.com dcb98b6517 Support extends/implements of Function.
BUG=http://dartbug.com/12446
R=kasperl@google.com

Review URL: https://codereview.chromium.org//26995002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28506 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 11:33:31 +00:00
ricow@google.com bfebece60b Update dartium co19/Language/14_Libraries_and_Scripts/3_Parts_A02_t02 timeout suppression to be flaky passing
R=kustermann@google.com

Review URL: https://codereview.chromium.org//27000004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28503 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 10:55:37 +00:00
vsm@google.com 7dc0590ece Mark occasionally timing out tests as skip
TBR=asiva@google.com,ricow@google.com

BUG=13992

Review URL: https://codereview.chromium.org//26913002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28472 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-10 19:37:29 +00:00
ricow@google.com e398297d1e Mark some additional dartium tests as timing out
R=kustermann@google.com

Review URL: https://codereview.chromium.org//26837002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28452 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-10 13:40:52 +00:00
vsm@google.com 6deb0eb350 More status updates
It appears that the spawnUri tests pass with DRT and fail in Dartium.
I have not been able to run locally in "dartium" mode.

TBR=asiva@google.com

Review URL: https://codereview.chromium.org//26650007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28440 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-10 02:57:37 +00:00
vsm@google.com 455a601723 c019 status update
More test changes related to disabling spawnFunction on the dom isolate.  On the plus side, cleaning up the code appears to have gotten some spawnUri tests passing.

TBR=asiva@google.com

Review URL: https://codereview.chromium.org//26778002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28436 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-10 00:41:18 +00:00
hausner@google.com b87ef6ab7f Final variables induce a setter that throws NSME
Clean up handling of const and final variables. They induce a
setter that throws a NSME, rather than a compile-time error.

Delay the AST conversion of loading a const field into loading
the literal value. The conversion is now done when we know
that the load in on the right hand side of an expression.

R=srdjan@google.com

Review URL: https://codereview.chromium.org//26703002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28408 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 17:33:10 +00:00
scheglov@google.com 6c2238d98a Report CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQUALS.
R=brianwilkerson@google.com, jwren@google.com
BUG=

Review URL: https://codereview.chromium.org//26582002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28385 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-08 22:17:13 +00:00
scheglov@google.com e8fd6709b4 Support for parsing 'class name = mixinApplication', report error for 'typedef name = mixinApplication'.
-1 failing co19 test.
About 60 new failing tests (because of using 'typedef' for mixin).

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

Review URL: https://codereview.chromium.org//26466005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28379 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-08 21:31:47 +00:00
kustermann@google.com ac254a8633 Status file update for builders runnig none-dartium tests
TBR=ricow@google.com

Review URL: https://codereview.chromium.org//26194002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28297 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-06 21:10:25 +00:00
scheglov@google.com 59fd8f58c8 New analyzer_experimental snapshot.
1. "catch (Exception e)" is translated into "on JavaException catch (e)".
2. Java exceptions now extend JavaException.
3. MemberMap moved into resolver, because it is not a generic collection and has references to elements.

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

Review URL: https://codereview.chromium.org//26096002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28296 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-06 05:11:15 +00:00
regis@google.com 7eaf06ac3c Fix dart2dart build: a previously failing test now passes.
Review URL: https://codereview.chromium.org//26101002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28295 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-05 02:52:45 +00:00
hausner@google.com 948a1c79d1 Fix dartium status
Dartium tests apparently don't use the co19-co19.status file.

Review URL: https://codereview.chromium.org//26058002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28290 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-04 23:03:49 +00:00
regis@google.com 5e817c182b It is not an error anymore to leave an instance final field uninitialized.
Fix issues 11054 and 12157.

R=srdjan@google.com

Review URL: https://codereview.chromium.org//26023005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28289 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-04 22:56:53 +00:00
hausner@google.com 6be54056c6 Update test status for expectations of missing final variable initialization
The spec will require final variables to be initialized if they are
top-level, static or local.

Filed co19 bug 624

R=iposva@google.com

Review URL: https://codereview.chromium.org//25368004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28281 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-04 20:49:08 +00:00
scheglov@google.com 7ce26440ef Triage co19 test.
R=brianwilkerson@google.com, jwren@google.com
BUG=

Review URL: https://codereview.chromium.org//25515006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28268 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-04 16:46:58 +00:00
kustermann@google.com 2375d10c36 Mark two tests as flaky on none-dartium
TBR=ricow@google.com

Review URL: https://codereview.chromium.org//25724013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28267 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-04 16:41:59 +00:00
kustermann@google.com 14dce1057e Second round of status file updates after enabling none-dartium tests on dartium-inc builders
TBR=ricow@google.com

Review URL: https://codereview.chromium.org//25892008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28265 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-04 14:32:38 +00:00
kustermann@google.com a1dd53d890 Disable co19 on none-drt
Note that we currently don't run co19 on content_shell because co19 repsoitory
is not in dartium.deps/DEPS.

R=kasperl@google.com

Review URL: https://codereview.chromium.org//25958003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28256 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-04 09:40:08 +00:00
kustermann@google.com edacf33810 Status file update for none-dartium
R=kasperl@google.com

Review URL: https://codereview.chromium.org//25896005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28254 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-04 09:25:26 +00:00
karlklose@google.com 3393756849 Don't evaluate the argument twice for unresolved static setter calls.
R=kasperl@google.com

Review URL: https://codereview.chromium.org//25877002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28253 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-04 08:47:10 +00:00
scheglov@google.com f9a1508351 Symbol literal is constant.
R=brianwilkerson@google.com, jwren@google.com
BUG=

Review URL: https://codereview.chromium.org//25939002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28249 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 22:21:53 +00:00
scheglov@google.com 5fa673297f co19 triage
R=brianwilkerson@google.com, jwren@google.com
BUG=

Review URL: https://codereview.chromium.org//25616004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28238 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 19:50:46 +00:00
regis@google.com 299b95c1ab Skip AssertAssignable in code generator if optimizer could establish that
destination type is dynamic or Object (issue 13795).

R=srdjan@google.com

Review URL: https://codereview.chromium.org//25898002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28235 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 18:32:09 +00:00
karlklose@google.com 38ee5cb1e2 Emit a compile-time error for uninitialized final variables.
BUG=13020,13222
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//25504002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28204 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 10:42:31 +00:00
hausner@google.com f9a280f11a Update test status files to reflect change in multiline string grammar
Filed co19 issue 612

Review URL: https://codereview.chromium.org//25585003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28188 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 22:56:58 +00:00
kustermann@google.com 9a5ca71a0f Followup status file update after co19-roll to r607: move suppressions to correct status file
TBR=kasperl@google.com

Review URL: https://codereview.chromium.org//25718003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28165 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 14:44:37 +00:00
kustermann@google.com 5e7d3f4a3b Remove status file entries referring to non-existent tests
R=kasperl@google.com

Review URL: https://codereview.chromium.org//25649005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28162 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 13:50:13 +00:00
johnniwinther@google.com a7dedab49b Update status.
BUG=

Review URL: https://codereview.chromium.org//25677005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28160 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 13:37:20 +00:00
johnniwinther@google.com 41135e1734 Handle compile-time constness for conditionals and type literal calls.
BUG=http://dartbug.com/13270
R=karlklose@google.com

Review URL: https://codereview.chromium.org//25478009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28154 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 12:43:48 +00:00
kustermann@google.com 924c46f9ae co19-roll to r607
R=kasperl@google.com

Review URL: https://codereview.chromium.org//25710002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28150 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 11:18:31 +00:00
kustermann@google.com af92d78c3c Removed flaky markers for consistently passing tests, marked 01_Constants_A15_t16 as failing
TBR=kasperl@google.com

Review URL: https://codereview.chromium.org//25700002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28143 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 09:40:29 +00:00
kustermann@google.com 22d20313b4 Implement testing support for "--compiler=none --runtime=dartium"
This is implemented without the broken unittest-based wrapping of tests.

R=kasperl@google.com

Review URL: https://codereview.chromium.org//25514002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28141 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 07:37:50 +00:00
scheglov@google.com 7bff9958bf 'const' instance creation with incompatible argument types is statis warning.
R=brianwilkerson@google.com, jwren@google.com
BUG=

Review URL: https://codereview.chromium.org//25605002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28126 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 22:08:04 +00:00
scheglov@google.com 2bc8ef6515 Triage one co19 issue.
R=brianwilkerson@google.com, jwren@google.com
BUG=

Review URL: https://codereview.chromium.org//25504006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28123 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 21:56:15 +00:00
scheglov@google.com 65e0eb2823 Private methods from different libraries cannot collide.
R=brianwilkerson@google.com, jwren@google.com
BUG=

Review URL: https://codereview.chromium.org//25592002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28114 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 19:53:37 +00:00
scheglov@google.com 17472f9cfa It is statically OK to call methods on bottom type.
R=brianwilkerson@google.com, jwren@google.com
BUG=

Review URL: https://codereview.chromium.org//25509003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28111 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 19:24:07 +00:00
hausner@google.com 1ea4547a96 Disallow double in case clauses and const map literal keys
Implements the latest Spec decisions and clarifications.

R=srdjan@google.com

Review URL: https://codereview.chromium.org//25561002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28104 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 17:22:39 +00:00
johnniwinther@google.com 0f0a48fd7b Move compile-time constant registrations to the backend.
This prepares for handling compile-time constant evaluation in the resolution post-processing.

BUG=
R=ahe@google.com, karlklose@google.com, ngeoffray@google.com

Review URL: https://codereview.chromium.org//24282005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28091 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 11:32:03 +00:00
karlklose@google.com f640382dd9 Emit a compile-time error when
- declaring a local variable abstract or static.
- using built-in identifier as a type variable name.

R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//25255002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28080 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 09:05:49 +00:00
johnniwinther@google.com 87bdc30db0 Allow import/export of libraries with no name.
BUG=http://dartbug.com/11475
R=kasperl@google.com

Committed: https://code.google.com/p/dart/source/detail?r=28049

Review URL: https://codereview.chromium.org//25251003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28079 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 08:34:32 +00:00
scheglov@google.com ddb3889a3d Issue 13584. Fix for Java/Dart local variable scoping mismatch.
https://code.google.com/p/dart/issues/detail?id=13574

We now use "this" (or type name for static) qualifier for any member reference that is shadowed by local variable or parameter.
This fixes specified issue and also another one, which was quick-patched during M7 push.

Also generated code is a little better.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//25373002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28078 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 01:18:14 +00:00
johnniwinther@google.com 9dd1bf1b5d Revert "Allow import/export of libraries with no name."
This reverts commit r28049.

BUG=

Review URL: https://codereview.chromium.org//25006003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28051 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-30 13:23:38 +00:00
johnniwinther@google.com 27211a4685 Allow import/export of libraries with no name.
BUG=http://dartbug.com/11475
R=kasperl@google.com

Review URL: https://codereview.chromium.org//25251003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28049 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-30 12:17:56 +00:00
kustermann@google.com 37858af9e7 Fixed status file update: Restrict MissingCompileTimeError to VM (drt doesn't support it)
R=ricow@google.com

Review URL: https://codereview.chromium.org//25246002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28045 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-30 10:41:10 +00:00
kustermann@google.com b470d2572a Report MissingCompileTime errors on the VM, status file updates for the remaining issues
R=ricow@google.com

Review URL: https://codereview.chromium.org//25229002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28043 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-30 08:37:59 +00:00
ngeoffray@google.com f6a69b0d51 Remove slow marker.
R=kasperl@google.com

Review URL: https://codereview.chromium.org//25041002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28041 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-30 06:36:24 +00:00
scheglov@google.com 95a981d3af The scope of a function's signature is the function's enclosing scope, not the formal parameters scope.
This is the recent change in spec.
Implementation for it is not nice though...

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

Review URL: https://codereview.chromium.org//24823002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28031 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 23:37:25 +00:00
karlklose@google.com 4d1cc0da05 Emit a compile-time error when a named optional parameter has a library private name.
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//25046002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28012 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 14:34:21 +00:00
karlklose@google.com 0a71361232 Emit a compile-time error if a function type parameter is declard with 'final' or 'var'.
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//25023002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28006 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 12:06:59 +00:00