Commit Graph

2071 Commits

Author SHA1 Message Date
regis@google.com 3711825476 Fix Random_nextState intrinsic on ARM.
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24548 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 20:16:53 +00:00
zra@google.com 60392c70fd Implements external array access for mips.
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24524 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 16:42:39 +00:00
floitsch@google.com 60e5ca3727 Add runAsync interceptor.
BUG= http://dartbug.com/11279
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24470 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 14:41:03 +00:00
ahe@google.com 201b854db6 Skip dart:mirrors test on dart2dart.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24406 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 13:58:03 +00:00
sgjesse@google.com 887c8e7596 Move getters from Options to Platform
The getters for executable, script and version are now statics on
Platform. I kept them on Options for now, but updated most tests to
use Platform.

R=ajohnsen@google.com, floitsch@google.com, iposva@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24401 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 12:56:23 +00:00
ahe@google.com d3c24e1068 Implement JsClassMirror.constructors.
BUG=http://dartbug.com/11486
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24389 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 09:32:56 +00:00
ahe@google.com c5fd57bf17 Implement JsMirrorSystem.libraries.
BUG=http://dartbug.com/11484
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24388 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 09:26:18 +00:00
floitsch@google.com 48b1656690 Allow Object when doing lookups.
According to our typing rules a Set<Apple> is a Set<Fruit>. However, before this change, we couldn't use it as a Set<Fruit>:

===
bool foo(Set<Fruit> fruits) {
  // Would yield a type-error since we actually got a Set<Apple>.
  return fruits.contains(new Banana());
}

foo(new Set<Apple>());
===

R=ajohnsen@google.com, blois@google.com, lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24326 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 12:45:10 +00:00
johnniwinther@google.com 28acc13c57 Update status files.
BUG=
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24313 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 09:09:07 +00:00
johnniwinther@google.com 2432ac4647 Support runtime check of function types.
New scheme for checking function subtyping:

1) Generate an $isX predicate on objects that are statically known subtypes of a given function type
2) Generate a signature encoding the whole function type on objects when a runtime check is needed.

A check succeeds if either 1) or 2) is true.

If too many predicates are needed a signature is generated instead, and if a signature is needed, no predicates are generated. Maximum number of predicates is currently determined by the magic constant MAX_FUNCTION_TYPE_PREDICATES in emitter.dart.

R=karlklose@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24309 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 06:58:55 +00:00
johnniwinther@google.com 90bf6203ee Revert "Support runtime check of function types."
This reverts commit r24286.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24288 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 14:02:47 +00:00
johnniwinther@google.com 2ce76ed94a Support runtime check of function types.
New scheme for checking function subtyping:

1) Generate an $isX predicate on objects that are statically known subtypes of a given function type
2) Generate a signature encoding the whole function type on objects when a runtime check is needed.

A check succeeds if either 1) or 2) is true.

If too many predicates are needed a signature is generated instead, and if a signature is needed, no predicates are generated. Maximum number of predicates is currently determined by the magic constant MAX_FUNCTION_TYPE_PREDICATES in emitter.dart.

R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24286 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 13:35:56 +00:00
ahe@google.com 2d28935c7c Include named parameters in reflection names.
BUG=http://dartbug.com/9283
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24278 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 10:34:46 +00:00
ahe@google.com 4df615688b Update status for dart2dart.
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24185 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-19 13:59:45 +00:00
ahe@google.com 93affd21c9 Implement minified MirrorSystem.getName.
BUG=http://dartbug.com/11218
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24180 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-19 12:56:24 +00:00
ahe@google.com 8e6f665fac ClassMirror.newInstance in minified mode.
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24169 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-19 07:47:44 +00:00
ahe@google.com 4dc7488ef0 interceptedNames should include all interceptor method generated, not just the ones called.
BUG=http://dartbug.com/11309
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24140 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-18 13:18:48 +00:00
ahe@google.com 4720dfe31c Correctly reflect on intercepted classes.
BUG=http://dartbug.com/11309
R=ngeoffray@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24134 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-18 11:20:19 +00:00
ahe@google.com 550366ed84 Revert "Correctly reflect on intercepted classes."
This reverts r24129.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24130 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-18 10:53:52 +00:00
ahe@google.com 9310152704 Correctly reflect on intercepted classes.
BUG=http://dartbug.com/11309
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24129 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-18 09:26:31 +00:00
ahe@google.com a77cea883e Dart2dart status.
Review URL: https://codereview.chromium.org//17255002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24089 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 11:07:46 +00:00
ahe@google.com 4509912981 Improve toString on mirrors and align VM and dart2js.
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24081 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 09:39:12 +00:00
ahe@google.com 7d1cff4eec Reuse existing test instead of duplicating code.
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24080 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 09:18:27 +00:00
ahe@google.com 62d3aa43f2 Fix comment in status file
Review URL: https://codereview.chromium.org//17239003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24078 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 08:53:10 +00:00
ricow@google.com 32a7905ef8 Mark lib/mirrors/library_metadata_test as passing on dart2js csp.
I don't think the bug to which this suppression was assigned is correct.
Additionally, the suppression on the next line for  mirrors/metadata_test seems to be wrongly clasified as a vm bug as well (or I am wrong and this is actually a vm bug, but it does not seem like it).

