Commit Graph

5615 Commits

Author SHA1 Message Date
sra@google.com fd93acc652 Revert "Revert "Fix x.runtimeType for native classes""
Fix dummy compiler to contain Interceptor with operator==

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21985 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 21:05:50 +00:00
antonm@google.com 12d5e65894 Chrome roll.
TBR=ager@google.com, podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21967 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 18:02:30 +00:00
sra@google.com 7474f1f7c2 Revert "Fix x.runtimeType for native classes"
Review URL: https://codereview.chromium.org//14478002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21965 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 17:58:09 +00:00
sra@google.com f7cbfe798d Fix x.runtimeType for native classes
1. Make sure native classes inherit from Interceptor so they pick up get runtimeTime from there.

2. Move some duplicated code into js_rti.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21963 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 17:32:15 +00:00
sgjesse@google.com ddbbfea209 Update status file
TBR=ager@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21948 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 13:30:02 +00:00
sgjesse@google.com a5b331161a Fix broken test
Turned out that UnmodifiableListMixin was not public.

R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21947 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 13:13:23 +00:00
kasperl@google.com 892bef1b3c Improve optimization of operations on indexables by using more inferred type information and by disabling inlining of [], []= and length (still optimized but now in the folder).
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21946 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 13:03:36 +00:00
lrn@google.com 4214819184 Mark list_test as failing on browsers.
Seems to be failing in UInt8List.operator[] with invalid argument.

BUG=http://dartbug.com/10174

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21945 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 12:58:01 +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
sgjesse@google.com 300ceb4c22 Fix test
The test started failing on Windows after socket code changes.

TBR=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21943 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 12:33:14 +00:00
kasperl@google.com a58131df79 Allow using native JS []= on typed data lists.
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21938 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 11:04:18 +00:00
ajohnsen@google.com ca706b0387 Disable IPv6 lookup by default.
Will revert once IPv6 have stablized.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21936 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 10:25:25 +00:00
lrn@google.com e0e13fe852 Fix missing concurrency check in [].forEach.
Also fix a bad range check for List.setRange.

Added more tests.

BUG=http://dartbug.com/10045

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21935 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 09:34:17 +00:00
ajohnsen@google.com 55963a1a6d Add new InternetAddress class with a static lookup function (including IPv6
results).

Reapply of https://codereview.chromium.org/13880029/ with fixes.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21934 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 09:26:58 +00:00
kasperl@google.com 102da4779f Update dart2dart test status (after throw as an expression).
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21933 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 09:18:39 +00:00
kasperl@google.com 55bb78e8cf Update mock compiler.
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21931 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 08:32:41 +00:00
kasperl@google.com 1ae2542bae Add support for rethrow and start treating throw <expr> as an expression.
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21930 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 08:24:28 +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
ajohnsen@google.com 60946b53fc Revert "Add new InternetAddress class with a static lookup function (including IPv6 results)."
Revert "Attempt to fix strict align issue."
Revert "Trying another fix."

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21928 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 08:10:00 +00:00
johnniwinther@google.com 797c6aeeb9 Remove dartdoc specific methods from dart2js_mirror.
BUG=

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21924 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 07:31:39 +00:00
ajohnsen@google.com 20d1f5ddda Add new InternetAddress class with a static lookup function (including IPv6 results).
Reapply of https://codereview.chromium.org/14083007/ with fixes.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21923 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 07:12:05 +00:00
sgjesse@google.com 6f14d9678a Fix static type errors in a number of tests
R=ager@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21919 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 06:12:08 +00:00
kasperl@google.com 22406c8a18 Optimize length access on all JSIndexable things.
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21918 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 05:36:34 +00:00
sra@google.com 334dedd8dc Test for super call on intercepted class
See http://dartbug.com/10166

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21912 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 23:52:41 +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
lrn@google.com 8f4f669d7c Fix build by marking test failing.
Typed arrays on IE9 fails.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21885 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 14:36:34 +00:00
ager@google.com 4f1a6eccc4 More fixes. Thanks to Slava for reminding me of check-function-fingerprints flag.
R=asiva@google.com, floitsch@google.com, srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21875 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 12:23:27 +00:00
ngeoffray@google.com a2f2eb7b96 Move test to dart2js_extra since it does not apply to VM.
Review URL: https://codereview.chromium.org//14091016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21874 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 12:12:55 +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
ngeoffray@google.com 03a65ef1fe Throw NoSuchMethod or ArgumentError instead of generating a bailout, when we know the next instruction after a type guard will throw.
Review URL: https://codereview.chromium.org//14404004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21870 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 11:51:45 +00:00
sgjesse@google.com f45c407244 Fix bugs in HttpBody detected by the analyzer
TBR=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21868 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 11:18:01 +00:00
lrn@google.com 554a845e4f Make List.remove return boolean.
Remove Queue implementations' remove methods, which are not in the
interface.
Added more tests for list operations.
Fixed bugs and omissions found by tests.

