Commit Graph

3219 Commits

Author SHA1 Message Date
ngeoffray@google.com 25543d35ed If there were breaks in a loop, we must not restore the saved localsHandler before entering the loop body.
Review URL: https://chromiumcodereview.appspot.com//9720024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5619 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-18 12:08:24 +00:00
ngeoffray@google.com e5bb4924ef Fix a bug related to bailout where an instruction would be generate at use site for a HBailoutTarget, but the HBailoutTarget does not actually generate the instruction.
Review URL: https://chromiumcodereview.appspot.com//9720022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5618 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-18 11:58:36 +00:00
karlklose@google.com 513fc02fc4 Implement parsing and resolving of type-variables.
Review URL: https://chromiumcodereview.appspot.com//9616058

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5572 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-16 15:39:37 +00:00
kasperl@google.com fa42efe602 Re-land r5529.
Update client-leg.status file.

R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5562 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-16 09:16:55 +00:00
efortuna@google.com 77dfce912a Revert r5529. Breaks frog and web bots.
Review URL: https://chromiumcodereview.appspot.com//9701072

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5532 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-15 18:29:08 +00:00
floitsch@google.com 481239d887 const constructors with optional arguments.
Review URL: https://chromiumcodereview.appspot.com//9705025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5529 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-15 17:06:02 +00:00
srdjan@google.com 0832db6261 Fix 2172: report 'int' instead of Smi, Mint and Bigint when throwing TypeError.
Review URL: https://chromiumcodereview.appspot.com//9705041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5525 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-15 15:54:59 +00:00
ahe@google.com 266c57b2e2 RegExp is const, really.
Review URL: https://chromiumcodereview.appspot.com//9702048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5513 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-15 09:19:12 +00:00
cshapiro@google.com aae5faf7b1 Implement regular expression support for split and replace{First,All}.
BUG=429

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5491 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-14 22:09:52 +00:00
hausner@google.com 63b525bb0e Revert change 5444
Review URL: https://chromiumcodereview.appspot.com//9703004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5448 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-14 00:35:16 +00:00
hausner@google.com a995d60106 named optional parameters must not be private
Named optional parameters may not start with an underscore '_'.

