Commit Graph

5559 Commits

Author SHA1 Message Date
ahe@google.com 05a110b532 Extend testing of argument definition test expressions.
Review URL: https://chromiumcodereview.appspot.com//10916050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11684 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 14:22:13 +00:00
regis@google.com 9e00bd8ccb Implement argument definition test in the vm.
Add tests.
Various cleanups.
Review URL: https://chromiumcodereview.appspot.com//10915022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11664 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 22:46:44 +00:00
brianwilkerson@google.com 3c3badd039 Accept types rather than identifiers in catch clauses (Issue 4840)
Review URL: https://chromiumcodereview.appspot.com//10913016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11660 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 21:30:05 +00:00
ngeoffray@google.com d2bfc464ab Field has no type annotation, it is not a static warning.
Review URL: https://chromiumcodereview.appspot.com//10917018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11650 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 20:18:56 +00:00
ngeoffray@google.com b31af3710a Support checked mode for field setters.
Review URL: https://chromiumcodereview.appspot.com//10908012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11646 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 19:37:16 +00:00
floitsch@google.com 8281292638 Fix bad code-generation for nested-ifs in for loops.
In the builder we compile (x && y && z) into nested ifs. Before
code-emission we try to detect this pattern:

            If
          /    \
         /      \
      1 expr1    \
       If         \
      /  \         \
     /    \         goto
  1 expr2            |
    goto    goto     |
      \     /        |
       \   /         |
   phi1(expr2, true|false)   <=== nested if's join block
          \          |
           \         |
             phi(phi1, true|false)

However we forgot to verify that the nested if's join block didn't
contain any expression.

Fixes issue 4826.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11627 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 16:53:47 +00:00
ager@google.com 516b9ffeee Fix language.status
R=antonm@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11608 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 11:52:34 +00:00
ager@google.com 178100ded4 Move print to corelib.
Allow embedder customization in the VM through a static field that can
be set by the embedder.

Mark failing test that is unrelated to this change. The VM does not
like when you import dart:core explicitly and tells you there both
'dart:core' and 'dart:core' define 'print'.

R=ajohnsen@google.com,iposva@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11603 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 11:31:30 +00:00
kasperl@google.com e8c8244882 Update test expectations.
R=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11596 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 10:35:12 +00:00
kasperl@google.com 5cdf2f11d6 Change a few more uses of the old try-catch syntax.
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11594 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 09:51:52 +00:00
kasperl@google.com befd13e306 Add test for final field initialization (fails on the VM).
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11593 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 09:50:12 +00:00
aprelev@gmail.com fbc9100ad7 Fixed tests so they do indeed confirm that values on optional named parameters are not allowed. Added check to the dart2js parser, so that setting values on optional named parameters is flagged as error. Tests pass.
BUG=dart:351
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11573 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 02:03:42 +00:00
hausner@google.com b3a2c41d02 Revert change 11558
I learnt that instantiating an abstract class is a runtime error, not a compile time error.

TBR=regis
Review URL: https://chromiumcodereview.appspot.com//10894048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11567 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 22:49:52 +00:00
hausner@google.com a1f0e08b24 Fix dart2dart test status
Review URL: https://chromiumcodereview.appspot.com//10891046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11561 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 22:27:28 +00:00
hausner@google.com 28d88d4b2d Add compiler error when instantiating abstract class
Also, make abstract keyword on methods optional.
Review URL: https://chromiumcodereview.appspot.com//10899039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11558 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 22:13:06 +00:00
ngeoffray@google.com f02b95d5ea A class can implement another class, so a selector on a class applies to a member that implements that class.
Review URL: https://chromiumcodereview.appspot.com//10900023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11516 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 12:48:02 +00:00
ajohnsen@google.com 3a6daefd99 Expose remaining 'errors' in an unified dart:core.
This is a follow-up on my previous move of AssertionError.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11513 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 11:57:37 +00:00
floitsch@google.com 7c8bb146ab Address comments from CL 10660026.
https://chromiumcodereview.appspot.com/10660026/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11512 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 11:35:55 +00:00
antonm@google.com dd9f61b912 Rename members and named constructors.
That also leads to renames of named arguments in some contexts like

class C {
  final f;
  C([this.f]);
}

new C(f: 42).

Now we need to change the name of named argument along with the field name.

