Commit Graph

2071 Commits

Author SHA1 Message Date
kustermann@google.com a8857ed49c Status file updates for arm -> remove Skip markers
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23242 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 09:09:38 +00:00
lrn@google.com 781e84284f Reapply "Active stream subscriptions".
Makes subscriptions the active part of a stream, with the stream
itself being just an inert creator of subscriptions.

This changes the behavior of a "single subscription" stream to match
the documentation: After the subscription is canceled, you can't
resubscribe to the stream. Previously, you could do that, but it was
never documented or intended.
This also makes the stream of a StreamController not be paused while
before it's subscribed - it is always the subscription that is paused
or not, and while there is no subscription, the stream cannot be
paused. Previously the stream was set to paused until the first
subscription in order to prevent events from being lost. That is
handled independently of pauses now.

Adds StreamController.multiplex constructor. This name is tentative,
and likely to change. Its behavior may change as well. It currently
provides a new single-subscription stream each time its "stream"
getter is read, and you can subscribe to these.

Adds StreamIterator class that allows iterating over a stream's data
events using (async) "moveNext()" and "current", like a direct style
Iterator (sorry, it won't work in a for-in loop).

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23237 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 07:28:36 +00:00
ngeoffray@google.com da4d7b22e0 Test is actually flaky?
Review URL: https://codereview.chromium.org//16102003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23227 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 14:57:26 +00:00
ngeoffray@google.com 6d1dee6de5 Test fails in csp mode.
Review URL: https://codereview.chromium.org//15932009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23226 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 14:53:35 +00:00
ahe@google.com 2ce688b7d1 Implement simple name and qualified name.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23225 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 13:58:12 +00:00
lrn@google.com cc0d9d57af Revert until Windows crash is debugged.
Reverts r23218, r23217, r23208, r23207, r23206, r23205, r23204.

r23218 | Path observer is listened more than once, so make it multiplex.
r23217 | Add StreamController.multiplex constructor.
r23208 | Fix bug in streamimpl
r23207 | Fix bug in stream iterator.
r23206 | Change expectations for http_parser_test.
r23205 | Fix bug in stream-impl.
r23204 | Make StreamSubscription be the active part of a string.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23221 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 13:03:03 +00:00
ngeoffray@google.com 5b1564da15 Test now passes.
Review URL: https://codereview.chromium.org//16101003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23219 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 12:45:29 +00:00
lrn@google.com 23162a3847 Add StreamController.multiplex constructor.
The "multiplex" stream controller will generate a new stream every
time .stream is read on the controller, and it will send events to
any stream that currently has a listener.
The streams handle their own buffering. Events added before the listen
are ignored.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23217 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 12:27:20 +00:00
ahe@google.com 398cc689a2 Implement ClassMirror.owner and LibraryMirror.uri.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23211 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 10:28:09 +00:00
lrn@google.com ee1c11a2a6 Make StreamSubscription be the active part of a string.
It is the one keeping the buffer of events, not the stream.

R=ajohnsen@google.com, floitsch@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23204 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 08:34:20 +00:00
ajohnsen@google.com f2f0261bf5 Add Stream.drain() method.
This method will discard all data on the stream and return a Future to
mark the end of the stream.

BUG=
R=floitsch@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23140 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 12:45:42 +00:00
ahe@google.com d830696e00 Implement newInstance on ClassMirror.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23137 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 12:05:09 +00:00
ahe@google.com 86c80bd2e5 Implement ClosureMirror.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23135 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 12:00:37 +00:00
floitsch@google.com 09d7da9250 Rewrite double.parse.
BUG= http://dartbug.com/5654
R=lrn@google.com, srdjan@google.com

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

Reverted: https://code.google.com/p/dart/source/detail?r=23065

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

Reverted: https://code.google.com/p/dart/source/detail?r=23068

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23071 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-23 14:30:16 +00:00
ahe@google.com f029dc2d31 Implement get/set field in library and class mirrors.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23070 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-23 14:23:58 +00:00
floitsch@google.com 9849fb8900 Revert "Rewrite double.parse."
This reverts commit r23066.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23068 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-23 13:28:37 +00:00
floitsch@google.com 75cafec89d Rewrite double.parse.
BUG= http://dartbug.com/5654
R=lrn@google.com, srdjan@google.com

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

Reverted: https://code.google.com/p/dart/source/detail?r=23065

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23066 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-23 13:09:05 +00:00
floitsch@google.com 724fb6b4aa Revert "Rewrite double.parse."
This reverts commit r23062.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23065 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-23 13:00:05 +00:00
floitsch@google.com d39ef26225 Rewrite double.parse.
BUG= http://dartbug.com/5654
R=lrn@google.com, srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23062 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-23 12:00:45 +00:00
ajohnsen@google.com 57052a7147 Mark failing test - we exposed a V8 bug.
BUG=
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22997 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-22 08:58:49 +00:00
ahe@google.com 843e4121be Implement invoke, setField, and getField (unminified).
R=johnniwinther@google.com, ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22722 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-15 08:11:25 +00:00
johnmccutchan@google.com 5c4ea76632 Unbox phis with Float32x4 or Uint32x4 type
R=vegorov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22683 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-14 15:52:40 +00:00
scheglov@google.com 2214a97df7 Update status files for 'dartanalyer'.
Small tweak for the Java command line analyzer to actually support --package-root option in batch.

R=devoncarew@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22480 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-07 21:45:20 +00:00
floitsch@google.com 968ebcff5a Make Completers asynchronous.
BUG= http://dartbug.com/9990
R=ajohnsen@google.com, lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22417 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-06 15:15:15 +00:00
ajohnsen@google.com 3cb1d3d098 Fix dartc status files, after mime_multipart_parser_test change.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22359 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 10:28:27 +00:00
ricow@google.com 4b042235ab Remove suppression for tests that are no longer failing on dartc
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22301 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-02 07:29:14 +00:00
hausner@google.com 8e29370a1b BREAKING CHANGE: enforce part of directive
For historical reasons, the VM is currently too lenient when parsing library parts. Files that get loaded through a 'part' directive must start with a 'part of libraryname;' clause. The VM so far has not reported an error if the clause is missing.

This change enforces the grammar as the Spec mandates it. Library parts that do not start with 'part of' will no longer compile.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22278 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 20:46:48 +00:00
ajohnsen@google.com d548955117 Enable parsing of IPv6 form addresse (see rfc2373 and rfc2732).
This also wraps the 'domain' component in toString with [...], if it
contains any ':' characters.

BUG=
R=floitsch@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22228 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 09:27:50 +00:00
johnmccutchan@google.com 10c4dcba45 Inline Float32x4 min,max,sqrt,reciprocal,reciprocalSqrt, and scale
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22185 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 17:26:42 +00:00
johnmccutchan@google.com 26c86b504e Inline Float32x4 comparison.
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22144 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-29 19:17:38 +00:00
johnmccutchan@google.com df712e164e Inline Float32x4 constructors
Review URL: https://codereview.chromium.org//13936009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22055 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 22:03:05 +00:00
antonm@google.com 653db25198 Remove suppression for now fixed test.
TBR=podivlov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22024 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 11:56:42 +00:00
sgjesse@google.com 921653a087 Add a new test suite 'analyze_tests'
The new test suite 'analyze_tests' will run the analyzer on the
selected tests, and fail if there are static type errors. Currently
only the tests in tests/standalone are included, but that can easily
be expanded.

The reason for starting this was that for M4 we where missing two
'part' files in io.dart (for the HttpBody utility class). This caused
the use of HttpBody in the editor to be complicated. With static type
checking on the tests which tested HttpBody this mistake would have
been caught.

R=ager@google.com, ricow@google.com, kustermann@google.com, ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21944 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 12:47:13 +00:00
johnniwinther@google.com f721629103 Change libraries map to use Uri.
Review URL: https://codereview.chromium.org//14178010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21929 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 08:19:24 +00:00
johnmccutchan@google.com 08c99e80e6 Inline Float32x4 Getters
Review URL: https://codereview.chromium.org//13872020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21897 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 17:52:10 +00:00
ager@google.com 431954b584 Rename dart:typeddata to dart:typed_data.
R=asiva@google.com, floitsch@google.com, srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21871 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 11:54:54 +00:00
johnniwinther@google.com 9dfdd9634d Status updated.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21806 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 10:58:23 +00:00
johnniwinther@google.com b6b309de52 Change url to uri on LibraryMirror.
Review URL: https://codereview.chromium.org//14251005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21803 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 10:27:41 +00:00
kevmoo@j832.com d5bff306b2 unittest: big cleanup, tightened test semantics
This ensures that group/test etc are not called when the test system is already running

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21707 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 21:34:38 +00:00
ahe@google.com 2abb5be5ec Implement Symbol correctly in dart2js.
Review URL: https://codereview.chromium.org//14079003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21694 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 19:25:22 +00:00
floitsch@google.com 80aad7930f Fix skipWhile.
BUG= http://dartbug.com/9480

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21623 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 15:39:42 +00:00
ngeoffray@google.com 573d68766f Does not fail anymore.
Review URL: https://codereview.chromium.org//14323009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21613 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 10:34:55 +00:00
iposva@google.com 5b369cc1c4 - Implement reflectClass.
Review URL: https://codereview.chromium.org//14118011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21610 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 10:11:21 +00:00
lrn@google.com 084cc64ce1 Add Stream.forEach
Review URL: https://codereview.chromium.org//14312010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21608 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 09:13:16 +00:00
iposva@google.com 54d56ca5d8 - Add synchronous mirror API. Resurrects invoke, apply, newInstance,
getField and setField as synchronous calls that accept isolate-local
  object as arguments.

Originally reviewed as https://codereview.chromium.org/14044007/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21591 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 23:19:30 +00:00
vsm@google.com b29a528fc6 Revert "Revert "Remove typeddata transferable constructors""
Take #2. The only change here is the additional test fix under runtime that I missed.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21586 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 22:36:04 +00:00
vsm@google.com 5a7d2854fa Revert "Remove typeddata transferable constructors"
This reverts commit r21576.  Looks like I missed some tests.

TBR=siva

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21580 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 21:22:07 +00:00
vsm@google.com 36d8fd9882 Remove typeddata transferable constructors
These constructors are not in the public/shared typeddata.dart.  Tests
updated accordingly.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21576 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 20:55:08 +00:00
johnmccutchan@google.com 252d27c293 Binary Float32x4 ops.
Review URL: https://codereview.chromium.org//13867006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21541 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 10:04:34 +00:00
lrn@google.com aaa45c7682 Make JSON stringify throw a JsonUnsupportedObjectError on cycles.
Add lib/json test based on tests/json/json_test.dart (is this used at all?).

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21538 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 08:13:18 +00:00