Fix issue 434 (http://code.google.com/p/dart/issues/detail?id=434)
Review URL: https://chromiumcodereview.appspot.com//9701001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5444 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 23:24:37 +00:00
ahe@google.com db05d5e27c Increase timeout limit when running on VM --enable_type_checks.
Also, build from the dart directory, not frog.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5414 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 16:27:33 +00:00
regis@google.com d74c2008be Fix type check to perform a subtype test at top level instead of an
assignability test. This only makes a difference when assigning an instance of
a function type.
Fix a bad language test.
Disable a bad co19 test (issue 99 filed).
Change error message for dynamic type error.
Review URL: https://chromiumcodereview.appspot.com//9664029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5413 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 16:16:12 +00:00
floitsch@google.com 8832ab4430 toStringAsExponential allows the fractionDigits argument to be null.
and update status file.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5390 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 11:53:46 +00:00
lrn@google.com 6636f083a9 Switch-implementation.
Change parser to compile several case expressions into one SwitchCase - so there is one case per statement group.

Make the builder generate a structure similar to what would be created by an if/else-if cascade with logically or'ed comparisons as conditions.

Not handling continues (but then, nothing is yet).

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5389 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 10:48:30 +00:00
ahe@google.com e43cfda4c7 Unresolved super-send is not a compile-time error.
Review URL: https://chromiumcodereview.appspot.com//9692018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5386 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 09:29:19 +00:00
ahe@google.com 57aa304826 Don't skip tests.
Review URL: https://chromiumcodereview.appspot.com//9691035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5385 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 08:51:00 +00:00
ahe@google.com 95af63a30a Triage co19 failures.
Review URL: https://chromiumcodereview.appspot.com//9691034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5384 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 08:09:10 +00:00
iposva@google.com 9e93428d9e - Allow string interpolation in constant strings.
- Add test for constant adjacent strings with and without interpolation.
- Update status files.
Review URL: https://chromiumcodereview.appspot.com//9694024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5377 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 00:59:17 +00:00
ahe@google.com ad69f7919e Hack around aborting loop body.
Review URL: https://chromiumcodereview.appspot.com//9688016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5337 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 17:30:21 +00:00
floitsch@google.com 14679ea22c Avoid cyclic computations in compile-time constants.
Review URL: https://chromiumcodereview.appspot.com//9663068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5327 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 15:50:59 +00:00
floitsch@google.com b6070fcda7 Compile time constants with fields.
Review URL: https://chromiumcodereview.appspot.com//9662037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5323 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 14:38:05 +00:00
ngeoffray@google.com 2a1d790472 Support for "a is Function".
Review URL: https://chromiumcodereview.appspot.com//9666006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5322 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 13:06:09 +00:00
floitsch@google.com 3de0557174 Implement constant maps.
Review URL: https://chromiumcodereview.appspot.com//9665001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5289 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-10 23:06:56 +00:00
ahe@google.com 045fbefda7 Update test status and fix a typo.
Review URL: https://chromiumcodereview.appspot.com//9662033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5286 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-10 20:15:47 +00:00
floitsch@google.com b0092ca1b7 Integer operations might not succeed (division by zero).
Review URL: https://chromiumcodereview.appspot.com//9668046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5281 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-10 15:30:42 +00:00
ahe@google.com 4cd7e7fb34 Find diagnostic locations for use in new compiler API.
Review URL: https://chromiumcodereview.appspot.com//9646030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5280 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-10 11:23:19 +00:00
zundel@google.com f98d82c284 Update analysis to support adjacent string literals
http://code.google.com/p/dart/issues/detail?id=2079

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5255 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 21:44:08 +00:00
regis@google.com 33bd965e2a Generate a dynamic type error when creating an instance with a bound error.
Review URL: https://chromiumcodereview.appspot.com//9665013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5250 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 21:15:11 +00:00
ngeoffray@google.com 843445530e Lookup super scope after looking up lexical scope.
Review URL: https://chromiumcodereview.appspot.com//9657006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5221 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 09:28:35 +00:00
kasperl@google.com 3505dceee6 Update test expectations to match reality.
TBR'ed.

R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5218 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 08:49:34 +00:00
hausner@google.com 40256313fc Fix checked co19 tests
TBR=turnidge
Review URL: https://chromiumcodereview.appspot.com//9652002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5188 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 19:18:19 +00:00
hausner@google.com 7fd2cb526a Fix co19 failures
TBR=turnidge
Review URL: https://chromiumcodereview.appspot.com//9648002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5186 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 18:56:34 +00:00
ahe@google.com ca71bdcc4d Introduce element categories and move resolver towards being more compositional.
This also improves handling of super.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5184 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 18:36:16 +00:00
hausner@google.com 8ed2484d6b Triage co19 tests on bleeding_edge
This combines changes 5128, 5120, 5059, 5003 which I accidentally
checked into trunk instead of bleeding_edge.
Review URL: https://chromiumcodereview.appspot.com//9620023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5183 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 18:18:39 +00:00
ngeoffray@google.com 72731f47f6 Tests don't fail anymore - fixing the bot.
Review URL: https://chromiumcodereview.appspot.com//9638009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5158 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 09:50:21 +00:00
ricow@google.com 50a1692333 Remove fail exception from c019-runtime status, we don't fail that test anymore.
Review URL: https://chromiumcodereview.appspot.com//9632011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5155 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 08:52:37 +00:00
floitsch@google.com 950400d7a0 Fix bit-or and bit-xor for two negative bigints.
Fixes issue 2049.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5142 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 00:09:54 +00:00
ahe@google.com 0f63c54fcd Resolve constructors with type arguments.
Review URL: https://chromiumcodereview.appspot.com//9600059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5131 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 21:46:44 +00:00
ngeoffray@google.com 43513815e4 Don't cancel when naming a typedef.
Review URL: https://chromiumcodereview.appspot.com//9619020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5119 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 20:49:16 +00:00
mattsh@google.com d8af601ce4 removed unused 'prefix' line from status files
Review URL: https://chromiumcodereview.appspot.com//9621003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5101 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 16:10:57 +00:00
ngeoffray@google.com d77308a444 Skip non-client tests on legium.
Review URL: https://chromiumcodereview.appspot.com//9623001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5089 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 13:50:11 +00:00
ngeoffray@google.com ccac62acad Introduce the TYPEDEF element, and use it in order to catch passing closures to the DOM. I make the assumption that the dom/html libraries will be sufficiently typed.
Review URL: https://chromiumcodereview.appspot.com//9618053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5078 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 10:49:16 +00:00
floitsch@google.com 5f5f63ff1c Implement BigintOperations::ToDecimalCString.
Review URL: https://chromiumcodereview.appspot.com//9536016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5068 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 08:25:32 +00:00
regis@google.com f4ddc43cdf Generate dynamic type errors according to spec.
Fix a few bad tests.
Turn a couple negative tests in multi-tests.
Triage a few co19 failing tests.

Still to do:
Check bounds of generic types at runtime in checked mode.
Stop reporting bounds error in new operator as a compile time error.
Review URL: https://chromiumcodereview.appspot.com//9615035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5064 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 02:23:12 +00:00
zundel@google.com a7669d35cc Type assignment errors should be static type warnings, not compile-time errors
http://code.google.com/p/dart/issues/detail?id=1939

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5053 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-06 20:58:56 +00:00
ahe@google.com dbee0f2c18 Implement literal maps.
Review URL: https://chromiumcodereview.appspot.com//9558005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5032 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-06 16:15:29 +00:00
floitsch@google.com bdb48996b1 Reapply "Refactor constant part." (r4958) with fixes.
This reverts commit r4965.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5027 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-06 14:08:56 +00:00
ahe@google.com a441821dfa Don't stringify unmatched groups.
Review URL: https://chromiumcodereview.appspot.com//9605009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5023 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-06 13:12:20 +00:00
ngeoffray@google.com e1151981ff Support for stack traces in catch blocks.
Review URL: https://chromiumcodereview.appspot.com//9601014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5018 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-06 12:17:49 +00:00