Commit Graph

2071 Commits

Author SHA1 Message Date
lrn@google.com 2aa9f026f2 Change Future.timeout callback to a named parameter.
R=floitsch@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30985 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-09 12:06:12 +00:00
ahe@google.com 779fb039d8 Update status files
Review URL: https://codereview.chromium.org//109693002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30975 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-08 12:36:15 +00:00
ahe@google.com 36a7bd79d7 Fix issues that caused revert of r30955:
* Don't emit reflection info for unapplicable members (constructors).
* Correctly identify unreflectable members supporting Function.apply.
* Don't crash when computing function types of top-levels.

Committed along with https://codereview.chromium.org/98073005.

R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30974 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-08 10:29:16 +00:00
ahe@google.com e8301cefa3 Additional status updates that weren't included in r30965.
Review URL: https://codereview.chromium.org//106283003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30973 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-06 23:27:07 +00:00
ahe@google.com 95c86ebeda Skip tests that are timing out.
Review URL: https://codereview.chromium.org//108593003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30965 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-06 20:45:22 +00:00
ahe@google.com e072937b0e Revert "Generate tear-off closures dynamically."
This reverts r30955.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30961 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-06 19:58:10 +00:00
ahe@google.com abf0cfa8fd Generate tear-off closures dynamically.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30955 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-06 17:41:52 +00:00
ahe@google.com 53d500dee0 Implement dynamic function checks.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30932 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-06 06:47:07 +00:00
sra@google.com d63ae0d867 Redo "Redo "Use TypedArray.set for setRange of between similarly typed lists implemented as TypedArrays""
What has changed here is I split the test to allow Safari to me marked as failing some tests.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30921 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-05 23:22:04 +00:00
rmacnak@google.com 442d31d522 Remove deprecated mirror API from dart2js.
(Reapply r30879)

BUG=http://dartbug.com/14878

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30913 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-05 20:06:45 +00:00
lrn@google.com c5a3337ae3 Change the zone that late-added stream subscription callbacks are registered in.
They are always called in the subscription's zone, but they were
registered in the current zone.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30896 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-05 14:45:46 +00:00
lrn@google.com 6af11cac37 Add Stream.timeout method.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30895 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-05 13:32:31 +00:00
lrn@google.com f0bc9ff077 Change dart2js' Random to honor the seed.
Simulate the same RNG as the VM when a seed is passed.

BUG= http://dartbug.com/15426
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30893 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-05 13:06:47 +00:00
fschneider@google.com e86f53598e Update analyzer statusi file for the dart2js sample I fixed.
TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30889 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-05 12:14:42 +00:00
rmacnak@google.com 846e4a8de5 Revert "Remove deprecated mirror API from dart2js."
Review URL: https://codereview.chromium.org//99513004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30881 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-05 00:40:25 +00:00
rmacnak@google.com 430eb7cb59 Remove deprecated mirror API from dart2js.
BUG=http://dartbug.com/14878
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30879 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 23:56:31 +00:00
sra@google.com 41b9985c8c Revert "Redo "Use TypedArray.set for setRange of between similarly typed lists implemented as TypedArrays""
Undiagnosed problem on Safari.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30877 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 23:36:21 +00:00
sra@google.com 4eddb68e72 Redo "Use TypedArray.set for setRange of between similarly typed lists implemented as TypedArrays"
Use 'abstract' on classes to avoid warning.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30872 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 21:29:51 +00:00
sra@google.com fcbf332182 Revert "Use TypedArray.set for setRange of between similarly typed lists implemented as TypedArrays"
Investigating warnings.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30870 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 21:20:54 +00:00
sra@google.com ebc3203329 Use TypedArray.set for setRange of between similarly typed lists implemented as TypedArrays
R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30867 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 20:50:10 +00:00
rmacnak@google.com 3975640225 Remove implementation of deprecated mirror API from the VM.
(Redo of r30005)

BUG=http://dartbug.com/14931

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30864 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 19:01:51 +00:00
sra@google.com caa977a195 Test for aliasing of typed data for setRange
BUG=
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30817 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-03 17:50:36 +00:00
rmacnak@google.com ff7c98d758 Revert "Remove implementation of deprecated mirror API from the VM."
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30806 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-03 00:54:02 +00:00
rmacnak@google.com fdeb88dda0 Remove implementation of deprecated mirror API from the VM.
(Redo of r30005)

