Commit Graph

229 Commits

Author SHA1 Message Date
ahe@google.com 4976228c46 Warn about overriding operator== but not hashCode.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24463 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 11:20:04 +00:00
iposva@google.com 287f80bb1f - Make sure BoundedType and MixinAppType have a name.
- Reenable test from r23964.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23975 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 13:02:46 +00:00
ricow@google.com 09b382dd32 Revert revision 23964
It is causing crashes on 64 bit linux, win32 and mac.

R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23968 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 11:30:26 +00:00
ricow@google.com 34cb83a0bf Run dummy compiler test with --print-object-histogramy on the vm
To test the functionality introduced in r23954

R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23964 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 11:15:41 +00:00
ngeoffray@google.com 1f791bdd69 Move array and string related HType from const to a field in the backend.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23900 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-12 10:20:30 +00:00
kasperl@google.com c379f3485e Update utils.status. More stuff passing!
R=ricow@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23733 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 08:41:37 +00:00
scheglov@google.com 80fea8fd8e More fixes for java2dart and status files.
Now DDA passes/fails the same tests as Java version.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23705 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 18:13:44 +00:00
jwren@google.com 104baea740 Fix for the broken analyzer-FYI bot
R=brianwilkerson@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23697 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 16:57:58 +00:00
regis@google.com b7eb5aedbe Cleanup various test status files.
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23450 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 00:39:37 +00:00
antonm@google.com cec85b4ec4 Fix a typo.
TBR=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23416 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 14:04:36 +00:00
antonm@google.com d28b51e1a6 Skip layout test.
TBR=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23410 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 13:30:08 +00:00
ngeoffray@google.com 91297abbfa Re-apply "Implement operator== and hashCode for bound closures.". The emitter should not try to share a bound closure class between an intercepted method and a non-intercepted method because the call has different calling conventions: the intercepted version pass an extra argument, which is the actual receiver.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23387 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 08:27:28 +00:00
ngeoffray@google.com 76f4ae07ba Revert r23380, some browser tests fail.
Review URL: https://codereview.chromium.org//15987007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23383 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 07:05:38 +00:00
ngeoffray@google.com 6ed50f8a6b Implement operator== and hashCode for bound closures.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23380 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 06:48:38 +00:00
sgjesse@google.com 9d6a64e81b Merge the dart:uri library into dart:core and update the Uri class
This merges the dart:uri library into dart:core removing the dart:uri library. Besides moving the library the Url class has been changed.

* Removed existing Uri constructor as it was equivalent with Uri.parse
* Remamed constructor Uri.fromComponents to Uri
* Moved toplevel function encodeUriComponent to static method Uri.encodeComponent
* Moved toplevel function decodeUriComponent to static method Uri.decodeComponent
* Moved toplevel function encodeUri to static method Uri.encodeFull
* Moved toplevel function decodeUri to static method Uri.decodeFull
* Rename domain to host
* Added static methods Uri.encodeQueryComponent and Uri.decodeQueryComponent
* Added support for path generation and splitting
* Added support for query generation and splitting
* Added some level of normalization

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23266 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 13:35:01 +00:00
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
johnniwinther@google.com b8fac0a378 Add StackTrace to mock corelib.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23223 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 13:13:24 +00:00
johnniwinther@google.com 71bfc2d935 Type check try statements
BUG=
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23220 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 12:47:28 +00:00
ngeoffray@google.com c21b5846f5 Introduce a UnionTypeMask, currently limited to 4 types.
R=kasperl@google.com, polux@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23012 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-22 12:43:37 +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
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