Commit Graph

3219 Commits

Author SHA1 Message Date
kustermann@google.com 2c4a968f53 Marked more co19 tests flaky on the VM
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26264 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-16 10:38:54 +00:00
kustermann@google.com e0f6bc9741 Disable co19 on all dart2js builders except ie9 again
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26263 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-16 09:51:35 +00:00
kustermann@google.com ba700f9f9d co19-roll to r546
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26259 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-16 08:36:40 +00:00
dgrove@google.com e1c1269953 co19/LibTest/core/Stopwatch/start_A01_t03 flaky on Windows .
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26164 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-14 22:38:37 +00:00
zra@google.com 8ffef7528d Bug fix and status file updates for MIPS HW.
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26037 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-12 21:45:41 +00:00
scheglov@google.com ebbb8daf29 Fix for function type assignable check.
It is not the same as for interface types.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26032 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-12 21:03:27 +00:00
regis@google.com 9eb12ad303 Implement updated method overriding rules in the vm (issue 11495).
Introduce --error-on-bad-override flag and use it when generating snapshots.
Fix signature checking when patching methods.
Fix errors in patch files.
Fix receiver type of constructors.
Fix finalization of mixin application typedefs.
Update tests and status files.

R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26027 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-12 20:28:52 +00:00
jwren@google.com 420fab6771 Fix for issue 11497- liberalize warnings about bad overrides
TODO- This is all of the changes in the analyzer, before this lands however the status files will need to be updated with now 30 failing language/co19 tests.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26018 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-12 18:34:55 +00:00
scheglov@google.com 0535260c7a Issue 11892. It is compile-time error when unqualified invocation with unresolved identifier.
https://code.google.com/p/dart/issues/detail?id=11892

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26016 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-12 18:06:32 +00:00
scheglov@google.com ac5ca53953 Report INSTANCE_ACCESS_TO_STATIC_MEMBER.
R=brianwilkerson@google.com, jwren@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25984 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 22:10:28 +00:00
scheglov@google.com c52c1736ee New analyzer_experimental snapshot.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25902 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-07 21:15:25 +00:00
cbracken@google.com 43fae66ebf Fixes to get Dart VM compiling on Ubuntu 13.04, Debian Wheezy.
* Convince gcc 4.7.x that len is initialized before use in callers of ReadFileFully()
* Cast RawObject* to intptr_t to avoid strict-aliasing error on gcc 4.7.x
* Replace two calls to strerror_r() with strerror() on Linux. When _GNU_SOURCE is
  defined to be non-zero (as it is on Dart Linux builds), strerror_r() is
  defined to return a char*, which is the correct error string to use. When
  _GNU_SOURCE is zero, the XSI-compliant definition is used and the error
  message is returned in the char* param. Surrounding error logging uses
  strerror() which solves the problem.
* Replace int literals with char literals in test string definition.
* co19 math/tan_A01_t01 passes on Ubuntu 13.04.

Original issues:
https://code.google.com/p/dart/issues/detail?id=12085
https://code.google.com/p/dart/issues/detail?id=8807

BUG=
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25890 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-07 17:28:04 +00:00
kustermann@google.com b497bd0a4b Status file update for tests failing on dart2js-drt after chrome roll
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25874 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-07 14:00:56 +00:00
johnniwinther@google.com ddb0961196 Update status.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25868 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-07 10:07:01 +00:00
johnniwinther@google.com ca76ac9e01 Update co19 test issue number.
BUG=
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25866 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-07 09:23:27 +00:00
johnniwinther@google.com 33d13b8809 Fix uses of throw/rethrow in tests.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25860 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-07 07:38:44 +00:00
johnniwinther@google.com a74819ab07 Update co19 status.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25859 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-07 07:15:47 +00:00
regis@google.com 09bcdc6d6d Fix VM implementation of CastError not to extend TypeError (issue 5280).
Remove non-compliant fields in various Error classes (issue 10144).
Remove implicit constructor when patching in a constructor (issue 12217).
Patch corelib Error classes instead of declaring subclasses.
Update tests and status files.

