Commit Graph

5559 Commits

Author SHA1 Message Date
antonm@google.com 8763b2b5e4 Skip only on Dartium.
Review URL: https://chromiumcodereview.appspot.com//9298007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3651 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 12:51:56 +00:00
lrn@google.com bae05a2e89 Inserted string validation as separate task in compiler.
A LiteralString that has been validated now has a QuotedString
on it that records extra information (string without quotes,
quoting style and string length). Later stages expect that
QuotedString to be there and the string to be valid.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3650 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 12:21:54 +00:00
ngeoffray@google.com 6cfb88c596 Implement support for user-defined operators.
Review URL: https://chromiumcodereview.appspot.com//9284022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3646 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 10:51:24 +00:00
ngeoffray@google.com 2e93523f08 Small changes to get code generation of getters and setters working. Resolution is not fully correct yet.
Review URL: https://chromiumcodereview.appspot.com//9223012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3644 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 10:23:31 +00:00
antonm@google.com 86c806b62d Skip language/StringEscape1NegativeTest on Dartium.
Review URL: https://chromiumcodereview.appspot.com//9232044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3643 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 10:06:52 +00:00
regis@google.com 6f6543f4f9 Disable failing new tests for frog and leg.
Review URL: https://chromiumcodereview.appspot.com//9271086

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3633 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 00:05:51 +00:00
regis@google.com 76a765b72f Simplify parsing of 'new' operator.
Fix checking of default factory type parameters (add new tests).
Start cleanup of class resolution code in parser and finalizer.
Review URL: https://chromiumcodereview.appspot.com//9290065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3632 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-26 23:50:29 +00:00
scheglov@google.com 99cc34e500 Issue 1287. Allow to invoke function literal.
http://code.google.com/p/dart/issues/detail?id=1287

R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3626 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-26 20:22:08 +00:00
ahe@google.com 95a88f1be0 Don't allow escaping newlines in single line strings.
Review URL: https://chromiumcodereview.appspot.com//9288070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3624 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-26 19:33:42 +00:00
zundel@google.com 226ed91138 Added runtime type checking to the elements of list and map literals in dartc
http://code.google.com/p/dart/issues/detail?id=220
http://code.google.com/p/dart/issues/detail?id=221

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3619 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-26 17:33:04 +00:00
zundel@google.com 7169189529 Update map literal syntax to expect only one type parameter
As of the spec v0.6, the correct syntax is now:
  <V>{"key" : value };
Whereas you used to also specify the key. Added a deprecation warning
for the old syntax.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3606 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-25 20:21:24 +00:00
ahe@google.com fe8225307a Build script tags.
For now, ignore script tags but warn that they aren't supported. This flushes out bugs elsewhere in the compiler.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3594 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-25 09:34:27 +00:00
ahe@google.com a69cb93349 Setup getter and setter elements.
Review URL: https://chromiumcodereview.appspot.com//9117033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3593 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-25 09:15:08 +00:00
regis@google.com 54bf52428d Allow the list of type parameters in the default factory clause to be omitted.
Review URL: https://chromiumcodereview.appspot.com//9169032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3587 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-25 01:30:14 +00:00
regis@google.com f9e785eb29 Remove support for obsolete syntax of factory methods and default classes.
Review URL: https://chromiumcodereview.appspot.com//9285031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3578 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 22:37:45 +00:00
scheglov@google.com f7182176bf Issue 1229. Report error for using unary plus operator.
http://code.google.com/p/dart/issues/detail?id=1229

R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3560 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 19:05:55 +00:00
ahe@google.com 38147a1c16 Diagnose unterminated "grouping" characters.
Review URL: https://chromiumcodereview.appspot.com//9129015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3545 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 13:33:12 +00:00
ngeoffray@google.com 49938db26e Implement field parameter for generative constructors.
Review URL: https://chromiumcodereview.appspot.com//9283014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3543 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 12:46:37 +00:00
ngeoffray@google.com 6ab71e4c6d Add the arity to calls, and support noSuchMethodException.
Review URL: https://chromiumcodereview.appspot.com//9193016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3540 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 12:12:08 +00:00
scheglov@google.com 43de601434 Fix build for BadNamedParametersTest
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3517 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 22:08:06 +00:00
scheglov@google.com c0a3f43ce6 Issue 932. Checks for various named arguments cases.
http://code.google.com/p/dart/issues/detail?id=932

1. Clean up List<? extends Type>;

2. Generate compile time warnings/errors.

3. Generate run time errors.

4. Fix corresponding tests according to spec.

R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3511 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 20:01:31 +00:00
jimhug@google.com 85e0542126 fix break in r3504
Review URL: https://chromiumcodereview.appspot.com//9222015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3505 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 18:44:00 +00:00
jimhug@google.com 6f9aa02d6e Lots of frog cleanup
Review URL: https://chromiumcodereview.appspot.com//9270048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3504 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 18:17:50 +00:00
ngeoffray@google.com 3976d083be Forgot status change in last commit.
Review URL: https://chromiumcodereview.appspot.com//9222007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3492 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 13:40:28 +00:00
karlklose@google.com 31b864a012 Implement named constructors and resolving of redirecting constructors and super-initializers.
Review URL: https://chromiumcodereview.appspot.com//9243011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3455 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-20 14:19:46 +00:00
zundel@google.com 2f96a3d8b1 Remove support for >>> and >>>= operators in dartc
http://code.google.com/p/dart/issues/detail?id=1166

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3439 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-19 18:06:22 +00:00
zundel@google.com 6b677ae576 Allow classes shadowed by type variables to be referenced in static context
We still print a shadowing warning, but if there is a valid reference outside
the variable is now resolved to it.  Otherwise, we print the existing message
about not being able to reference type variables in a static context.