BUG=http://dartbug.com/14931

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30805 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-03 00:34:09 +00:00
floitsch@google.com 4b316431fa Implement scheduleImmediate for the VM.
BUG= http://dartbug.com/9001
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30797 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-02 16:27:07 +00:00
lrn@google.com 8744794212 Change other futures to also have timeout take a named parameter.
Review URL: https://codereview.chromium.org//98683002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30792 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-02 09:13:49 +00:00
lrn@google.com 3d819ee9cb Change Future.timeout callback to a named parameter.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30790 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-02 08:48:00 +00:00
zarah@google.com b1635b0bd6 Update status file.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30785 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-29 14:32:35 +00:00
zarah@google.com 8aa0a2cd04 Substitute type variables as type arguments.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30769 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-29 08:45:43 +00:00
lrn@google.com e0314a6117 Add Future.timeout.
R=floitsch@google.com, nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30745 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-28 08:16:01 +00:00
lrn@google.com b6f12eb784 Don't expect timer to work on dart2js-d8.
Review URL: https://codereview.chromium.org//91423002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30714 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 12:57:14 +00:00
lrn@google.com 726b72771e Make the root zone's schduleMicrotask and create[Periodic]Timer bind the callback.
BUG= http://dartbug.com/15232
R=floitsch@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30711 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 11:55:35 +00:00
lrn@google.com 1d9e1d5b93 Make the root zone's schduleMicrotask and create[Periodic]Timer bind the callback.
BUG= http://dartbug.com/15232
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30708 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 11:42:04 +00:00
zarah@google.com 6fc7361c23 Remove multitest in lib/mirror/generics_test.
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30701 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 09:44:03 +00:00
zarah@google.com f7dd88c13e Support reflection on generics with dynamic types.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30700 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 09:09:26 +00:00
ngeoffray@google.com 79cd61ea07 Mark test as failing on dart2js.
Review URL: https://codereview.chromium.org//90903002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30695 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 07:52:02 +00:00
rnystrom@google.com cfb4941f47 Make the analyzer bots happier.
R=nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30691 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 01:31:01 +00:00
johnmccutchan@google.com ff20eb09b0 Support Bigint parameters in Int32x4 constructor
https://code.google.com/p/dart/issues/detail?id=15130

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30686 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 23:46:27 +00:00
lrn@google.com ef66be8610 Change Expect.identical(NaN, x) to not assume NaNs are identical.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30667 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 10:32:51 +00:00
rmacnak@google.com 314da361f0 Add demangle utility to Dartium's dart:html. Demangle typedef names in UserVisibleName.
BUG=http://dartbug.com/14892
R=asiva@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30636 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 18:31:20 +00:00
ngeoffray@google.com bb008d1126 Bailout on array optimizations if the array might escape to reflection land.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30629 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 14:00:39 +00:00
zarah@google.com d997b51cf3 Change type of parameter with 'var' as modifier in initializing formals to the static type of the field.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30617 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 11:43:58 +00:00
regis@google.com d1e945994e Improve type test and type equality for generics (issue 15148).
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30546 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-21 21:30:51 +00:00
kustermann@google.com aaa1d67a1b Removed status file entries which refer to non-existent tests
Review URL: https://codereview.chromium.org//80913002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30518 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-21 13:46:36 +00:00
rmacnak@google.com 307dfe1bde Fix crash evaluating metadata with super in a const constructor argument.
R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30491 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-21 00:11:31 +00:00
floitsch@google.com a1f8bd4fb9 Update status file.
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30475 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 16:01:23 +00:00
kustermann@google.com 0bfeaf1772 Status file update for analyze_library test suite
Review URL: https://codereview.chromium.org//78563002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30472 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 14:30:25 +00:00
kustermann@google.com 3d910a2a9a Remove filtering of analyzer warnings/errors by filename
The only files that are now not analyzed are the patch files in
"sdk/lib/_internal/lib" and test files (i.e. files ending with "_test.dart")

R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30471 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 14:06:34 +00:00
floitsch@google.com 30c9633145 Copy utf-pkg test to lib/convert.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30452 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 10:26:35 +00:00
lrn@google.com f3a501e7c6 Make Future.wait have an eagerError option that defaults to false.
This means that Future.wait will, by default, wait for all futures to
complete, even if there is an error.
All but the first error are dropped, and the future completes with the
first error.

If eagerError is set to true, the returned future completes immediately
on the first error.

BUG= http://dartbug.com/14794
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30443 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 09:28:48 +00:00