Commit Graph

2071 Commits

Author SHA1 Message Date
mlippautz@google.com b3cb27a829 Since returnType is represented by a mirror, we make it lazy. We do not use a lazy mirror anymore, but instead create a type mirror upon first access.
CreateTypeMirror is already factored out of MethodMirror_return_type since it is needed by others mirrors (future CLs). Also introduces CreateMirror() which will be used in future CLs.

BUG=
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25252 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 23:17:47 +00:00
rmacnak@google.com f85d1df63e Fix regression in TypedefMirror.owner introduced when making ClassMirror.owner lazy.
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25244 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 21:16:29 +00:00
johnmccutchan@google.com ce3362938c Disable float32x4_shuffle_test in minified dart2dart
Review URL: https://codereview.chromium.org//19680006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25238 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 20:06:06 +00:00
johnmccutchan@google.com 522a7ef504 Add all 256 shuffle methods to Float32x4
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25227 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 17:03:09 +00:00
zra@google.com 31fa41a784 Enables more SIMD tests for ARM.
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25219 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 15:28:53 +00:00
ahe@google.com 1697e502b4 Fix test wrapping issues.
BUG=http://dartbug.com/11648
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25214 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 13:30:37 +00:00
lrn@google.com 76d4625ccd Fixed bug in _ControllerStream.operator==.
Make _BroacastStream extends _ControllerStream to get same
equality behavior.

Add regression tests.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25205 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 11:58:08 +00:00
ahe@google.com 1477f01314 Implement reflection on native classes.
BUG=http://dartbug.com/11902
R=karlklose@google.com, ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25201 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 10:06:50 +00:00
nweiz@google.com 1b541506ff Roll forward "Use package:stack_trace in unittest."
This reverts r25135, and rolls forward r25131, r25132, and r25133.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25169 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-18 19:30:33 +00:00
zra@google.com d886c10f6e Enables a SIMD test for ARM.
Required adding the veorq, vmovq, and vdup instructions.

R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25165 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-18 18:40:27 +00:00
nweiz@google.com e93476aa9d Roll back "Use package:stack_trace in unittest."
This reverts r25131, r25132, and r25133.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25135 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 23:55:46 +00:00
nweiz@google.com c09a8caf09 Mark analyzer tests as failing due to issue 11647.
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25132 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 23:14:25 +00:00
scheglov@google.com 4ac2a1452c New analyzer_experimental snapshot.
FYI bot is red, as I can see this is caused by VM crashes.
https://code.google.com/p/dart/issues/detail?id=11873

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25121 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 19:32:30 +00:00
ahe@google.com ce64524c02 Implement accessing lazily initialized static fields.
BUG=http://dartbug.com/11869
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25115 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 18:26:56 +00:00
ahe@google.com bea82f4ef5 Implement invocation of statics.
BUG=http://dartbug.com/6490
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25102 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 15:37:44 +00:00
ahe@google.com ed48b2394a Fix a few issues related to mirrors:
* Bad assertion in emitter.

* Don't assume we generate checked setters for statics.

* Unmangle field names using getter prefix (which makes "everything" work in minified mode).

BUG=http://dartbug.com/6490
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25092 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 12:40:30 +00:00
floitsch@google.com d0768e543f Replace old utf8 decoder with new one.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25089 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 11:35:12 +00:00
ahe@google.com 912b741073 Mark test as failing while I work on a fix.
Review URL: https://codereview.chromium.org//19560002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25088 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 10:53:14 +00:00
ahe@google.com ba03042893 Implement reflecting on static fields.
BUG=http://dartbug.com/11745
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25086 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 08:40:39 +00:00
ahe@google.com 5d3e7058d3 Implement reflective access to static methods.
BUG=http://dartbug.com/11745
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25085 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 08:33:30 +00:00
ahe@google.com 3ab963954a Filter out accessors for fields.
BUG=http://dartbug.com/6490
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25084 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 08:20:36 +00:00
ahe@google.com 5873a310cd Retain abstract classes.
BUG=http://dartbug.com/6490
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25083 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 08:17:54 +00:00
mlippautz@google.com 8b65384ede Moved some MethodMirror getters from embedded API to lazy native calls.
The more complex ones (creating LazyXXXMirror) are still left and will be handled in a separate CL.

Tests are (still) excluded from dart2js, because of one regression test in the same file.

BUG=
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25081 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 00:42:30 +00:00
scheglov@google.com 41d8e6ee39 Test running changes.
1. Change in the test runner to consider any warning as warning.

After this following was required:

2. Triage language tests.

3. Triage co19 tests.

