Commit Graph

5559 Commits

Author SHA1 Message Date
antonm@google.com 30314a5cd7 Triage some more tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10733 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 14:08:05 +00:00
antonm@google.com c9948213fe Cleanup suppressions.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10732 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 14:05:08 +00:00
johnniwinther@google.com 5e4e991ded Const variable declarations accepted in the parser.
TEST=language/const_var_test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10731 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 14:02:57 +00:00
antonm@google.com 7c6ba9cbaa Improve a reason for failure.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10729 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 14:00:01 +00:00
antonm@google.com 2cbe36c2a9 Improve a reason for failure.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10725 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 13:36:16 +00:00
antonm@google.com e698dfd40e Improve a reason for failure.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10724 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 13:19:04 +00:00
antonm@google.com 4430c4def7 Improve a reason for failure.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10723 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 13:10:17 +00:00
antonm@google.com e8ec16c681 Support new try/catch syntax.
R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10721 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 12:58:57 +00:00
sgjesse@google.com d2b9f3f2c1 Fix wrong optimization for private fields
R=floitsch@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10719 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 12:49:38 +00:00
antonm@google.com da9404127f Update suppressions.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10712 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 11:50:51 +00:00
ahe@google.com d47c99d041 Support for new catch syntax in dart2js
Committing on behalft of: Alexander Aprelev <aprelev@gmail.com>

BUG=3758

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10704 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 09:51:18 +00:00
ahe@google.com 474a7d6d56 Check overrides.
Review URL: https://chromiumcodereview.appspot.com//10836235

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10677 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 20:23:58 +00:00
scheglov@google.com a872467e43 Issue 4383. Calling field without setter should generate problem
http://code.google.com/p/dart/issues/detail?id=4383

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10649 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 14:25:22 +00:00
floitsch@google.com bdbb03a61a Fix dangling else.
Fixes issue 4493.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10645 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 13:52:11 +00:00
lrn@google.com 7427732acd Fix test in previous commit.
Bad variable name: members -> localMembers
Test passing unexpectedly.

TBR=ahe@google.com
CC=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10638 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 12:38:37 +00:00
antonm@google.com 0bdef30a5b Do not force checked mode on VM.
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10635 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 11:47:35 +00:00
antonm@google.com 4886a84240 Support resolution of indexed operators.
Review URL: https://chromiumcodereview.appspot.com//10823293

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10634 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 11:41:08 +00:00
antonm@google.com a956a1ac4f Fix the case of function field via this initialization.
The problematic code is like:

class C {
  Function f;
  C(int this.f());
}

In this case Send's selector is actually a FunctionExpression.

Currently it gets unparsed weirdly: C(this.int f()), but DartVM accepts that so let
leave it in this state for now.

R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10631 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 11:23:17 +00:00
antonm@google.com 5e1f40fd45 Register toString dynamic invocation in the presence of string interpolation.
This reapplies lgtmed commit.

TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10594 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 18:21:03 +00:00
antonm@google.com beda26dd25 Adjust suppressions.
R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10592 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 18:13:32 +00:00
ahe@google.com 26f63f029a Ensure supertypes are loaded safely.
Review URL: https://chromiumcodereview.appspot.com//10855125

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10586 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 16:42:41 +00:00
antonm@google.com 24203b09a2 Revert "Register toString dynamic invocation in the presence of string interpolation."
This reverts commit e3bc84ade08c6c9acedfd1ad7e1f159832e0b4a1.

R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10585 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 16:36:16 +00:00
antonm@google.com 16f61cb2fe Register toString dynamic invocation in the presence of string interpolation.
Review URL: https://chromiumcodereview.appspot.com//10824276

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10584 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 16:09:35 +00:00
antonm@google.com 8156ea7e26 Better suppression.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10583 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 15:50:54 +00:00
antonm@google.com b3b2e62a80 Add temporary suppression.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10582 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 15:44:06 +00:00
floitsch@google.com 83497faed2 Add failing test for initializing function parameters in constructors.
Test for issue 4417.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10581 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 15:18:10 +00:00
ahe@google.com 8afeeccd07 Remove OK from tests that we should fix before M1.
Review URL: https://chromiumcodereview.appspot.com//10826244

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10570 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 13:31:12 +00:00
antonm@google.com 553cfe80b6 Proper support for VMOptions declarations for dart2dart.
Plus remove suppressions for now passing tests and retriage ones
for which we hoped the reason was in VMOptions.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10563 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 12:05:58 +00:00
antonm@google.com 224a62daec Triage another test.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10558 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 10:01:10 +00:00
smok@google.com 6e0d009928 Collect referenced classes recursively.
Review URL: https://chromiumcodereview.appspot.com//10826259

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10556 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 08:55:55 +00:00
antonm@google.com bf6a549072 Fix some operator madness (see incr_op_test for more details.)
I am planning to refactor SendSet unparse to reduce code duplication.

