Commit Graph

1365 Commits

Author SHA1 Message Date
paulberry@google.com 57e88b8e02 Disable new from_environment tests on Dartium and dart2dart.
fromEnvironment doesn't appear to work on these platforms yet.

TBR=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41271 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-23 20:24:10 +00:00
paulberry@google.com b35aef796c Fix type of String.fromEnvironment() when the name is undefined.
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41269 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-23 19:35:53 +00:00
lrn@google.com cd16d94f1e Add concurrent modification check to ListMixin/IterableMixin.reduce.
Add tests of reduce and fold.

BUG= http://dartbug.com/21289
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41093 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-14 09:12:21 +00:00
regis@google.com 48439b139d Split bigint test into several tests.
Add bigint tests with --no_intrinsify.

R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41008 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-09 09:42:35 +00:00
lrn@google.com 3a26858a99 Document DateTime.parse accepted format.
Mention in toString and toIso8601String that the output can be
put back into parse.

Change description of format to match the corresponding format letters
used by package:intl.

BUG= http://dartbug.com/21226
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40919 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-06 10:13:54 +00:00
lrn@google.com d8a2043098 Fix wrong limit on list index in double.parse.
Review URL: https://codereview.chromium.org//623073002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40892 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-03 07:03:45 +00:00
lrn@google.com 3192c983bf Dart version of double.parse that works for numbers that can be represented exactly as doubles.
BUG= http://dartbug.com/17711
R=vegorov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40891 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-03 06:01:44 +00:00
rmacnak@google.com a8e5ad20a5 Don't crash when generating error messages with malformed strings.
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40829 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-01 00:49:36 +00:00
lrn@google.com 28937c86ae Optimize _GrowableArray._join and _StringBase._interpolate.
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40800 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-30 08:28:00 +00:00
lrn@google.com 2ef0e0b993 Fix bad call of RangeError.value in String.fromCharCodes.
Review URL: https://codereview.chromium.org//608213002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40760 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-29 09:33:08 +00:00
lrn@google.com de514055bf Change restrictions on start/end on String.fromCharCodes.
Must now be 0 <= start <= end <= iterable.length.

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40755 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-29 08:15:49 +00:00
lrn@google.com 4d3fc514a2 Mark some bigint tests failing in dart2js.
Also some JS implementations don't consider U+0085 whitespace.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40710 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-26 14:15:27 +00:00
lrn@google.com d57732d359 Optimize int.parse with a radix.
Handles bignums by parsing chunks of of digits into smis, then
combining the smi into a (potential) bignum, using smi arithmetic as
much as possible.
Use the optimized version for radix 10 and 16 too, instead of going to runtime.

R=fschneider@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40703 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-26 12:13:47 +00:00
lrn@google.com 15ad26af35 Optimize int.parse with a radix.
Handles bignums by parsing chunks of of digits into smis, then
combining the smi into a (potential) bignum, using smi arithmetic as
much as possible.
Use the optimized version for radix 10 and 16 too, instead of going to runtime.

R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40702 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-26 12:04:43 +00:00
lrn@google.com 8bba32d131 Make String.fromCharCodes take start/end.
This avoids having to make a sublist of a list of character codes before passing it to String.fromCharCodes.

    new String.fromCharCodes(codes.sublist(start, end))

becomes just

    new String.fromCharCodes(codes, start, end)

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40672 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-25 10:45:24 +00:00
ricow@google.com df319447f1 Remove suppressions for ie9
R=blois@google.com, whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40201 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-12 06:01:14 +00:00
regis@google.com 7bdc60aa36 Resurrect tests from deleted bigint_operations_test.cc into new bigint_test.cc
and into existing big_integer_vm_test.dart.
Fix a rounding error allocating digit array in Bigint::NewFromDecCString.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40188 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-11 22:34:02 +00:00
regis@google.com 9ff3cd3342 Fix wrong conversion from double to bigint in overriden operators of new bigint.
Fix ambiguous call to pow on Windows.
Fix big_integer_vm_test to use numbers large enough to actually be bigint.
Re-enable dart2js tests.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40122 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-10 22:26:59 +00:00
whesse@google.com 70d251049f Update status for mips big_integer_vm test.
BUG=dartbug.com/20879
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40084 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-10 09:35:24 +00:00
regis@google.com 838a6d5850 Temporarily disable timing out test on simarm64 as well.
Review URL: https://codereview.chromium.org//555393002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40076 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-10 01:41:45 +00:00
regis@google.com 7aee1b3113 Temporarily disable test timing out on simulators until new bigint gets
optimized.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40069 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-09 23:16:23 +00:00
lrn@google.com 7716b93374 Fix Uri.replace adding an empty authority by mistake.
BUG= http://dartbug.com/20814
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40020 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-09 10:50:36 +00:00
iposva@google.com 92f2698abe - Refactor the way X.fromEnvironment is implemented.
- Predefine 'dart.isVM' to be 'true'.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39986 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-08 18:23:05 +00:00
ajohnsen@google.com bcb3bc93a0 Fix scheme's toLowerCase detection.
BUG=
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39846 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-04 06:34:35 +00:00
lrn@google.com 2cfebb4da4 Fix bugs in growble_list_test.
Forgot to remove type parameters.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39582 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-27 08:35:19 +00:00
lrn@google.com 7947f84054 Optimize List.toList/.sublist and List.from on lists.
R=fschneider@google.com, srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39579 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-27 08:00:48 +00:00
lrn@google.com 29ad62131d Add optional startIndex to String.replaceFirst
BUG= https://code.google.com/p/dart/issues/detail?id=3194
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39490 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-22 11:27:32 +00:00
whesse@google.com 443c06cccd Update test status for Android ContentShell
BUG=dartbug.com/20525,dartbug.com/20524

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39252 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-14 16:23:34 +00:00
lrn@google.com 7b516974b2 Add optional start index to Pattern.allMatches.
This is a non-breaking change.
Very few classes implement Pattern, so it's also a mostly non-intrusive change.