R=brianwilkerson@google.com, kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25069 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-16 20:35:51 +00:00
rmacnak@google.com 347bc08877 Fix test that fails in checked mode: a factory must return a subtype of its defining class.
Review URL: https://codereview.chromium.org//19267007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25026 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 22:13:02 +00:00
rmacnak@google.com 39bf0aca44 Implement the invoke methods (invoke, getField, setField, newInstance, apply) as internal natives.
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25024 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 21:14:43 +00:00
floitsch@google.com b0913f7894 First version of Codecs and Converters.
No chunked conversions, yet.

R=asiva@google.com, lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24999 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 10:26:38 +00:00
johnniwinther@google.com 7271db486b Status updated.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24915 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-11 13:56:12 +00:00
karlklose@google.com 2f8f7f4824 Use type variables of mixin when computing the substitution.
BUG=dartbug.com/11722
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24875 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-10 08:19:29 +00:00
mlippautz@google.com c95fabd890 Exclude MethodMirror tests for dart2js until issue 6335 is fixed.
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24873 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-10 01:43:59 +00:00
mlippautz@google.com 3b5ba678cd Add a MirrorReference reflectee to MethodMirrors. Name getter now refers to
internal function object, providing a name for for all cases and not only for
the ones a name has been provided in the constructor.

Fixes http://dartbug.com/6335

R=asiva@google.com, rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24872 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-10 01:08:19 +00:00
regis@google.com e8a722870b Support type parameters and classes as expression in the vm.
Turn many compile-time errors into runtime errors per latest spec.
Triage affected tests.

R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24861 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-09 19:35:56 +00:00
floitsch@google.com 8dd1601ccc Fix status file.
Review URL: https://codereview.chromium.org//18855013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24847 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-09 15:57:56 +00:00
lrn@google.com 0f8d8f3028 Don't assume that I can use package:-url in test.
Review URL: https://codereview.chromium.org//18271016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24839 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-09 11:25:22 +00:00
lrn@google.com 91aa700848 Add Stream.join
BUG= http://dartbug.com/11652
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24838 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-09 10:55:13 +00:00
floitsch@google.com d3dc0606cc Fix status file.
Review URL: https://codereview.chromium.org//18859003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24803 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-08 16:34:36 +00:00
lrn@google.com 50d6b9811a Dart2js bug only applies to unchecked mode.
Remove an unncessary trace in event_state_test.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24797 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-08 14:52:38 +00:00
lrn@google.com 3c73760e68 Fix typos in test expectations.
Review URL: https://codereview.chromium.org//18798003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24795 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-08 12:41:09 +00:00
lrn@google.com 57291fed77 Address more bot-redness.
Review URL: https://codereview.chromium.org//18841002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24794 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-08 12:24:31 +00:00
lrn@google.com d02d106430 Make StreamController be a StreamSink, not just an EventSink.
Reverts r24590

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24791 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-08 08:27:27 +00:00
lrn@google.com d573bfb5f6 Fix pub errorgroup and analyzer errors.
Errorgroup now works as it used to, using an old-style asBroadcastStream
instead of a proper broadcast controller, because that's what the tests
are testing for.

Analyzer was complaining about code that should have been deleted.
Now it is.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24778 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-04 14:13:30 +00:00
lrn@google.com 1315656027 Make asBroadcastStream take two callbacks.
These callbacks will be called when the broadcast stream no longer
has any listeners, or when it gets a listener after having none.

The callback is provided with a StreamSubscription-like object where
it can pause/resume/cancel the underlying subscription on the original
stream.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24776 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-04 13:02:02 +00:00
scheglov@google.com 6c6b88967f Remove dartc status sections.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24735 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 17:50:34 +00:00
zarah@google.com 01251efd5e Add isActive field on Timer.
BUG= http://dartbug.com/10010
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24678 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 12:01:11 +00:00
ahe@google.com d477c3f663 Implement JsMethodMirror.constructorName.
BUG=http://dartbug.com/11608
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24597 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 17:13:39 +00:00
ahe@google.com 4a4b1bf8d2 Copy compiled constants from metadataHandler to constantHandler.
BUG=http://dartbug.com/11550

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24595 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 16:28:55 +00:00
floitsch@google.com df2bcb893f Revert "Make StreamController be a StreamSink, not just an EventSink."
Revert "Remove type variable to work around dart2js bug."

This reverts commit r24587.
This reverts commit r24588.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24590 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 15:07:09 +00:00
lrn@google.com a15e02cc6a Make StreamController be a StreamSink, not just an EventSink.
BUG=http://dartbug.com/10677
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24587 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 12:56:29 +00:00
ahe@google.com 3abe288a30 Implement JsMethodMirror.parameters and returnType.
BUG=http://dartbug.com/11513
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24580 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 11:07:54 +00:00
zra@google.com 573b9d859a Fixes a bug in the mips Random_nextState intrinsic.
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24549 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 20:46:28 +00:00