Commit Graph

209 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
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
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
ngeoffray@google.com 80e886b52e Make mock_compiler initialize the identical function, and use the identical function element directly in the simple inferrer.
Review URL: https://codereview.chromium.org//14362026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21730 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 09:53:55 +00:00
ngeoffray@google.com 55c67a1fd9 Fix variable allocator in the presence of HCheck instructions.
Review URL: https://codereview.chromium.org//13877009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21607 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 09:05:52 +00:00
floitsch@google.com 5431a5af54 Remove AsyncError with Expando.
Review URL: https://codereview.chromium.org//14251006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21498 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:58:32 +00:00
sra@google.com cc8496c078 Update dummy compiler with new interceptor-related methods
TBR=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21404 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-13 06:52:07 +00:00
ngeoffray@google.com 2ca428a715 Checked mode has the bug https://code.google.com/p/dart/issues/detail?id=9687.
Review URL: https://codereview.chromium.org//13933010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21206 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 14:51:35 +00:00
ngeoffray@google.com 51f4e4c5ee Realize that this() is a closure send.
Review URL: https://codereview.chromium.org//13912003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21204 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 14:14:54 +00:00
kevmoo@j832.com 470b770a51 lib/utf: remove codepointsToString
point folks to use String.fromCharCodes

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21151 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 13:51:05 +00:00
erikcorry@google.com 8809ce7e07 Disable failing test completely bug=9687
R=ahe@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21025 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-06 15:48:08 +00:00
floitsch@google.com 8fd6d0aafd Remove Expect from core library.
Committed: https://code.google.com/p/dart/source/detail?r=19755
Reverted: http://code.google.com/p/dart/source/detail?r=19756

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20996 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 19:43:16 +00:00
ahe@google.com 7ccd8ad5ef Wrapping files without library tags is neither necessary nor correct anymore.
Review URL: https://codereview.chromium.org//13674004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20971 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 15:11:40 +00:00
ahe@google.com 9a3b8bb633 Remove dart:io import from ssa/tracer.dart.
Committed: https://code.google.com/p/dart/source/detail?r=20917

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20961 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 11:52:42 +00:00
ngeoffray@google.com 2671148800 Update another dummy corelib.
Review URL: https://codereview.chromium.org//12606008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20309 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 10:01:43 +00:00
ngeoffray@google.com 6f4011bce2 Convert a == to a builtin identity check if the receiver type can only hit Object==.
Review URL: https://codereview.chromium.org//12974002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20308 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 09:51:22 +00:00
ngeoffray@google.com d054b648ed Recognize const/fixed/growable arrays in simple types inferrer.
Review URL: https://codereview.chromium.org//12753003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19766 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 09:19:20 +00:00
floitsch@google.com 5dc8107c53 Revert "Remove Expect from core library."
This reverts commit 19755.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19756 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 03:19:07 +00:00
floitsch@google.com 12dbd2fd70 Remove Expect from core library.
Review URL: https://codereview.chromium.org//12212016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19755 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 02:40:37 +00:00
ahe@google.com e6d4c9925c Revert "Don't output tons of messages on apidoc." and "Fix bot breaks."
This reverts r19662 and r19666.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19694 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 13:55:39 +00:00
ngeoffray@google.com 9570fb714f Implement CHA through type mask and TypedSelector in the simple type inferrer.
Review URL: https://codereview.chromium.org//12528008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19689 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 12:58:07 +00:00
amouravski@google.com e9105a35a5 Fix bot breaks.
A warning changed to an info, but I forgot to update the test that tests that.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19666 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 00:31:29 +00:00
kasperl@google.com b750181a04 Fix warnings in dart2js code and re-enable analyzer coverage.
R=karlklose@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19545 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 09:53:10 +00:00
kasperl@google.com f7098d4354 Continue the crazy hacking on the recursive_import_test and give
it a proper interceptors library.

This is a mess. People that use the compiler API shouldn't have
to know about providing the source code for our builtin libraries.

R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19207 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-28 08:48:15 +00:00
kasperl@google.com b6cd81eecf Mark dart2js as failing on the analyzer.
TBR'ed.

