dgrove@google.com
3ace8972f6
Remove Hashable.
...
Review URL: https://codereview.chromium.org//11028123
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13498 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 20:43:55 +00:00
floitsch@google.com
026b907d2e
Register parameter types for closure invocations to the backend.
...
Submit CL 11091029 on behalf of Nicolas.
https://codereview.chromium.org/11091029
BUG=http://dartbug.com/5744
Review URL: https://codereview.chromium.org//11099044
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13492 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 20:09:54 +00:00
floitsch@google.com
9dad6e7c47
Revert "Allow closures inside lazy initializers."
...
This reverts commit 13467.
Review URL: https://codereview.chromium.org//11092050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13480 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 15:33:14 +00:00
johnniwinther@google.com
ef93dd9da1
Added support for exports and re-exports.
...
BUG=5429
TESTS=language/export_test, language/export_cyclic_test
Review URL: https://codereview.chromium.org//10990060
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13478 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 15:08:18 +00:00
antonm@google.com
2a77601516
Rename WebKit's WheelEvent.wheelDelta{X,Y} to W3C WheelEvent.delta{X,Y}.
...
Also remove WheelEvent.wheelDelta.
We originally have done that for dart2js, but that broke Dartium support. Instead of
removal, just rename to generate binding code still.
R=blois@google.com ,podivilov@chromium.org
BUG=5756
Review URL: https://codereview.chromium.org//11099033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13476 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 14:53:29 +00:00
karlklose@google.com
6fa5d0065c
Complete support for type variables in new expressions.
...
Review URL: https://codereview.chromium.org//11092046
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13475 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 14:53:24 +00:00
podivilov@google.com
5464ab01d3
Get rid of webkit_renames in dartdomgenerator.py.
...
Now that we don't rename interfaces in fremontcutbuilder, there is
no need to rename them back in dartdomgenerator.
R=antonm@google.com ,vsm@google.com
Review URL: https://codereview.chromium.org//11062005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13473 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 13:31:16 +00:00
podivilov@google.com
f8762b2568
Introduce ListLikeIDLTypeInfo as a replacement for nativified_classes table.
...
IDLTypeInfo hierarchy is a convenient way to deal with idl type polymorfism.
R=antonm@google.com ,efortuna@google.com ,vsm@google.com
Review URL: https://codereview.chromium.org//11065042
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13472 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 13:22:45 +00:00
podivilov@google.com
9d19336573
Add interface_name and implementation_name to IDLTypeInfo class and use them instead of dart_type.
...
R=antonm@google.com
Review URL: https://codereview.chromium.org//11040059
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13470 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 12:38:41 +00:00
antonm@google.com
8cbfa7530e
Do not allow platform prefices to conflict with fixed members.
...
Currently when generating prefices for platform libs we can generate
a name which equals to some fixed member. Example, there is
ImageElement.x getter in dart:html which makes 'x' into a set
of forbidden member names.
Now imagine the class:
import 'dart:math' as math;
class Foo {
get x => null;
f() => math.cos(.5);
}
We retain 'x', but we can generate 'x' as a prefix for dart:math emitting:
import 'dart:math' as x;
class C {
get x => null;
f() => x.cos(.5);
}
Caboooooom!
R=smok@google.com
BUG=5674
Review URL: https://codereview.chromium.org//11040063
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13468 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 12:18:56 +00:00
floitsch@google.com
1b5cc82678
Allow closures inside lazy initializers.
...
BUG:http://dartbug.com/3559 .
Committed: https://code.google.com/p/dart/source/detail?r=13459
Review URL: https://codereview.chromium.org//10913133
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13467 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 12:09:57 +00:00
johnniwinther@google.com
f673494e0a
Copy to make benefit of glorious subversion
...
... to prepare for library_loader.dart
Review URL: https://codereview.chromium.org//11092045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13466 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 12:05:30 +00:00
floitsch@google.com
ae83e25dec
Revert "Allow closures inside lazy initializers."
...
This reverts commit 13459.
Review URL: https://codereview.chromium.org//11086045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13464 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 11:10:52 +00:00
jwren@google.com
0a6a39048c
Fix to dartbug.com/5170, explictly static library variables now get an appropriate error message.
...
BUG=
Review URL: https://codereview.chromium.org//11087025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13460 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 09:22:17 +00:00
floitsch@google.com
c5600d9947
Allow closures inside lazy initializers.
...
BUG:http://dartbug.com/3559 .
Review URL: https://chromiumcodereview.appspot.com//10913133
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13459 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 09:18:46 +00:00
erikcorry@google.com
c08200af1a
Add minifying renamer to the JS printer so locals are called z0, z1, z2, etc.
...
BUG=
Review URL: https://codereview.chromium.org//11086022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13457 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 08:17:32 +00:00
vsm@google.com
df630b64cd
Fixed typo
...
Review URL: https://codereview.chromium.org//11092040
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13454 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 04:22:09 +00:00
vsm@google.com
9a19a1f517
Roll IDL to multivm@937
...
TBR=blois
Review URL: https://codereview.chromium.org//11098032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13453 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 23:58:44 +00:00
vsm@google.com
30b34c8457
Better return types for window.location and window.history
...
Review URL: https://codereview.chromium.org//11086029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13432 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 19:37:41 +00:00
vsm@google.com
166d2b2d86
Fix some type narrowing
...
I think I 'broke' this is an earlier CL.
Review URL: https://codereview.chromium.org//11086017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13430 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 19:29:55 +00:00
justinfagnani@google.com
a2daec4209
Fix Timers in isolates in dart2js.
...
BUG=http://dartbug.com/5734
Review URL: https://codereview.chromium.org//11092016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13428 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 18:58:08 +00:00
dgrove@google.com
c2e3511fbd
Move leap to lib/compiler/samples.
...
Review URL: https://codereview.chromium.org//11085017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13426 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 18:41:48 +00:00
floitsch@google.com
6964b7538f
Revert "Address Peter's comments on Function.apply."
...
This reverts commit 13416.
Review URL: https://codereview.chromium.org//11085020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13417 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 15:30:37 +00:00
ngeoffray@google.com
c49a92774b
Address Peter's comments on Function.apply.
...
Review URL: https://codereview.chromium.org//11090023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13416 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 14:33:40 +00:00
lrn@google.com
174f264557
First stab at parsing redirecting constructors.
...
Review URL: https://codereview.chromium.org//10957060
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13410 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 12:18:52 +00:00
ngeoffray@google.com
e24c0e7af5
Implement Function.apply in dart2js.
...
Review URL: https://codereview.chromium.org//11093015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13409 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 12:02:04 +00:00
karlklose@google.com
3c87aa38dd
Move RuntimeTypeInformation to its own library.
...
R=ngeoffray@google.com
Review URL: https://codereview.chromium.org//11088022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13406 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 11:25:22 +00:00
karlklose@google.com
611470a8dc
Disallow non-identifiers in for-in.
...
The spec does not allow field references in for in:
C c = new C();
for (c.i in new List(100)) {}
should trigger a compile time error.
BUG=http://dartbug.com/5015
Review URL: https://codereview.chromium.org//11066052
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13405 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 11:10:53 +00:00
ahe@google.com
8214500336
Implement part-of directive.
...
Review URL: https://codereview.chromium.org//11092003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13398 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 07:49:48 +00:00
sra@google.com
9fa3103539
Remove explicit interface versions of dartdoc files.
...
We will need to revisit how dartdoc is generated.
For now this is the minimal set of files to preserve hand-crafted documentation.
Review URL: https://codereview.chromium.org//11090010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13378 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 22:11:31 +00:00
blois@google.com
845c13e426
Replacing non-portable CanvasRenderingContext.setFillColor with more portable variants.
...
This is the same as the earlier CL for this, which failed because of dartium build issues which have since been fixed by Anton.
BUG=4592
Review URL: https://codereview.chromium.org//11028068
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13361 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 16:15:23 +00:00
karlklose@google.com
0109e88b42
Remove some warnings and dead code in dart2js.
...
R=ngeoffray@google.com
Review URL: https://codereview.chromium.org//11086004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13359 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 15:18:12 +00:00
ngeoffray@google.com
8a952fa743
Better value range propagation by supporting negating ranges.
...
Review URL: https://codereview.chromium.org//11066053
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13358 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 14:37:33 +00:00
karlklose@google.com
5af494f4eb
Move registering of interceptors to the JsBackend.
...
Review URL: https://codereview.chromium.org//10917254
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13356 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 14:27:17 +00:00
ahe@google.com
71d703fd5e
Update types to unbreak build.
...
Review URL: https://codereview.chromium.org//11066055
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13355 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 14:24:06 +00:00
ahe@google.com
29749a1350
Fix warnings in dart2js.
...
Review URL: https://codereview.chromium.org//11088003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13353 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 13:38:10 +00:00
karlklose@google.com
fb4dcb67f5
Fix error reporting on member declarations.
...
R=ahe@google.com
Review URL: https://codereview.chromium.org//11071015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13347 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 09:12:48 +00:00
ahe@google.com
4e84e02aa0
Update dart:io mock to avoid type warnings.
...
Review URL: https://codereview.chromium.org//11027063
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13346 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 08:40:42 +00:00
ngeoffray@google.com
2e1f7156fb
Fix buggy computations in value ranges, spotted by floitsch@.
...
Review URL: https://codereview.chromium.org//11042002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13344 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 07:58:38 +00:00
efortuna@google.com
2262eaa5ed
Reapply r13292 WITH a fix to dartc test status for apply_test.dart
...
Review URL: https://codereview.chromium.org//11035069
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13335 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 23:42:27 +00:00
vsm@google.com
c40edf6954
Wrap Window in case it's a window from a different page / frame.
...
I also refactored inner_frame_test to explicitly notify if the subframe tests pass or fail. This should make them more robust and (if they break) fail quickly instead of timing out.
BUG=1913
Review URL: https://codereview.chromium.org//11074005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13331 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 23:07:08 +00:00
efortuna@google.com
461f7fb95e
Revert r13292. This is when the first failure showed up on dartc, but dartc
...
didn't actually turn red. Investigating why.
Review URL: https://codereview.chromium.org//11081002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13330 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 23:05:20 +00:00
blois@google.com
06f1665623
Adding synchronous measurement methods to Element. Refactoring unit tests some so element_test passes on all browsers.
...
Original CL was failing in checked mode because the refactored html/element_test fires multiple mouseWheel event typess to try to validate that the event functions. This causes an assertion elsewhere, which is probably a valid assertion.
I'm not sure how much we get out of this test for mouseWheel, so I don't think it's a big issue to remove it.
BUG=838
Review URL: https://codereview.chromium.org//11065017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13328 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 22:27:43 +00:00
sra@google.com
5c1a93e251
Convert between Dart and JavaScript SerializedScriptValues on postMessage.
...
Review URL: https://codereview.chromium.org//11065003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13311 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 19:19:16 +00:00
blois@google.com
caa43082d6
Fixes to get SelectElement working properly on IE.
...
BUG=
Review URL: https://codereview.chromium.org//11031076
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13307 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 18:13:13 +00:00
podivilov@google.com
b82b302e4b
FormData is FormData in all browsers.
...
R=antonm@google.com ,vsm@google.com
BUG=5681
Review URL: https://codereview.chromium.org//11068022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13306 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 17:27:43 +00:00
vsm@google.com
c4c8c62e3b
Remove window.length and window.frames
...
BUG=2312
Review URL: https://codereview.chromium.org//11065039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13305 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 17:26:03 +00:00
blois@google.com
bc5a9328bb
Fixing SelectElement.selectedOptions to work on all platforms.
...
This is a fixup of the original CL which broke dartium because I mistakenly applied the polyfill to both dart2js and dartium.
Fix was to move impl_SelectElement.darttemplate to dart2js.
BUG=4503
Review URL: https://codereview.chromium.org//11035032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13304 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 17:03:28 +00:00
vsm@google.com
e5285fb6f1
Make fremontcut serial by default
...
We suspect there are some race conditions in the Dartium build under
heavy load. Making this serial by default until we have time to investigate.
go.sh is still parallel by default as it's run by hand.
Review URL: https://codereview.chromium.org//11033049
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13301 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 15:58:31 +00:00
podivilov@google.com
c71b6b20a1
Fix JS native binding and documentation for interfaces with overridden name.
...
R=vsm@google.com ,sra@google.com ,antonm@google.com
BUG=5657
Review URL: https://codereview.chromium.org//11036035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13296 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 15:15:48 +00:00