Commit Graph

3219 Commits

Author SHA1 Message Date
asiva@google.com d98fc0d364 Fix build brekage.
Review URL: https://codereview.chromium.org//11231020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13847 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 23:13:49 +00:00
tball@google.com e0db231c1a Fixed failing 4_External_Functions_A01_t01 test, updated co19-runtime.status with triaged test bug numbers.
BUG=5430

Review URL: https://codereview.chromium.org//11231015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13843 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 22:15:11 +00:00
hausner@google.com 63cf1b15d2 Handle super != and ?
Fix two bugs regarding != and argument definition test.

issue 2554
issue 6050
Review URL: https://codereview.chromium.org//11225006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13837 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 20:06:03 +00:00
lrn@google.com 89f5daea9e Rename OutOfMemoryException to OutOfMemoryError.
This is a reapply with missing status file changes.

TBR=kasperl@google.com

Review URL: https://codereview.chromium.org//11233004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13822 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 14:01:24 +00:00
kasperl@google.com f7a56d3f70 Revert "Rename OutOfMemoryException to OutOfMemoryError."
This reverts r13818.

TBR'ed.

R=lrn@google.com
BUG=

Review URL: https://codereview.chromium.org//11229003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13820 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 13:11:15 +00:00
lrn@google.com 58f3453267 Rename OutOfMemoryException to OutOfMemoryError.
Also move ExceptionImplementation to core.

Review URL: https://codereview.chromium.org//11228002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13818 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 12:20:52 +00:00
johnniwinther@google.com 8a122ad798 Remove VariableScope, Scope.lexicalLookup and Scope.inStaticContext
Review URL: https://codereview.chromium.org//11183053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13810 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 08:34:31 +00:00
ahe@google.com a937c8e7a1 Disable argument type optimization for named parameters.
BUG=http://dartbug.com/6015

Review URL: https://codereview.chromium.org//11188059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13784 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-18 15:23:42 +00:00
regis@google.com 8c3cfbb381 Second round of cleanups for new optional parameter semantics.
Review URL: https://codereview.chromium.org//11194025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13759 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 20:58:19 +00:00
hausner@google.com 506ae29b8a Enable constructor name check by default
Remove the runtime flag that turns on the name check
for named constructors.

Eliminate obsolete test and test case.
Review URL: https://codereview.chromium.org//11194033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13755 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 20:02:07 +00:00
hausner@google.com 384115d235 Remove built-in identifier 'negate' from VM
Keep the token kNEGATE for the backend to distinguish between
unary and binary - operator.
Review URL: https://codereview.chromium.org//11199002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13700 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 20:19:06 +00:00
regis@google.com adb534674c Change core lib, dart2js, and more for new optional parameters syntax and semantics (new semantics is not enforced yet).
Review URL: https://codereview.chromium.org//11090016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13684 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 16:03:47 +00:00
karlklose@google.com 3b27d7d1a0 Land 'Fix a crash related to obsolete factory syntax.'.
Original CL and review at https://codereview.chromium.org/11117022/. This CL addresses comments on the original CL.

R=kasperl@google.com

Review URL: https://codereview.chromium.org//11148014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13650 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-15 09:15:31 +00:00
hausner@google.com 1811a6b913 Support for type dynamic in VM
Old name Dynamic is supported, and automatically converted to
lower-case dynamic when parsed.

VM flag --warn_legacy_dynamic prints warnings when Dynamic
is found.
Review URL: https://codereview.chromium.org//11125005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13637 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-12 22:40:24 +00:00
scheglov@google.com 95bd9037c8 Issue 5735. Fix for 'export' without 'import'
http://code.google.com/p/dart/issues/detail?id=5735

Partial fix, only for "export" without "import".
There are also problem with this test.

R=danrubel@google.com
BUG=

Review URL: https://codereview.chromium.org//11110006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13621 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-12 13:54:09 +00:00
kasperl@google.com 516a5c8634 Re-land r13557 on behalf of Alexander.
This reverts commit r13585 but includes a small fix to the
resolver tests.

