summaryrefslogtreecommitdiff
path: root/js/compiler.ts
AgeCommit message (Collapse)Author
2019-01-14Fix JSON Modules (#1514)Kitson Kelly
2019-01-13Cleanup compiler and re-enable tests (#1512)Kitson Kelly
2019-01-09Native ES modules (#1460)Ryan Dahl
* Native ES modules This is a major refactor of internal compiler. Before: JS and TS both were sent through the typescript compiler where their imports were parsed and handled. Both compiled to AMD JS and finally sent to V8 Now: JS is sent directly into V8. TS is sent through the typescript compiler, but tsc generates ES modules now instead of AMD. This generated JS is then dumped into V8. This should much faster for pure JS code. It may improve TS compilation speed. In the future this allows us to separate TS out of the runtime heap and into its own dedicated snapshot. This will result in a smaller runtime heap, and thus should be faster. Some tests were unfortunately disabled to ease landing this patch: 1. compiler_tests.ts which I intend to bring back in later commits. 2. Some text_encoding_test.ts tests which made the file invalid utf8. See PR for a discussion. Also worth noting that this is necessary to support WASM
2019-01-06Revert "Split Runner from Compiler" (#1462)Ryan Dahl
This reverts commit 3d03f5b0cb3c513e449f3aaa5d35c493b72f47b4.
2019-01-03Revert "use byte array instead of string for code fetch (#1307)" (#1455)Ryan Dahl
This reverts commit e976b3e0414dc768624b77e431ee7f55b03b76a4. There is nothing technically wrong with this commit, but it's adding complexity to a big refactor (native ES modules #975). Since it's not necessary and simply a philosophical preference, I will revert for now and try to bring it back later.
2019-01-03Remove assertion for empty modules (#1450)Satya Rohith
2019-01-02Happy new year!Ryan Dahl
2018-12-12use byte array instead of string for code fetch (#1307)F001
2018-12-06Process source maps in Rust instead of JS (#1280)Ryan Dahl
- Improves speed and binary size significantly. - Makes deno_last_exception() output a JSON structure. - Isolate::execute and Isolate::event_loop now return structured, mapped JSError objects on errors. - Removes libdeno functions: libdeno.setGlobalErrorHandler() libdeno.setPromiseRejectHandler() libdeno.setPromiseErrorExaminer() In collaboration with Ryan Dahl.
2018-11-30Upgrade Prettier to support BigInt syntax in TSRyan Dahl
2018-11-20Split Runner from CompilerKitson Kelly
2018-11-09Ensure global type instances are available.Kitson Kelly
2018-11-06Improve preparing stack tracesKitson Kelly
2018-11-05Decode main.js.map during snapshotting.Ryan Dahl
Pro: time ./out/debug/deno tests/error_001.ts 3.0s -> 0.4s Con: time ./tool/build.py snapshot 33s -> 1m52s out/debug/gen/snapshot_deno.bin 39M -> 121M
2018-11-01Fix performance regression with JSON ModulesKitson Kelly
2018-10-30Add ability to load JSON as modules (#1065)Kitson Kelly
2018-10-29Separate source map from output code.Kitson Kelly
2018-10-24Support CheckJSKitson Kelly
2018-10-23Revert "Support CheckJS"Ryan Dahl
Broken in master. This reverts commit dd230d520b5599c0e51cf30245a567f07b3cfb28.
2018-10-23Support CheckJSKitson Kelly
2018-10-23Enforce media typesKitson Kelly
2018-10-14Align JSDoc to style guide.Kitson Kelly
2018-10-11Replace globals.d.ts with lib.deno_runtime.d.tsKitson Kelly
2018-10-05Hide compiler module (#909)Kitson Kelly
Fixes #876
2018-10-04Use underscores in filenames.Ryan Dahl
2018-09-27Print 'Compiling' when compiling TS.Ryan Dahl
2018-09-25formatRyan Dahl
2018-09-24Add flag --recompile (#801)Bartek Iwańczuk
2018-09-09Better NotFound error handling in CodeFetchRyan Dahl
throwResolutionError was swallowing unrelated errors.
2018-09-09Add type aliases for sourceCode and outputCodeDaniel Ramos
2018-09-06Cleanup public API of DenoCompilerKitson Kelly
2018-09-06Integrate format diagnostic host in DenoCompilerKitson Kelly
2018-09-06Fix TypeScript exports in bundleKitson Kelly
2018-09-06Implementing --deps flagMirko Jotic
- Adding a ModuleId type alias to specify original url or local file of dependency - Modifying ModuleMetaData class to contain ModuleId - Adding a --deps flag
2018-09-05Mark APIs at internal and include JSDoc in typesKitson Kelly
2018-09-03Format.Ryan Dahl
2018-09-02Fix circular dependenciesKitson Kelly
2018-09-01Minor code refactoringShinDarth
2018-09-01Remove lib.globals.d.tsKitson Kelly
2018-09-01Bundle most types into globals.d.ts (#642)Kitson Kelly
2018-08-28Updates to compiler.ts comments and logging.Kitson Kelly
2018-08-28Two-pass module evaluation.Kitson Kelly
Plus changes to tests to accomodate.
2018-08-25Prevent circular imports in ts code (#576)Francesco Borzì
2018-08-24Integrate ScriptSnapshot into ModuleMetaDataKitson Kelly
2018-08-23Improve DenoCompiler.makeDefine and localRequireKitson Kelly
2018-08-22runtime.ts refactor into compiler.ts (#564)Ryan Dahl
Adds compiler_test.ts