Commit Graph

1931 Commits

Author SHA1 Message Date
Vijay Menon c831595c88 Allow arity checks on dynamic function types
BUG=
R=jacobr@google.com, leafp@google.com

Review URL: https://codereview.chromium.org/1021273004
2015-03-20 10:40:43 -07:00
John Messerly e1c8e996b7 Replace dart_core.js with actual compiled SDK
Almost no calls are going to work at this point, but core.js can load
now and there is enough in place to continue to load sunflower.

R=sigmund@google.com

Review URL: https://codereview.chromium.org/1020043002
2015-03-20 09:41:00 -07:00
John Messerly c587869d1d bind to localhost instead of all interfaces, and fix closureWrap
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1022923005
2015-03-20 09:19:10 -07:00
Sigmund Cherem 87b7b0e431 Change defaults in server mode
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1007703004
2015-03-19 15:49:38 -07:00
Sigmund Cherem deec4f2ed4 Allow dev-compiler folder to have a different name, instead check the pubspec
file for the package name.

R=leafp@google.com

Review URL: https://codereview.chromium.org/1018043005
2015-03-19 14:10:40 -07:00
John Messerly b62f4c06ab sort classes in dependency order, or load lazily if needed, fixes #78
this also starts using compiled code in dart_core.js (just copy+paste for Object)

visitClassDeclaration was getting rather long, so it's now refactored to make the flow more clear.

R=sigmund@google.com

Review URL: https://codereview.chromium.org/1016003003
2015-03-19 10:03:22 -07:00
Vijay Menon 48d4a4e320 Allow S->T <: dynamic->T
In followup CLs, I will:
- Fix coercions to limit implicit ones.

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

Review URL: https://codereview.chromium.org/1010893004
2015-03-18 16:40:43 -07:00
Sigmund Cherem 2ba454d945 Enable inference in the core libs
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1023543002
2015-03-18 16:24:23 -07:00
Sigmund Cherem fa03b6b422 Move sunflower to a new directory, make final tweaks to make it all work.
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1007313003
2015-03-18 15:53:59 -07:00
John Messerly 9cf5a077e9 coverage: increase coverage of js_codegen
it was already decent, but this should plug the two biggest holes: source maps and maps with non-string keys

R=vsm@google.com

Review URL: https://codereview.chromium.org/1013223002
2015-03-18 09:20:36 -07:00
Sigmund Cherem 1b23c0ecb2 Copy resources refered to in the HTML to the output folder
R=vsm@google.com