R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10553 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 07:49:25 +00:00
efortuna@google.com 1d14fb856e Un-enable Opera.
Review URL: https://chromiumcodereview.appspot.com//10826255

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10543 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 23:36:51 +00:00
efortuna@google.com fd1da77750 Revert 10537.
Review URL: https://chromiumcodereview.appspot.com//10836198

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10540 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 22:04:51 +00:00
efortuna@google.com 1971f0afc9 Fix hausner's naming test file status.
TBR=hausner@google.com
Review URL: https://chromiumcodereview.appspot.com//10854102

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10537 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 21:54:09 +00:00
hausner@google.com ad6433285b Exclude language/naming_test on firefox and safari
No idea why a purely language test fails on those when it passes
on all other suites. Maybe a name collision in the generated
JS code on certain JS implementations?
Review URL: https://chromiumcodereview.appspot.com//10823276

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10536 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 21:52:41 +00:00
scheglov@google.com 929f158657 Issue 3800. Calling an undefined constructor via new is a warning, not an error
http://code.google.com/p/dart/issues/detail?id=3800

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10531 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 21:04:47 +00:00
brianwilkerson@google.com c395b13644 Fix for issue 4429 - remove #resource directive
Review URL: https://chromiumcodereview.appspot.com//10827286

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10530 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 21:03:36 +00:00
scheglov@google.com 89b6b69e9f Issue 3084. Generate warning, not error, for 'Unknown.unknown'
http://code.google.com/p/dart/issues/detail?id=3084

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10524 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 18:33:07 +00:00
hausner@google.com 6a1a13901d Support for new operator -
Implement unary operator -. Operator negate is still recognized,
but internally it is represented like unary -. In particular,
operator negate no longer implies an instance method named
negate.

Marked several co19 tests that use "negate" as failing and filed
co19 issue 169 to have these tests updated.
Review URL: https://chromiumcodereview.appspot.com//10830253

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10523 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 18:30:22 +00:00
brianwilkerson@google.com 28b3a4b574 Fix for issue 3756 - support new catch syntax
Review URL: https://chromiumcodereview.appspot.com//10854097

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10521 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 18:18:09 +00:00
efortuna@google.com 5072b18d98 Enable Opera testing (!!!).
Review URL: https://chromiumcodereview.appspot.com//10832239

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10513 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 16:50:34 +00:00
floitsch@google.com 63bce914b7 Implement call operator.
Committed: https://code.google.com/p/dart/source/detail?r=10495

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10507 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 14:19:31 +00:00
floitsch@google.com dafca6eb63 Revert "Implement call operator."
This reverts commit 10495.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10498 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 12:37:47 +00:00
smok@google.com 84e723aae8 update dart2dart test status after https://chromiumcodereview.appspot.com/10826243/
Review URL: https://chromiumcodereview.appspot.com//10827277

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10496 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 12:30:07 +00:00
floitsch@google.com 0feeece251 Implement call operator.
Review URL: https://chromiumcodereview.appspot.com//10834270

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10495 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 12:20:30 +00:00
ahe@google.com 3da6222373 Restore lazy parsing of classes.
Review URL: https://chromiumcodereview.appspot.com//10826243

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10491 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 11:37:58 +00:00
antonm@google.com 36ace0ed93 Support for generic type variables and unresolved types added.
Generic type variables are supported in really ugly way and
most probably should go into resolver eventually.

For types which cannot be resolved, unique name is generated for renaming.

R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10490 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 11:24:50 +00:00
antonm@google.com 97e89233ca Traverse newly discovered elements to pick more referenced types.
And run them through placeholder collector too to prepare for
emission.

R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10486 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 09:48:13 +00:00
antonm@google.com 6ed819a4a6 Support some usages of empty classes.
Positions like is, as, return types and argument types
should be now processed.

R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10484 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 09:02:26 +00:00
hausner@google.com ce8c9c0307 Mark try_catch_test as failing on dartc
Test uses new on T catch (e) syntax.
Review URL: https://chromiumcodereview.appspot.com//10824243

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