http://dartbug.com/10042
http://dartbug.com/10112

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21867 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 11:13:17 +00:00
sgjesse@google.com afcb3ce69e Revert "Add new InternetAddress class with a static lookup function (including IPv6 results)"
TBR=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21865 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 10:07:03 +00:00
ajohnsen@google.com b33d142414 Add new InternetAddress class with a static lookup function (including IPv6 results).
Socket.connect/ServerSocket.bind now accepts IPv6 host names. If a new ServerSocket is connected to an IPv6 interface, it will (if possible) support incoming IPv4 connections as well.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21862 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 09:36:18 +00:00
sgjesse@google.com 029e343b42 Add the HttpBodyHandler files to the dart:io library
R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21861 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 08:38:05 +00:00
sgjesse@google.com efcd056ebe Support upgrading sockets to secure sockets
This build on the support for upgrading raw sockets to raw secure sockets.

R=ajohnsen@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=8789

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21859 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 06:50:59 +00:00
sra@google.com 15e8e0d70a Revert "Revert "Allow multiple tags in native clause.""
WebKit with a 'K', not 'k'

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21853 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 22:57:06 +00:00
blois@google.com 463e990434 Revert "With the collections deriving from ListBase, we no longer need to implement a number of boiler-plate methods."
This reverts commit http://code.google.com/p/dart/source/detail?r=21848.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21852 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 22:54:33 +00:00
blois@google.com 3dc436c463 With the collections deriving from ListBase, we no longer need to implement a number of boiler-plate methods.
There are some gotchas with Element and Node lists as they may mutate the list being passed in if it's a nodelist as well, so I'm keeping those unimplemented.

In some cases this may fall back to less efficient operations (such as the WrappedList which no longer forwards every method), but I tried to keep all of the primary cases fast and I believe that these methods would fall back to generic implementations anyways in all cases where we use the classes.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21848 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 22:29:05 +00:00
johnniwinther@google.com f4f3958af1 Change MirrorSystem.libraries to Map<Uri, String>
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21812 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 13:01:20 +00:00
ngeoffray@google.com c68e8dec68 Add special rules in the inferrer that some int operations return an int.
Review URL: https://codereview.chromium.org//14120008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21810 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 12:40:33 +00:00
vegorov@google.com 2e0af6585f Ensure that type of the AssertAssignable instruction is recomputed.
If the previous type was more specific than destination type but new value type is not than we need to update outgoing type to be destination type. Otherwise a stale more specific type will be flowing out.

BUG=dart:10094
R=kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21809 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 12:30:05 +00:00
ager@google.com fe09da3bb9 Only mark dom_isolates_test as failing on ie9 and *not* range_checks_test
R=vsm@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21808 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 11:41:04 +00:00
ager@google.com 840c181722 Add ie9 to the list for dom_isolates_test.
R=vsm@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21807 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 11:34:15 +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
ager@google.com 1fb6556922 Update status files with new failures
R=vsm@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21805 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 10:51:47 +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
ager@google.com 68d7f6680f Forgot drt in the list
R=vsm@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21802 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 10:25:20 +00:00
ager@google.com e61a72e9c9 Apparently typed_data_message_test still fails on browsers
R=vsm@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21801 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 10:19:23 +00:00
ager@google.com 44eae39fef dart2js now supports typeddata and can run the http_parser test
R=sgjesse@google.com, vsm@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21800 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 10:02:37 +00:00