Commit Graph

418 Commits

Author SHA1 Message Date
lrn@google.com ecbf4478c2 Reapply "New implementation of {,Linked}Hash{Set,Map}."
Review URL: https://codereview.chromium.org//12212211

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18573 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:07:22 +00:00
lrn@google.com b7f36d0d11 Make List.skip, List.take and List.reversed return Iterables, not Lists.
Removes ListView. It was premature optimization to have classes that combined any sequence of reverse, skip and take instead of just wrapping iterables.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18570 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 10:43:21 +00:00
lrn@google.com c3e2eace1e Revert "Reapply "New implementation of {,Linked}Hash{Set,Map}.""
Breaks pub, which apparently contains concurrent modifications of a
HashMap.

Spurious error in:
 pkg/analyzer-experimental/test/generated/ast_test/test_literal_map
Seems to be an error in the analyzer.

TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18569 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 10:06:49 +00:00
lrn@google.com 9d8aca9e45 Reapply "New implementation of {,Linked}Hash{Set,Map}."
Review URL: https://codereview.chromium.org//12254006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18566 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 09:18:36 +00:00
floitsch@google.com adb99d0107 Deprecate comparison operators of DateTime.
Review URL: https://codereview.chromium.org//12221094

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18543 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 22:00:36 +00:00
lrn@google.com dd31afbeca Added implementation of String.codeUnits.
Based on ListIterable implementation that should be reusable for a lot
of our existing length/indexing-based iterables too.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18506 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 09:51:43 +00:00
lrn@google.com 6e0d6462ce Revert "New implementation of {,Linked}Hash{Set,Map}."
Triggers assertion in VM debug mode.
Seems to have some bug or difference that affects dart2dart.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18442 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 12:40:12 +00:00
lrn@google.com 6ad0b78818 New implementation of {,Linked}Hash{Set,Map}.
Accepts null keys/entries.
Much faster LinkedHashMap, faster HashSet, slight penalty on HashMap,
possibly due to accepting null keys.
Performance difference depends on table size.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18437 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 09:51:50 +00:00
lrn@google.com 3520e88c04 Bi-directional iterator for runes of a string.
Review URL: https://codereview.chromium.org//12094056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18382 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-12 15:22:31 +00:00
lrn@google.com 632da9e212 Fix bug in ListQueue.from.
BUG=http://dartbug.com/8484

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18380 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-12 13:40:35 +00:00
floitsch@google.com 070a88d4f1 Fix List.map.join with no separator.
Review URL: https://codereview.chromium.org//12226099

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18345 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 22:32:57 +00:00
lrn@google.com 748142250c Fix bug in test caught by analyzer.
Review URL: https://codereview.chromium.org//12209092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18310 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 16:41:32 +00:00
lrn@google.com 2a1710e121 Add ListQueue and make it the default Queue.
ListQueue has a very low overhead for operations (low memory overhead, better memory locality) compared to a double-linked list solution, but at the cost of only amortized constant time adding.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18309 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 15:04:39 +00:00
floitsch@google.com b0e4f4e168 Add +, -, * and comparison operators to Duration.
Review URL: https://codereview.chromium.org//12221087

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18296 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-09 02:09:15 +00:00
floitsch@google.com caa7fe236d Add Stopwatch.isRunning.
BUG= http://dartbug.com/8393

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18241 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-08 10:45:16 +00:00
floitsch@google.com e1efa71761 Hide collection-dev library.
Committed: https://code.google.com/p/dart/source/detail?r=18167
Reverted: https://code.google.com/p/dart/source/detail?r=18169

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18172 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-06 15:11:47 +00:00
floitsch@google.com 8762c41590 Revert "Hide collection-dev library."
This reverts commit 18167.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18169 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-06 13:08:29 +00:00
floitsch@google.com 2a56791380 Hide collection-dev library.
Review URL: https://codereview.chromium.org//11938036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18167 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-06 12:43:07 +00:00
lrn@google.com 2a7fb1c733 Added expand method to iterables.
Review URL: https://codereview.chromium.org//12188011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18123 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 09:48:05 +00:00
lrn@google.com 9b23dff467 Reapply "Rename mappedBy to map."
This reverts commit r17907.

TBR.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17918 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 15:12:56 +00:00
floitsch@google.com b1a118d5ce Revert "Rename mappedBy to map."
This reverts commit 17899.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17907 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 14:02:27 +00:00
lrn@google.com 0dc2f4b1ba Rename mappedBy to map.
Retain a deprecated mappedBy for now.
Change return type of mappedBy, skip and take on List to Iterable.

BUG= http://dartbug.com/8063
BUG= http://dartbug.com/8064
BUG= http://dartbug.com/6739
BUG= http://dartbug.com/7982

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17899 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 12:37:13 +00:00
floitsch@google.com e024c74a5f Remove List.filled constructor.
Review URL: https://codereview.chromium.org//12041019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17871 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 20:10:27 +00:00
floitsch@google.com 9c727e9467 List.mappedBy/skip/take returns a List.
BUG: http://dartbug.com/8063
BUG: http://dartbug.com/8064

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17581 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 17:05:18 +00:00
floitsch@google.com 3801ef756b Fix bad date-time test.
Review URL: https://codereview.chromium.org//12051060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17553 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 12:44:12 +00:00
floitsch@google.com 6cc34487ad Change new DateTime.fromString to DateTime.parse.
Review URL: https://codereview.chromium.org//12047046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17550 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 12:20:39 +00:00
floitsch@google.com fb7b9e3c5c Rename Date to DateTime.
BUG=http://dartbug.com/1424

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17549 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 12:16:37 +00:00
lrn@google.com 09051ebf15 Fix bugs in GrowableList.remove*.
Add generic removeMatchingList functionality in IterableMixinWorkaround.

