summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
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
2020-01-24s/PinnedBuf/ZeroCopyBuf (#3782)Ryan Dahl
2020-01-24v0.31.0Ryan Dahl
2020-01-24Fix: take control buffer offset/length into account again (#3769)Bert Belder
2020-01-23Upgrade rusty_v8 to 0.2.0 (#3764)Ryan Dahl
2020-01-23update readmes (#3765)Ryan Dahl
2020-01-23refactor: remove Isolate.shared_response_buf optimization (#3759)Bartek Iwańczuk
Op return values are no zero copied from Rust to JS.
2020-01-22Reland "Create an old program to be used in snapshot." (#3747)Bartek Iwańczuk
* read CLI assets from disk during snapshotting
2020-01-21Upgrade to rusty_v8 v0.1.1 (#3741)Bert Belder
2020-01-21Revert "Create an old program to be used in snapshot. (#3644)"Ry Dahl
Ref #3712. This change allowed the deno_typescript crate to reference cli/js/lib.deno_runtime.d.ts which breaks "cargo package". We intend to reintroduce a revised version of this patch later once "cargo package" is working and tested. This reverts commit 737ab94ea1bdf65eeef323ea37e84bcf430fb92c.
2020-01-21v0.30.1Ryan Dahl
This patch release is being done only to test crate publishing, hence lack of release notes or published binaries.
2020-01-21feat: add AsyncUnref ops (#3721)Yoshiya Hinosawa
This is in order to support features like signal handlers, which shouldn't prevent the program from exiting.
2020-01-21refactor: split worker and worker host logic (#3722)Bartek Iwańczuk
* split ops/worker.rs into ops/worker_host.rs and ops/web_worker.rs * refactor js/workers.ts and factor out js/worker_main.ts - entry point for WebWorker runtime * BREAKING CHANGE: remove support for blob: URL in Worker * BREAKING CHANGE: remove Deno namespace support and noDenoNamespace option in Worker constructor * introduce WebWorker struct which is a stripped down version of cli::Worker
2020-01-18v0.30.0Ryan Dahl
2020-01-17workers: minimal error handling and async module loading (#3665)Bartek Iwańczuk
2020-01-17fix deno_core_http_bench (#3698)Bartek Iwańczuk
2020-01-17feat: support individual async handler for each op (#3690)Andy Finch
2020-01-17Upgrade to rusty_v8 v0.1.0 (#3691)Bert Belder
2020-01-12Create an old program to be used in snapshot. (#3644)Kitson Kelly
2020-01-11refactor: remove Isolate.current_send_cb_info and DenoBuf, port ↵Bartek Iwańczuk
Isolate.shared_response_buf (#3643) * remove Isolate.current_send_cb_info * remove DenoBuf * remove Isolate.shared_ab * port Isolate.shared_response_buf (last bit not ported from libdeno) * add some docs for Isolate and EsIsolate
2020-01-10Upgrade to rusty_v8 v0.0.25 (#3645)Bert Belder
2020-01-09v0.29.0Ryan Dahl
2020-01-08Upgrade rusty_v8 to 0.0.24 [V8 8.1.108] (#3623)Ry Dahl
2020-01-08refactor: module loading in EsIsolate (#3615)Bartek Iwańczuk
* refactored RecursiveLoad - it was renamed to RecursiveModuleLoad, it does not take ownership of isolate anymore - a struct implementing Stream that yields SourceCodeInfo * untangled module loading logic between RecursiveLoad and isolate - that logic is encapsulated in EsIsolate and RecursiveModuleLoad, where isolate just consumes modules as they become available - does not require to pass Arc<Mutex<Isolate>> around anymore * removed EsIsolate.mods_ in favor of Modules and moved them inside EsIsolate * EsIsolate now requires "loader" argument during construction - struct that implements Loader trait * rewrite first methods on isolate as async
2020-01-07core: factor out EsIsolate from Isolate (#3613)Bartek Iwańczuk
2020-01-06refactor: remove core/libdeno.rs (#3611)Bartek Iwańczuk
2020-01-06error on warnings (#3612)Ry Dahl
2020-01-06merge libdeno::DenoIsolate into core::Isolate (#3605)Bartek Iwańczuk
2020-01-05Upgrade rust crates and modernize hyper_hello (#3606)Bert Belder
2020-01-05libdeno: don't pass pointers between core::Isolate and libdeno (#3602)Bartek Iwańczuk
2020-01-05remove libdeno::UserDataScope (#3601)Bartek Iwańczuk
2020-01-05Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600)Ry Dahl
2020-01-05Replace libdeno with rusty_v8 (#3556)Ry Dahl
2020-01-03v0.28.1Ryan Dahl
2020-01-02Add missing year ranges to copyright notices (#3582)Waldir Pimenta
2020-01-02Happy new year! (#3578)Ry Dahl
2020-01-02v0.28.0Ry Dahl
2020-01-02fix typos (#3573)EnokMan
2019-12-30upgrade: Tokio 0.2 (#3418)Bartek Iwańczuk
2019-12-23Upgrades rust to 1.40.0 (#3542)Axetroy
2019-12-20repl: do not crash on async op reject (#3527)Kevin (Kun) "Kassimo" Qian