Commit Graph

5559 Commits

Author SHA1 Message Date
kasperl@google.com 5f04410a3b Get the most basic mixin applications working.
This CL builds upon the code in https://codereview.chromium.org/11970011/
so that needs to land before this can.

R=ahe@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17268 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 13:01:45 +00:00
ngeoffray@google.com f7fcb1ffb7 Fix issue 7677: recognize const declarations inside methods.
Review URL: https://codereview.chromium.org//11740019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17262 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 11:58:44 +00:00
vegorov@google.com a77fc9701c When requested to extract a method M from class C inject a method extractor (consisting of a single AST node CreateClosure) as a getter get:M into C.
This allows to cache and optimize method extraction requests as normal method invocations and at hot method extraction sites that significantly decreases overhead of method extraction which previously required two trips into runtime system and was not cached at all.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17261 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 11:54:45 +00:00
ngeoffray@google.com c8baf5ccaa Allowing inlining of static getters and methods in a different library. Also report an error if a getter has parameters.
Review URL: https://codereview.chromium.org//11975049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17250 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 08:28:59 +00:00
fschneider@google.com 01bf0903e2 Update test status for scalar list test and move it to the right directory.
Review URL: https://codereview.chromium.org//11977003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17216 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 15:06:15 +00:00
johnniwinther@google.com 4299d2c6a2 Process handled exports correctly.
This should solve the resolution bug in http://dartbug.com/7069

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17211 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 14:29:03 +00:00
fschneider@google.com 4982f8ff33 Fix a bug with store-to-load forwarding for typed arrays.
Stores to typed arrays implicitly convert the value stored.
This CL disables store-to-load forwarding for these array stores.

Normal arrays and float64 arrays can be still optimized as before (no
conversion occurs on store)

TEST=tests/language/int_array_load_elimination_test.dart
Review URL: https://codereview.chromium.org//11962036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17208 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 14:08:04 +00:00
kustermann@google.com 9ee5fc4b53 Revert "Removed the 'we don't run multitests on browsers'-hack"
There is an issue with path names on dartium builders.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17185 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 10:20:12 +00:00
kustermann@google.com 442e7fc3b9 Removed the 'we don't run multitests on browsers'-hack
Review URL: https://codereview.chromium.org//11886064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17183 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 08:59:05 +00:00
ngeoffray@google.com 26e11c6263 Do not track parameter types of closures, since closure calls can be generated during the emitter.
Review URL: https://codereview.chromium.org//11958009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17134 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 12:10:43 +00:00
kasperl@google.com 37d87ed2b3 Start adding support for mixin application syntax. We now parse the typedef variant of mixin applications like:
typedef C = S with M;

but the construct is still unhandled.

R=ahe@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17129 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 10:12:55 +00:00
ngeoffray@google.com 542a4dc2e6 Test does not just fail on release, but on debug too.
Review URL: https://codereview.chromium.org//11896004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17119 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 08:29:34 +00:00
fschneider@google.com 2904e5bf35 Fix crash bug when deoptimizing from an optimized sqrt operation.
Review URL: https://codereview.chromium.org//11880048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17084 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 17:11:11 +00:00
vegorov@google.com c2776cdbcc Canonicalize away redundant checks that appear after store-to-load forwarding.
BUG=dart:7513

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17016 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 12:15:11 +00:00
ricow@google.com a932ea6152 Mark language/arithmetic_test as failing on runtime=ie9 compiler=dart2js
I can't find any bug for this, and I don't see any dart2js people on the codereview disabling this on ff, is this a known problem?
Review URL: https://codereview.chromium.org//11889006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17012 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 08:58:01 +00:00
srdjan@google.com b079b0a30b Disable arithmetic test for firefox.
Review URL: https://codereview.chromium.org//11876003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16985 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 21:13:44 +00:00
srdjan@google.com 40a7130741 Inline Doubles truncate and round.
Review URL: https://codereview.chromium.org//11573044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16983 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 20:42:47 +00:00
ngeoffray@google.com e9d53371e5 Status file update again.
Review URL: https://codereview.chromium.org//11858012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16971 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 13:54:19 +00:00
ngeoffray@google.com 184a9f610a Support Timer with 0 millisecond delay in dart2js running in the command line.
Review URL: https://codereview.chromium.org//11866003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16968 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 13:02:58 +00:00
kustermann@google.com 96574ee329 Status file updates for jsshell
Review URL: https://codereview.chromium.org//11833035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16920 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 14:16:37 +00:00
johnniwinther@google.com 47343b3530 Report errors on repeated interfaces.
BUG=http://dartbug.com/7468

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16900 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 07:03:05 +00:00
floitsch@google.com ee7bedd1b2 Random fixes discovered when looking through CL 11824035.
Review URL: https://codereview.chromium.org//11817028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16878 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 20:17:34 +00:00
scheglov@google.com 82f1c72f92 Initial support for mixins in dartc.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16864 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 17:13:02 +00:00
vegorov@google.com f115552d29 Constant propagator should revisit phis when it visits predecessor block.
Phi's value depends both on its inputs and reachability of join's predecessors. Thus it is essential to revisit phi when predecessor becomes reachable.

