Commit Graph

945 Commits

Author SHA1 Message Date
lrn@google.com 29e92ed8d5 Update expectations - stream iterator test uses a timer, breaks on d8.
Review URL: https://codereview.chromium.org//107503006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31337 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 14:29:59 +00:00
zarah@google.com caac86b4cc Revert "Support type argument substitution on unnamed mixin applications."
This reverts commit r31319.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31330 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 11:47:44 +00:00
lrn@google.com 30683bdc79 Fix typo in failure-branch of stream iterator test.
Also increment pkg/async version to fix broken first upload.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31322 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 07:58:49 +00:00
zarah@google.com 4fb34cb3d4 Support type argument substitution on unnamed mixin applications.
R=ahe@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31319 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 07:32:27 +00:00
lrn@google.com d4be6ccd68 Update stream iterator doc and add test.
BUG= http://dartbug.com/15449
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31317 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 07:14:37 +00:00
brianwilkerson@google.com 4b4bf1cf08 Constant evaluation support. This fixes most of the open issues related to constants and makes it (theoretically) possible to fix the rest.
R=jwren@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31303 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 21:26:54 +00:00
zarah@google.com 243e52fa85 Support newInstance() for class mirrors of generic classes.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31213 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-18 08:44:08 +00:00
rmacnak@google.com 5e3a80268a Partially implement LibraryMirror.topLevelMembers.
BUG=http://dartbug.com/14632
R=asiva@google.com, gbracha@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31202 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-17 19:20:03 +00:00
rmacnak@google.com 0ac7836e8f Implement ClassMirror.reflectedType in dart2js.
BUG=http://dartbug.com/12607
R=ahe@google.com, zarah@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31200 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-17 18:30:28 +00:00
rmacnak@google.com e5d7ada6e9 VM: Support calling through getters in InstanceMirror.delegate.
Implement without accessing private members of dart:core. Fix language test expecting wrong return value.

BUG=http://dartbug.com/15138
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31140 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-13 18:33:45 +00:00
rmacnak@google.com 967a6c96e9 VM: Match language error when attempting to reflectively instantiate an abstract class.
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31115 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 22:34:10 +00:00
floitsch@google.com 0e61ba3729 Implement work-around for "Placeholder for" error in JS output.
BUG= http://dartbug.com/15602
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31109 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 20:43:53 +00:00
whesse@google.com 152cf1e3fe Mark failing dart2js_extra isolate test on chromeOnAndroid platform. Mark two flaky tests with timeouts.
BUG=dartbug.com/14458
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31096 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 14:24:06 +00:00
regis@google.com fb6d24945f Introduce class TypeRef in the VM to fully support recursive types.
Fix issues 15244, 15148, 14869, 14000, and 13688 (was closed, but fragile).

Note that the current solution is not final as it may not be correct in more
complex cases not yet covered by language tests.
The final solution will require a 'trail' instead of a simple mark bit to
prevent operations involving recursive types to diverge.

R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31087 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-11 22:51:19 +00:00
rmacnak@google.com 0bc05d6c3c VM: Make ObjectMirror.invoke support getters returning functions.
BUG=http://dartbug.com/15138
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31076 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-11 19:43:48 +00:00
whesse@google.com 270582e7b9 Update status file for chromeOnAndroid dart2js buildbot.
BUG=
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31069 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-11 16:33:25 +00:00
lrn@google.com 55bf72611b Mark other timer tests as flaky on Dartium where the timer can fire early.
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31065 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-11 14:05:52 +00:00
lrn@google.com e454abaf69 Mark timer_test as failing on Dartium.
After removing the 1 ms fiddling factor from the test, it still
fails on Dartium. It does not fail on the VM any more, since the
timer was fixed, so I'd prefer to not change the test back,
since t really does detect an error.

The problem is that the timer fires too soon.
The difference between a DateTime.now() created before
the timer was started, and one created after the time completed,
gives a time that is less than the timeout.

It may be due to either DateTime.now not being good enough, or the
timer firing too early, but it's likely the latter.

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31061 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-11 10:18:23 +00:00
rmacnak@google.com 068f6286ca Implement topLevelMembers, staticMembers, instanceMembers in the VM.
BUG=http://dartbug.com/14632
R=asiva@google.com, gbracha@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31056 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-11 02:08:16 +00:00
kustermann@google.com e898028b18 Attempt to deflake our status files
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31022 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 15:37:34 +00:00
ngeoffray@google.com 46d3293886 Update status file after bug found in dart2js.
Review URL: https://codereview.chromium.org//107033004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31012 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 10:27:24 +00:00
ngeoffray@google.com 440fe91607 We inline List allocations in dart2js to get the right behavior when the passed length is null. This CL fixes the constructor when invoked through mirrors.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31010 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 09:27:07 +00:00
lrn@google.com 70f6617532 Revert "Fix VM timer firing too early."
Committed: https://code.google.com/p/dart/source/detail?r=30987

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31009 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 08:40:56 +00:00
lrn@google.com dd6ee012d1 Revert "Fix VM timer firing too early."
Review URL: https://codereview.chromium.org//101293006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30987 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-09 13:43:52 +00:00
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