If we add startIndex to other methods, like replaceFirstMatch, we can use the extra parameter only for non-zero start indices without breaking existing code.

R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39119 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-12 07:13:01 +00:00
lrn@google.com c30a903949 Change DateTime.parse FormatException messages; update tests
BUG= https://code.google.com/p/dart/issues/detail?id=17753
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38974 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 09:41:44 +00:00
lrn@google.com fd210546f9 Adding Duration documentation, abs(), and isNegative()
BUG= https://code.google.com/p/dart/issues/detail?id=9789
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38973 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 09:40:38 +00:00
lrn@google.com 7b98aaaf67 Add Uri.replace which creates a new Uri with the same fields as the original, but with some fields replaced by the user.
BUG= http://dartbug.com/18950
R=ajohnsen@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38897 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-05 12:23:14 +00:00
lrn@google.com 5acd01a03f Revert "Add Uri.replace which creates a new Uri with the same fields as the original, but with some fields replaced by the user."
Code has gone stale since first uploaded.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38895 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-05 11:13:23 +00:00
lrn@google.com ea63070360 Add Uri.replace which creates a new Uri with the same fields as the original, but with some fields replaced by the user.
BUG= http://dartbug.com/18950
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38894 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-05 10:32:22 +00:00
lrn@google.com 2d92f787d0 Ensure that a file: URI does not have an empty path.
BUG= http://dartbug.com/19608
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38893 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-05 09:31:24 +00:00
scheglov@google.com 57f076f17f New analyzer snapshot.
Not to be published.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38764 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-31 00:40:17 +00:00
paulberry@google.com f649b734d0 Properly handle "#void" in analysis server.
Also fix corelib/symbol_reserved_word_test/05, which was incorrectly
marked as a compile-time error.  It should be a static type warning,
since "#void.foo" should be interpreted as "access the 'foo' field of
the 'void' symbol".

BUG=dartbug.com/20191
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38641 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-28 19:03:06 +00:00
whesse@google.com 32122048e7 Update test status for Android content_shell.
BUG=
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38605 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-28 11:23:37 +00:00
koda@google.com 1cdcb12b4e Add VM class for Map/LinkedHashMap.
Introduces a new internal class for the most common case, the default Map.

Passes all functionality tests.
Slow: Dart side simply calls into runtime for now.
Hidden behind "--use_internal_hash_map".

Add copies of hash map tests to exercise this implementation.

R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38588 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-25 20:04:11 +00:00
kustermann@google.com 172abd603f Status file update for r38555: Testing framework cannot determine CompileTimeErrors on drt/dartium
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38572 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-25 08:40:20 +00:00
paulberry@google.com eaf4796622 Disallow reserved words for "const Symbol(...)" with the exception of 'void'.
R=lrn@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38555 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-24 21:41:09 +00:00
floitsch@google.com 3c9656e324 Update status file.
Review URL: https://codereview.chromium.org//406013003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38438 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-21 17:02:50 +00:00
lrn@google.com 1715b6a60a Change "FormatException.position" to be named "offset".
Address comments on SpanFormatException changes.

R=nweiz@google.com

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

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38379 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-18 09:25:48 +00:00
lrn@google.com 6bb63f18d6 Change "FormatException.position" to be named "offset".
Address comments on SpanFormatException changes.

R=nweiz@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38378 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-18 09:22:58 +00:00
lrn@google.com b4d26e022c Change "FormatException.position" to be named "offset".
Address comments on SpanFormatException changes.

R=nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38373 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-18 08:22:32 +00:00
lrn@google.com 729de01f79 Make IterableMixinWorkaround using classes return correctly typed Iterables.
BUG= http://dartbug.com/13646
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38372 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-18 08:08:16 +00:00
scheglov@google.com a4dee8bf4c Resolve names in combinators for PropertyInducingElements instead of PropertyAccessorElements.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38199 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-14 17:11:34 +00:00
lrn@google.com d983493c1a Add extra information to FormatException.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38181 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-14 07:47:45 +00:00
paulberry@google.com f825cc7389 Generate compile errors for illegal uses of const Symbol constructor.
BUG=dartbug.com/18755
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38163 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-11 18:12:03 +00:00
paulberry@google.com 4e03ba2510 Report errors when an exception would occur during const fromEnvironment calls.
BUG=dartbug.com/18755
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38094 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-09 18:16:41 +00:00