Commit Graph

5559 Commits

Author SHA1 Message Date
ahe@google.com fcc9f5f0ff Parse new library syntax.
Committed: https://code.google.com/p/dart/source/detail?r=12386
But reverted in: https://code.google.com/p/dart/source/detail?r=12387

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12686 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 09:08:12 +00:00
ricow@google.com f9a8195533 Suppress Dart2Dart error in language/import_core_prefix_test
This started happening after revision 12673, I filed issue 5345 to track this
Review URL: https://codereview.chromium.org//10970032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12680 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 06:17:27 +00:00
asiva@google.com 51aa46ef86 Fix status file for Dartium.
Review URL: https://codereview.chromium.org//10967031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12678 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 01:28:22 +00:00
iposva@google.com 4b8db6cdf1 - Fix test.
Review URL: https://codereview.chromium.org//10970027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12676 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 01:09:23 +00:00
asiva@google.com 4140ed9d5b Fix for issue 5223 : Import 'dart:core' implicitly only if it has not been
already explicitly imported in the script.
Review URL: https://codereview.chromium.org//10949028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12673 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 00:43:08 +00:00
iposva@google.com 7fa25c974d - Fix checked mode test: Map still expects Hashable.
Review URL: https://codereview.chromium.org//10963017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12672 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 00:41:10 +00:00
iposva@google.com eee4bbc1ef - Add definition of "int hashCode()" to Object.
- Implement hashCode in the VM.
- Mark hashCode as unimplemented in dart2js.
- Update test using the identity hashcode.
Review URL: https://codereview.chromium.org//10956026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12669 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 00:32:58 +00:00
scheglov@google.com 3c4080aff2 Issue 5163. Constructor/member name conflict should be error
http://code.google.com/p/dart/issues/detail?id=5163

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12660 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 21:31:09 +00:00
iposva@google.com b9327e0236 - Make the VM understand the --checked flag to be aligned with dart2js.
- Adjust some of the checked mode tests to pass --checked and --enable-checked-mode.
Review URL: https://codereview.chromium.org//10962013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12651 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 18:19:06 +00:00
ricow@google.com 13e6976997 Fix isnot_malformed_type_test by putting the multitest comment on the right line.
Review URL: https://codereview.chromium.org//10966006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12629 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 11:11:50 +00:00
ricow@google.com 4b6a4fd3ef Correctly mark the test failing from revision 12608
This is a multitetst
Review URL: https://codereview.chromium.org//10963003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12618 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 07:28:11 +00:00
ricow@google.com 0237e8d1b1 Update status file for dartc after new test in revision 12608.
I created issue 5315 to track this.
Review URL: https://codereview.chromium.org//10962006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12614 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 06:07:27 +00:00
vegorov@google.com cd578d9de7 Ensure that parser throws an error when parsing x is! T with malformed type T.
Otherwise VM crashes in the flow graph builder

R=regis@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12608 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 21:48:50 +00:00
scheglov@google.com dda26cdfaa Issue 5162. Report error when initializing already initialized final field
http://code.google.com/p/dart/issues/detail?id=5162

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12594 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 19:37:06 +00:00
scheglov@google.com 627f9805df Issue 5232. Type variables are in static scope, but using them is error
http://code.google.com/p/dart/issues/detail?id=5232

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12588 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 18:57:37 +00:00
scheglov@google.com c095d071e9 Issue 5052. Analyzer should treat assert as a keyword
http://code.google.com/p/dart/issues/detail?id=5052

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12566 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 15:30:12 +00:00
ahe@google.com 4908445bb4 Handle null in constructorNameFallback, and update dart2dart status file.
Should make dart2js and dart2dart builds green.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12558 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 13:26:53 +00:00
ahe@google.com 5beb5a8185 Avoid calling user-defined code when reporting checked mode errors and cast errors.
Review URL: https://codereview.chromium.org//10947029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12553 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 12:11:33 +00:00
ngeoffray@google.com eb7d6c379d Fix algorithm to know whether we should emit an is check on a class: all interfaces/implemented classes must look at their extends clause.
Review URL: https://codereview.chromium.org//10951026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12548 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 10:29:10 +00:00
karlklose@google.com d90d5b1698 Reapply 'Add runtimeType() to Object which returns canonicalized instances of Type'.
This CL fixes a bug in https://chromiumcodereview.appspot.com/10908142/ which generated unneeded type information leading to runtime regression.

Original committed in 12491 and reverted in

