Commit Graph

1365 Commits

Author SHA1 Message Date
ajohnsen@google.com 7983141903 Move DualPivotQuicksort from coreimpl to core as _Sort.
I've added a tempoary coreSort method in core, to coreimpl and other
uses, until the move is done.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13993 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-24 07:17:18 +00:00
floitsch@google.com 27cadf2b66 isEven, isOdd, isNegative, isMaxValue, isMinValue, isInfinite, isPositive, isSingleValue.
Review URL: https://codereview.chromium.org//11227042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13974 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 16:15:36 +00:00
ahe@google.com 6254729761 Revert "Parts must start with 'part of'" and "Attempt to fix VM build"
This reverts r13961 and r13963.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13967 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 14:24:04 +00:00
scheglov@google.com 50b5b6e1a8 Parts must start with 'part of'
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13961 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 13:20:50 +00:00
floitsch@google.com 9074fd0178 Make hashCode a getter and not a method.
Review URL: https://codereview.chromium.org//11191078

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13866 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-22 12:41:04 +00:00
sigmund@google.com c5e87ddd9e Improvement on future: add stack trace to unhandled failures.
Re-apply change https://codereview.chromium.org/11225017/, now with updates to
co19 tests.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13851 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-20 01:12:59 +00:00
sigmund@google.com af32282ec6 Revert "Improvement on future: add stack trace to future failures."
Some co19 tests need to be updated. Will reapply after fixing their status
files.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13850 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-20 00:34:28 +00:00
sigmund@google.com 8e2c51cc4d Improvement on future: add stack trace to future failures.
Review URL: https://codereview.chromium.org//11225017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13849 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-20 00:23:26 +00:00
srdjan@google.com 1cc23f0907 Fix bigint modulo operation. Fixes bug 6056
Review URL: https://codereview.chromium.org//11192074

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13823 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 15:01:18 +00:00
lrn@google.com 89f5daea9e Rename OutOfMemoryException to OutOfMemoryError.
This is a reapply with missing status file changes.

TBR=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13822 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 14:01:24 +00:00
kasperl@google.com f7a56d3f70 Revert "Rename OutOfMemoryException to OutOfMemoryError."
This reverts r13818.

TBR'ed.

R=lrn@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13820 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 13:11:15 +00:00
lrn@google.com 58f3453267 Rename OutOfMemoryException to OutOfMemoryError.
Also move ExceptionImplementation to core.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13818 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 12:20:52 +00:00
karlklose@google.com 3ff51bbe47 Make sure that parts of a date are returned as ints.
Firefox may return -0.0 instead of 0 for hours, minutes and seconds, but our toString implementation for dates assumes that these are ints.

BUG=http://code.google.com/p/dart/issues/detail?id=6071

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13817 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 11:53:19 +00:00
lrn@google.com 9f32f0674a Add "contains" method to Collection.
This versions does not implement "contains" on DOM lists.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13806 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 06:58:19 +00:00
efortuna@google.com c28b3b9e35 Fix firefox corelib status
Review URL: https://codereview.chromium.org//11192072

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13805 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-18 23:43:28 +00:00
efortuna@google.com 2e36281e1a Change firefox test status.
Review URL: https://codereview.chromium.org//11203004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13804 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-18 23:19:50 +00:00
lrn@google.com ae9664a9cc Revert "Add "contains" method to Collection."
Review URL: https://codereview.chromium.org//11186045

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13769 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-18 10:55:02 +00:00
lrn@google.com c3c2ae61c6 Add "contains" method to Collection.
Also added a Sequence interface to capture things with a length and
integer indexing. List and String implement that interface, and
there is a base skeleton class for collections that are Sequences.

BUG=1030

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13766 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-18 08:48:11 +00:00
efortuna@google.com 4839206863 Rename ie to ie9.
Review URL: https://codereview.chromium.org//11184015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13748 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 17:44:38 +00:00
lrn@google.com cd5be325f8 Make argument of List.sort optional with default Comparable.compare.
BUG=1235

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13718 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 07:39:12 +00:00
regis@google.com adb534674c Change core lib, dart2js, and more for new optional parameters syntax and semantics (new semantics is not enforced yet).
Review URL: https://codereview.chromium.org//11090016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13684 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 16:03:47 +00:00
hausner@google.com 1811a6b913 Support for type dynamic in VM
Old name Dynamic is supported, and automatically converted to
lower-case dynamic when parsed.

VM flag --warn_legacy_dynamic prints warnings when Dynamic
is found.
Review URL: https://codereview.chromium.org//11125005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13637 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-12 22:40:24 +00:00
aprelev@gmail.com 7ebd12113f Added 'dynamic' keyword, so that 'Dynamic' can be deprecated.
BUG=dartbug.com/5118
TEST=