See bug: http://code.google.com/p/dart/issues/detail?id=643

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3434 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-19 15:12:26 +00:00
hausner@google.com aaf01d801a Fix named parameter function calls
Issue 1199
Review URL: https://chromiumcodereview.appspot.com//9252027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3422 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-19 00:51:39 +00:00
scheglov@google.com 14c15293ca fix frog status
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3414 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 20:54:33 +00:00
scheglov@google.com 6ad2499dbd Issue 933: Fix for resolving type of Function in field.
http://code.google.com/p/dart/issues/detail?id=933

R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3410 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 19:35:52 +00:00
hausner@google.com c75c9944d3 Unbreak frog leg
Review URL: https://chromiumcodereview.appspot.com//9252016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3409 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 19:35:05 +00:00
efortuna@google.com d0d58b4e89 Modify status files to account for test outcome differences between 32 bit and
64 bit Safari.
Review URL: https://chromiumcodereview.appspot.com//9254009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3408 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 19:14:07 +00:00
hausner@google.com 43c304c00f Skip is better than Fail
I am too stupid to understand multi-case tests. Seems the DuplicateImplementsTest needs to be tagged Skip instead of Fail
for dartc and frog.
Review URL: https://chromiumcodereview.appspot.com//9255021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3407 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 19:06:33 +00:00
hausner@google.com cb74b73a2c Fix dartc build: exclude DuplicateImplementsTest
TBR
Review URL: https://chromiumcodereview.appspot.com//9251014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3406 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 18:22:45 +00:00
hausner@google.com a1d6281cce Fix frog build: exclude DuplicateImplementsTest
TBR
Review URL: https://chromiumcodereview.appspot.com//9259001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3405 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 18:13:41 +00:00
regis@google.com 366695d347 Ignore parsed types of local variables in unchecked mode and replace them with
the Dynamic type.
Review URL: https://chromiumcodereview.appspot.com//9232016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3404 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 18:08:04 +00:00
hausner@google.com 600c0e4570 Report error on duplicate supertypes
Report error if the same type appears more than once in the implements
or extends list.
Review URL: https://chromiumcodereview.appspot.com//9252001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3403 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 17:58:05 +00:00
floitsch@google.com 794adcc608 Support static/global field initializations.
Works for literals (except String) and references to other fields.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3392 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 12:56:36 +00:00
ahe@google.com 74e3e3d33f Fix two crashes.
Review URL: https://chromiumcodereview.appspot.com//9241016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3388 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 09:52:06 +00:00
lrn@google.com b88c187160 Handle escapes in string literals.
Also handles raw strings.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3386 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 08:59:38 +00:00
efortuna@google.com 4ecc520173 Make changes for Safari to run with webdriver on the bots.
Review URL: https://chromiumcodereview.appspot.com//9252002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3382 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 02:22:10 +00:00
ahe@google.com 194df8319e Categorize crashes.
Review URL: https://chromiumcodereview.appspot.com//9231023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3364 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-17 17:12:21 +00:00
ahe@google.com 7b56550033 Generate AST nodes for field initializers.
Review URL: https://chromiumcodereview.appspot.com//9241014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3363 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-17 16:29:02 +00:00
jimhug@google.com 92ea87d275 cleanup resolveMember and get/set
Fixes two get/set tests as a result of cleanup and mostly addresses several other issues to be completed in a follow-up commit.  This version has been better tested and addresses perf and correctness issue in the reverted 922001.

Review URL: http://codereview.chromium.org//9222004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3328 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-15 03:08:50 +00:00
jimhug@google.com 0d1b74096d Revert "cleanup resolveMember and get/set" - undo previous commit so that more time will be available to understand buildbot failures.
Review URL: http://codereview.chromium.org//9220003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3327 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-14 20:46:07 +00:00
jimhug@google.com f87bfe780c cleanup resolveMember and get/set
Fixes two get/set tests as a result of cleanup and mostly addresses several other issues to be completed in a follow-up commit.  This is coming in a little bit early to minimize merge issues as John is making simultaneous great progress.

Review URL: http://codereview.chromium.org//9222001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3326 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-14 20:32:13 +00:00
jmesserly@google.com 8d77be39d7 Fix status file now that the test is fixed, and remove an assert I had in for debugging. Apparently the condition doesn't hold yet. I updated the comment.
Review URL: http://codereview.chromium.org//9207022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3323 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-14 02:41:49 +00:00
hausner@google.com 6d0e70e334 More parser stuff to handle pseudo keywords as identifiers
More pathological cases.
Review URL: http://codereview.chromium.org//9212018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3318 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-14 00:44:10 +00:00
efortuna@google.com 9fa0180cc1 Get Firefox and IE working again with Object.defineProperty!
Review URL: http://codereview.chromium.org//9214005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3312 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-13 22:28:50 +00:00
regis@google.com 2d1f63af47 Port a couple more stubs to x64.
Fix integer implementation issues.
Enable all tests on x64.
Review URL: http://codereview.chromium.org//9114054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3307 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-13 20:07:54 +00:00