Commit Graph

2821 Commits

Author SHA1 Message Date
John Messerly 5e0c2bbaf8 Move DDC to analyzer-based checker
this fully moves DDC over to analyzer for checking

NOTE: there's one test failure in a .lib file, it may not be getting correctly analyzed.

R=leafp@google.com

Review URL: https://codereview.chromium.org/1401273002 .
2015-10-14 17:13:03 -07:00
Devon Carew 64af703b26 Implement --dump-info for batch mode.
BUG=
R=jmesserly@google.com, vsm@google.com

Review URL: https://codereview.chromium.org/1402713002 .
2015-10-13 10:31:08 -07:00
Devon Carew 7d641d0743 Update version and analysis_options.
BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1399193002 .
2015-10-12 18:55:52 -07:00
John Messerly d3c7d58e90 further refactoring: merge RestrictedRules into TypeRules
R=leafp@google.com

Review URL: https://codereview.chromium.org/1392383002 .
2015-10-10 10:37:07 -07:00
John Messerly 211531fd97 remove most of the StrongOptions
R=vsm@google.com

Review URL: https://codereview.chromium.org/1395643004 .
2015-10-09 13:24:36 -07:00
John Messerly 16c2c4681b housecleaning: remove nonnullableTypes
the non-nullable by default DEP seems a better way to go here

R=vsm@google.com

Review URL: https://codereview.chromium.org/1396993002 .
2015-10-09 13:14:17 -07:00
John Messerly e00744f753 more housecleaning: helpers on rules
R=vsm@google.com

Review URL: https://codereview.chromium.org/1393683003 .
2015-10-09 13:13:31 -07:00
John Messerly e62a7a9f22 more housecleaning: remove DartRules and reportMissingType
R=vsm@google.com

Review URL: https://codereview.chromium.org/1390903004 .
2015-10-09 13:12:34 -07:00
John Messerly cc137c4ef1 remove unused imports
Review URL: https://codereview.chromium.org/1399103002 .
2015-10-09 12:43:57 -07:00
John Messerly 1147d8a5b9 remove "infer from overrides" option which is now obsolete
R=vsm@google.com

Review URL: https://codereview.chromium.org/1398873002 .
2015-10-09 10:56:21 -07:00
vsmenon 3be8a25942 Update pubspec.yaml 2015-10-08 13:50:54 -07:00
Vijay Menon 2358366f56 Rewire DDC to use the analyzer task model
This is WIP - not quite ready for review.

Not all tests are passing yet.  Most checker and inference tests are passing, but about a quarter are failing - need to look.

The non-runtime changes under lib along with test/testing.dart are the only real changes.

We seem to be losing some type info - lots of new casts - but I see at least one removed.

R=brianwilkerson@google.com, jmesserly@google.com, leafp@google.com

Review URL: https://codereview.chromium.org/1355893003 .
2015-10-08 13:42:53 -07:00
Vijay Menon bd3f24456b Fix build - create output dir if needed
TBR=jmesserly@google.com

Review URL: https://codereview.chromium.org/1378763006 .
2015-10-02 14:23:38 -07:00
Vijay Menon c623db6821 Batch the batch compiler for tests
This:
- Ensures that a given AST is processed once per context, avoiding AST caching issues and redundant work
- Associates file errors with their library instead of the entry point - we now only generate these once across different entry points

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1376123004 .
2015-10-02 14:11:27 -07:00
Vijay Menon d30fafee6f These files are no longer generated 2015-09-30 16:37:21 -07:00
John Messerly c761b425df fix default warning level
See https://github.com/dart-atom/dartlang/issues/327

R=vsm@google.com

Review URL: https://codereview.chromium.org/1374563004 .
2015-09-29 10:18:04 -07:00
John Messerly 47bab055d7 [js] simplify qualified names
R=vsm@google.com

Review URL: https://codereview.chromium.org/1368153002 .
2015-09-25 13:03:59 -07:00
John Messerly 0cdc8c28fb Revert "Qualified exports and inheritance for Closure" 2015-09-25 11:31:25 -07:00
John Messerly 2d5525fc4a Merge pull request #319 from dart-lang/closure-qualify
Qualified exports and inheritance for Closure
2015-09-25 10:53:37 -07:00
Devon Carew 7d31247eff add a changelog 2015-09-23 10:43:50 -07:00
Leaf Petersen ff1669f8db Screen dynamic invokes to object properties in checker. In the old code, when we so o.f (or o.f(..)) and o had type dynamic, we would promote the type of o to Object so that our dynamic invocation code would not emit a dinvoke. This seems a little bit of a hack in the context of the analyzer integration, so this CL eliminates the promotion, and changes the checker to screen out these dynamic invokes. This should eliminate some of the additional dynamic invokes that Vijay is seeing.
BUG=
R=jmesserly@google.com, vsm@google.com

Review URL: https://codereview.chromium.org/1361833002 .
2015-09-22 16:28:58 -07:00
Vijay Menon 2c2a80e587 Update to 0.1.8
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1355043003 .
2015-09-21 15:51:35 -07:00
Devon Carew 318584b4ba add a --version option 2015-09-18 21:39:31 -07:00
John Messerly 9383237f36 additional SDK fixes. This gets all of them, once we upgrade to new analyzer
there's still a lot of warnings, those are next up

