zundel@google.com
eb007b203c
Fix dartc bounds checking for invoking interface constructors/factory methods
...
http://code.google.com/p/dart/issues/detail?id=943
Review URL: http://codereview.chromium.org//9014029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2957 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 18:24:50 +00:00
zundel@google.com
9c6d9fc4de
Flag methods as not being valid compile time constants
...
BUG=1000
TEST=
Review URL: http://codereview.chromium.org//9016050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2956 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 18:19:34 +00:00
codefu@google.com
d5dbe92233
Issue 991: Missing compiler errors for uninitialized final fields
...
http://code.google.com/p/dart/issues/detail?id=991
-Track non initialized fields at declaration for classes
-Verify they are initialized in non-redirect constructors
-Check for duplicate final initialization; add tests and mark VM and Frog
as failing
BUG=
TEST=
Review URL: http://codereview.chromium.org//9081001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2951 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 16:51:55 +00:00
scheglov@google.com
986593e8fa
Remove wrong test, issue 575.
...
http://code.google.com/p/dart/issues/detail?id=575
R=zundel@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9019011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2920 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 19:38:00 +00:00
codefu@google.com
5ed64c70d9
Issue 940 - Exception generating js for prefixed toplevel fields
...
http://code.google.com/p/dart/issues/detail?id=940
Talked to Gilad about the abiguity of language spec between prefix identifiers and method invocation. P.id(...) looks like o.m(...) to the parser at the moment.
Local fields are correctly represented in the AST as unqualified invocations.
R=zundel,mmendez
BUG=
TEST=
Review URL: http://codereview.chromium.org//8956062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2910 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 15:04:28 +00:00
ngeoffray@google.com
c01852be32
Do not generate at use site loop phis. It requires live analysis that we currently don't implement.
...
Review URL: http://codereview.chromium.org//9035008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2808 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-23 18:30:21 +00:00
sigmund@google.com
396f798124
frog isolate fixes: minor changes to the isolate library + architecture.py
...
Review URL: http://codereview.chromium.org//8999030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2792 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 22:19:12 +00:00
floitsch@google.com
521959cb33
ToStringAsFixed returns now 0 instead of -0.
...
Review URL: http://codereview.chromium.org//8958018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2791 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 22:18:21 +00:00
floitsch@google.com
e231959e13
Implement Double.toStringAsFixed.
...
Review URL: http://codereview.chromium.org//8728006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2790 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 22:03:35 +00:00
sigmund@google.com
dca0ac9fc1
.status: fix bot after changing 'factory'->'default'
...
TBR=ahe
Review URL: http://codereview.chromium.org//9025022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2777 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 18:59:43 +00:00
ahe@google.com
e348915d38
One more factory -> default pass.
...
Review URL: http://codereview.chromium.org//8958011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2774 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 18:33:45 +00:00
zundel@google.com
27f2e70854
This adds a unit test to show the type checking functionality missing in dartc
...
This refines omitting the runtime-type checks in certain cases to just apply to
type variables (original disabled by r2660)
BUG=925
TEST=
Review URL: http://codereview.chromium.org//8956047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2771 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 17:45:45 +00:00
ngeoffray@google.com
e45ad3b75e
Support factory methods.
...
Review URL: http://codereview.chromium.org//9027002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2759 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 15:15:23 +00:00
ngeoffray@google.com
64b1ff9449
Make build bot green.
...
Review URL: http://codereview.chromium.org//9022005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2754 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 13:58:58 +00:00
kasperl@google.com
79d8a6854e
Add support for Expect.equals in the Leg core library.
...
R=ngeoffray@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9027003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2745 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 12:39:15 +00:00
srdjan@google.com
74c0af9144
Optimize indexed store for growable array (intrinsification and inlined optimized).
...
Review URL: http://codereview.chromium.org//9020030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2731 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-21 22:37:21 +00:00
ahe@google.com
6924a17723
Generate AST node for factory methods.
...
Review URL: http://codereview.chromium.org//8999015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2717 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-21 19:25:54 +00:00
zundel@google.com
b0348a06b7
Dartc was not raising an error if an interface declared constructors without a default clause
...
BUG=928
TEST=
Review URL: http://codereview.chromium.org//9017015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2716 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-21 19:05:54 +00:00
ngeoffray@google.com
2cb517c647
Fix resolver for fields uses in constructors.
...
Also fix infinite loop when we're looking for the getter equivalent of a setter.
Review URL: http://codereview.chromium.org//9019018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2708 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-21 17:28:48 +00:00
karlklose@google.com
7d8b1e513f
Resolve initializers in constructors.
...
R=floitsch@google.com
Review URL: http://codereview.chromium.org//8974014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2703 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-21 16:38:17 +00:00
ngeoffray@google.com
db5b684bd0
Support !=.
...
Review URL: http://codereview.chromium.org//9020010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2698 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-21 14:29:51 +00:00
ngeoffray@google.com
3edc42a1b1
Sort the failures.
...
Review URL: http://codereview.chromium.org//9018009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2697 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-21 14:05:31 +00:00
ngeoffray@google.com
ef149c755f
Make sure a class is resolved before looking up its elements.
...
Review URL: http://codereview.chromium.org//8949039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2696 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-21 14:03:01 +00:00
ahe@google.com
65161e9b5d
Revert r2662
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2663 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 20:22:04 +00:00
ahe@google.com
b5b7179956
Testing buildbot
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2662 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 20:21:15 +00:00
ahe@google.com
3be70fb3ee
Update status file
...
Review URL: http://codereview.chromium.org//9007024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2659 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 19:55:50 +00:00
srdjan@google.com
098d244ae0
Fix issue 920: do not allow length of a list go below 0.
...
Review URL: http://codereview.chromium.org//9007015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2648 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 17:45:04 +00:00
ahe@google.com
d8ef791f10
Parse field modifiers.
...
Review URL: http://codereview.chromium.org//9004025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2647 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 17:44:08 +00:00
ahe@google.com
677825315d
Update leg status
...
Review URL: http://codereview.chromium.org//9006009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2634 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 13:54:57 +00:00
zundel@google.com
87a6f2fd56
A test to see that the default clause of a interface can use an undeclared default constructor
...
Review URL: http://codereview.chromium.org//8989016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2631 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 13:45:36 +00:00
ahe@google.com
df9b63e590
Implement string interpolation up to SSA.
...
Review URL: http://codereview.chromium.org//8993009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2630 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 13:26:15 +00:00
srdjan@google.com
9fe955e406
Fix a bug in intrinsified Array_setIndexed type check.
...
Optimize unary double operation negate.
Review URL: http://codereview.chromium.org//8996024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2611 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 02:11:18 +00:00
zundel@google.com
9d697de426
Updates dartc to recognize 'default' keyword on interface and updated factory method syntax.
...
Note: this does not have backwards compatibility for the old
factory syntax and updates the tests.
http://code.google.com/p/dart/issues/detail?id=417
Review URL: http://codereview.chromium.org//8948001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2597 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 22:34:57 +00:00
dgrove@google.com
37c6903d6c
Make 'class' and 'extends' into real keywords, per language spec 0.06 .
...
Review URL: http://codereview.chromium.org//8980014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2595 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 21:24:45 +00:00
karlklose@google.com
620766d407
Make frog buildbot green again.
...
TBR.
R=floitsch@google.com
Review URL: http://codereview.chromium.org//8953032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2584 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 15:13:07 +00:00
ager@google.com
fb053d8126
Update test.dart to use the leg_only option for the leg component.
...
Take the new *-leg.status status files into account.
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8992015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2583 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 15:07:29 +00:00
ahe@google.com
878a5d828f
Use "default" keyword instead of "factory" in interfaces.
...
Review URL: http://codereview.chromium.org//8993005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2579 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 13:17:32 +00:00
ager@google.com
74ec1d7d5e
Fix frog testing. I forgot to update the language.status file.
...
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8974011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2578 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 12:51:46 +00:00
ager@google.com
f77f6545b7
Do not use the NegativeTest ending for multi tests.
...
The NegativeTest ending has meaning and should not be used for
multitests that are split into multiple files each with their
own expectation based on the annotation.
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8994002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2576 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 12:31:08 +00:00
ahe@google.com
ebcc4964e5
Update test of type variable bounds to match specification
...
Review URL: http://codereview.chromium.org//8956005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2573 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 12:17:46 +00:00
ahe@google.com
995ba4e775
Promote "class" and "extends" to keywords
...
Review URL: http://codereview.chromium.org//8953025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2571 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 11:23:23 +00:00
ahe@google.com
258010fddb
Always use --leg_only option.
...
Review URL: http://codereview.chromium.org//8957008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2567 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 10:07:32 +00:00
sra@google.com
5f1fe934ec
Move frog tests using 'native' from tests/language to frog/tests
...
These tests are critical to dart:dom, but use non-standard features so
should not be under tests/language
BUG=
TEST=
Review URL: http://codereview.chromium.org//8962013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2559 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-17 05:19:38 +00:00
codefu@google.com
3fae5d29a6
Promote class to a reserved word
...
Promote class as a reserved word http://code.google.com/p/dart/issues/detail?id=870
Cleaning old test that had invalid assumptions; makeing two new tests
(jUnit and shared test). Marking Frog and VM as failing.
R=mmendez
BUG=
TEST=
Review URL: http://codereview.chromium.org//8972003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2550 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 23:26:14 +00:00
srdjan@google.com
d525130469
More optimizations and cleanups.
...
Review URL: http://codereview.chromium.org//8972005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2548 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 23:16:00 +00:00
sra@google.com
aa6393b4e8
Fix named constructors and static methods of hidden native classes.
...
The static methods can't go on the constructor, so they go on a
surrogate object. Make sure no global names conflict with either the
hidden class's name or the surrogate object.
BUG=
TEST=
Review URL: http://codereview.chromium.org//8966020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2547 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 22:49:06 +00:00
hausner@google.com
59e6694944
One small step towards sanity
...
Make 'class' a proper keyword, and 'extends' too. Adjusting the VM compiler to the language spec.
Review URL: http://codereview.chromium.org//8968021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2533 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 19:11:39 +00:00
dgrove@google.com
29381ee142
When generating the error message, don't overrun args.nodes .
...
BUG=775
Review URL: http://codereview.chromium.org//8966026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2528 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 17:55:53 +00:00
sra@google.com
72a5663f22
Make test frogium-safe.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8965019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2513 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 06:13:57 +00:00
sra@google.com
f8ea641117
Partial fix for Issue 709.
...
Method dispatch on a hidden native class goes according to the native
name, not the Dart name (which can be different).
There is still an issue with the hidden name - frog needs to avoid
using it because it might not be inaccessible on all targets.
BUG=
TEST=
Review URL: http://codereview.chromium.org//8974005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2511 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 05:52:40 +00:00