Commit Graph

641 Commits

Author SHA1 Message Date
lrn@google.com ff1d105a0f Remove deprecated 'str' getter on Match.
BUG= http://dartbug.com/12843
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29167 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 12:06:41 +00:00
ngeoffray@google.com 581fa005f9 Faster JSNumber:toInt.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29162 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 08:44:32 +00:00
lrn@google.com b8a3d75996 Add isFinite getter to num.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29067 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 10:21:13 +00:00
kevmoo@j832.com cf134382a1 Set.add returns true if item has been added, otherwise false
BUG= https://code.google.com/p/dart/issues/detail?id=3546
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28863 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 17:24:24 +00:00
iposva@google.com 1860fdef11 - Update status file for dart2dart failure.
Review URL: https://codereview.chromium.org//27623005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28836 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 23:21:12 +00:00
iposva@google.com 210198bc24 - Fix status files for main(args) in Dartium.
Review URL: https://codereview.chromium.org/27731004



git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28834 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 23:07:43 +00:00
iposva@google.com 736d03406e - Add the ability to pass the command line options as an argument to main.
R=asiva@google.com, floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28829 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 21:59:46 +00:00
floitsch@google.com 2e7f55b3ce Revert set_to_string_test too.
Review URL: https://codereview.chromium.org//27040002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28522 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 16:03:30 +00:00
floitsch@google.com 005ac979ee Revert toString output changes of Queues, and LinkedLists.
Review URL: https://codereview.chromium.org//27028003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28520 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 15:40:50 +00:00
lrn@google.com 36d28b3f98 Change the toString method of IterableBase/IterableMixin to show some elements.
It always shows at least the first three and last two elements, unless the
iterable has more than 100 elements, in which case it's considered endless.
If there are room for more elements, within some limits, they are also included.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28504 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 10:56:17 +00:00
lrn@google.com 04c230b114 Add Set.lookup method to get the instance in the set.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28499 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 07:16:20 +00:00
lrn@google.com e3713a08d4 Make List.shuffle take an optional Random object to use.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28305 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-07 12:07:30 +00:00
scheglov@google.com 59fd8f58c8 New analyzer_experimental snapshot.
1. "catch (Exception e)" is translated into "on JavaException catch (e)".
2. Java exceptions now extend JavaException.
3. MemberMap moved into resolver, because it is not a generic collection and has references to elements.

R=brianwilkerson@google.com, jwren@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28296 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-06 05:11:15 +00:00
rmacnak@google.com b56528fd99 Make the implementations of InstanceMirror.hashCode use dart:core's identityHashCode.
R=ahe@google.com, lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28229 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 16:38:19 +00:00
floitsch@google.com c542047285 Update status file.
Review URL: https://codereview.chromium.org//25859003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28223 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 15:47:07 +00:00
lrn@google.com 55a8a72ca6 Add List.shuffle().
Will add tests too.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28206 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 11:09:01 +00:00
scheglov@google.com 7bff9958bf 'const' instance creation with incompatible argument types is statis warning.
R=brianwilkerson@google.com, jwren@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28126 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 22:08:04 +00:00
ricow@google.com 4eba8e5c88 Remove flaky markers for v8 bug - this has already been fixed by a v8 roll
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27931 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 06:47:20 +00:00
kasperl@google.com 8eab6f1e7e Manually enqueue compareTo, hashCode, ==, and toString in the Dart-to-Dart backend to avoid tree shaking these methods out. They may be invoked by the VM core libraries.
R=ngeoffray@google.com
BUG=http://dartbug.com/11099

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27927 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 05:12:33 +00:00
sgjesse@google.com 415d53b557 Add property base to the Uri class
Uri.base returns the natural base URI for the current platform.

R=ahe@google.com, floitsch@google.com, iposva@google.com, rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27877 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 13:52:15 +00:00
kustermann@google.com dfbf264f40 Automatically converted general Fail status file markers to one of the more specific markers
R=johnniwinther@google.com, ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27876 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 12:47:03 +00:00
lrn@google.com cad438b73b Make VM Expando use identityHashCode instead of object's hashCode.
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27873 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 10:47:35 +00:00
lrn@google.com 12c9510193 Update implementations to use Object.identityHashCode for identity map/set
Update map/set constructors to have an .identity() constructor as well.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27869 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 09:43:43 +00:00
lrn@google.com c03e58cd99 Add Object.hashCodeOf to get the default hashCode of an object.
BUG= http://dartbug.com/13404
R=floitsch@google.com, iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27865 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 08:15:41 +00:00
lrn@google.com 6d49d9f1ac Reapply "Convert HashSet, LinkedHashSet to factory methods and custom implementations."
R=floitsch@google.com, fschneider@google.com, kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27610 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-18 11:36:25 +00:00
kasperl@google.com f77e810f81 First attempt at fixing the status file for chrome-on-android.
R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27601 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-18 09:56:33 +00:00
ngeoffray@google.com 823293ae72 We can only use JavaScript's String.split and String.+ if both inputs are Strings.
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27557 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-17 10:28:55 +00:00
sgjesse@google.com 207265bcf0 Add another URI resolve test
R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27518 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-16 10:57:01 +00:00
ajohnsen@google.com eeefb3ec90 Return the correct port from Uri, when port is 0 and scheme is either http or https.
Also, always perform to-lower-case of scheme, as recommended by the
spec.