R=asiva@google.com, srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25782 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-05 18:35:04 +00:00
scheglov@google.com 1ffea8cae7 Issue 12106. Ambiguous import is now always static warning, never error.
https://code.google.com/p/dart/issues/detail?id=12106

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25734 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-02 16:48:02 +00:00
zra@google.com fa2ad38a31 Enables per-function far-branches for ARM and MIPS.
R=regis@google.com, srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25723 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-01 20:51:46 +00:00
regis@google.com 3b7cdf80a0 Update VM to handle malformed types according to revised spec (issues 9055,
12105, 7247).
Update language tests.
Update status files.
Allow map literals to specify a key type that is not a String.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25666 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-31 15:20:28 +00:00
johnniwinther@google.com 97a9084d50 Update dart2dart status.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25607 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-30 07:01:03 +00:00
johnniwinther@google.com a7d13fa228 Treat ambiguous types as malformed.
BUG=
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25605 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-30 05:59:15 +00:00
johnniwinther@google.com 62c042d679 Support new malformed types semantics.
BUG=http://dartbug.com/8325,http://dartbug.com/9056
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25553 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-29 10:19:58 +00:00
srdjan@google.com a4a3db86ac Triage remaining co19 tests for VM. Update also dart2js and dart2dart status where applicable.
R=ahe@google.com, regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25429 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 17:43:47 +00:00
srdjan@google.com 4d0774a448 Fix Queue's iterator to allocate an iterator using type parameter. Enable now passing tests.
Review URL: https://codereview.chromium.org//19857010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25417 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 15:18:11 +00:00
ngeoffray@google.com 8130feb2f8 Update status for dart2dart.
Review URL: https://codereview.chromium.org//19653003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25216 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 14:00:27 +00:00
ngeoffray@google.com ecdceaef1b Report an error if a const constructor calls a non-const constructor.
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25206 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 12:05:35 +00:00
brianwilkerson@google.com 34ee1e7515 Add implicit blocks in 'if', 'do', 'for', and 'while' statements. This is a result of a change in the specification. See issue 11817 for context.
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25123 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 21:03:50 +00:00
srdjan@google.com 1e169d3a23 Remove explicit argument type checks in math min and max.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25112 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 18:15:47 +00:00
ngeoffray@google.com fda68dd7dd Revert r-25106, js semantics for numbers pop up again.
Review URL: https://codereview.chromium.org//19492004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25110 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 17:53:50 +00:00
ngeoffray@google.com 2c846b11b1 Add some cheap optimization, and another computation limit in the container tracer.
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25106 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 16:53:22 +00:00
kustermann@google.com 37560ff519 Support for inlining small methods (independent of they're called inside a loop or not)
BUG=http://dartbug.com/11478
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25093 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 13:03:11 +00:00
scheglov@google.com 41d8e6ee39 Test running changes.
1. Change in the test runner to consider any warning as warning.

After this following was required:

2. Triage language tests.

3. Triage co19 tests.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25069 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-16 20:35:51 +00:00
ahe@google.com 5200c0466f Mark a test as being slow
Review URL: https://codereview.chromium.org//19278014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25047 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-16 13:59:40 +00:00
johnniwinther@google.com c13ac06bbe Remove support for conflicting constructors.
This removes the support for constructors with the same name as members. For instance:

class Foo {
 Foo.bar();
 static bar() {}
}

R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24914 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-11 13:05:05 +00:00
scheglov@google.com cdfb38b317 New analyzer_experimental snapshot.
The biggest change is in formatting long list literals.
It looks now better and also does not turn Editor into text mode for couple files.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24903 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-11 01:51:53 +00:00
scheglov@google.com 891af98050 NEW_WITH_INVALID_TYPE_PARAMETERS is warning
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24901 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-11 01:28:46 +00:00
regis@google.com e8a722870b Support type parameters and classes as expression in the vm.
Turn many compile-time errors into runtime errors per latest spec.
Triage affected tests.

R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24861 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-09 19:35:56 +00:00
scheglov@google.com 9f827701cd Do report StaticWarningCode.FINAL_NOT_INITIALIZED
Mostly just enable the implementation done by Jaime and some clean up.

There are many positives in dart2js, in HTML related libraries.
It seems that the most or all of these positives are in the classes with native implementation.
So, may be worth to remember that class has native implementation and don't report this problem.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24815 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-08 18:54:00 +00:00
scheglov@google.com 58e638766c Report CTEC.ARGUMENT_TYPE_NOT_ASSIGNABLE and extra/not-enough arguments as errors.
R=brianwilkerson@google.com, jwren@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24790 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-07 18:11:36 +00:00
hausner@google.com 98883150d6 Partial solution to analyze potentially constant expressions
This change adds code that detects if an expression can definitively
never be constant. We use this to analyze the initializer expressions
in const constructors. This check is not entirely water tight, but
together with the checks in canonicalization code catches most
illegal initializer expressions.

The const constructor of class Symbol turns out to be illegal. The
name verification check can't be part of the constructor code.

R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24749 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 20:47:14 +00:00
floitsch@google.com 898a3d8867 Relax method override restrictions.
This implements part of issue 11495.

BUG= http://dartbug.com/11495
R=regis@google.com

Committed: https://code.google.com/p/dart/source/detail?r=24731
Reverted: https://code.google.com/p/dart/source/detail?r=24733

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24736 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 18:02:11 +00:00
scheglov@google.com 6c6b88967f Remove dartc status sections.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24735 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 17:50:34 +00:00
floitsch@google.com 438767ca3a Add stackTrace to Error object.
BUG=
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24726 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 14:51:30 +00:00
karlklose@google.com 9c3a63b7c9 Report error when using initializing formals in redirecting constructors.
BUG=dartbug.com/6242
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24687 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 14:22:57 +00:00
johnniwinther@google.com 615ff96eed Retain type annotations for function subtyping in minified mode.
BUG=dartbug.com/11467,dartbug.com/11468
R=antonm@google.com, karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24681 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 12:45:00 +00:00
scheglov@google.com 8b0684be54 New analyzer_experimental snapshot.
R=brianwilkerson@google.com, devoncarew@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24613 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 22:34:01 +00:00
brianwilkerson@google.com d89ef55006 Add error on use of argument definition test
R=jwren@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24604 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 19:08:36 +00:00
scheglov@google.com e2fab63ec9 Mark some co19 tests fail,OK
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24600 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 18:07:35 +00:00