R=ahe@google.com,aprelev@gmail.com
BUG=

Review URL: https://codereview.chromium.org//11111017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13614 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-12 11:28:16 +00:00
kasperl@google.com 20084e0e34 Land Alexander's change that throw on abstract class instantiations.
This has already been reviewed here:
https://chromiumcodereview.appspot.com/11013010/

TBR'ed.

R=ahe@google.com,aprelev@gmail.com
BUG=

Review URL: https://codereview.chromium.org//11109012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13610 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-12 11:10:09 +00:00
kasperl@google.com 3b4d891861 Land Alexander's change that turns assert into a keyword.
This has already been reviewed here:
https://chromiumcodereview.appspot.com/11014010/

TBR'ed.

R=ahe@google.com
BUG=

Review URL: https://codereview.chromium.org//11113009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13606 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-12 10:43:01 +00:00
aprelev@gmail.com c3c04fcc81 Revert "Made dart2js constructor lookup logic "private"-aware, fixed 4740 bug." and 5 subsequent attempts to fix the build.
This reverts r13582, r13573, r13572, r13564, r13562, r13557.

TBR=ahe

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13585 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 22:02:06 +00:00
smok@google.com 899e8f47a5 [dart2dart] Fix the build - suppress test, will triage later.
TBR=antonm@google.com

Review URL: https://codereview.chromium.org//11086086

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13574 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 19:23:17 +00:00
aprelev@gmail.com b4d81f71e3 Fix the build - mark the test as failing in dart2dart.status file.
TBR=ahe

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13572 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 18:47:29 +00:00
smok@google.com 3cbd5cfa1d [dart2dart] Triage test failures.
Review URL: https://codereview.chromium.org//11085083

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13567 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 18:09:58 +00:00
aprelev@gmail.com 3bb0ab1f22 Made dart2js constructor lookup logic "private"-aware, fixed 4740 bug.
BUG=4740
TEST=dart2js_extra/4740_test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13557 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 16:46:44 +00:00
johnniwinther@google.com 981fdd3a4d Show and hide combinators supported.
BUG=3454

Review URL: https://codereview.chromium.org//11087073

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13534 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 12:04:43 +00:00
aprelev@gmail.com b09f729a6d Fixing the build: removing passing test from dart2dart status file.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13511 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 03:35:27 +00:00
aprelev@gmail.com 7ebd12113f Added 'dynamic' keyword, so that 'Dynamic' can be deprecated.
BUG=dartbug.com/5118
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13510 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 02:49:02 +00:00
johnniwinther@google.com ef93dd9da1 Added support for exports and re-exports.
BUG=5429
TESTS=language/export_test, language/export_cyclic_test

Review URL: https://codereview.chromium.org//10990060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13478 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 15:08:18 +00:00
jwren@google.com 6312917b13 Updated dart2dart status file to remove some now passing tests.
BUG=

Review URL: https://codereview.chromium.org//11028113

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13463 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 11:07:32 +00:00
jwren@google.com 0a6a39048c Fix to dartbug.com/5170, explictly static library variables now get an appropriate error message.
BUG=

Review URL: https://codereview.chromium.org//11087025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13460 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 09:22:17 +00:00
ricow@google.com e627457595 Update status files for dartc.
We are now correctly handling apply.
The co19 part is making us skip the tests that are crashing since they seem to crash the batch runner.
Review URL: https://codereview.chromium.org//11092020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13413 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 13:25:03 +00:00
lrn@google.com 6dd1ec7d06 Added co19 test exception for dart2dart.
TBR=ahe@google.com

Review URL: https://codereview.chromium.org//11093020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13411 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 12:58:25 +00:00
lrn@google.com 174f264557 First stab at parsing redirecting constructors.
Review URL: https://codereview.chromium.org//10957060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13410 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 12:18:52 +00:00
karlklose@google.com 611470a8dc Disallow non-identifiers in for-in.
The spec does not allow field references in for in:
  C c = new C();
  for (c.i in new List(100)) {}
should trigger a compile time error.

BUG=http://dartbug.com/5015