Review URL: https://chromiumcodereview.appspot.com//11021008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13510 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 02:49:02 +00:00
ricow@google.com e627457595 Update status files for dartc.
We are now correctly handling apply.
The co19 part is making us skip the tests that are crashing since they seem to crash the batch runner.
Review URL: https://codereview.chromium.org//11092020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13413 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 13:25:03 +00:00
ngeoffray@google.com e24c0e7af5 Implement Function.apply in dart2js.
Review URL: https://codereview.chromium.org//11093015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13409 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 12:02:04 +00:00
ager@google.com fbb3b195c7 Update test expectations.
R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13354 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 14:15:32 +00:00
ager@google.com 70216ab4cd Hide internal details of VM string implementation.
R=lrn@google.com,srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13352 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 13:00:33 +00:00
efortuna@google.com 2262eaa5ed Reapply r13292 WITH a fix to dartc test status for apply_test.dart
Review URL: https://codereview.chromium.org//11035069

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13335 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 23:42:27 +00:00
efortuna@google.com 461f7fb95e Revert r13292. This is when the first failure showed up on dartc, but dartc
didn't actually turn red. Investigating why.
Review URL: https://codereview.chromium.org//11081002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13330 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 23:05:20 +00:00
antonm@google.com dd9a1b5450 Enable corelib suite and triage tests.
R=kasperl@google.com,smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13297 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 15:16:48 +00:00
lrn@google.com 181dc5d3b4 Add apply method signature to Function class.
This does not include an implementation for any backend. The
current implementation throws a NotImplementedException when
called.

BUG=5419

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13292 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 12:57:51 +00:00
ager@google.com abee5139e5 Reapply change to hide VM-only List implementation classes.
The performance issue was that I had not updated the method
recognizer.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13003 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-28 11:08:38 +00:00
ngeoffray@google.com 3d095ba4a6 Update status file to fix the bot.
Review URL: https://codereview.chromium.org//10990082

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12967 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-27 14:54:51 +00:00
ager@google.com fe66a0af1a Revert hiding of VM-only coreimpl list implementation types. While I
investigate performance regression (even after fixing constructors
in the intrinsifier).

R=iposva@google.com,srdjan@google.com,fschneider@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12963 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-27 14:07:56 +00:00
lrn@google.com 37197c2553 Stop using the Hashable interface.
All objects have a hashCode method, so there is no need for a Hashable
interface.
The interface itself is retained for at least two weeks, to give time for
code to remove uses of it.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12955 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-27 13:07:54 +00:00
ager@google.com 8e6a2c8345 Hide VM-only coreimpl List implementation types. These should not be
exposed as visible parts of coreimpl.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12952 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-27 12:37:30 +00:00
lrn@google.com ae0d6fca62 Ensure that hashCode and runtimeType work on null.
BUG=5510

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12948 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-27 11:38:16 +00:00
hausner@google.com 428258ff2d Convert raw strings to new syntax
Review URL: https://codereview.chromium.org//10981026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12878 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 20:09:34 +00:00
lrn@google.com a1faa6f135 Change IllegalArgumentException to ArgumentError.
Review URL: https://codereview.chromium.org//10989013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12841 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 12:27:52 +00:00
rnystrom@google.com b81b2cd656 If transformException() returns a future, act like chain().
Review URL: https://codereview.chromium.org//10958021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12661 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 22:35:04 +00:00
lrn@google.com c0f42d2748 Made removeAt errors consistent between dart2js and VM.
Reneabled test for VM.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12632 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 12:52:54 +00:00
lrn@google.com e00c442559 Temporarily skip test until it's fixed to work.
TBR=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12628 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 11:03:56 +00:00
lrn@google.com eeeab5f0ad Add list.removeAt method.
Review URL: https://codereview.chromium.org//10970009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12627 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 10:50:00 +00:00
ahe@google.com 3f1932a563 Handle backslashes and newlines when escaping strings.
Review URL: https://codereview.chromium.org//10943027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12568 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 15:43:41 +00:00
ager@google.com 576532edcc Bug cleanup: unify on allowing radices from 2 to 36 in
num.toRadixString. Add test and documentation.

R=lrn@google.com,floitsch@google.com
BUG=dartbug.com/461

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12562 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 14:15:39 +00:00
ahe@google.com 34c503ae73 Don't invoke user-defined code in NoSuchMethodError.toString.
Review URL: https://codereview.chromium.org//10939020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12533 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 07:55:50 +00:00
cshapiro@google.com ffa3604282 Eliminate the const constructor from the Expando class.
Review URL: https://codereview.chromium.org//10909209

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12354 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 21:26:01 +00:00
iposva@google.com fd7cb10f82 Missing test fixes from previous commit:
- Smi, Mint, Bigint and Double are not available any longer.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12331 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 14:22:32 +00:00
lrn@google.com f52c24b62f Rename NoSuchMethodException to NoSuchMethodError.
Moved NoSuchMethodError to errors.dart.
No changes in co19 tests, but test status updated.

Review URL: https://chromiumcodereview.appspot.com//10909166

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12172 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 09:52:25 +00:00
floitsch@google.com 1011c58bf9 Use JavaScript runtime semantics when constant folding.
Fixes issue 4551.
Fixes issue 2887.

Review URL: https://chromiumcodereview.appspot.com//10825386

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11883 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 16:13:58 +00:00