Commit Graph

5559 Commits

Author SHA1 Message Date
vegorov@google.com 061ddf0051 Optimistically hoist SmiCheck through phi when the only value of unknown type coming into the phi is an operand corresponding to the loop's pre-header.
R=fschneider@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12022 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 12:23:01 +00:00
ngeoffray@google.com 94f1c2ed10 Change our 'is int' check to use Math.floor instead of a smi check.
Review URL: https://chromiumcodereview.appspot.com//10912147

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12018 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 12:05:34 +00:00
kasperl@google.com 9beb871852 Get rid of a lot of () for getters.
R=bak@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12017 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 11:50:07 +00:00
karlklose@google.com 54538f6161 Generate a warning and a runtime error for calls to nonexistent static calls, getters and setters.
R=ngeoffray@google.com
BUG=3086,3089,3095

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12011 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 10:41:38 +00:00
regis@google.com 7cc84c2892 Implement new optional parameters syntax in the vm (issue 4290).
Provide --reject_named_argument_as_positional flag to ease transition to new
syntax (default is false).
Add tests.
Review URL: https://chromiumcodereview.appspot.com//10910119

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12004 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 01:13:27 +00:00
hausner@google.com 9247c4bd0b Fix dart2dart status
Review URL: https://chromiumcodereview.appspot.com//10917116

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11975 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 18:32:35 +00:00
hausner@google.com ae1c248f3a Update dartc status file
TBR
Review URL: https://chromiumcodereview.appspot.com//10905135

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11974 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 18:22:19 +00:00
hausner@google.com e0ed54ea8e Add named constructor name checking
Named constructors may not clash with any other class members.
Add a check but enable it only when --construcotr_name_check
runtime flag is passed to the VM.

Eliminate one named constructor in Process class in core library,
as well as a couple of cases in dart2js.

The dart2js team may want to rename the constructors I changed.