R=leafp@google.com

Review URL: https://codereview.chromium.org/1347153005 .
2015-09-18 17:11:21 -07:00
John Messerly 28f1e80cd6 fix some errors in our SDK, mostly around numbers, see issue #103
also improved codegen of JSNumber's methods

R=leafp@google.com

Review URL: https://codereview.chromium.org/1348453004 .
2015-09-18 17:10:02 -07:00
Vijay Menon bf99bdc21c Remove redundant call
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1357713006 .
2015-09-18 15:40:35 -07:00
John Messerly e34e64370b Merge pull request #333 from dart-lang/self_references
normalize lib/ self-refs to path references
2015-09-17 13:27:19 -07:00
John Messerly 6038aa2955 Merge pull request #334 from dart-lang/finish_rename
finish rename of devc.dart to dartdevc.dart
2015-09-17 08:22:39 -07:00
vsmenon 423c8503d9 Merge pull request #328 from dart-lang/dartdoc
make dev_compiler slightly happier with dartdoc
2015-09-17 06:43:57 -07:00
vsmenon 265f76ef44 Merge pull request #318 from dart-lang/travis-runner2
Speed Travis CI up with some caching & faster fails
2015-09-17 06:40:22 -07:00
Devon Carew 01ffd2684d finish rename of devc.dart to dartdevc.dart 2015-09-16 21:22:57 -07:00
Devon Carew 2ae203eff8 normalize lib/ self-refs to path references 2015-09-16 19:23:14 -07:00
Devon Carew 5baea1b7e7 make dev_compiler slightly happier with dartdoc 2015-09-16 18:03:52 -07:00
John Messerly 4c43f3f8bb Merge pull request #323 from dart-lang/language_tests
add language tests & run them in karma
2015-09-16 16:43:33 -07:00
Devon Carew 6f3710e317 catch parse exceptions from args 2015-09-16 16:33:29 -07:00
Devon Carew d3e6d3af24 support running the dev_compiler package directly 2015-09-16 16:13:11 -07:00
John Messerly bea9ae786a add language tests & run them in karma 2015-09-16 16:00:46 -07:00
John Messerly bcec623909 fixes #315, order of libraries in the HTML file
the lesson here is never use .importedLibraries ... we might want to change it in analyzer to use LinkedHashSet ...

R=vsm@google.com

Review URL: https://codereview.chromium.org/1337993004 .
2015-09-15 09:13:18 -07:00
John Messerly ff1b78ca42 fix a few more codegen issues:
* don't generate script tag
* handle U+2028 and U+2029
* handle name conflict with constructor

R=vsm@google.com

Review URL: https://codereview.chromium.org/1347453002 .
2015-09-14 17:06:28 -07:00
Olivier Chafik 58f1ca9259 Qualified exports and inheritance for Closure (fixes core.Object issue) 2015-09-14 14:07:02 +01:00
Olivier Chafik 56a534ae65 Speed Travis CI up with some caching & faster fails 2015-09-12 17:55:46 +01:00
John Messerly 637c2c83de fixes #314, super method tear offs
R=leafp@google.com

Review URL: https://codereview.chromium.org/1310513013 .
2015-09-10 17:18:21 -07:00
Vijay Menon b90511b88c Omit Chrome stable in travis for now
The default Chrome in travis is Chrome *37*.  Disabling - will a send
a separate CL to fix properly.

TBR=jmesserly@google.com

Review URL: https://codereview.chromium.org/1331963002 .
2015-09-10 09:23:37 -07:00
Vijay Menon febc95eead Run tests on Chrome stable and canary
As of Chrome 45, we can run on stable and canary.  Karma appears to
run these in parallel - I see little difference in wall clock time on
my laptop.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1310753007 .
2015-09-10 09:14:45 -07:00
John Messerly dc560e572c fix readability regressions from previous block-scope CL
also reverts the simple incremental compile code, it wasn't aware of our own compiler's version.

also fixes a warning from analyzer

R=leafp@google.com

Review URL: https://codereview.chromium.org/1305413006 .
2015-09-09 15:52:17 -07:00
John Messerly 99bdee4f8d fix implicit_scope_test and builtin_identifier_test
these were generating invalid JS code

R=vsm@google.com

Review URL: https://codereview.chromium.org/1328303002 .
2015-09-08 16:56:50 -07:00
John Messerly 7263daed54 fix dynamic type literal
it doesn't have a library

R=leafp@google.com

Review URL: https://codereview.chromium.org/1310943005 .
2015-09-04 15:57:32 -07:00
John Messerly badedeaf16 fix cascade on ThisExpression
R=leafp@google.com

Review URL: https://codereview.chromium.org/1309383003 .
2015-09-04 15:28:38 -07:00
Vijay Menon 2ef54c946b Fixes for Angular
R=leafp@google.com

Review URL: https://codereview.chromium.org/1324693004 .
2015-09-02 13:39:53 -07:00
Vijay Menon 33ad4d9600 Reformat
Olivier: running presubmit locally (for me) reformats a few files.  May be a pub upgrade issue to get on the latest formatter.

TBR=ochafik@google.com

Review URL: https://codereview.chromium.org/1322673004 .
2015-09-02 12:53:05 -07:00