Commit Graph

3219 Commits

Author SHA1 Message Date
ngeoffray@google.com 7cf521d539 Track argument types, and remove obsolete code that also used to track it.
Review URL: https://codereview.chromium.org//12781005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20156 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-18 13:05:49 +00:00
lrn@google.com 846795b170 Expect test to fail in unchecked mode as well.
Review URL: https://codereview.chromium.org//12886002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20065 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 09:39:02 +00:00
lrn@google.com 844cd39fad Change getRange to sublist. Make getRange deprecated.
This changes the exception behavior of getRange. It used to accept
a length of zero, no matter what start value. Now the start value
must be a valid list index.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20064 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 09:15:39 +00:00
erikcorry@google.com 2a857debea dart2js: Create noSuchMethod handlers at runtime to reduce overhead.
This reduces the overhead for using noSuchMethod from over 10% to around 2%.
Following this change the original source names are not present when
minifying.  This means you get the minified name in the methodName property
on InvocationMirror objects.

R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20005 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 11:49:13 +00:00
lrn@google.com 5768211906 Make Set.containsAll accept Iterable. Deprecate Set.isSubsetOf.
This is a recommit of the earlier reverted CL with updated test expectations.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19993 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 09:32:30 +00:00
ager@google.com 255f4e4ce4 "Reverting 19985"
R=lrn@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19986 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 07:47:37 +00:00
lrn@google.com 067a55370a Deprecate Set.isSubsetOf, make Set.containsAll accept iterable.
Review URL: https://codereview.chromium.org//12838002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19985 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 07:12:16 +00:00
lrn@google.com 45f3654416 Update analyzer co19 expectations for Set methods.
Review URL: https://codereview.chromium.org//12570014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19931 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 14:05:38 +00:00
lrn@google.com e5fce3ada6 Fix co19 expectations for Set methods.
Review URL: https://codereview.chromium.org//12534008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19929 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 13:56:05 +00:00
scheglov@google.com 8f5487dee5 Fix warning work arounded in 12787002.
https://codereview.chromium.org/12787002/

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19895 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 20:52:51 +00:00
karlklose@google.com f26923886b Read type argument from local in constructor.
BUG=dartbug.com/9076

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19866 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 13:55:11 +00:00
karlklose@google.com 0d83ce2000 Mark test as failing in unchecked mode.
Review URL: https://codereview.chromium.org//12779004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19859 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 12:18:48 +00:00
karlklose@google.com cee21aae21 Support type variables as expressions.
BUG=dartbug.com/6248

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19850 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 11:21:21 +00:00
aprelev@gmail.com 16cabfa936 Support optional function expression parameters in dart2js... and dart2dart.
BUG=dartbug.com/4597

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19849 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 11:10:22 +00:00
aprelev@gmail.com e6960b6bca Revert "Support optional function expression parameters in dart2js."
This reverts r19832.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19835 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 01:46:08 +00:00
aprelev@gmail.com 8511a595dc Support optional function expression parameters in dart2js.
BUG=dartbug.com/4597

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19832 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 00:41:25 +00:00
floitsch@google.com cead1d41f1 ceil/floor/truncate/round return integers.
This CL supercedes https://codereview.chromium.org/11748016/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19810 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 18:54:37 +00:00
floitsch@google.com dd48256fe5 Remove deprecated StringBuffer.add, addAll and addCharCode.
Review URL: https://codereview.chromium.org//12473003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19690 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 13:07:18 +00:00
karlklose@google.com 6be9aa29af Fix dart2dart test expectations.
TBR=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19673 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 09:44:56 +00:00
karlklose@google.com c112866c95 Emit compile time error on static non-members.
BUG=dartbug.com/1018

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19671 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 09:15:11 +00:00
floitsch@google.com f81892acd6 Update status file.
Review URL: https://codereview.chromium.org//12459013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19628 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 14:15:41 +00:00
floitsch@google.com 9b6ed5ca9e Update status file.
Review URL: https://codereview.chromium.org//12566005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19625 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 13:59:24 +00:00
floitsch@google.com cb7ddea1a1 Fix status file.
Review URL: https://codereview.chromium.org//12457009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19624 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 13:50:15 +00:00
floitsch@google.com a0b4850a43 Remove deprecated Date class.
Review URL: https://codereview.chromium.org//12542003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19617 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 12:38:20 +00:00
kasperl@google.com bbef1d5fb6 Add intersection of disjoint masks to the TypeMask implementation.
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19614 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 12:20:30 +00:00
johnniwinther@google.com 100689fbd2 Mark co19 test as flaky for ie9
Review URL: https://codereview.chromium.org//12525008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19549 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 11:34:02 +00:00
johnniwinther@google.com 9a055f3444 Handle void correctly in function subtyping.
- and fix hashCode.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19547 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 10:45:42 +00:00
johnniwinther@google.com 787213e633 Add type presentation for function types.
Review URL: https://codereview.chromium.org//12393039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19540 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 08:52:15 +00:00
kustermann@google.com 7785b50a00 Fixed co19-dart2js status file
Review URL: https://codereview.chromium.org//12447002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19475 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 13:11:59 +00:00
kustermann@google.com 61d877a039 Status file updates for failing tests after enabling co19 on IE9
Review URL: https://codereview.chromium.org//12431006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19471 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 12:41:45 +00:00
kustermann@google.com b0306b8bd2 Don't run co19 on DumpRenderTree
Review URL: https://codereview.chromium.org//12441002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19467 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 12:09:52 +00:00
kustermann@google.com edbb9f92a9 Fixed missing $ in status file update
Review URL: https://codereview.chromium.org//12437003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19461 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 11:07:02 +00:00
kustermann@google.com 9d93fd69f2 Increase test coverage on ie9
Review URL: https://codereview.chromium.org//11958041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19460 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 11:02:06 +00:00
ngeoffray@google.com 905de7ac32 Implement complex super assignment.
Review URL: https://codereview.chromium.org//12374094

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19452 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 09:29:04 +00:00
aprelev@gmail.com c208147566 Mark tests/co19/LibTest/math/exp_A01_t01 Fail, OK due to co19 issue 44 for Windows platform.
Review URL: https://codereview.chromium.org//12386079

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19447 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 01:45:06 +00:00
floitsch@google.com 1a05d91101 Update status file.
Review URL: https://codereview.chromium.org//12377079

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19393 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 15:40:07 +00:00
floitsch@google.com bfc651265a Update co19 status.
Review URL: https://codereview.chromium.org//12378072

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19392 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 15:23:43 +00:00
lrn@google.com f4300b84a2 Make List.from and Iterable.toList default to not growable.
Review URL: https://codereview.chromium.org//12401002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19391 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 14:55:40 +00:00
aprelev@gmail.com 1bca3a0da0 Removed Dynamic keyword support from dart2js.
BUG=dartbug.com/7815

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19353 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-02 03:26:07 +00:00
floitsch@google.com 9722e27876 Remove deprecated IllegalJSRegExpException class.
Review URL: https://codereview.chromium.org//12317130

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19297 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 12:14:45 +00:00
hausner@google.com 34cebe18cb Libraries: update VM to current spec
- Exports allowed in script files
- library name is optional
- delete meaningless test, file co19 bugs
Review URL: https://codereview.chromium.org//12382026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19258 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-28 21:17:47 +00:00
karlklose@google.com 5923bf1ce9 Implement is-checks against type variables.
Review URL: https://codereview.chromium.org//12210142

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19216 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-28 12:23:17 +00:00
floitsch@google.com 6005680a99 Rewrite co19 status files, so that error-lines have comments at end.
Review URL: https://codereview.chromium.org//12310143

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19135 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 13:33:16 +00:00
lrn@google.com cea269dca8 Make List.from default to not growable.
Review URL: https://codereview.chromium.org//12335131

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19130 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 13:09:11 +00:00
lrn@google.com 6b4f4b1bab Change new List(n) to return fixed length list.
Deprecate List.fixedLength, add List.filled.

Make Iterable.toList and List.from take "growable" argument,
defaulting to false.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19112 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 08:45:04 +00:00
ngeoffray@google.com 6ce5151888 Small cleanups in RegExp to avoid generating lots of code just because there is a try/catch in our RegExp implementation.
Review URL: https://codereview.chromium.org//12310103

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19037 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-26 11:54:56 +00:00
lrn@google.com e750ada901 Add test exceptions to dartc for removed deprecated string members.
Fix build.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18963 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-25 11:48:58 +00:00
lrn@google.com 3c0ac360e7 Remove deprecated string features.
Make String.codeUnits return a List.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18960 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-25 10:48:09 +00:00
sgjesse@google.com 25a5f0eacd Update status file
Test have started passing since r18818

R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18833 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-21 14:04:51 +00:00
ngeoffray@google.com 1ef7c2ae44 Make an erroneous element when setting a final field.
Review URL: https://codereview.chromium.org//12326041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18819 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-21 11:35:45 +00:00