Commit Graph

846 Commits

Author SHA1 Message Date
zerny@google.com 0bfa80b5a5 Revert "Revert "Disable the irregexp backend.""
This reverts commit http://code.google.com/p/dart/source/detail?r=42240
Reason for revert: failures and timeouts on Dartium bots.

TBR=fschneider@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42246 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-10 15:38:10 +00:00
zerny@google.com d1f5aacd77 Revert "Disable the irregexp backend."
This reverts commit http://code.google.com/p/dart/source/detail?r=41999

R=fschneider@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42240 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-10 09:56:53 +00:00
regis@google.com e20569cf8b Reenable a few previously slow tests on MIPS.
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42141 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-05 19:32:39 +00:00
lrn@google.com a3c7e0a0d9 Fix date_time_test to not assume a particular slowness of running code.
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42083 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-03 07:19:49 +00:00
regis@google.com a17adcd1de Fix overflow check when shifting unboxed mints on 32-bit platforms, except on
MIPS, which does not yet support unboxed mints (work in progress). Issue 21715.
Add regression test.

R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42003 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-26 17:36:32 +00:00
zerny@google.com 487ca247d7 Disable the irregexp backend.
Currently the use of irregexp breaks the Dartium build.

TBR=vegorov@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41999 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-26 16:21:08 +00:00
zerny@google.com 858bdd8a8b Skip slow test corelib/regexp/global_test.
R=vegorov@google.com
BUG=http://dartbug.com/21709,http://dartbug.com/21708

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41994 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-26 14:24:48 +00:00
zerny@google.com 8e807c8550 Integrate the Irregexp Regular Expression Engine.
BUG=http://dartbug.com/19090
R=fschneider@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41983 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-26 09:32:43 +00:00
zerny@google.com 84a4135901 Revert "Integrate the Irregexp Regular Expression Engine."
This reverts commit https://code.google.com/p/dart/source/detail?r=41949

TBR=fschneider@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41950 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-25 13:36:40 +00:00
zerny@google.com 43ac0c6f33 Integrate the Irregexp Regular Expression Engine.
BUG=http://dartbug.com/19090
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41949 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-25 13:10:21 +00:00
johnniwinther@google.com ba110b93ff Avoid patching in dart2dart.
BUG=http://dartbug.com/21441
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41901 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-21 13:42:56 +00:00
regis@google.com 3c16a2c0f9 Skip MIPS tests. Still too slow. See issue 20879.
Review URL: https://codereview.chromium.org//728483004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41729 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-14 01:21:25 +00:00
regis@google.com defc9a5c54 Specialize _toPow2String for bigint to make it linear instead of quadratic.
Remove some duplicated bigint corelib tests.
Cleanup corelib tests status file.
Partially fix issue 20879 (not closed).

R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41728 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-13 23:54:33 +00:00
whesse@google.com e5d6c3d424 Update status for fixed test.
BUG=dartbug.com/21582
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41712 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-13 13:14:18 +00:00
ricow@google.com 4ff8c06729 Mark corelib/regexp/pcre_test as slow on dart2js
Filed issue 21593 to track this

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41706 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-13 07:44:25 +00:00
lrn@google.com e8ca26953e Reduce foot-print of Error.safeToString on strings.
Use existing JSON encoding instead of a custom encoding.
This allows dart2js to use the system JSON stringifier directly.

R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41704 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-13 06:47:17 +00:00
lrn@google.com b02786e0c1 Mark Firefox/jsshell as failing on double_parse_test.
The ECMAScript spec allows non-IEEE-754 compliant parsing, probably because
that was what Netscape was already doing.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41665 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-11 14:25:24 +00:00
lrn@google.com 5bb4d992b4 Add more double-parsing tests.
I was looking at double parsing, and wanted more tests for myself anyway.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41664 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-11 13:31:40 +00:00
lrn@google.com 42dac4c7b4 Add some ArgumentError and RangeError constructors that capture more information.
Switch some uses of RangeError.range to RangeError.index.
Fix bug in Queue where elementAt allowed `length` as input.

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41653 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-11 07:55:47 +00:00
lrn@google.com e5bc666107 Change SplayTreeMap test to not cause static type warnings, only runtime errors.
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41627 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-10 11:53:34 +00:00
lrn@google.com 583f408260 Fix type in generic type of parameters to SplayTreeMap.fromIterable.
Add tests.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41624 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-10 10:39:28 +00:00
zerny@google.com f579383d56 Reapply "Port regexp tests from V8 to Dart."
This fixes checked mode issues and reapplies commit
https://code.google.com/p/dart/source/detail?r=41354

R=lrn@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41416 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-30 11:34:18 +00:00
whesse@google.com 53264f42c0 Mark tests flaky on Safari 6.2
BUG=dartbug.com/21434
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41393 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-29 10:30:25 +00:00
zerny@google.com 488b0e1630 Revert "Port regexp tests from V8 to Dart."
Reason: The tests do not run cleanly in checked mode.

TBR=lrn@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41358 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-28 13:33:15 +00:00
zerny@google.com c67ccb1c0c Capture group error has been fixed.
BUG=http://dartbug.com/21396
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41357 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-28 13:11:17 +00:00
zerny@google.com 19a7c86e6b Rename RegExp_test.dart to regexp_kde_test.dart to avoid conflict with regexp_test.dart on Windows.
TBR=ricow@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41356 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-28 13:00:54 +00:00
zerny@google.com f68daab3f9 Port regexp tests from V8 to Dart.
This adds V8s suite of regular expressions tests. The tests are skipped
for all none d8 runtimes until irregexp has been ported and enabled for
the other runtimes. The tests are enabled when compiling with dart2js
and running with d8.

BUG=http://dartbug.com/21396
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41354 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-28 12:33:15 +00:00
lrn@google.com f7fd659ce0 Expect dart2dart to fail on string_split_test.
Review URL: https://codereview.chromium.org//684723003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41351 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-28 09:03:46 +00:00
whesse@google.com aeba67e44e Add builder tag for Safari 6.2 slave. Update status files for Safari 6.2.
BUG=
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41323 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-27 16:09:00 +00:00
lrn@google.com 75e49f5220 Fix test warnings and expect Safari mobile simulator bug.
Review URL: https://codereview.chromium.org//679143003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41319 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-27 15:07:20 +00:00
lrn@google.com a38f54ead0 Make dart2js String.split match the VM version.
The dart2js version used the JS version of string split, which
includes captures between the parts. The Dart version doesn't do
that.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41313 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-27 12:52:35 +00:00
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