Commit Graph

1226 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
lrn@google.com 181dc5d3b4 Add apply method signature to Function class.
This does not include an implementation for any backend. The
current implementation throws a NotImplementedException when
called.

BUG=5419

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13292 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 12:57:51 +00:00
johnniwinther@google.com 8568e1a6c6 Patch signatures checked in resolver.
Review URL: https://codereview.chromium.org//11052012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13285 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 11:26:46 +00:00
johnniwinther@google.com 7e831ffacc Minor fixes in dart2js.
Review URL: https://codereview.chromium.org//11030048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13283 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 11:16:13 +00:00
lrn@google.com b46f9c6ba0 Remove dart2js specific core.dart/coreimpl.dart files.
Start using the shared lib/core/core.dart and
lib/coreimpl/coreimpl.dart files.

Change a few "interface" to "abstract class".

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13281 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 10:51:07 +00:00
ngeoffray@google.com e06641a16b Do not GVN HLocalGet. If the local is final, the GVN thinks it can loop hoist accesses to it (which it can't because the variable may have not been initialized).
Review URL: https://codereview.chromium.org//11031068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13280 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 10:46:13 +00:00
lrn@google.com ef5dfb659e Remove direct imports of js_helper.dart.
Review URL: https://codereview.chromium.org//10967068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13279 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 09:28:41 +00:00
smok@google.com 914d8a0566 [dart2dart] Make sure we collect element placeholders only for identifiers by ensuring
that if TypeAnnotation's typeName is Send, make 2 placeholders instead of 1 - for prefix
and for the element itself.
This makes the whole approach cleaner. Later we can just rename all identifiers and
transform AST.

Based on https://chromiumcodereview.appspot.com/11034021/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13277 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 08:07:10 +00:00
karlklose@google.com 66b20a5d4f Use the correct inputs when checking if inverse operator can be used.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13275 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 07:48:05 +00:00
ricow@google.com 4e5ccffbb4 Fix opening of print dialog on IE when testing dart2js
Review URL: https://codereview.chromium.org//11033044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13273 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 06:47:12 +00:00
ahe@google.com 39ebf56002 Parse/unparse library combinators.
Review URL: https://codereview.chromium.org//11027023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13238 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 16:01:41 +00:00
smok@google.com 8dd2d85a7e [dart2dart] Don't go inside TypeAnnotation.typeName, otherwise in "lib.A" expression
"A" is added to member placeholders. We were lucky to not step on that because we add whole
TypeAnnotation's typeName to renamed nodes.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13235 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 14:51:36 +00:00
ngeoffray@google.com d7819e9d28 Fix build breakage.
Review URL: https://codereview.chromium.org//11031041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13226 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 12:50:08 +00:00
ngeoffray@google.com b4e2ea5f5d Add a fixed array type.
Review URL: https://codereview.chromium.org//11024003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13224 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 12:40:29 +00:00
ngeoffray@google.com 0b6bf430fb Create and use new change/depends flags for the GVN analysis.
Review URL: https://codereview.chromium.org//11017006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13220 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 11:59:44 +00:00
ahe@google.com 63f5800ea8 Fix Hello World size regression.
Review URL: https://codereview.chromium.org//11026035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13218 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 11:07:56 +00:00
ahe@google.com 891916ae98 Tweak dart2js crash message
Review URL: https://codereview.chromium.org//11028022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13216 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 10:07:14 +00:00
polux@google.com 78873788af Standalone concrete type inference (not integrated in the compiler).
Review URL: https://chromiumcodereview.appspot.com//10907028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13215 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 09:55:59 +00:00
ngeoffray@google.com 14ba250fee Deal with more conditional expressions in the value range analyzer.
Review URL: https://codereview.chromium.org//10986085

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13213 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 08:53:21 +00:00
karlklose@google.com ed965b2b98 Fix some warnings.
R=floitsch@google.com,ahe@google.com,ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13212 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 08:51:43 +00:00