regis@google.com
f955de9bc0
Throw a type error in production mode when the type of the type test is not
...
declared (issue 2571).
Add test.
Delete bad negative test now covered by new test.
Update status files of different compilers.
Review URL: https://chromiumcodereview.appspot.com//10035058
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6754 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 17:01:28 +00:00
ngeoffray@google.com
fc58ad3555
Fix mangling of local variables when their name conflict with Dart2JS's temporaries.
...
Review URL: https://chromiumcodereview.appspot.com//10123009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6742 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 13:34:28 +00:00
scheglov@google.com
42c3daeb88
Issue 2639. Resolve implicit super() constructor invocation.
...
http://code.google.com/p/dart/issues/detail?id=2639
R=devoncarew@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10116032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6719 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 01:02:10 +00:00
hausner@google.com
be32f37af7
Fix dartc status
...
Mark GettersSettersTest as fail until it's fixed.
Review URL: https://chromiumcodereview.appspot.com//10117029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6706 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 18:34:43 +00:00
floitsch@google.com
83cc399204
Don't rely on any speculative type in the bailout version.
...
Review URL: https://chromiumcodereview.appspot.com//10116023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6702 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 17:38:51 +00:00
hausner@google.com
e74cd5fc3a
Static members are not visible in subclasses
...
Fix for issue 1598.
Lexical scope comes before inherited names. Also, Static members
are not inherited and are not visible in subclasses.
Code in the subclass (or any other code for that matter) has to
qualify the names of these members with the class name.
We had a few tests that were wrong and only passed in the VM because
this was not implemented correctly.
Also had to fix code in frog and dartdoc.
I hope I ran enough tests. I built an all.deps tree using tools/build.py from the root directory, which brought up the frog and dartdoc issues.
Tested:
tools/test.py --compiler=dart2js --runtime=drt
tools/test.py -c none -r drt
tools/test.py -c frog -r drt
tools/test.py -r vm
Review URL: https://chromiumcodereview.appspot.com//10115005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6698 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 16:09:22 +00:00
floitsch@google.com
12f4b60e51
Add test.
...
Review URL: https://chromiumcodereview.appspot.com//9969207
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6681 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 11:15:55 +00:00
floitsch@google.com
dbab92e737
Reapplies (again) "Don't try to box immutable objects."
...
This reapplies commit 6631 plus a fix, so that captured fields in closures are
mangled correctly.
Original CL: https://chromiumcodereview.appspot.com//10091036
Review URL: https://chromiumcodereview.appspot.com//9969212
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6679 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 10:57:52 +00:00
karlklose@google.com
038964d52c
Check number of type arguments.
...
Review URL: https://chromiumcodereview.appspot.com//10105031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6675 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 10:27:32 +00:00
floitsch@google.com
7626a83bc4
Revert "Reapply "Don't try to box immutable objects."
...
This reverts commit 6639 (again).
Review URL: https://chromiumcodereview.appspot.com//10108019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6642 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 15:11:11 +00:00
floitsch@google.com
144860c0d9
Reapply "Don't try to box immutable objects."
...
This reapplies (a fixed version of) commit 6631 which was reverted in commit 6632.
Fix tests (types were wrong).
Review URL: https://chromiumcodereview.appspot.com//10091039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6639 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:47:29 +00:00
floitsch@google.com
2bde3de690
Revert "Don't try to box immutable objects."
...
This reverts commit 6631.
Review URL: https://chromiumcodereview.appspot.com//10106020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6632 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:20:39 +00:00
floitsch@google.com
ccccad3360
Don't try to box immutable objects.
...
Review URL: https://chromiumcodereview.appspot.com//10091036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6631 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:09:44 +00:00
zundel@google.com
082190545e
Remove warning for using a factory constructor on an abstract class.
...
http://code.google.com/p/dart/issues/detail?id=2282
Review URL: https://chromiumcodereview.appspot.com//10106016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6619 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 09:30:21 +00:00
ngeoffray@google.com
1f8650af80
Add a test for checking that enough positional arguments were passed in.
...
Review URL: https://chromiumcodereview.appspot.com//10102001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6616 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 07:57:10 +00:00
hausner@google.com
02661e6905
Accept keyword abstract in front of a class declaration
...
We can just ignore it. The VM has nothing to do for abstract
classes.
Review URL: https://chromiumcodereview.appspot.com//10103014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6612 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 23:46:55 +00:00
hausner@google.com
475fbca314
Implement implicit interfaces
...
Amazingly, this small change is all it seems to take to implement
implicit interfaces.
Review URL: https://chromiumcodereview.appspot.com//10103009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6607 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 22:21:54 +00:00
floitsch@google.com
9ffbf450c6
Reapply "Refactor type propagation."
...
This reapplies (a corrected version of ) commit 6599 which had been reverted in commit 6600.
Original CL: https://chromiumcodereview.appspot.com//10098001
Review URL: https://chromiumcodereview.appspot.com//9956152
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6601 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 20:13:49 +00:00
floitsch@google.com
ec2bc38e45
Revert "Refactor type propagation."
...
This reverts commit r6599.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10106004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6600 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 20:06:00 +00:00
floitsch@google.com
31e2a0b5ee
Refactor type propagation.
...
Review URL: https://chromiumcodereview.appspot.com//10098001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6599 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 20:00:02 +00:00
floitsch@google.com
1cf1476ef9
Remove bad semicolon in negative test.
...
Review URL: https://chromiumcodereview.appspot.com//9972016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6594 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 16:25:21 +00:00
floitsch@google.com
91a1605755
Operator4Test only fails in unchecked mode for frog.
...
Review URL: https://chromiumcodereview.appspot.com//10095015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6590 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:57:30 +00:00
floitsch@google.com
63455dd294
It's CompileTimeConstantPTest/01 that is failing for frog.
...
Review URL: https://chromiumcodereview.appspot.com//10097019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6588 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:36:12 +00:00
floitsch@google.com
53083ba48a
Add issue number.
...
Review URL: https://chromiumcodereview.appspot.com//10097017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6587 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:30:00 +00:00
karlklose@google.com
3fb96bb8f8
Recommit 'Implement interface types'.
...
Reviewed as https://chromiumcodereview.appspot.com/9431029
TBR=ahe@google.com
Review URL: https://chromiumcodereview.appspot.com//10095014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6586 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:23:41 +00:00
floitsch@google.com
a0e73ff5b9
Mark dartc as failing for CompileTimeConstantPTest.
...
Review URL: https://chromiumcodereview.appspot.com//10094014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6585 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:21:16 +00:00
floitsch@google.com
6bf1414a24
Reapply "Use default values of named arguments when invoking the default super constructor."
...
This reapplies (a fixed version of) commit 6580 which had been reverted in commit r6582.
Old issue: https://chromiumcodereview.appspot.com//9930005
Review URL: https://chromiumcodereview.appspot.com//10094013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6583 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:00:27 +00:00
floitsch@google.com
898f9293ed
Revert "Use default values of named arguments when invoking the default super constructor."
...
This reverts commit 6580.
Review URL: https://chromiumcodereview.appspot.com//10101001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6582 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 14:46:55 +00:00
floitsch@google.com
fdb46e99f7
Use default values of named arguments when invoking the default super constructor.
...
Review URL: https://chromiumcodereview.appspot.com//9930005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6580 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 14:33:28 +00:00
floitsch@google.com
140ae80d80
Reapply "Add some failing (in Dart2Js) tests."
...
This reapplies (a fixed version of) commit r6566 and reverts r6568.
Adapts Operator4Test to work in checked mode.
Review URL: https://chromiumcodereview.appspot.com//10096010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6579 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 14:32:43 +00:00
floitsch@google.com
b61c2bf15b
Resolve implicit super calls.
...
Review URL: https://chromiumcodereview.appspot.com//10083007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6574 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 13:53:23 +00:00
floitsch@google.com
1739218afa
Revert "Add some failing (in Dart2Js) tests."
...
This reverts commit 6566.
Review URL: https://chromiumcodereview.appspot.com//10001007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6568 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 12:25:38 +00:00
floitsch@google.com
67ed0c1aa9
Add some failing (in Dart2Js) tests.
...
Review URL: https://chromiumcodereview.appspot.com//10081039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6566 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 12:08:35 +00:00
iposva@google.com
28ec6f243f
- Remove more String operator + from tests.
...
Review URL: https://chromiumcodereview.appspot.com//9969159
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6527 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 14:33:26 +00:00
floitsch@google.com
f6a66f3878
Allow all different string-literals in map literals.
...
Before spec. v0.8 only const strings were allowed.
Review URL: https://chromiumcodereview.appspot.com//9976004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6521 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 13:39:43 +00:00
floitsch@google.com
eb7648dd37
Add failing test.
...
Review URL: https://chromiumcodereview.appspot.com//10082004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6518 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 13:14:35 +00:00
karlklose@google.com
955e04bf65
Revert "Implement interface types."
...
This reverts commit r6514.
TBR=ahe@google.com
Review URL: https://chromiumcodereview.appspot.com//10080003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6515 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 13:01:29 +00:00
karlklose@google.com
edb70a0cb5
Implement interface types.
...
Review URL: https://chromiumcodereview.appspot.com//9431029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6514 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 12:42:13 +00:00
asiva@google.com
c4a316cb5f
Fix test status from Fail to Crash.
...
Review URL: https://chromiumcodereview.appspot.com//10038042
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6494 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 01:18:46 +00:00
srdjan@google.com
dee5447c56
Fix a crash when optimizing instance field increment: if the increment operation gets interrupted because of an exception during increment the collected classes at getter and setter phases may differ (e.g., one class at getter, zero classes at setter).
...
Review URL: https://chromiumcodereview.appspot.com//10020058
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6443 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 22:28:03 +00:00
regis@google.com
fce1a7e45e
Fix lazy initialization of static fields (issue 2472).
...
Review URL: https://chromiumcodereview.appspot.com//10050022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6438 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 21:24:17 +00:00
iposva@google.com
1300ed5576
- Fix use of String operator + in language and corelib tests.
...
Review URL: https://chromiumcodereview.appspot.com//9664052
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6415 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 14:46:17 +00:00
floitsch@google.com
645ae182e0
Look up the correct constructor for default classes.
...
Review URL: https://chromiumcodereview.appspot.com//9980004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6402 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 11:41:13 +00:00
sigmund@google.com
cca364ce76
change status files to make it possible to run test.py -c frog,dart2js -r none.
...
Except for standalone, this mostly skips all other tests. The configurations
frog_none and dart2js_none these have been ignored for now by the bots, enabling
those tests should be done as needed.
Review URL: https://chromiumcodereview.appspot.com//10042001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6382 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 20:56:37 +00:00
floitsch@google.com
be5ff89c9f
Fix instance compound assignment.
...
We compiled a.y.x += 1 into a.y.x = a.y.x + 1.
Similarly foo().x++ was compiled into foo().x = foo().x + 1.
Now we store the receiver and reuse it on both sides.
Review URL: https://chromiumcodereview.appspot.com//9979021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6365 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 15:52:13 +00:00
floitsch@google.com
593b3835fa
Verify that there are enough positional arguments.
...
Review URL: https://chromiumcodereview.appspot.com//9961005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6361 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 15:22:22 +00:00
floitsch@google.com
3695be92d7
Make constant lists immutable.
...
Review URL: https://chromiumcodereview.appspot.com//9965047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6360 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 15:19:46 +00:00
floitsch@google.com
51c03baebe
Update status file.
...
Review URL: https://chromiumcodereview.appspot.com//9961003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6358 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 14:42:23 +00:00
srdjan@google.com
b3452e74fb
Add a test to check correct references to a global variable that initially throws
...
a type error.
Review URL: https://chromiumcodereview.appspot.com//10006040
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6294 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-06 20:25:21 +00:00
zundel@google.com
ec609edb6d
Adds fixes for the 'super' keyword used by itself in certain situations
...
Review URL: https://chromiumcodereview.appspot.com//9949016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6240 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-05 18:48:42 +00:00