Commit Graph

2071 Commits

Author SHA1 Message Date
nweiz@google.com 60660a5dff Un-mark some pub tests as failing on the analyzer.
Removing SafeHttpServer caused these to start passing.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31768 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-14 00:05:45 +00:00
rmacnak@google.com 39f69b6045 Revert "dart2js: Implement instanceMembers and staticMembers."
Review URL: https://codereview.chromium.org//137533002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31763 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-13 22:40:36 +00:00
rmacnak@google.com 3886174aa1 dart2js: Implement instanceMembers and staticMembers.
BUG=http://dartbug.com/14633
R=ahe@google.com, gbracha@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31757 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-13 21:09:49 +00:00
lrn@google.com f31896eba4 Fix expectation after moving json test.
Also increment version number of pkg/json in anticipation of pushing.

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31734 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-13 12:25:15 +00:00
lrn@google.com 1bb616d0ce Fix JSON encoder accepting NaN and Infinity.
BUG= http://dartbug.com/16038
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31731 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-13 10:00:08 +00:00
rmacnak@google.com 499dac2ad9 Skip mirrors/immutable_collections_test on Dartium.
BUG=http://dartbug.com/16027

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31722 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-11 00:03:29 +00:00
rmacnak@google.com 615715ccaa Extend the immutable collections test to the new API. Make *Members return immutable collections. Add missing metadata property for SyntheticSetterParameter.
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31675 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-09 20:38:32 +00:00
ahe@google.com 4789392a5b Use growable lists.
BUG=http://dartbug.com/15599
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31659 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-09 14:29:58 +00:00
rmacnak@google.com 7dfcd0f4a1 Add ClassMirror.isAbstract to the API and VM implementation.
BUG=http://dartbug.com/12826
R=gbracha@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31643 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-09 01:27:51 +00:00
rmacnak@google.com 8313c51650 Ensure a class is finalized before attempting any reflective invocation on it.
Avoids mysterious error that results when finalization that is triggered by the reflective invocation fails to propogate a compile-time error.

BUG=http://dartbug.com/15886
R=regis@google.com, zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31638 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-09 00:18:09 +00:00
rmacnak@google.com d8c4c637bf Revert "Add ClassMirror.isAbstract to the API and VM implementation."
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31633 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 22:51:45 +00:00
rmacnak@google.com a5e3c91936 Add ClassMirror.isAbstract to the API and VM implementation.
BUG=http://dartbug.com/12826
R=asiva@google.com, gbracha@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31630 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 22:21:43 +00:00
sra@google.com 534221778e Redo "dart2js typed data constructor argument validation"
Fix the postmessage test which has an error encouraged by issue 10136

Patch Set 1 is previously reviewed code.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31625 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 20:42:04 +00:00
sra@google.com c417893a72 Revert "dart2js typed data constructor argument validation"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31619 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 18:50:16 +00:00
sra@google.com fee8594ff8 dart2js typed data constructor argument validation
Addresses Issue 15951.
Also change parameter names to match documentation.

R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31615 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 17:30:40 +00:00
kustermann@google.com fea1fe4570 Status file updates for PASSing tests
Review URL: https://codereview.chromium.org//127883002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31599 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 09:38:38 +00:00
srdjan@google.com e3ab171b21 Another fix for setRange on typed data and their views: use byte offsets in native code.
Adapted checks to do the same as dart2js

R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31592 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 00:08:51 +00:00
sra@google.com b37b303d96 Safari setRange test
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31571 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 20:51:29 +00:00
sra@google.com 17490f5760 Add another setRange test
This test demonstrates that the underlying buffer may have a different
element size to the views on the buffer.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31569 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 20:28:43 +00:00
sra@google.com 4c12ec35f2 Fix setRange_4_test
Review URL: https://codereview.chromium.org//125513004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31565 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 19:32:28 +00:00
srdjan@google.com 5a093d9f9c Fix 15413: setRange for views with overlapping buffers.
R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31528 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 00:48:46 +00:00
ahe@google.com 6b363bf6a3 Remove .dart extension from status file.
Review URL: https://codereview.chromium.org//125063003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31474 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-06 14:31:52 +00:00
ahe@google.com 8de86f748b Update status files (two browser bugs).
R=floitsch@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31473 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-06 14:17:18 +00:00
zra@google.com a32a30192b Updates status file for mirror syntax error test.
Review URL: https://codereview.chromium.org//111043005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31462 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-04 01:17:12 +00:00
zra@google.com 3421cf7902 Updates status file for mirror syntax error test.
Review URL: https://codereview.chromium.org//100713008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31461 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-04 00:44:13 +00:00
zra@google.com 9df57536fa Regression test for issue 15744
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31460 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-03 23:59:23 +00:00
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