R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24073 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 06:50:09 +00:00
floitsch@google.com 2ae198d527 Reapply "Zone support for Futures, Timer, Streams."
This reapplies commit r24034.
This reapplies commit r24035.
This reapplies commit r24036.
This reapplies commit r24037.

+ some status file updates and fixes.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24064 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-15 11:28:38 +00:00
hausner@google.com 7b75ff5d08 Fix dart2dart status
Metadata test fails with this error

tests/lib/mirrors/metadata_test.dart:46:20: Warning: Using "MirrorSystem.getName" may result in larger output.
  if (MirrorSystem.getName(symbol) != 'symbol') {

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24061 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 23:07:58 +00:00
hausner@google.com e31cc3e3f2 Fix dart2js minified status
Metadata test fails under dart2js-d8 minified. Passes in non-minified case.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24060 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 23:00:39 +00:00
zra@google.com 1e4ee79226 Fix status file syntax error.
Review URL: https://codereview.chromium.org//17121003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24056 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 22:08:03 +00:00
hausner@google.com fb317e6b2c Fix dart2dart status
Review URL: https://codereview.chromium.org//17088007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24055 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 22:05:58 +00:00
srdjan@google.com a288a5de57 Disable isolate and async tests on simarm as they are constantly causing trouble. Enable them once we have more reliable state.
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24054 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 22:02:51 +00:00
gram@google.com 6cf2368212 Mark a few more ARM/MIPS tests as crashable. They started crashing
after unittest was changed in r24045.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24052 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 21:20:19 +00:00
hausner@google.com 457bb1bdcb Remove support for + prefix in number literals
Also fix some tests that expected + prefix in hex numbers to be illegal. According to our documentation, int.parse() accepts + for numbers in all formats/radixes.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24051 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 21:16:46 +00:00
gbracha@google.com c78462c2ad Changes to mirrors in support of metadata access at runtime.
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24050 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 21:12:58 +00:00
floitsch@google.com bcba9d5c8c Revert "Zone support for Futures."
Revert "Add Zone support for Timers."
Revert "Add zone support to streams."
Revert "catchErrors and waitForCompletion now based on runZonedExperimental."

This reverts commit r24034.
This reverts commit r24035.
This reverts commit r24036.
This reverts commit r24037.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24042 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 17:17:16 +00:00
floitsch@google.com 98b131e119 Revert "Update status file."
This reverts commit r24040.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24041 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 17:07:46 +00:00
floitsch@google.com 91362998b2 Update status file.
Review URL: https://codereview.chromium.org//17055005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24040 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 17:00:30 +00:00
floitsch@google.com 9485a093ae catchErrors and waitForCompletion now based on runZonedExperimental.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24037 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 16:29:32 +00:00
floitsch@google.com 496f6dca97 Add zone support to streams.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24036 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 16:28:32 +00:00
floitsch@google.com 96c6330215 Add Zone support for Timers.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24035 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 16:27:35 +00:00
floitsch@google.com 40216008f2 Zone support for Futures.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24034 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 16:26:45 +00:00
ahe@google.com 3c81dea67e Update status files.
Review URL: https://codereview.chromium.org//17064005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24031 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 14:17:06 +00:00
zra@google.com 826b6ce267 Fix status files for SIMARM, SIMMIPS.
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24014 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 22:28:34 +00:00
sgjesse@google.com b7260126ca Make some HTTP utility functions public
Added a new static function splitQueryString to the URI class to expose parsing of a query string without constructing a URI.

Added class HttpDate in dart:io with a few HTTP date parsing and formatting methods.

Also turned some Uri comments into dartdoc.

I have not remove the parseQueryString and decodeUrlEncodedString from _HttpUtils as they still do some non standard things that I am not sure we want to add to the URI class. These are:

* Supporting semi-colon as separator in query strings (see http://www.w3.org/TR/REC-html40/appendix/notes.html#ampersands-in-uris)
* Supporting other encodings than UTF-8 for percent encoded strings

R=ajohnsen@google.com
BUG=http://dartbug.com/9888

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23972 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 12:19:09 +00:00
ajohnsen@google.com feca0ac6dd Introduce new LinkedList to dart:collection.
LinkedList required the element to extend LinkedListEntry. This is
useful for implementation that want to remove/unlink a entry in O(1), given the
entry.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23969 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 11:54:06 +00:00
sgjesse@google.com b534c7fdf3 Update status file
There is no longer a crypty sub-directori in standalone.

R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23961 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 10:22:45 +00:00
regis@google.com d6b41b2f56 Mark tests as timing out.
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23921 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-12 17:35:59 +00:00
regis@google.com 264d28744f Fix decoding of object pool access in code patching on ARM.
Fix shift by zero and divide by one on ARM.
Update test status files.

R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23920 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-12 16:57:06 +00:00
kustermann@google.com 8ea94854e3 Second round of status file updates for simarm/arm
TBR=zra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23915 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-12 16:04:39 +00:00
ahe@google.com 233a218a30 Fix two type errors and dart2dart status.
Review URL: https://codereview.chromium.org//16728005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23894 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-12 07:38:32 +00:00