Commit Graph

2543 Commits

Author SHA1 Message Date
sra@google.com 64e5faf168 update html.status - missed one configuration last time.
Review URL: https://chromiumcodereview.appspot.com//10870027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11205 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 03:10:50 +00:00
sra@google.com c53570687c Revert "Revert "Conversions between Dart code and DOM code.""
Adjust html.status

Review URL: https://chromiumcodereview.appspot.com//10868035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11202 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 01:13:39 +00:00
cshapiro@google.com 2e00a80dd5 Provide an Expando implementation for the VM.
Review URL: https://chromiumcodereview.appspot.com//10861041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11196 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 00:03:40 +00:00
sra@google.com 4fcc448e4c Revert "Conversions between Dart code and DOM code."
Review URL: https://chromiumcodereview.appspot.com//10879025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11194 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 23:53:08 +00:00
sra@google.com 7103096a77 Conversions between Dart code and DOM code.
Arguments passed to and values returned by JavaScript code  sometimes need to be converted.  dart:html for dart2js specifies these conversions in a table indexed by type and, optionally, operation.

If an operation has any overloads that require conversion, a dispatch is generated to identify the values needing conversion, and to ensure the native method is called with the same number of arguments as the original user call site.

Review URL: https://chromiumcodereview.appspot.com//10827428

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11193 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 23:30:17 +00:00
vsm@google.com 769cfa00b1 Support proxying of objects between JS and Dart.
Review URL: https://chromiumcodereview.appspot.com//10827462

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11182 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 20:13:36 +00:00
vsm@google.com 4804cb5f0f Fix FF status for js_interop_2_test
TBR=ajohnsen@google.com

Review URL: https://chromiumcodereview.appspot.com//10876017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11177 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 17:55:24 +00:00
ahe@google.com aa97f486e1 Mark test which uses Math as failing.
Review URL: https://chromiumcodereview.appspot.com//10874011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11176 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 17:14:44 +00:00
smok@google.com 0168cbb59a [dart2dart] In placeholder collector skip non top-level elements from dart:* libraries.
Protects us from double-prefixing things like:
import('dart:io');
Platform.operatingSystem;

Review URL: https://chromiumcodereview.appspot.com//10868020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11174 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 16:42:15 +00:00
vsm@google.com 282cf2fc15 Restore js interop code
Create a copy of the formerly shared serialization code for now to unblock js interop work.  We can discuss if/how it makes sense to merge these.

Review URL: https://chromiumcodereview.appspot.com//10878010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11171 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 16:35:43 +00:00
johnniwinther@google.com 7c61b110d8 Const variables handled as final
Review URL: https://chromiumcodereview.appspot.com//10879003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11170 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 16:15:15 +00:00
johnniwinther@google.com 5e1e9a888d Status change: Dartc fails on static const in interfaces
Review URL: https://chromiumcodereview.appspot.com//10867013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11169 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 16:02:00 +00:00
smok@google.com 582730cb6d [dart2dart] Fix type variables for interfaces and default classes if they are in different libs.
Example:
lib1: interface I<K> default C<K> {...}
lib2: class C<K> {...}

Review URL: https://chromiumcodereview.appspot.com//10875009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11168 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 15:55:39 +00:00
johnniwinther@google.com f41a4ffac6 Language tests updated to use const instead of final.
Review URL: https://chromiumcodereview.appspot.com//10837359

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11165 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 15:36:19 +00:00
smok@google.com 6a44ac9411 dart2dart Rename statics as globals.
Review URL: https://chromiumcodereview.appspot.com//10870008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11159 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 15:10:01 +00:00
ager@google.com d10e73e5bd Add library tag to test to make it work in Dartium.
R=antonm@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10869014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11157 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 14:52:26 +00:00
ager@google.com 722c1a3ce6 Deprecate Math object in corelib in favor of dart:math library.
Review URL: https://chromiumcodereview.appspot.com//10829459

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11155 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 14:33:01 +00:00
ahe@google.com d96c58598a Reify partial metadata.
Review URL: https://chromiumcodereview.appspot.com//10869013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11152 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 14:17:55 +00:00
ajohnsen@google.com 1423e10896 Mark js_interop_2_test as failing on dart2js-chrome and dart2js-ff.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10877012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11149 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 13:47:45 +00:00
ahe@google.com 234caf4849 Create an outline of metadata API in dart2js.
Review URL: https://chromiumcodereview.appspot.com//10879006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11147 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 13:37:13 +00:00
ajohnsen@google.com a38502e5a4 Mark js_interop_2_test on none-drt as failing.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10875007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11146 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 13:24:48 +00:00
sgjesse@google.com d354eb558b Fix issue 4639
See comment#3 on http://code.google.com/p/dart/issues/detail?id=4639

R=kasperl@google.com

BUG=dart:4639
TEST=tests/compiler/dart2js_extra/regress/4639_test.dart

Review URL: https://chromiumcodereview.appspot.com//10879007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11144 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 13:07:11 +00:00
ajohnsen@google.com df4c9b65d4 Clean up html.status file.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10872012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11143 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 12:58:04 +00:00
smok@google.com 16f3d80d74 dart2dart Fix type variables rename
Review URL: https://chromiumcodereview.appspot.com//10866017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11140 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 12:47:25 +00:00
ajohnsen@google.com 4cf1786c12 Make js_interop_1_test pass for none-drt.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10869011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11137 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 12:38:07 +00:00
ajohnsen@google.com 846e03f2f5 Let js_interop_{1,2}_test Pass with dart2js.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10870009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11136 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 12:18:25 +00:00
ajohnsen@google.com e33afa10ca Fully disable tests that was already disabled on some platforms.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10871012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11135 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 11:56:24 +00:00
ajohnsen@google.com a94492e7f0 Remove the shared js_isolate_impl and the current js/dart interop implementation.
The implementation dependent on the private implementation
implementation of isolates in of dart2js. The tests have been marked as
Fail for now.

