Commit Graph

5559 Commits

Author SHA1 Message Date
scheglov@google.com 152a35d268 Issue 3534. It is a compile-time error if a typedef refers to itself
http://code.google.com/p/dart/issues/detail?id=3534

R=brianwilkerson@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10546118

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8561 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 18:31:57 +00:00
scheglov@google.com f50560b8ad Issue 3531. Don't allow using built-in identifier as import prefix
http://code.google.com/p/dart/issues/detail?id=3531

And couple other built-in/reserved issues.

R=brianwilkerson@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10545131

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8558 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 18:05:20 +00:00
iposva@google.com ac8fbed01f - Add test case which will cause a mega-morphic field load.
Review URL: https://chromiumcodereview.appspot.com//10540118

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8529 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 09:30:06 +00:00
ngeoffray@google.com bc202a4a37 Update status file for IE.
Review URL: https://chromiumcodereview.appspot.com//10537119

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8527 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 08:17:54 +00:00
ngeoffray@google.com f53bdec477 Fix typo.
Review URL: https://chromiumcodereview.appspot.com//10538090

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8523 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 06:22:38 +00:00
scheglov@google.com 089bc27a16 Issue 3340. conflict of a library prefix and a name in the importing library should produce a compile error
http://code.google.com/p/dart/issues/detail?id=3340

R=brianwilkerson@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10538077

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8500 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 16:01:21 +00:00
scheglov@google.com db90871bc7 Issue 3404. Static & top level functions are constant
http://code.google.com/p/dart/issues/detail?id=3404

R=brianwilkerson@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10542098

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8497 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 15:55:56 +00:00
scheglov@google.com ede473a09d Issue 3449. Enable default values for parameters in abstract and interface methods
http://code.google.com/p/dart/issues/detail?id=3449

R=brianwilkerson@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10534082

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8494 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 15:51:51 +00:00
scheglov@google.com fe0261ee50 Issue 3477. Report error when built-in identifier used as type name
http://code.google.com/p/dart/issues/detail?id=3477

R=brianwilkerson@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10542094

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8493 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 15:49:30 +00:00
kasperl@google.com b21cfb024e Unskip the last tests covered by http://dartbug/3304.
TBR'ed.

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10532083

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8484 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 08:49:10 +00:00
kasperl@google.com 9f850d7ac6 Fix build.
R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10543090

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8482 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 08:30:06 +00:00
kasperl@google.com 2f7b4b9185 Stop skipping for Safari and Firefox and allow even more stuff pass on IE.
TBR'ed.

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10536089

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8481 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 08:24:51 +00:00
kasperl@google.com a18a4260f2 Remove passing tests.
TBR'ed.

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10542099

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8480 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 07:29:41 +00:00
kasperl@google.com e83e9c4f64 Try to get rid of some of the IE skips.
TBR'ed.

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10545110

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8479 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 05:30:44 +00:00
scheglov@google.com d5375c61be Issue 3307. Report error when built-in identifier used as type annotation
http://code.google.com/p/dart/issues/detail?id=3307

R=brianwilkerson@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10544068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8476 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-09 05:56:09 +00:00
zundel@google.com a85a5f420f In analyzer, catch use of continue and break in inappropriate places
(outside of a loop or in the case of break, with no referenced label)

See http://code.google.com/p/dart/issues/detail?id=1658
and http://code.google.com/p/dart/issues/detail?id=2441

Review URL: https://chromiumcodereview.appspot.com//10534065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8467 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 21:24:17 +00:00
srdjan@google.com 69be8e6f0b Add righ shift test for corner cases, use macro for deopt reasons (all suggested by Slava in a previous CL)
Review URL: https://chromiumcodereview.appspot.com//10539068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8459 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 18:20:45 +00:00
ngeoffray@google.com ccd24124c7 Update status file for assertion_test that assumes assertions are on.
Review URL: https://chromiumcodereview.appspot.com//10540072

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8431 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 10:48:16 +00:00
ngeoffray@google.com 5e9caaa372 Only generate assert in checked mode.
Review URL: https://chromiumcodereview.appspot.com//10540052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8430 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 10:21:22 +00:00
zundel@google.com 10d6c4d932 Makes method shadowing a getter or setter or vice versa a compile time error.
See issue http://code.google.com/p/dart/issues/detail?id=973

Review URL: https://chromiumcodereview.appspot.com//10533050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8410 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-07 22:22:24 +00:00
ngeoffray@google.com afc3fdaf70 Compute the swap temporary to not clash with parameter names.
Review URL: https://chromiumcodereview.appspot.com//10543050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8385 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-07 10:03:17 +00:00
ngeoffray@google.com bb2b3bca56 Fixes for checked mode and change buildbot script to run dart2js tests in checked mode also.
Review URL: https://chromiumcodereview.appspot.com//10543027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8382 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-07 09:03:16 +00:00
brianwilkerson@google.com 4eaf3d1cdf Fix for issue 1399 (and minor error message clean-up)
Review URL: https://chromiumcodereview.appspot.com//10541018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8338 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 14:51:21 +00:00
lrn@google.com 745cb6085f Implement constant switch as JS switch.
This introduces a block-structure for constant switches.
Non-constant switches still use the old if-else-if implementation.

Review URL: https://chromiumcodereview.appspot.com//10544024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8331 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 13:14:59 +00:00
ahe@google.com 649df0048f Support overriding fields with fields.
Review URL: https://chromiumcodereview.appspot.com//10511008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8312 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 06:57:08 +00:00
zundel@google.com 3c93d993e7 Eliminate internal compiler error when invoking a function type alias by mistake
See http://code.google.com/p/dart/issues/detail?id=1393