R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11505 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 10:13:00 +00:00
karlklose@google.com 9759e4714b Mark checked mode tests as failing.
TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11502 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 09:34:40 +00:00
karlklose@google.com 544b754a7d Throw a runtime error when trying to call a constructor of a class that could not be resolved.
TESTS=language/call_constructor_on_unresolved_class_test
BUG=3802

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11497 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 08:52:53 +00:00
kasperl@google.com 8bd4bf096b Update almost all tests (except co19) to use the new try-catch syntax.
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11492 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 08:11:41 +00:00
kasperl@google.com 33e009db5f Update tests after removing #resource support from dart2js.
R=ahe@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11490 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 07:13:18 +00:00
whesse@google.com 3a29e74f3b Update status for test language/list_test now passing on IE on Windows.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11451 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 15:12:11 +00:00
whesse@google.com 04b4f613be Rewrite language/list_test to use Expect.throws, and to allow a TypeError exception in checked mode.
BUG=
TEST=language/list_test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11447 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 14:22:31 +00:00
scheglov@google.com 6ef7aa818d Issue 3904. Allow using class literal in expressions
http://code.google.com/p/dart/issues/detail?id=3904

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11440 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 13:16:21 +00:00
whesse@google.com 4789857341 Remove List.copyFrom from VM and from tests. It was removed from the List interface in r941.
BUG=dart:1953

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11437 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 12:06:45 +00:00
ngeoffray@google.com b32a0c9e68 Change how runtime type information is being set in the backend.
Review URL: https://chromiumcodereview.appspot.com//10888003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11436 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 10:59:53 +00:00
scheglov@google.com 618ff29a6d Issue 4713. Support for 'static const' field in interfaces
http://code.google.com/p/dart/issues/detail?id=4713

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11409 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 19:51:17 +00:00
ngeoffray@google.com f2f8b36de2 Static and top-level methods can be compile time constants.
Review URL: https://chromiumcodereview.appspot.com//10872059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11387 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 14:25:11 +00:00
aprelev@gmail.com 1bca4e07d5 Fixed tests so they do indeed confirm that values on optional named parameters are not allowed. Added check to the dart2js parser, so that setting values on optional named parameters is flagged as error. Tests pass.
BUG=dart:351
TEST=

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11364 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-26 02:34:46 +00:00
aprelev@gmail.com 246f60a05f Fixed tests so they do indeed confirm that values on optional named parameters are not allowed. Added check to the dart2js parser, so that setting values on optional named parameters is flagged as error. Tests pass.
BUG=dart:351
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11363 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-26 02:07:03 +00:00
aprelev@gmail.com 71eb730149 Fixed whitespace
dart-3988: fix for class members cannot have the same name as the class in dart2js.

BUG=dart-3988
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11362 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-26 01:20:26 +00:00
iposva@google.com 79c8a0dd60 - Update test status after rename.
Review URL: https://chromiumcodereview.appspot.com//10872071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11353 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 22:57:32 +00:00
iposva@google.com 161c6ba9bb - Update test status after rename.
Review URL: https://chromiumcodereview.appspot.com//10870086

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11352 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 22:51:43 +00:00
iposva@google.com fedcff55ed - Change "static final" to "static const" in the tests/ directory.
Review URL: https://chromiumcodereview.appspot.com//10871071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11350 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 22:21:20 +00:00
ngeoffray@google.com 64df7e49ba Support non-const instance field initializers.
Review URL: https://chromiumcodereview.appspot.com//10873033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11305 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 13:04:29 +00:00
ahe@google.com 785ff37496 Update dart2dart status after supporting abstract getters
Review URL: https://chromiumcodereview.appspot.com//10869045

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11294 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 08:39:24 +00:00
ahe@google.com a22ed2cf6b Support abstract getters without parameters.
Review URL: https://chromiumcodereview.appspot.com//10880040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11293 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 08:26:17 +00:00
ricow@google.com 5871d1e68d Update status file to use mac instead of macos.
Emily: why do we have these skip exceptions anyway, imho they don't make any sense at all (who has ie on linux or mac?). If there is no deeper meaning we should delete them.
Review URL: https://chromiumcodereview.appspot.com//10877010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11287 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 07:01:09 +00:00
ahe@google.com 52d2cb4431 Record literal list type arguments and report errors when there are too many.
Review URL: https://chromiumcodereview.appspot.com//10880026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11286 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 05:09:43 +00:00
efortuna@google.com dd23afbee3 Fix additional IE test statuses after NSME change.
Review URL: https://chromiumcodereview.appspot.com//10869034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11271 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 22:55:55 +00:00
ahe@google.com 65d3da757e Revert r10075, I'll follow up with a different solution.
Review URL: https://chromiumcodereview.appspot.com//10879039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11236 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 15:17:46 +00:00
ngeoffray@google.com 454bf5963d Inlining of static functions: applying Florian's CL.
Review URL: https://chromiumcodereview.appspot.com//10873025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11226 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 13:01:14 +00:00
ngeoffray@google.com 40c7c84d67 Fix bug 4648: invalidate type parameter optimization on a method if a call with a selector that has different number of arguments occur.
Review URL: https://chromiumcodereview.appspot.com//10870035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11224 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 12:31:56 +00:00
karlklose@google.com 6876052c30 Throw a NoSuchMethodException when attempting to call an undefined constructor.
R=ngeoffray@google.com
BUG=3802

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11220 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 11:19:27 +00:00
johnniwinther@google.com 7c61b110d8 Const variables handled as final
Review URL: https://chromiumcodereview.appspot.com//10879003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11170 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 16:15:15 +00:00
johnniwinther@google.com 5e1e9a888d Status change: Dartc fails on static const in interfaces
Review URL: https://chromiumcodereview.appspot.com//10867013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11169 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 16:02:00 +00:00
johnniwinther@google.com f41a4ffac6 Language tests updated to use const instead of final.
Review URL: https://chromiumcodereview.appspot.com//10837359

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11165 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 15:36:19 +00:00
ager@google.com d10e73e5bd Add library tag to test to make it work in Dartium.
R=antonm@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11157 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 14:52:26 +00:00