BUG=http://dartbug.com/8018, http://dartbug.com/8075

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17534 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 10:34:45 +00:00
lrn@google.com bcdd200647 Make ListIterator throw if the underlying list's length changes.
Review URL: https://codereview.chromium.org//12040018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17521 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 07:07:25 +00:00
iposva@google.com 57f62dd2e1 - Make sure we can "run" all tests using simarm/simmips.
Review URL: https://codereview.chromium.org//12042065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17516 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 00:42:04 +00:00
lrn@google.com 16795f22d1 Add List.reversed to give a reverse fixed-length view of a list.
Review URL: https://codereview.chromium.org//11896013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17402 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 14:56:45 +00:00
floitsch@google.com 1febeb689a Move some core classes to collection library.
Review URL: https://codereview.chromium.org//11867024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17352 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-21 13:34:02 +00:00
floitsch@google.com e123ae0f3d Undo bad change in Maps class. Fix test.
Review URL: https://codereview.chromium.org//12016014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17260 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 11:44:06 +00:00
floitsch@google.com 6dcfe3ca41 Create IterableMixinWorkaround and move most of the Collections methods there.
Committed: https://code.google.com/p/dart/source/detail?r=17207
Reverted: https://code.google.com/p/dart/source/detail?r=17210

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17213 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 14:36:40 +00:00
floitsch@google.com 7ca573ae90 Revert "Create IterableMixinWorkaround and move most of the Collections methods there."
This reverts commit 17207.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17210 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 14:19:47 +00:00
floitsch@google.com e0459f6d6e Create IterableMixinWorkaround and move most of the Collections methods there.
Review URL: https://codereview.chromium.org//11971016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17207 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 14:01:52 +00:00
ngeoffray@google.com ed8ab38e5c Fix crash due to wrong position of an optional parameter in a stub method of an interceptor class.
Review URL: https://codereview.chromium.org//11826049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16916 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 11:56:34 +00:00
kustermann@google.com 73250f819f Status file update: corelib/reg_exp_all_matches_test is passing now
Review URL: https://codereview.chromium.org//11827018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16838 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 09:14:33 +00:00
iposva@google.com 2d8c51d0f4 Fix bug 5511:
- null must support hashCode.
Review URL: https://codereview.chromium.org//11819014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16827 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 23:58:55 +00:00
ahe@google.com 6b11e3ec5a More cuddling dart2js checked mode.
Review URL: https://codereview.chromium.org//11773043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16801 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 14:37:58 +00:00
vsm@google.com 52f5c2ff22 Test fixes for dartium
Review URL: https://codereview.chromium.org//11778030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16769 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 23:47:37 +00:00
floitsch@google.com 0204cd5c80 Update status file, so the dart2js lines also apply for browser tests.
Review URL: https://codereview.chromium.org//11773034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16765 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 23:19:45 +00:00
floitsch@google.com 4319560f5c Update corelib.status for drt.
Review URL: https://codereview.chromium.org//11806002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16739 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 19:34:16 +00:00
floitsch@google.com c42db7efa1 Update status file for drt corelib.
Review URL: https://codereview.chromium.org//11801020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16738 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 19:27:16 +00:00
ager@google.com 10a3642727 Mark broken future test as failing on VM.
There is already a bug report for this. It looks like a high priority
that the new future behavior is correctly tested.

R=lrn@google.com,ajohnsen@google.com,floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16700 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 14:48:44 +00:00
lrn@google.com 2b2de751a7 Fixed status files for dart2js corelib/lib/language tests.
Moved two tests to lib/async where they belong.

R=floitsch@google.com
CC=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16699 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 14:15:29 +00:00
karlklose@google.com 126820a65f Mark tests that use Timer as failing on dart2js.
There is no implementation for Timer in JavaScript.

R=floitsch@google.com
BUG=dartbug.com/7728

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16697 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 13:39:09 +00:00
floitsch@google.com 4a7dfd2da3 Big merge from experimental to bleeding edge.
Review URL: https://codereview.chromium.org//11783009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
bak@google.com 6c398a3a25 Fixed Issue 7508: Many StringBuffer methods return StringBuffer, but should be void.
- Methods in StringBuffer have now been changed so they do not return this.
- This forces the programmer to use cascaded calls instead of flaky chaining of calls.
Review URL: https://codereview.chromium.org//11645019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16358 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 11:13:27 +00:00
regis@google.com 849585ef7c Implement Function.apply in vm (issue 5670).
Fix a closure parameter count check bug (unveiled by an apply test).
Review URL: https://codereview.chromium.org//11564029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16175 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 19:04:01 +00:00