Commit Graph

5559 Commits

Author SHA1 Message Date
iposva@google.com 9ac190d159 - Update status for gc_test.dart. Now throwing exception instead of crashing.
Review URL: https://chromiumcodereview.appspot.com//10407114

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7891 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 04:30:27 +00:00
regis@google.com 249d1d7811 Fix bad language tests.
Re-enable previously timing out tests.
Review URL: https://chromiumcodereview.appspot.com//10408077

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7889 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 00:48:27 +00:00
regis@google.com 9c094b4330 Properly finalize type with malformed type argument.
Add test.
Review URL: https://chromiumcodereview.appspot.com//10411070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7871 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-22 18:59:14 +00:00
regis@google.com b3c4682a81 Remove compile-time error for unresolved factory names (issue 3079).
Add test.
Review URL: https://chromiumcodereview.appspot.com//10332276

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7822 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-21 20:42:34 +00:00
regis@google.com 6fb0a9b281 Default parameter values are now allowed in interface methods and in abstract
methods, but not in function type aliases.
Made a negative test positive.
Disabled erroneous co19 tests (new co19 issue 123).
Review URL: https://chromiumcodereview.appspot.com//10392175

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7782 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 23:59:59 +00:00
regis@google.com f5076a5857 Reapply this reverted change:
Implement updated method overriding rules (issue 2943).
Review URL: https://chromiumcodereview.appspot.com//10387186

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7749 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 16:19:39 +00:00
hausner@google.com e03961d86d Attempt to fix dart2js redness
TBR=lrn
Review URL: https://chromiumcodereview.appspot.com//10332250

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7747 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 16:16:42 +00:00
hausner@google.com 6fece3e398 Fix tests in language suite: eliminate String +
The language suite runs clean without String + after this change.