Review URL: https://codereview.chromium.org//11066052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13405 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 11:10:53 +00:00
ahe@google.com 288aea4697 Update co19 to r373.
Review URL: https://codereview.chromium.org//11093016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13401 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 09:10:01 +00:00
ahe@google.com 8214500336 Implement part-of directive.
Review URL: https://codereview.chromium.org//11092003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13398 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 07:49:48 +00:00
iposva@google.com 78c30b0775 - Update status files for failing tests.
Review URL: https://codereview.chromium.org//11093013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13387 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 00:47:42 +00:00
iposva@google.com 5f2f50f960 Land http://codereview.chromium.org/11047027/ for Matthias:
Implement export clause in VM 

Implement export namespace support in VM compiler. 

Missing functionality: ensuring that a name is only re-exported once.
Review URL: https://codereview.chromium.org//11028084

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13384 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 00:14:42 +00:00
regis@google.com 2b1a2a87fc Update dart2dart co19 status file.
Review URL: https://codereview.chromium.org//11090011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13377 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 21:47:19 +00:00
regis@google.com 6c7a1f30fd Look up getter in super call (issue 3621).
Review URL: https://codereview.chromium.org//11088014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13376 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 21:37:34 +00:00
efortuna@google.com f77ee9a992 Fix dartc test status.
Review URL: https://codereview.chromium.org//11013046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13337 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-06 00:27:51 +00:00
efortuna@google.com 6e42838196 Fix test.dart return code -- was causing fake greenness on dartc, dart2dart
(potentially the VM) as a result of previous CL:
https://codereview.chromium.org/11032047/
Review URL: https://codereview.chromium.org//11071003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13336 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-06 00:17:57 +00:00
efortuna@google.com 2262eaa5ed Reapply r13292 WITH a fix to dartc test status for apply_test.dart
Review URL: https://codereview.chromium.org//11035069

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13335 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 23:42:27 +00:00
efortuna@google.com 461f7fb95e Revert r13292. This is when the first failure showed up on dartc, but dartc
didn't actually turn red. Investigating why.
Review URL: https://codereview.chromium.org//11081002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13330 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 23:05:20 +00:00
regis@google.com 1b8e614d7d Change compile-time errors into dynamic errors in instance creation expression
(issue 3085).
Change compile-time errors into dynamic errors in static getter and setter
calls (issues 3088, 3094).
Fix a crash in flow graph builder for missing static getter (issue 4360).
Add support in VM for NoSuchMethodError.
Remove support in VM for StaticResolutionException.
Add, remove, update related language tests.
Triage related co19 tests.
Review URL: https://codereview.chromium.org//11049038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13208 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 00:15:38 +00:00
antonm@google.com e2f93f9609 Change expectations comments.
It apparently is not a bug in dart2dart, but rather in co19 test.

R=smok@google.com

Review URL: https://codereview.chromium.org//11045016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13178 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 15:41:35 +00:00
ahe@google.com 22892c36df Update co19 to r361.
Review URL: https://codereview.chromium.org//11049027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13176 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 15:38:29 +00:00
smok@google.com 60d94cee1a [dart2js] Report an error if throw is used outside of catch expression without an argument.
BUG=5598

Review URL: https://codereview.chromium.org//11049023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13171 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 11:51:34 +00:00
ager@google.com ffe5b29eed Minor fixes to test.dart.
Fix some switches, remove interfaces, and add 'incomplete' to
the TestOutput abstract class.

R=ricow@google.com,whesse@google.com
BUG=

Review URL: https://codereview.chromium.org//11047013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13169 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 10:47:05 +00:00
antonm@google.com 06fa1a4ab5 Triage fresh failures.
TBR=smok@google.com

Review URL: https://codereview.chromium.org//11051011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13158 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 06:33:45 +00:00
antonm@google.com 710b6f20b4 Properly unparse sequences like x + +1 and x - -1.
R=smok@google.com
BUG=5600

Review URL: https://codereview.chromium.org//11039020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13119 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-02 14:57:28 +00:00