R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12540 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 08:56:06 +00:00
efortuna@google.com 25d3eae1d6 Revert CLs by gram 12515-12526.
Review URL: https://codereview.chromium.org//10950020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12529 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 01:18:37 +00:00
scheglov@google.com a17964f959 Issue 5153. Setter should not conflict with method
http://code.google.com/p/dart/issues/detail?id=5153

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12528 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 01:17:29 +00:00
gram@google.com e8bffa09c0 Temporarily skip failing tests; I will investigate the cause tomorrow.
Review URL: https://codereview.chromium.org//10946018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12526 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 00:44:06 +00:00
regis@google.com 87c144334f Fix bad optimization of instance-of with uninstantiated types (issue 5216).
Fix bad assert when type check elimination is disabled (issue 5217).
Cleanup of type elimination code in optimizing compiler.
Add test.
Review URL: https://codereview.chromium.org//10942006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12502 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 15:12:43 +00:00
ricow@google.com 5bcc7e0092 Revert r12491
This is causing checked mode failures on the buildbot.
Review URL: https://codereview.chromium.org//10949003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12500 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 14:40:15 +00:00
karlklose@google.com 59e0304206 Add runtimeType() to Object which returns canonicalized instances of Type.
BUG=3903

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12491 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 12:12:07 +00:00
ngeoffray@google.com c1bc63ee6d Fix for issue #5227: do not declare type variables in the closure analyzer when they are not needed.
Review URL: https://codereview.chromium.org//10911344

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12469 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 07:31:52 +00:00
lrn@google.com c477dea8e9 Fix expectations after introducing "identical". Again.
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12468 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 07:07:05 +00:00
lrn@google.com 24ec1f24f5 Update test expectations some more.
TBR=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12466 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 06:13:29 +00:00
lrn@google.com 94362c5d72 Make identical(a,b) a compile-time constant in dart2js.
Introduces the 'identical' top-level function in dart:core.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12465 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 05:54:20 +00:00
lrn@google.com 99749ca619 This reapplies the change to remove "dynamic" from Object.
TBR=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12449 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 19:14:49 +00:00
scheglov@google.com d6802247b5 Issue 5082. It is an error if argument to '?' is not a formal parameter
http://code.google.com/p/dart/issues/detail?id=5082

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12438 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 15:09:52 +00:00
antonm@google.com dad3c0e742 Properly process constructs like Class.getter++ where there is no setter.
R=smok@google.com
BUG=5178

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12436 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 14:13:14 +00:00
ngeoffray@google.com d4d2e1a399 Report errors when the number of arguments don't match the number of parameters in a const constructor call.
Review URL: https://codereview.chromium.org//10916335

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12435 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 13:59:52 +00:00
lrn@google.com 54d6cbda76 Revert "Remove Object.dynamic."
Some test expectations were missing.

TBR=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12433 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 12:10:29 +00:00
lrn@google.com 9cc07e2f3f Remove Object.dynamic.
Review URL: https://codereview.chromium.org//10914286

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12432 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 12:00:44 +00:00
ngeoffray@google.com 9572974e44 Put functions used in compile-time constants in the worklist of codegen.
Review URL: https://codereview.chromium.org//10915306

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12421 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 09:04:06 +00:00
regis@google.com 4632f28fc0 Update language tests to new optional parameter syntax and semantics.
Review URL: https://codereview.chromium.org//10918261

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12415 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-15 23:02:32 +00:00
hausner@google.com 1d93b4206e Fix the fix.
Review URL: https://codereview.chromium.org//10933111

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12411 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 23:49:41 +00:00
hausner@google.com f9e6afbe0c Update dartc, dart2dart status
Review URL: https://codereview.chromium.org//10928212

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12410 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 23:41:36 +00:00
hausner@google.com 19c8f19f5e Stop making classes implicitly abstract
Allocating an implicitly abstract class is no longer a runtime error.
Review URL: https://codereview.chromium.org//10910284

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12408 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 22:46:54 +00:00
scheglov@google.com a2395ed946 Issue 5084. Report error if a type name appears multiple times in an implements clause
http://code.google.com/p/dart/issues/detail?id=5084

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12391 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 15:55:31 +00:00
ahe@google.com 8b7b049559 Revert "Parse new library syntax."
This reverts r12386.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12387 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 14:35:47 +00:00
ahe@google.com 4f66bc9539 Parse new library syntax.
Review URL: https://chromiumcodereview.appspot.com//10911298

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12386 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 14:13:10 +00:00
scheglov@google.com b388161d1f Issue 3476. Final variables don't have to have constant initializers
http://code.google.com/p/dart/issues/detail?id=3476

R=jwren@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12382 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 13:04:19 +00:00
antonm@google.com ecdce6164b Properly collect placeholders for function expressions.
Now function expressions can be found in lhs of variable declarations as well:

final inc = (x) => x + 1;

Process them like other functions.

R=smok@google.com
BUG=5141

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12374 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 10:35:02 +00:00
ngeoffray@google.com 408eb9f0e8 And fix dart2dart as well.
Review URL: https://codereview.chromium.org//10918243

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12373 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 10:09:55 +00:00
ngeoffray@google.com 8bc6cbf8de Update test for dart analyzer.
Review URL: https://codereview.chromium.org//10917256

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12372 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 10:06:24 +00:00
ngeoffray@google.com 04293eb214 Implement checked mode for const constructors.
Review URL: https://chromiumcodereview.appspot.com//10916232

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12370 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 09:47:18 +00:00
karlklose@google.com e8134639ab Adjust status file to fix dart2dart buildbot.
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12362 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 06:21:01 +00:00