Commit Graph

5559 Commits

Author SHA1 Message Date
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
regis@google.com 9ff0afa50e Do not require upper bounds to be resolved and finalized before comparing them
between the expected and actual factory class (issue 2431).
Add test.
Review URL: https://chromiumcodereview.appspot.com//10008017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6236 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-05 18:11:42 +00:00
antonm@google.com 0d855bf15b Remove now unnecessary suppression.
TBR=ager@google.com,whesse@google.com
BUG=2371

Review URL: https://chromiumcodereview.appspot.com//9980009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6182 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-04 18:01:56 +00:00
regis@google.com 3077bcfea8 Make test non vm-specific (cl 9969122 follow up).
Small edits in both vm-specific and non-vm specific versions of the same test.
Review URL: https://chromiumcodereview.appspot.com//9956116

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6149 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-03 21:48:10 +00:00
zundel@google.com c4d9d56627 Dartc's 'can't use a type variable in static context' message now works the same way as 'NO_SUCH_TYPE'
The error message for can't use a type variable in a static
context is useful, but it was an unconditional error.  Really,
the message is just a more friendly version of 'NO_SUCH_TYPE' and
needs to work in the same way, being a warning in some contexts, and
a compile time error in others.

http://code.google.com/p/dart/issues/detail?id=2374

Review URL: https://chromiumcodereview.appspot.com//9963082

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6146 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-03 20:32:23 +00:00
regis@google.com ab0a25eb1d Add missing type checks for top level static initializers (issue 1980 and
duplicates 1957, 2070, 2224).
Review URL: https://chromiumcodereview.appspot.com//9958091

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6145 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-03 20:23:30 +00:00
turnidge@google.com e610ab662b Revert my last change due to problems on other platforms.
Review URL: https://chromiumcodereview.appspot.com//9968088

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6129 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-03 17:51:20 +00:00
turnidge@google.com 11d29be5e1 Detect recursion during compilation of const constructors.
We now give a message like this:

    Illegal recursion in const constructor 'A.'.
Review URL: https://chromiumcodereview.appspot.com//9965081

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6128 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-03 17:32:39 +00:00
hausner@google.com 55a9a4831e Fix issue 1569
Report proper error on illegal getter and setter syntax, and bad field declarations.
Review URL: https://chromiumcodereview.appspot.com//9958041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6112 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-02 21:18:02 +00:00
zundel@google.com 3eaaa6b255 dartc co19 bug triage
Review URL: https://chromiumcodereview.appspot.com//9969055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6095 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-02 17:48:19 +00:00
antonm@google.com eb71892b39 Suppress TypedMessageTest on Dartium.
TBR=ajohnsen@google.com

Review URL: https://chromiumcodereview.appspot.com//9963049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6086 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-02 10:21:28 +00:00
regis@google.com 5282e44fb2 Use null type argument vector instead of vector of Dynamic for a generic raw
type when possible.
Fix type finalization of type parameters (always finalize in the context of the
class being parameterized and not in the enclosing class where the type
parameter is used).
Fix wrong generic optimization and added a test (a generic type instantiated
from a raw instantiator is not always raw).
Added printing of type argument vectors.
Review URL: https://chromiumcodereview.appspot.com//9939003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6068 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 22:16:52 +00:00
floitsch@google.com ac6ad95fc1 Fix typo in native_helper and add dartc test.
Review URL: https://chromiumcodereview.appspot.com//9955001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6061 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 19:00:15 +00:00
hausner@google.com 18d5cf7965 Fix two compile time const issues
- For equality expressions, the operands do not have to be of same
  type. (Issue 1671)

- Truncating division is allowed for any numerical type, not just
  integer. (Issue 1780) Spec has been updated accordingly and
  co19 issue 106 filed to fix faulty test.
Review URL: https://chromiumcodereview.appspot.com//9969023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6059 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 18:45:17 +00:00
floitsch@google.com bf9e80617e Fix bug where constants were not correctly canonicalized.
Review URL: https://chromiumcodereview.appspot.com//9967001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6056 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 18:12:06 +00:00
floitsch@google.com ec60610969 During bailout construction add condition instructions to list of live variables.
Review URL: https://chromiumcodereview.appspot.com//9958007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6054 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 17:54:41 +00:00
floitsch@google.com 266d3a8c98 Don't use === instead of equality-method call for user class constants.
Review URL: https://chromiumcodereview.appspot.com//9956012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6048 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 17:04:40 +00:00
floitsch@google.com a8d1e46fc7 Fix bug where a parameter was mutated while it was still used.
Review URL: https://chromiumcodereview.appspot.com//9963005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6047 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 17:03:31 +00:00
polux@google.com c2fd555385 Typecheck constructor calls.
Review URL: https://chromiumcodereview.appspot.com//9835007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6040 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 15:24:15 +00:00
floitsch@google.com 647019b6d0 Implement constant maps with __proto__ and fix maps with duplicated keys.
Review URL: https://chromiumcodereview.appspot.com//9873040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6008 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-29 22:59:01 +00:00
hausner@google.com c91cbd26a7 Fix capturing of for-loop variables
It was broken when there were captured variables in inner blocks.
LocalFunctionTest had a test case that was expecting the wrong result.
Add a few more test cases to For2Test.dart