string_concat_test.dart is obsolete, removed.
Review URL: https://chromiumcodereview.appspot.com//10383238

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7745 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 15:33:05 +00:00
regis@google.com 599ab6e3ca Revert r7729 until Dartium fixes its method override errors.
Review URL: https://chromiumcodereview.appspot.com//10399080

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7730 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 01:04:34 +00:00
regis@google.com 2b00b92ab9 Implement updated method overriding rules (issue 2943).
Add language test.
Review URL: https://chromiumcodereview.appspot.com//10388189

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7729 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 00:28:57 +00:00
sigmund@google.com a19e8bb1fe test.dart: include _dart2js.status when creating test suites with 'forDirectory'
this will allow dart2js to split their status files to reduce their conflicts.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7663 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 17:11:40 +00:00
ngeoffray@google.com 21041489fa Implement PrimitiveOrNull types.
Review URL: https://chromiumcodereview.appspot.com//10389063

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7537 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 10:25:11 +00:00
regis@google.com 5d9dab620c Implement latest rules prohibiting some self referencing typedefs.
Update tests.
Review URL: https://chromiumcodereview.appspot.com//10377095

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7524 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 23:03:36 +00:00
floitsch@google.com f686f9aa49 The shift-amount must not be anded with 31.
In JS x >> y is equivalent to x >> (y & 31). Dart's semantics is
different.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7486 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 12:56:41 +00:00
floitsch@google.com 680828d563 Make sure all loop-phis are declared.
Review URL: https://chromiumcodereview.appspot.com//10386047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7484 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 11:30:42 +00:00
srdjan@google.com 92eb96c913 Fix issue 2939, revert previous change that accepted null as excpetion objects:
throw null throws NullPointerException as per latest spec.
Review URL: https://chromiumcodereview.appspot.com//10392016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7475 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 22:27:12 +00:00
floitsch@google.com 29678aefe6 Generate getters and setters dynamically.
Review URL: https://chromiumcodereview.appspot.com//10310060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7460 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 14:11:29 +00:00
ngeoffray@google.com dd67209cf9 Call 'use' instead of 'visit' on the input when generating code for an unchecked HTypeConversion.
Review URL: https://chromiumcodereview.appspot.com//10332070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7454 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 12:15:05 +00:00
ngeoffray@google.com aba0ced437 Start creating a MemberSet abstraction, and use it to fold getters/setters into field accesses.
Review URL: https://chromiumcodereview.appspot.com//10383065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7451 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 11:51:46 +00:00
regis@google.com a1fcd03ca6 Allow self referencing typedefs (issue 2490).
Fix Type::Name for malformed function types (issue 2340).
Added tests.
Removed bad negative test.
Review URL: https://chromiumcodereview.appspot.com//10388019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7422 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-08 16:27:43 +00:00
floitsch@google.com 8f84e326cd Fix bad precedence for >>> operator.
We use >>> to get positive bit-operations. However the precedence framework
was used incorrectly leading to missed parenthesis.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7414 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-08 13:04:02 +00:00
ngeoffray@google.com de9953c9a3 Fix regression on constant folding an interceptor into a dynamic invocation.
Review URL: https://chromiumcodereview.appspot.com//10310037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7405 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-08 08:12:42 +00:00
floitsch@google.com 4175431008 Create the JavaScript constructor dynamically.
Review URL: https://chromiumcodereview.appspot.com//10344021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7376 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-07 13:40:41 +00:00
ngeoffray@google.com 4e3f5102f9 Start implementing checked mode and tools support for using it.
Review URL: https://chromiumcodereview.appspot.com//10353014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7375 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-07 13:18:21 +00:00
regis@google.com 5e99edcea7 Properly set the element type of literal lists.
Add test.
Keep element type consistent between growable array and backing array.
Fix snapshot reader to set the element type in growable array
Remove run time call checking rest argument.
Review URL: https://chromiumcodereview.appspot.com//10368004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7337 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-04 16:36:27 +00:00
floitsch@google.com aa545f175e More status updates.
Review URL: https://chromiumcodereview.appspot.com//10321006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7284 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 13:55:14 +00:00
floitsch@google.com 601a9e5b60 Update status file.
Review URL: https://chromiumcodereview.appspot.com//10344017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7281 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 13:16:02 +00:00
floitsch@google.com 30ef5c19d0 Make bit-operations return a positive result.
Fixes issue 2725 (as much as we can fix it).

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7278 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 12:50:21 +00:00
floitsch@google.com 34e21874de Make sure that we don't assign phis before its uses.
Review URL: https://chromiumcodereview.appspot.com//10342002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7276 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 12:28:08 +00:00
regis@google.com 7793191032 Check upper bounds of type arguments when allocating objects of a generic type
at run time when they cannot be checked at compile time.
Review URL: https://chromiumcodereview.appspot.com//10280007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7211 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 01:57:22 +00:00
srdjan@google.com 071e9240b9 - Fix another side effect issue: never add AstNode to sequence unless they are a statement. Added tests. LoadLocal has now an optional pseudo input.
Review URL: https://chromiumcodereview.appspot.com//10283003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7210 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-01 23:35:17 +00:00
srdjan@google.com 3eabbdd7dc Fix wrong order of execution in compound assignment nodes (located by Kevin).
Review URL: https://chromiumcodereview.appspot.com//10270028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7173 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-01 00:38:02 +00:00
sigmund@google.com 45efebba9a test rename overhaul: step 10 - crypto tests, and add back other tests commited
recently, but just before the rename overhaul.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7115 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-28 00:12:28 +00:00
sigmund@google.com 64d7bc5acf test rename overhaul: step 8 - language tests
Review URL: https://chromiumcodereview.appspot.com//10248007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7101 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 18:45:10 +00:00
floitsch@google.com d08c6ea50f Reapply "Avoid "=== true" inside code by calling a function that does this for us."
This reapplies a fixed version of commit 7000.
Original CL: https://chromiumcodereview.appspot.com/10140027/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7068 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 11:20:03 +00:00
regis@google.com 4ddb8e731b Second try at fixing frog. Tests failed only in checked mode.
Review URL: https://chromiumcodereview.appspot.com//10244004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7051 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 23:20:48 +00:00
regis@google.com 9498df59b9 Disable failing new tests for frog.
Review URL: https://chromiumcodereview.appspot.com//10244003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7050 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 22:59:54 +00:00
regis@google.com c2f823d92b Support cyclic types and F-bounded quantification (issue 439).
Added tests for F-bounded quantification.
Review URL: https://chromiumcodereview.appspot.com//10243001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7047 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 22:39:27 +00:00
srdjan@google.com 39117026e1 Add more subtype checks, and repeat them so that any inlined checks can be tested as well (first test always goes to runtime).
Review URL: https://chromiumcodereview.appspot.com//10198033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7040 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 19:59:30 +00:00
floitsch@google.com 5fa8f393a0 Revert "Avoid "=== true" inside code by calling a function that does this for us."
This reverts commit 7013.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7025 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 15:54:55 +00:00
floitsch@google.com 6f96f1c0b0 Reapply "Avoid "=== true" inside code by calling a function that does this for us."
This reapplies a fixed version of commit 7000.
Original CL: https://chromiumcodereview.appspot.com//10140027

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7013 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 12:37:41 +00:00
floitsch@google.com 25db95adc6 Revert "Avoid "=== true" inside code by calling a function that does this for us."
This reverts commit 7000.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7004 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 11:05:23 +00:00
floitsch@google.com af4ad65ef7 Avoid "=== true" inside code by calling a function that does this for us.
Review URL: https://chromiumcodereview.appspot.com//10140027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7000 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 10:53:26 +00:00
ngeoffray@google.com 063506a8b1 Better constant fold identity checks. (100 bytes saved on swarm, yeah! :))
Review URL: https://chromiumcodereview.appspot.com//10174040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6999 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 10:21:56 +00:00
floitsch@google.com 215e9dd0b2 Refactor types in ssa nodes.
Merges in CL https://chromiumcodereview.appspot.com/10161022

Fixes issue 2564.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6970 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 19:52:28 +00:00
sigmund@google.com c0cd619649 fix test status for broken build (seemed to have broken at 6962).
Review URL: https://chromiumcodereview.appspot.com//10223008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6967 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 19:21:45 +00:00
regis@google.com 2f18eb948c Remove left over debug line in test.
Review URL: https://chromiumcodereview.appspot.com//10182010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6862 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 20:30:05 +00:00
regis@google.com 0148376aa9 Provide better ToCString description for closures (issue 2680).
Thanks to Ladislav Thon for the suggestion!
Review URL: https://chromiumcodereview.appspot.com//10188004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6861 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 20:15:43 +00:00
sigmund@google.com 9fceab1ae8 frog: allow optional arguments in implicit method closures.
This fixes http://dartbug.com/854, but not bug 282. We need either fixing 282 or
this to implement a better API in unittest.dart (which works in the vm and
dart2js).

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6850 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 17:29:27 +00:00
floitsch@google.com 1ec13ec296 Use shorter names for constructor arguments.
Review URL: https://chromiumcodereview.appspot.com//10179001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6849 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 16:48:08 +00:00