sra@google.com
5e134e6b8b
Conversions between JavaScript objects and Maps.
...
Review URL: https://chromiumcodereview.appspot.com//10870030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11208 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 03:50:16 +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
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
c69e3285d2
Regen html_dart2js - fix for dartc
...
TBR=efortuna@google.com
Review URL: https://chromiumcodereview.appspot.com//10869016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11184 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 20:39:02 +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
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
antonm@google.com
daa167bc1c
Refactor conversion to native.
...
generator.py should be only aware of details, but shouldn't emit the code directly.
Review URL: https://chromiumcodereview.appspot.com//10831035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11172 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 16:36:41 +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
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
antonm@google.com
37ec166a4a
Improve the problem description.
...
R=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10829462
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11166 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 15:51:32 +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
ahe@google.com
050cf0585f
Revert revision 11150 to unbreak the VM tests.
...
Review URL: https://chromiumcodereview.appspot.com//10879011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11156 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 14:35:13 +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
kasperl@google.com
ea966d5647
Simplify HInvokeInterceptor.
...
R=ngeoffray@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10866021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11153 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 14:24:53 +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
ager@google.com
0a55fa5f3b
Deal with the JS helper separately from the 'native' keyword.
...
Another change to prepare for the removal of the corelib Math
object in favor of the dart:math library.
R=ahe@google.com ,johnniwinther@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10867011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11151 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 13:57:56 +00:00
ahe@google.com
cadf648307
Initialize field to unbreak VM test.
...
Review URL: https://chromiumcodereview.appspot.com//10871014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11150 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 13:49:57 +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
3c00b2ceae
Revert "Support sourceing files in patches."
...
This reverts commit f574332325d74c1fe4370496fc5ea212c6f9ac7f.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10869012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11145 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 13:10:00 +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
lrn@google.com
d82749cc47
Make addGetterOrSetter (now: defineAccessor) not add the abstract field as a member.
...
The abstract field element is only present as a result of a named
lookup in order to return both getter and setter as one result.
Review URL: https://chromiumcodereview.appspot.com//10837140
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11142 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 12:57:04 +00:00
smok@google.com
8cb030adf2
dart2dart Make sure we never create placeholder for Dynamic type.
...
Review URL: https://chromiumcodereview.appspot.com//10876011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11141 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 12:52:33 +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
antonm@google.com
6141f9b57b
Map ObjectArray to List.
...
I am not sure WebKit IDL usage of ObjectArray is the best approach in the first place,
but at least let's do something about it.
R=podivilov@chromium.org ,sra@google.com ,vsm@google.com
BUG=1888
Review URL: https://chromiumcodereview.appspot.com//10877007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11139 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 12:43:07 +00:00
ajohnsen@google.com
019a64e947
Re-introduce the _dispatchEvent function in lib/html/src/Isolates.dart.
...
Removed by accident.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10878006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11134 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 11:51:09 +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
kasperl@google.com
07210cb6d1
Remove a few warnings.
...
R=karlklose@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10875006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11129 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 09:30:23 +00:00
antonm@google.com
77308b4269
Process private identifier in visitIdentifier.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10836360
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11128 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 09:24:58 +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
ahe@google.com
1ada772cc1
Remove most superfluous getter arguments from dart2js.
...
Review URL: https://chromiumcodereview.appspot.com//10876008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11123 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 06:33:24 +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
dgrove@google.com
37b8aa0d98
Remove most references to frog from lib/compiler .
...
Review URL: https://chromiumcodereview.appspot.com//10832436
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11115 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 00:01:23 +00:00
sethladd@google.com
1eb5340ceb
add comments for dart:io and dart:intl library
...
BUG=
Review URL: https://chromiumcodereview.appspot.com//10866003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11100 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 21:32:12 +00:00
devoncarew@google.com
d6041d86fc
Add dart:mirrors to the SDK - this will allow the editor to resolve the mirrors library and the types within it.
...
Review URL: https://chromiumcodereview.appspot.com//10860074
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11099 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 21:16:01 +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
turnidge@google.com
bcc03b28e9
More mirrors changes to bring vm mirrors more in line with the
...
current proposed mirrors api.
Review URL: https://chromiumcodereview.appspot.com//10825431
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11095 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 20:46:25 +00:00
ajohnsen@google.com
390699418b
Make _ReceivePortImpl implement ReceivePort.
...
BUG=
Review URL: https://chromiumcodereview.appspot.com//10832423
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11088 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 19:12:02 +00:00
ajohnsen@google.com
0d078037e2
Re-apply 'Unify dart:isolate.' with fixes for autogenerated dart2js and dartium html files.
...
Old Review URL: https://chromiumcodereview.appspot.com//10828410
BUG=
Review URL: https://chromiumcodereview.appspot.com//10828411
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11084 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 18:47:43 +00:00
ajohnsen@google.com
e462fccf79
Support sourceing files in patches.
...
The path given is relative to the patch, not the library.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10827448
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11082 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 18:37:34 +00:00
ajohnsen@google.com
1e980c2ab7
Also expose JS to dart:path in dart2js.
...
BUG=
Review URL: https://chromiumcodereview.appspot.com//10831410
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11081 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 18:13:43 +00:00
ajohnsen@google.com
999ab57823
Only add JS once, and not to very single patched library.
...
BUG=
Review URL: https://chromiumcodereview.appspot.com//10828413
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11078 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 17:39:07 +00:00
efortuna@google.com
fe4a885a84
Fix dartdoc change with XMLHttpRequest
...
Review URL: https://chromiumcodereview.appspot.com//10829458
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11072 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:49:40 +00:00
efortuna@google.com
bad51b1f63
Update XMLHttpRequest documentation.
...
Review URL: https://chromiumcodereview.appspot.com//10860050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11071 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:39:56 +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
karlklose@google.com
3759a01424
Fix type annotation in the typechecker.
...
TBR'ed to unbreak the build.
TBR=ahe@google.com
Review URL: https://chromiumcodereview.appspot.com//10824401
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11068 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:14:15 +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
ce718e65fb
Just ignore erroneous elements.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10825475
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11065 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 15:46:46 +00:00