R=kmillikin@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16847 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 12:27:46 +00:00
kasperl@google.com 36b3b159ac Update status files for ie9 and ie10 to reflect reality.
R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16841 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 09:32:20 +00:00
iposva@google.com b0cf1962c1 - Fix status file for missing Timer support in dart2js D8 runtime.
Review URL: https://codereview.chromium.org//11776039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16808 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 17:20:27 +00:00
iposva@google.com 7b2c597a81 - Timers are not supported in dart2js.
Review URL: https://codereview.chromium.org//11794049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16807 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 16:59:29 +00:00
iposva@google.com 6405772851 - Add a test for context cycles. Based on dartbug.com/7681.
Review URL: https://codereview.chromium.org//11798004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16805 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 16:12:40 +00:00
ahe@google.com fb2a233d2c Remove generic typedefs that dart2js chokes on.
Review URL: https://codereview.chromium.org//11794047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16797 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 13:51:44 +00:00
vegorov@google.com 05078902d1 Canonicalize away simple arithmetic equivalences.
R=fschneider@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16795 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 13:32:23 +00:00
ngeoffray@google.com 948e8c754d Re-apply "What if you closurize identical?" but this time don't be magic: it requires the compiler to recognize the identical call in multiple places (e.g. tryInlineMethod) and I'd rather have the logic code in the library.
Review URL: https://codereview.chromium.org//11612022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16789 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 12:30:39 +00:00
efortuna@google.com 01421cc23d Fix up test statuses. Browser tests should now all pass.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16777 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 01:49:14 +00:00
floitsch@google.com b275867a28 double_to_string_as_fixed now works on Firefox.
Update status file.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16747 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 20:27:24 +00:00
scheglov@google.com 1807de8a62 Triage language tests failures. https://codereview.chromium.org/11779029/
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16741 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 19:38:47 +00:00
scheglov@google.com c300988226 Update status files for dartc
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16737 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 19:08:08 +00:00
vegorov@google.com 774187fb8c Ensure that LowerBound and UpperBound return overflow marker when overflow occurs.
R=fschneider@google.com
BUG=dart:7617

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16711 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 15:33:36 +00:00
lrn@google.com 2b2de751a7 Fixed status files for dart2js corelib/lib/language tests.
Moved two tests to lib/async where they belong.

R=floitsch@google.com
CC=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16699 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 14:15:29 +00:00
karlklose@google.com 126820a65f Mark tests that use Timer as failing on dart2js.
There is no implementation for Timer in JavaScript.

R=floitsch@google.com
BUG=dartbug.com/7728

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16697 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 13:39:09 +00:00
floitsch@google.com 4a7dfd2da3 Big merge from experimental to bleeding edge.
Review URL: https://codereview.chromium.org//11783009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
kmillikin@google.com 309fcb1ba3 Fix incorrect desugaring of cascades.
Make use of the attractive and powerful way that the LoadLocal expression is
really a pair of an arbitrary statement and a local variable load.

BUG=dart:7494

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16684 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 10:03:17 +00:00
scheglov@google.com 63d5737d74 Issue 6578. Move 'getter/setter static mismatch' into type problems
http://code.google.com/p/dart/issues/detail?id=6578

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16650 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-04 22:12:29 +00:00
srdjan@google.com 9ab0cfc74a Add test for issues with cascades.
Review URL: https://codereview.chromium.org//11734032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16622 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-04 01:34:26 +00:00
johnniwinther@google.com a4747a2b64 Revert "NoSuchMethod on different super accesses/invocations handled."
This reverts commit r16558.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16560 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-28 23:01:20 +00:00
johnniwinther@google.com 164c8c4f99 NoSuchMethod on different super accesses/invocations handled.
Review URL: https://codereview.chromium.org//11688010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16558 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-28 22:43:12 +00:00
tball@google.com 43675a7f3f Fixed type_parameter_literal_test, updated language status files with bug ids.
Review URL: https://codereview.chromium.org//11694010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16555 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-28 21:54:21 +00:00
srdjan@google.com 818cd3bdc9 Fix instance of test for classes that implement call.
Review URL: https://codereview.chromium.org//11698002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16541 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-28 16:16:49 +00:00
iposva@google.com bf9b718d66 - Fix status for dartc and minified dart2dart.
Review URL: https://codereview.chromium.org//11697005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16537 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-28 03:31:39 +00:00
iposva@google.com 14e82cd48e - Update status files for dart2dart and dartc
Review URL: https://codereview.chromium.org//11583029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16536 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-28 01:41:45 +00:00
tball@google.com a254be19ed Suppressed class_literal_test for dart2dart.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16534 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-28 00:37:43 +00:00
tball@google.com cfb1b54619 Suppressed class_literal_test, which was updated to latest spec.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16533 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-28 00:26:58 +00:00