summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2020-04-02upgrade: rusty_v8 v0.3.10 (#4576)Ryan Dahl
2020-03-30console: print promise details (#4524)Michał Sabiniarz
2020-03-28v0.38.0Ryan Dahl
2020-03-28Update to Prettier 2 and use ES Private Fields (#4498)Kitson Kelly
2020-03-28upgrade: rusty_v8 to v0.3.9 (#4505)Ryan Dahl
2020-03-27feat: Support Inspector / Chrome Devtools (#4484)Ryan Dahl
This is a first pass implementation which is still missing several important features: - support for --inspect-brk (#4503) - support for source maps (#4501) - support for piping console.log to devtools console (#4502) Co-authored-by: Bert Belder <bertbelder@gmail.com> Co-authored-by: Matt Harrison <mt.harrison86@gmail.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-03-23v0.37.1Ryan Dahl
2020-03-23v0.37.0Ryan Dahl
2020-03-20Remove DENO_BUILD_MODE and DENO_BUILD_PATH (#4431)Ryan Dahl
* Remove DENO_BUILD_MODE and DENO_BUILD_PATH Also remove outdated docs related to ninja/gn. * fix * remove parameter to build_mode() * remove arg parsing from benchmark.py
2020-03-20Add require-await lint rule (#4401)Samrith Shankar
2020-03-19perf: Optimize TextEncoder and TextDecoder (#4430)Bartek Iwańczuk
* add tests for "Deno.core.encode" and "Deno.core.decode" for empty inputs * use "Deno.core.encode" in "TextEncoder" * use "Deno.core.decode" in "TextDecoder" * remove "core_decode" and "core_encode" benchmarks
2020-03-19Simplify timer with macrotask callback (#4385)Kevin (Kun) "Kassimo" Qian
2020-03-19fix: stack traces for modules imported via std/node's require (#4035)Nikolai Vavilov
2020-03-17Upgrade rust crates (#4412)Bert Belder
2020-03-16refactor: add no-return-await lint rule (#4384)Bartek Iwańczuk
2020-03-15feat: Deno.core.{encode,decode}; standalone UTF-8 encoding/decoding (#4349)Bartek Iwańczuk
This commits add two new methods to "Deno.core" namespace: "encode" and "decode". Those methods are bound in Rust to provide a) fast b) generally available of encoding and decoding UTF-8 strings. Both methods are now used in "cli/js/dispatch_json.ts".
2020-03-14Upgrade to rusty_v8 0.3.5 / v8 8.2.308 (#4364)Bert Belder
2020-03-11v0.36.0Ryan Dahl
2020-03-07upgrade rust dependencies (#4270)Ryan Dahl
2020-03-02Do not convert exceptions to JSON and back (#4214)Bert Belder
2020-03-02Don't reset exception handle after calling ErrWithV8Handle::get_handle() (#4214)Bert Belder
2020-03-02refactor: rename structures related to Modules (#4217)Bartek Iwańczuk
* rename structures related to ES Modules; add "Modules" prefix * remove unneeded Unpin trait requirement for "ModuleLoader"
2020-03-01perf: use subarray instead of slice in dispatch minimal (#4180)Ryan Dahl
2020-02-29Refactor exception handling, remove message listener callback (#4198)Bert Belder
2020-02-29test: add ResourceTable tests (#4185)ecyrbe
2020-02-28v0.35.0Ryan Dahl
2020-02-28upgrade: rusty_v8 0.3.4 (#4179)Ryan Dahl
2020-02-28Exit HandleScope before snapshotting (#4168)Bert Belder
The V8 documentation explicitly states that SnapshotCreator::CreateBlob() should not be called from within a HandleScope. Additionally, this patch removes some non-functional error handling code from the deno_core::Isolate::snapshot() method.
2020-02-27Merge mod_evaluate() and mod_evaluate_dyn_import() methods (#4167)Bert Belder
2020-02-27Fix typo in assert!() invocation (#4167)Bert Belder
2020-02-26Remove impl Send for Isolate and EsIsolate (#4151)Ryan Dahl
2020-02-26Upgrade to rusty_v8 v0.3.3 (#4119)Bert Belder
2020-02-26tty: Deno.setRaw(rid, mode) to turn on/off raw mode (#3958)Kevin (Kun) "Kassimo" Qian
2020-02-25Clean up how we use opIds (#4118)Ryan Dahl
2020-02-20v0.34.0Ryan Dahl
2020-02-18refactor: cleanup cli/lib.rs (#4006)Bartek Iwańczuk
* rename methods on Worker related to module loading * reorganize cli/lib.rs * remove cli/progress.rs and cli/shell.rs
2020-02-15refactor: replace Arc<Box<..>> with Rc<..> (#3996)Bartek Iwańczuk
2020-02-13v0.33.0Ryan Dahl
2020-02-11workers: basic event loop (#3828)Bartek Iwańczuk
* establish basic event loop for workers * make "self.close()" inside worker * remove "runWorkerMessageLoop() - instead manually call global function in Rust when message arrives. This is done in preparation for structured clone * refactor "WorkerChannel" and use distinct structs for internal and external channels; "WorkerChannelsInternal" and "WorkerHandle" * move "State.worker_channels_internal" to "Worker.internal_channels" * add "WorkerEvent" enum for child->host communication; currently "Message(Buf)" and "Error(ErrBox)" variants are supported * add tests for nested workers * add tests for worker throwing error on startup
2020-02-09No longer require aligned buffer for shared queue (#3935)Andy Finch
Fixes: #3925
2020-02-08refactor: rename ThreadSafeState, use RefCell for mutable state (#3931)Bartek Iwańczuk
* rename ThreadSafeState to State * State stores InnerState wrapped in Rc and RefCell
2020-02-07Refactor deno_core_http_bench and make it single-threaded (#3903)Bert Belder
2020-02-07Add blanket impl for the 'Resource' trait (#3903)Bert Belder
2020-02-03refactor: Use Tokio's single-threaded runtime (#3844)Ryan Dahl
This change simplifies how we execute V8. Previously V8 Isolates jumped around threads every time they were woken up. This was overly complex and potentially hurting performance in a myriad ways. Now isolates run on their own dedicated thread and never move. - blocking_json spawns a thread and does not use a thread pool - op_host_poll_worker and op_host_resume_worker are non-operational - removes Worker::get_message and Worker::post_message - ThreadSafeState::workers table contains WorkerChannel entries instead of actual Worker instances. - MainWorker and CompilerWorker are no longer Futures. - The multi-threaded version of deno_core_http_bench was removed. - AyncOps no longer need to be Send + Sync This PR is very large and several tests were disabled to speed integration: - installer_test_local_module_run - installer_test_remote_module_run - _015_duplicate_parallel_import - _026_workers
2020-02-03v0.32.0Bartek Iwańczuk
2020-02-02Remove //tests symlink (#3849)Luka Hartwig
2020-02-01feat: support crate imports in deno_typescript (#3814)Andy Finch
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-01-29Upgrade rusty_v8 (#3816)Ryan Dahl
2020-01-25refactor: Modules and Loader trait (#3791)Bartek Iwańczuk
* move is_dyn_import argument from Loader::resolve to Loader::load - it was always kind of strange that resolve() checks permissions. * change argument type from &str to &ModuleSpecifier where applicable
2020-01-25Refactor error tracking and scope juggling in deno_core (#3783)Bert Belder