Fixes issue 2338  (http://code.google.com/p/dart/issues/detail?id=2338)
Review URL: https://chromiumcodereview.appspot.com//9921030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6006 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-29 22:44:47 +00:00
zundel@google.com a6fa2f377c This re-enables all the cases in TypeDartcTest.dart
I used the /// static type warnings annotation to replace the runtime checks.
There is one case that fails so I filed a ticket.

http://code.google.com/p/dart/issues/detail?id=2348

Review URL: https://chromiumcodereview.appspot.com//9921026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6001 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-29 20:38:41 +00:00
ngeoffray@google.com 133b680241 Fix a bug where a block would be visited twice: by a non-dominating loop, and by its dominator.
Review URL: https://chromiumcodereview.appspot.com//9878001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5968 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-29 09:15:02 +00:00
floitsch@google.com 3d69bfc495 Update reasons for some failing tests.
Also remove status-file lines for non-existing tests.

Review URL: https://chromiumcodereview.appspot.com//9887003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5966 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-29 05:31:06 +00:00
floitsch@google.com 11c0923726 Fix LocalFunctionTest and update status files.
Review URL: https://chromiumcodereview.appspot.com//9916001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5964 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-29 01:23:23 +00:00
floitsch@google.com 918a9681dd Correctly handle constness for list and map literals inside bodies.
Also parse const keyword for maps.

Review URL: https://chromiumcodereview.appspot.com//9802023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5944 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-28 18:16:39 +00:00
zundel@google.com e5ca48a7d5 Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries
Adds a new cmdline flags

--dart-sdk to point it at a directory where the dart library files are staged
--platform the name of the platform {dartium, vm, frog, dart2js}
to target with the analyzer

Committed: https://code.google.com/p/dart/source/detail?r=5885

Review URL: https://chromiumcodereview.appspot.com//9860009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5930 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-28 14:20:29 +00:00
floitsch@google.com f8a6645fce super and this in compile-time constants.
Review URL: https://chromiumcodereview.appspot.com//9753001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5918 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-28 00:11:17 +00:00
efortuna@google.com ab624e53f4 Remove additional "component" tag.
Review URL: https://chromiumcodereview.appspot.com//9791034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5907 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 20:56:23 +00:00
efortuna@google.com c8e35dbeb1 Rename test.dart component to specify compiler + runtime.
Review URL: https://chromiumcodereview.appspot.com//9838068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5893 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 18:40:41 +00:00
zundel@google.com 1486f2602d Revert "Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries"
This reverts commit r5885 which works locally, but not on the builder

Review URL: https://chromiumcodereview.appspot.com//9865025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5886 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 17:04:03 +00:00
zundel@google.com b838d39acb Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries
Adds a new cmdline flags

--dart-sdk to point it at a directory where the dart library files are staged
--platform the name of the platform {dartium, vm, frog, dart2js}
to target with the analyzer

Review URL: https://chromiumcodereview.appspot.com//9860009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5885 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 16:25:54 +00:00
ahe@google.com a2a68f6988 Fix ImpliedInterfaceTest.
Review URL: https://chromiumcodereview.appspot.com//9839103

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5880 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 15:15:25 +00:00
regis@google.com 8ba77ffb83 Do not share local function between closurized and non-closurized enclosing
function.
Add test (thanks to Florian for reporting the issue).
Review URL: https://chromiumcodereview.appspot.com//9835070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5843 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-26 16:59:37 +00:00
ahe@google.com 8f27098ffb Handle implicit closure of toString.
Review URL: https://chromiumcodereview.appspot.com//9835088

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5820 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-26 09:47:18 +00:00
ahe@google.com 045f48ad38 Fix NPE in ArrayBasedScanner
Review URL: https://chromiumcodereview.appspot.com//9773005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5816 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-26 07:22:34 +00:00
ahe@google.com 588e827484 Implement unlabeled continue.
Review URL: https://chromiumcodereview.appspot.com//9808109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5808 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-25 20:21:46 +00:00
ahe@google.com 3a3162da27 "Implement" #resource tag and various restrictions on library definitions.
Review URL: https://chromiumcodereview.appspot.com//9838038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5804 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-24 08:51:37 +00:00
iposva@google.com 9f57771f00 Fixing r4213:
- When writing tests, please make sure they are actually run.
Review URL: https://chromiumcodereview.appspot.com//9837071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5800 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-23 23:58:02 +00:00
floitsch@google.com 711f3a8898 Visit parenthesized expressions in compile-time constants.
Also switch from unimplemented to error for non-recognized nodes.

Review URL: https://chromiumcodereview.appspot.com//9808092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5799 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-23 23:53:05 +00:00
ahe@google.com ea393170e7 Update status file for frog.
Review URL: https://chromiumcodereview.appspot.com//9838052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5775 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-23 12:12:30 +00:00
ahe@google.com 92300436ca Resolve initializers in their proper scope.
Review URL: https://chromiumcodereview.appspot.com//9808006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5773 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-23 11:50:54 +00:00