BUG=https://code.google.com/p/dart/issues/detail?id=13129
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27431 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-12 13:27:59 +00:00
lrn@google.com 18362b2cf4 Revert "Convert HashSet, LinkedHashSet to factory methods and custom implementations."
Triggers an error in html tests on dartium.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27392 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 16:19:45 +00:00
ajohnsen@google.com 071c5a1ee8 Accept IPv6 addresses in Uri.http and Uri.https, and correctly nest IPv6 addresses in '[' and ']'.
BUG= http://dartbug.com/13130
BUG= http://dartbug.com/13131
BUG= http://dartbug.com/13132
R=floitsch@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27381 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 13:22:31 +00:00
lrn@google.com c5bb6f7b15 Convert HashSet, LinkedHashSet to factory methods and custom implementations.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27378 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 12:35:57 +00:00
lrn@google.com 0f1e912d9d Reapply "Make LinkedHashMap also have a factory constructor and be customizable""
The change was reverted due to failing Dartium tests that were not easily handelable on a Friday afternoon.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27284 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-09 10:49:32 +00:00
sra@google.com ce4b15c0e9 Esoteric bit operations.
- bit length
- truncate to signed fixed width integer
- truncate to unsigned fixed width integer

This change is motivated by a program that spends 20-30% of its time here:
    // TODO(5828): Replace this with a bit-length method on int when available.
    int n_bitLength = this.n.toRadixString(2).length;

See Also
https://code.google.com/p/dart/issues/detail?id=5828#c3
https://code.google.com/p/dart/issues/detail?id=6486#c2
https://code.google.com/p/dart/issues/detail?id=5798#c5
https://code.google.com/p/dart/issues/detail?id=12008

R=lrn@google.com, srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27269 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-06 22:22:26 +00:00
lrn@google.com 761f55b1b9 Revert "Make LinkedHashMap also have a factory constructor and be customizable"
Dartium expectations expects "LinkedHashMap" and gets "_LinkedHashMap".

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27250 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-06 14:29:04 +00:00
lrn@google.com 64359158ab Make LinkedHashMap also have a factory constructor and be customizable
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27246 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-06 13:01:54 +00:00
lrn@google.com 5d8f2cad4e Reapply "Add custom equals and hashCode for HashMap implementation."
Review URL: https://codereview.chromium.org//23493017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27179 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 08:29:26 +00:00
lrn@google.com c288d7c951 Revert "Add custom equals and hashCode for HashMap implementation."
Review URL: https://codereview.chromium.org//23883003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27111 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 11:17:15 +00:00
lrn@google.com 76c0e79ff6 Add custom equals and hashCode for HashMap implementation.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27106 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 09:42:21 +00:00
kustermann@google.com f6ab02857e test.py: Fixed incorrect handling of multitest in status files, status file cleanups.
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27013 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-02 14:04:59 +00:00
lrn@google.com 53dc9ba034 Change the field and constructor parameter types of NoSuchMethodError to Symbol.
The NSME uses strings for names. It should use symbols.

This change modifies the VM libraries only enough to make the signature change
not crash. It will probably need cleanup to ensure that symbols are passed
to the internal constructor directly, instead of strings that have to be
converted.

(Also fixes a type error in Map.fromIterable that was hit by the code).

BUG= http://dartbug.com/11190
R=ahe@google.com, regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26985 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-02 05:57:49 +00:00
sra@google.com 39f1574318 Fix for Issue 12833
Eliminate limit on size for bignum multiply by storing extra overflow bits for column sums.

R=floitsch@google.com, iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26962 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-31 00:14:53 +00:00
kustermann@google.com 7c2d27bb13 Add again the *necessary* timeout markers for tests running on ie9/ie10
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26930 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 17:32:42 +00:00
kustermann@google.com 4d7311f14b Remove Timeout entries in status files for ie9/ie10
After reducing the load on our IE builders, we hopefully no longer see these
random timeouts.

R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26912 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 13:39:05 +00:00
lrn@google.com 788c569e9c Convert HashMap and LinkedHashMap to closed addressing hash tables.
R=regis@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26863 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-29 12:13:32 +00:00
floitsch@google.com 74da0c7286 Remove usage of dart:json.
R=jmesserly@google.com, lrn@google.com, nweiz@google.com, rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26789 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 14:05:11 +00:00
ricow@google.com bc8ad29953 Add timeout suppression for corelib/collection_length_test on IE
Filed issue 12844

R=kustermann@google.com, ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26779 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 11:12:26 +00:00
floitsch@google.com 1887b5ca49 Some more removals of dart:utf.
R=jmesserly@google.com, lrn@google.com, nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26712 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 13:18:34 +00:00
lrn@google.com 0fa1bbdf15 Reapply "Make Map constructors return LinkedHashMap."
Updated tests assuming a specific ordering of an unlinked hash map
to not be daft.

R=floitsch@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26693 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 08:43:46 +00:00
sgjesse@google.com cda03252f6 Change the type of the pathSegments argument to the Uri constructor from List to Iterable
R=lrn@google.com
BUG=http://dartbug/11342

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26649 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 14:25:25 +00:00