Review URL: https://chromiumcodereview.appspot.com//10545008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8302 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 18:40:46 +00:00
ahe@google.com 62512c93c2 Implement super store.
Review URL: https://chromiumcodereview.appspot.com//10444138

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8201 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 16:12:47 +00:00
regis@google.com 31180a540e Check upper bounds of factory class type parameters when instantiating an
interface (issue 1380).
Review URL: https://chromiumcodereview.appspot.com//10441115

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8162 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-31 15:51:36 +00:00
ahe@google.com 896e58b7fd Access to "this" in super reads in a closure.
Review URL: https://chromiumcodereview.appspot.com//10451090

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8154 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-31 13:44:03 +00:00
ahe@google.com 0d38d52170 Implement super read.
Review URL: https://chromiumcodereview.appspot.com//10442107

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8140 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-31 05:51:46 +00:00
srdjan@google.com 742a716dc7 Fix a bug in ia32 shift left , implemented more inlined binary operations in x64.
Review URL: https://chromiumcodereview.appspot.com//10440082

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8119 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 17:35:20 +00:00
floitsch@google.com 4818b549d2 Canonicalize bound closures for non-optional-arg methods.
Review URL: https://chromiumcodereview.appspot.com//10448025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8102 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 13:24:28 +00:00
ngeoffray@google.com 1d85210bad Only pass message if it is a string.
Review URL: https://chromiumcodereview.appspot.com//10443083

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8100 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 12:18:58 +00:00
ngeoffray@google.com 80194ed0e1 Fix check in exception unwrapping and update status files.
Review URL: https://chromiumcodereview.appspot.com//10448074

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8097 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 11:38:12 +00:00
ngeoffray@google.com 2f1bfc25ba Update status files now that issue 2615 is fixed.
Review URL: https://chromiumcodereview.appspot.com//10440085

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8090 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 09:02:13 +00:00
ngeoffray@google.com 2da88ec5d5 Missed these two failures.
Review URL: https://chromiumcodereview.appspot.com//10456025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8087 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 08:01:45 +00:00
kasperl@google.com d9d1eb2a75 Update status files to make IE build bots green.
R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10453074

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8086 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 07:30:26 +00:00
ngeoffray@google.com e2c7c6eaee Update status files for dart2js/mac/safari.
Review URL: https://chromiumcodereview.appspot.com//10442081

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8085 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 07:26:01 +00:00
kasperl@google.com 5d23a99d71 Skip tests that time out on IE.
R=ngeoffray@google.com
BUG=http://dartbug.com/3304
TEST=

Review URL: https://chromiumcodereview.appspot.com//10444084

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8084 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 05:59:16 +00:00
ngeoffray@google.com 2cb4416340 Use the typedef arity to know how to invoke a closure given by the dom.
Review URL: https://chromiumcodereview.appspot.com//10441071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8067 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 15:53:54 +00:00
karlklose@google.com 73d714a126 Merge functionality of HExactType into HBoundedType and fix computation of unions and intersections.
R=ngeoffray@google.com
TEST=language/switch_this_test

Review URL: https://chromiumcodereview.appspot.com//10452032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8057 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 13:23:38 +00:00
ngeoffray@google.com 5ca4106a51 Skip dart2js/firefox until we fix issue 2615.
Review URL: https://chromiumcodereview.appspot.com//10449049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8045 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 09:41:29 +00:00
ngeoffray@google.com 91cc8470ad Fix bug when a variable is used in try/catch and accessed trough HFieldGet and HFieldSet: reference a new HParameterValue instead of a name. Otherwise, the name may conflict with an existing variable.
Review URL: https://chromiumcodereview.appspot.com//10452029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7987 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-25 10:49:56 +00:00
karlklose@google.com f59da5fc99 Revert "Fix bug in combination of bounded and exact types." and "Make field final in const class."
This reverts commits r7944 and r7947.

TBR=ngeoffray@google.com

Review URL: https://chromiumcodereview.appspot.com//10443010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7953 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-24 16:54:12 +00:00
karlklose@google.com 931abb1f13 Make field final in const class.
TBR=ager@google.com

Review URL: https://chromiumcodereview.appspot.com//10446011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7947 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-24 13:28:41 +00:00
karlklose@google.com a70924b5ab Fix bug in combination of bounded and exact types.
TEST=language/switch_this_test.dart

Review URL: https://chromiumcodereview.appspot.com//10411094

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7944 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-24 13:09:53 +00:00
ahe@google.com 8a087a3e2f Make sure [this] is available for super sends.
Review URL: https://chromiumcodereview.appspot.com//10454005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7942 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-24 11:28:49 +00:00
regis@google.com 5fe23d1497 Disallow repeated type parameters (issues 2239 & 2240).
Add test.
Review URL: https://chromiumcodereview.appspot.com//10426002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7922 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 20:05:40 +00:00
floitsch@google.com a88e304d29 Deprecate use of timezones.
Review URL: https://chromiumcodereview.appspot.com//10411057

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7911 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 16:07:35 +00:00
floitsch@google.com 653b78adf9 Negative numbers should not be >>> shifted.
Fixes issue 3109.

Review URL: https://chromiumcodereview.appspot.com//10332291

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7899 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 09:28:44 +00:00