Issue 3990  (http://code.google.com/p/dart/issues/detail?id=3990)
 
Review URL: https://chromiumcodereview.appspot.com//10905109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11972 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 18:02:41 +00:00
ngeoffray@google.com 7ef6d7aac2 Re-apply with a few fixes http://codereview.chromium.org/10913081/: Fix resolution of type parameters in static context, and the use of type parameters in closures.
Review URL: https://chromiumcodereview.appspot.com//10910098

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11966 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 16:31:30 +00:00
ngeoffray@google.com b5fe256172 Improvements for checked mode: check when intializing fields, and when assigning to fields.
Review URL: https://chromiumcodereview.appspot.com//10910092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11962 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 16:03:25 +00:00
ngeoffray@google.com fce3e2ec01 Fix checked mode on browser.
Review URL: https://chromiumcodereview.appspot.com//10912109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11933 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 10:48:22 +00:00
lrn@google.com b736d75fb0 Make an empty identifier a scanning error.
This only happens in string interpolations, since it is the only place
where an identifier is scanned without first seeing at least one
character of the identifier.

BUG=4899

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11927 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 08:50:52 +00:00
ngeoffray@google.com 2edbe0b892 Revert r11881. metadata_test fails for yet to be discover reasons.
Review URL: https://chromiumcodereview.appspot.com//10918078

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11889 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 17:04:38 +00:00
ngeoffray@google.com 435c5977d9 A Set takes something that is Hashable. Thanks dart analyzer.
Review URL: https://chromiumcodereview.appspot.com//10920097

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11884 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 16:17:43 +00:00
floitsch@google.com 1011c58bf9 Use JavaScript runtime semantics when constant folding.
Fixes issue 4551.
Fixes issue 2887.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11883 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 16:13:58 +00:00
ngeoffray@google.com f1aece76c4 Fix resolution of type parameters in static context, and the use of type parameters in closures.
Review URL: https://chromiumcodereview.appspot.com//10913081

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11881 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 16:04:25 +00:00
scheglov@google.com 6f8893f9b8 Invocation C.unknownMethod() should produce warning, not error
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11878 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 15:58:18 +00:00
ahe@google.com 233c007636 Update status file for dart2js checked mode.
We didn't use to test checked mode on browsers. Now we do.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11877 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 15:57:38 +00:00
floitsch@google.com c22617a335 Address comment of CL 10914097 .
Review URL: https://chromiumcodereview.appspot.com//10919097

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11875 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 15:46:55 +00:00
floitsch@google.com 7a243f0d40 Fix type-annotation and add another tests.
Review URL: https://chromiumcodereview.appspot.com//10914097

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11874 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 12:19:21 +00:00
floitsch@google.com c620a56249 Update status file.
Review URL: https://chromiumcodereview.appspot.com//10918070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11872 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 11:59:54 +00:00
floitsch@google.com ec7343beaa Fix tests and update status files.
Review URL: https://chromiumcodereview.appspot.com//10909081

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11871 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 11:52:24 +00:00
floitsch@google.com a0f8e3db29 Lazy implementation of final variables.
Fixes issue 3559.

Depends on CL https://chromiumcodereview.appspot.com/10832351/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11870 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 11:28:38 +00:00
asiva@google.com 9238471fe2 Fix status line.
Review URL: https://chromiumcodereview.appspot.com//10915076

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11858 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 02:18:01 +00:00
tball@google.com 6927ab3b24 Moved assertion test from VM tests to language. Since it fails with
dart2js, filed issue 4929 and disabled the test.
Review URL: https://chromiumcodereview.appspot.com//10911083

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11851 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 23:58:00 +00:00
hausner@google.com dce2c6a275 Catch illegally declared constructors
Constructors cannot be abstract or static.
Review URL: https://chromiumcodereview.appspot.com//10910079

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11842 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 21:28:48 +00:00
regis@google.com a7c80bc141 Disable test failing in minified tests of dart2dart.
Review URL: https://chromiumcodereview.appspot.com//10911071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11837 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 19:34:57 +00:00
regis@google.com 2ea2249b48 Fix argument definition test (issue 4888).
Review URL: https://chromiumcodereview.appspot.com//10907064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11835 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 18:59:01 +00:00
brianwilkerson@google.com efaa2a1d4b Old catch syntax is now an error (issue 4905)
Review URL: https://chromiumcodereview.appspot.com//10913068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11834 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 18:11:19 +00:00
ngeoffray@google.com abf87c420c Triage test.
Review URL: https://chromiumcodereview.appspot.com//10916092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11822 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 15:12:41 +00:00
antonm@google.com bedfbc7738 It both fails and crashes.
TBR=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11818 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 13:59:48 +00:00
antonm@google.com f81545d756 Mark test as crashing.
TBR=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11817 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 13:45:55 +00:00
antonm@google.com 6c1cd8f109 Suppress a test as this feature is not supported by DartVM yet.
TBR=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11816 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 13:43:05 +00:00
ngeoffray@google.com 63a2bfbe48 Codegen support for the argument definition test.
Review URL: https://chromiumcodereview.appspot.com//10911062

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11814 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 13:22:09 +00:00
kasperl@google.com d5c89fec05 Allow the analyzer to fail a few new tests.
TBR'ed.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11808 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 12:34:48 +00:00
kasperl@google.com ab814d4d46 Disallow legacy try-catch syntax.
R=karlklose@google.com,ahe@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11807 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 12:21:40 +00:00
ngeoffray@google.com e117fcab54 Change test so that it checks whether the exception thrown is ObjectNotClosureException or NoSuchMethodException. Some browsers just generate a NoSuchMethodException.
Review URL: https://chromiumcodereview.appspot.com//10915059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11806 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 12:16:26 +00:00
ngeoffray@google.com c4d0fdde5c Fix dartc bot.
Review URL: https://chromiumcodereview.appspot.com//10920071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11793 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 08:40:50 +00:00
ngeoffray@google.com fee082d1f3 Fix issue 4361 by checking in the resolver if the getter/setter exists.
Review URL: https://chromiumcodereview.appspot.com//10905062

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11792 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 08:28:16 +00:00
ngeoffray@google.com f9fd519fe7 Fix dart2dart bot.
Review URL: https://chromiumcodereview.appspot.com//10911060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11790 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 07:50:44 +00:00
karlklose@google.com 5e3a529590 Mark the local for this as used if a constructor call needs type variables.
R=floitsch@google.com
BUG=http://code.google.com/p/dart/issues/detail?id=4829

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11787 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 07:41:24 +00:00
ngeoffray@google.com 22c6f370ca Allow access to super fields inside a closure.
Review URL: https://chromiumcodereview.appspot.com//10916079

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11786 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 07:28:19 +00:00
lrn@google.com 95dfe795f4 Change remaining "final" to "const" in language/const_syntax_test.
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11763 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-03 12:55:39 +00:00
ahe@google.com ee36a3d50e Remove language directory.
Review URL: https://chromiumcodereview.appspot.com//10917035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11747 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-03 08:24:00 +00:00
kasperl@google.com 2028d2fa70 Get rid of multiple assignments to final instance fields.
Thanks to Matthias for spotting this issue in the first version
of the test for final instance fields.

R=ngeoffray@google.com,hausner@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11746 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-03 06:54:16 +00:00
hausner@google.com 4987ff9cd9 Sheesh...
Review URL: https://chromiumcodereview.appspot.com//10910042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11713 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 18:56:09 +00:00
hausner@google.com 067a15e4a8 Fix remaining dartc test status
Review URL: https://chromiumcodereview.appspot.com//10916061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11712 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 18:37:37 +00:00
hausner@google.com 21ac7581d8 Fis dart2dart test status
Review URL: https://chromiumcodereview.appspot.com//10924002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11711 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 18:33:33 +00:00
hausner@google.com 1bd8e192a5 This should fix some, not all, of the dartc errors
Review URL: https://chromiumcodereview.appspot.com//10919035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11710 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 18:28:20 +00:00
hausner@google.com 35d7793891 Throw AbstractClassInstantiationError if an abstract class is instantiated
This is the second try to my previous attempt to implement the
new abstract class handling. Instead of a compile-time error,
the VM now throws an AbstractClassInstantiationError at runtime
if an abstract class is instantiated. Added the new error class
to the core library.

For now I'm still using the rule that a class is abstract if it is explicitly
marked as abstract, or if it defines a new abstract method.
Review URL: https://chromiumcodereview.appspot.com//10916039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11708 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 18:06:42 +00:00