BUG=

Review URL: https://chromiumcodereview.appspot.com//10877009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11133 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 11:24:25 +00:00
whesse@google.com abbaec0756 Stop test_runner_test from failing when process_test times out instead of crashing.
BUG=dart:1947
TEST=standalone/io/test_runner_test

Review URL: https://chromiumcodereview.appspot.com//10880003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11130 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 10:56:15 +00:00
antonm@google.com cfddb2fc3b Properly rename main methods declared in imported libs.
R=smok@google.com

Review URL: https://chromiumcodereview.appspot.com//10878004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11127 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 09:03:22 +00:00
ahe@google.com 98bb912a50 Added origin property to Uri class Added unit test coverage for origin property
Committed on behalf of Alexander Aprelev <aprelev@gmail.com>.

Original review URL: https://chromiumcodereview.appspot.com/10832092/.

BUG=dart:4232
TEST=uri_test

Review URL: https://chromiumcodereview.appspot.com//10869008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11124 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 06:42:08 +00:00
messick@google.com a46d823c7a Add a field to ClassNode that holds a NodeList of its members.
Modify Unparser to print the class body.
Add (simple) tests to verify the body is being recorded.
Review URL: https://chromiumcodereview.appspot.com//10834374

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11122 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 03:11:41 +00:00
scheglov@google.com 305f5adaa7 Issue 4539. Tweaks for old/new spec compatibility
Temporary disables check for underscore in named optional parameters.
There are not way to know if user means old or new syntax.

Also makes "final" and "const" local variables a constant expressions.

R=brianwilkerson@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10824411

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11117 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 00:11:38 +00:00
dgrove@google.com bacdd20e96 Continued deletion of frog.
Review URL: https://chromiumcodereview.appspot.com//10860071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11098 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 21:09:52 +00:00
efortuna@google.com 742e1ffcbe Rename XMLHttpRequest to HttpRequest.
Review URL: https://chromiumcodereview.appspot.com//10823352

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11070 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:39:35 +00:00
vsm@google.com 9259b263fd Support general serializing of functions between JS and Dart
Anton: This expands on your earlier CL.  Do you mind taking a look?

Review URL: https://chromiumcodereview.appspot.com//10834426

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11066 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 15:59:54 +00:00
antonm@google.com d9d9057fd3 Remove now unnecessary suppressions.
TBR=ahe@google.com,smok@google.com

Review URL: https://chromiumcodereview.appspot.com//10829455

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11064 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 15:44:26 +00:00
ahe@google.com d5e43d38db Update test to work with lazy compilation
Review URL: https://chromiumcodereview.appspot.com//10840004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11061 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 15:37:42 +00:00
smok@google.com d182624b92 Make ClassNode visit type parameters in visitChildren
Review URL: https://chromiumcodereview.appspot.com//10831406

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11057 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 15:18:28 +00:00
antonm@google.com 8d83a49879 Enable somehow disabled test.
R=smok@google.com

Review URL: https://chromiumcodereview.appspot.com//10855264

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11055 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 15:11:19 +00:00
antonm@google.com 1b4e931081 Properly rename type variables.
R=smok@google.com

Review URL: https://chromiumcodereview.appspot.com//10861029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11054 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 14:46:53 +00:00
antonm@google.com 9b3e109809 Test started to pass.
R=ahe@google.com,kasperl@google.com

Review URL: https://chromiumcodereview.appspot.com//10860065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11049 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 14:18:18 +00:00
ngeoffray@google.com a13af7eb1f When replacing an instruction with another in GVN-like optimizations, try to find a better user of it, that knows more about the type.
Review URL: https://chromiumcodereview.appspot.com//10831404

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11039 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 13:19:10 +00:00
antonm@google.com a9b8ec430e Rename elements after sorting.
That makes renaming more stable.

R=smok@google.com

Review URL: https://chromiumcodereview.appspot.com//10834416

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11038 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 13:18:06 +00:00
lrn@google.com d0145b687f Make patching of classes lazy.
Review URL: https://chromiumcodereview.appspot.com//10855262

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11036 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 12:53:53 +00:00
ahe@google.com da3dfb92a0 Update dart2js_foreign startus files.
Review URL: https://chromiumcodereview.appspot.com//10831405

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11035 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 11:57:53 +00:00
smok@google.com d49ad937bb dart2dart Fix factory for interfaces renames
Review URL: https://chromiumcodereview.appspot.com//10828390

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11033 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 11:33:39 +00:00
ager@google.com 000b295a00 Make sure that libraries loaded from dart:core gets dart:core implicitly loaded.
This is in preparation for deprecating the corelib Math object
in favor of the dart:math library.

R=ahe@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10836355

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11032 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 11:24:23 +00:00
kasperl@google.com 34ec097692 Get rid of the name in HInvokeDynamic (just use the selector instead).
This fixes issue 2620.

R=ngeoffray@google.com,karlklose@google.com
BUG=http://dartbug.com/2620

Review URL: https://chromiumcodereview.appspot.com//10836339

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11030 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 10:56:02 +00:00
ahe@google.com a6b6565123 Parse metadata, but ignore it.
Review URL: https://chromiumcodereview.appspot.com//10836351

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11029 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 10:55:54 +00:00