Review URL: https://codereview.chromium.org/1014173002
2015-03-17 18:54:48 -07:00
Sigmund Cherem c2d0c1b8b9 locating runtime files automatically (fixes #96)
R=vsm@google.com

Review URL: https://codereview.chromium.org/1013363002
2015-03-17 18:52:24 -07:00
Jacob Richman d624c322d3 Suppress generation of JsGlobal and JsType code and use window as the default value instead of {} for libraries that define JsGlobal fields.
BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1013653004
2015-03-17 14:42:42 -07:00
Sigmund Cherem 06e73efda4 Turn on infer-from-overrides by default, rename inferStaticFromOtherStatics to
inferTransitively.

BUG=
R=vsm@google.com

Review URL: https://codereview.chromium.org/1015843002
2015-03-17 14:00:48 -07:00
Sigmund Cherem 212e520429 Handle type-inference on fields, consts, and inferable overrides
deterministically in library cycles.

R=vsm@google.com

Review URL: https://codereview.chromium.org/1011933002
2015-03-17 13:12:51 -07:00
John Messerly 07feeb3119 js: fix core.Object, output order, static const fields
These are a few fixes trying to get the compiled SDK to load

R=vsm@google.com

Review URL: https://codereview.chromium.org/1011153002
2015-03-17 13:11:34 -07:00
John Messerly 7eb0f7e897 make unimplemented statements throw (they'll hit visitNode)
R=vsm@google.com

Review URL: https://codereview.chromium.org/977963002
2015-03-17 09:59:57 -07:00
Kevin Moore 6796ce6884 Adding Travis CI and Coveralls support
only use compact config if we're not doing code coverage

R=sigmund@google.com

Review URL: https://codereview.chromium.org/1014573003
2015-03-17 08:19:56 -07:00
Sigmund Cherem 95c40873c9 Pin formatter to a specific version
R=vsm@google.com

Review URL: https://codereview.chromium.org/1011003002
2015-03-17 07:52:00 -07:00
Vijay Menon e50906c0d3 Fix for conditional expressions
R=sigmund@google.com

Review URL: https://codereview.chromium.org/997143003
2015-03-16 10:09:25 -07:00
Sigmund Cherem f9c4d35159 Fix in multi-package-resolver to support files that will be created later (graph
assumes the Source class exists, even when the file has not been created, we
consider that by default the file will be created on the location for the first
of the searchPaths)

R=vsm@google.com

Review URL: https://codereview.chromium.org/1001563003
2015-03-12 12:50:46 -07:00
Sigmund Cherem d08b3e49bd Do cleanup instead of excluding runtime files
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/985933004
2015-03-12 10:06:19 -07:00
Sigmund Cherem 228a475ed0 Fixes in codegen and test script
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/998043002
2015-03-11 17:16:05 -07:00
John Messerly 212b217506 server: create output directory if needed
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1001503003
2015-03-11 12:22:58 -07:00
Jacob Richman 2ed6fbe9e7 minor code cleanup
BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1002443002
2015-03-11 08:36:23 -07:00
Sigmund Cherem a6befe3a1d Add dart_core.js (fixes #89)
R=vsm@google.com

Review URL: https://codereview.chromium.org/986023003
2015-03-10 18:31:32 -07:00
Sigmund Cherem 6d9564b4ff Support browser caching using hashes in serverMode (fixes #93, fixes #92).
Now the HTML can include a hash in the URL for cachable resources, and the serve knows how to include cache-control headers.

In the process of doing so, I had to change a couple things that made it possible to fix #92 as well (producing different output in the command-line than in server mode).

R=vsm@google.com

Review URL: https://codereview.chromium.org/993213003
2015-03-10 18:27:23 -07:00
Vijay Menon 135c1e586a Small fixes
I hit these compiling angular.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/992973002
2015-03-10 10:25:35 -07:00
Vijay Menon 74476b5e4c Log the runtime type of messages
This makes is a little easier to investigate errors.

R=sigmund@google.com

Review URL: https://codereview.chromium.org/993513005
2015-03-09 11:46:27 -07:00
Sigmund Cherem 4e4dd98e6b Add widget to display errors, and report graph errors correctly.
This fixes the compiler so that all error messages in dependency_graph are reported via the reporter and unifies how errors are constructed in other places as well. With all errors reported together, we use a widget (adapted from polymer) to display the error messages as part of the app in server mode.

R=vsm@google.com

Review URL: https://codereview.chromium.org/988483006
2015-03-09 11:37:22 -07:00
Sigmund Cherem ca80f2c473 Add JavaScriptSourceNode to represent runtime libraries (fixes #85)
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/986723002
2015-03-09 11:33:46 -07:00
Sigmund Cherem 0991bea1ef Allow changing a file from a part to a library, and viceversa.
BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/983553002
2015-03-09 10:59:18 -07:00
Vijay Menon 122a190387 Make inference defaults consts for easy tweaking
R=sigmund@google.com

Review URL: https://codereview.chromium.org/988743003
2015-03-06 12:38:23 -08:00
Vijay Menon 448729446b Disable infer-from-overrides by default
See: https://github.com/dart-lang/dev_compiler/issues/86

R=sigmund@google.com

Review URL: https://codereview.chromium.org/980103002
2015-03-05 12:27:39 -08:00
John Messerly 322ab47e1f cleanup: js_codegen now returns a js_ast.Program
For some reason we were emitting a Block and then doing extra work to
avoid emitting the braces. Program handles this already.

R=sigmund@google.com

Review URL: https://codereview.chromium.org/960353003
2015-03-04 16:52:06 -08:00
Vijay Menon 8df5b06aac Fix increment on nullable
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/977153002
2015-03-04 12:56:02 -08:00
John Messerly 6e824067a3 rename ddc -> dev_compiler, fixes #84
R=sigmund@google.com

Review URL: https://codereview.chromium.org/967933005
2015-03-04 11:12:19 -08:00
John Messerly 579a098f9b work around remove deps test failure
mysterious that I'm the only one seeing this :)

R=sigmund@google.com

Review URL: https://codereview.chromium.org/982563003
2015-03-04 10:33:55 -08:00
Vijay Menon f9909f0d07 Flesh out dynamic invocation code
This gets sunflower working with ignore-types.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/961513002
2015-03-04 10:13:21 -08:00
Sigmund Cherem 7dd29efd8f Initial cut for a development server
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/973433003
2015-03-04 09:40:06 -08:00
John Messerly 010ce41dea skip map files in test.sh diff
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/979503002
2015-03-03 14:08:43 -08:00
Vijay Menon 946676554b Make int and double nullable by default
See patch set 1 for the initial step back and patch set 2 to try to get some of this back.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/977613002
2015-03-03 12:08:30 -08:00
Sigmund Cherem f7b7f43d28 Fixing layout in js output (use full paths rather than just the library name)
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/968273002
2015-03-03 09:05:09 -08:00
Sigmund Cherem 17c3dcfca6 Fix test related to sdk move
BUG=

Review URL: https://codereview.chromium.org/970223002
2015-03-03 09:03:44 -08:00
John Messerly 31936cfc98 Merge pull request #83 from dart-lang/sdk
reorganize SDK inputs
2015-03-03 08:24:26 -08:00
John Messerly 77e62cc7fb implement private members, fixes #74
naturally, lots of things to iterate on, but this expresses the key idea (per-library ES6 symbols for privacy).

R=vsm@google.com

Review URL: https://codereview.chromium.org/963343002
2015-03-03 06:44:25 -08:00
John Messerly a3aebf03ed fix dummy setters -- grammar requires an identifier
R=vsm@google.com

Review URL: https://codereview.chromium.org/974703003
2015-03-03 06:42:04 -08:00
John Messerly 807d3b3b22 reorganize SDK inputs
it's all under input_sdk now:
  lib -> the lib folder
  private -> the dart:_* libs
  patch -> the files with @patch

I imagine we'll try and focus changes on the last two
2015-03-02 16:00:53 -08:00
John Messerly b8fcd8cb42 rename as helper to make tools happy
WebStorm ES6 support treats `as` as a keyword. Not sure why, as I don't see it in any ES6 specs, even under "future reserved words".

R=sigmund@google.com

Review URL: https://codereview.chromium.org/971823002
2015-03-02 11:03:31 -08:00
John Messerly 5d52de79e1 implement rethrow
R=sigmund@google.com

Review URL: https://codereview.chromium.org/969783002
2015-03-02 09:49:17 -08:00