R=danrubel@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19043 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-26 14:13:22 +00:00
lrn@google.com 3c0ac360e7 Remove deprecated string features.
Make String.codeUnits return a List.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18960 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-25 10:48:09 +00:00
floitsch@google.com ecce8a6293 Remove deprecated Strings class.
Review URL: https://codereview.chromium.org//12295014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18686 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 13:57:03 +00:00
ahe@google.com fbc999f317 Fix warnings spotted by dartc.
Review URL: https://codereview.chromium.org//12294028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18680 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 13:02:52 +00:00
ahe@google.com 56e7903f02 Mark utils/dart2js_test as failing on dartc
Review URL: https://codereview.chromium.org//12295027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18673 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 11:51:51 +00:00
floitsch@google.com c10172597f Make Uri.isAbsolute and Uri.hasAuthority getters.
BUG= http://dartbug.com/8504

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18505 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 09:48:52 +00:00
ngeoffray@google.com da51aac292 Add a type kind to TypedSelector. A typed selector can either be
- EXACT: it knows the exact type of the receiver (e.g. new Map()).
- SUBCLASS: the type is in the subclass hierarchy (e.g. 'this')
- INTERFACE: any type that implements the receiver type is a target.
Review URL: https://codereview.chromium.org//12207081

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18311 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 16:42:27 +00:00
ngeoffray@google.com 124f19a793 Turn getters and setters that we know are not intercepted into regular getter and setter calls.
Review URL: https://codereview.chromium.org//12087101

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18121 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 09:11:35 +00:00
blois@google.com b551238b34 Fixing case of IE polyfill using deprecated syntax
I missed this case when removing the APIs deprecated from M2, it's an IE polyfill.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18003 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-01 21:19:16 +00:00
floitsch@google.com ed938af868 Rename new Uri.fromString to Uri.parse.
Review URL: https://codereview.chromium.org//12052038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17562 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 13:26:18 +00:00
johnniwinther@google.com d17d1410f7 Revert "Add --analyze-only flag to dart2js"
This reverts commit r17538.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17542 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 11:33:12 +00:00
johnniwinther@google.com 974d439bce Add --analyze-only flag to dart2js
Review URL: https://codereview.chromium.org//11882017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17538 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 11:22:20 +00:00
iposva@google.com 57f62dd2e1 - Make sure we can "run" all tests using simarm/simmips.
Review URL: https://codereview.chromium.org//12042065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17516 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 00:42:04 +00:00
johnniwinther@google.com 6e8302f735 Make dummy_compiler_test and recursive_import_test work.
Review URL: https://codereview.chromium.org//12041043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17450 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 12:45:17 +00:00
kasperl@google.com c80c122d5a Test now passes!
TBR'ed.

R=johnniwinther@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16952 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 07:21:52 +00:00
ngeoffray@google.com 282afc679b Do not apply optimizations based on an element if that element cannot be resolved.
Review URL: https://codereview.chromium.org//11817013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16906 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 09:51:08 +00:00
scheglov@google.com 82f1c72f92 Initial support for mixins in dartc.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16864 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 17:13:02 +00:00
kasperl@google.com 9a9ccea0e3 Test no longer fails (issue 7744 has been fixed).
TBR'ed.

R=karlklose@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16836 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 08:22:29 +00:00
ahe@google.com 6b11e3ec5a More cuddling dart2js checked mode.
Review URL: https://codereview.chromium.org//11773043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16801 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 14:37:58 +00:00
scheglov@google.com 954a07bf60 Switch 'default' is allowed to have fall-through
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16740 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 19:37:49 +00:00
scheglov@google.com c300988226 Update status files for dartc
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16737 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 19:08:08 +00:00
whesse@google.com 39f61cab9c Update status to reflect utils/json_test failing with issue 7737.
BUG=https://code.google.com/p/dart/issues/detail?id=7737

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16733 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 18:22:04 +00:00
ager@google.com 6f45a61404 Update status files for dartc (utils, co19).
Marking the utils ones as pass,fail because they pass on
the analyzer.

R=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16709 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 15:18:49 +00:00
ahe@google.com bcbccaf2d9 Update dart2js unit tests to new library API.
Review URL: https://codereview.chromium.org//11788016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16702 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 14:51:20 +00:00
floitsch@google.com 4a7dfd2da3 Big merge from experimental to bleeding edge.
Review URL: https://codereview.chromium.org//11783009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
ngeoffray@google.com 7db6e9d3e0 Re-apply "Clean up the patch file for the isolate library by introducing a new buitlin library: isolate_helper.dart". This time load eagerly isolate_helper so that the native handler can see it.
Review URL: https://codereview.chromium.org//11640021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16500 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-26 17:15:02 +00:00