Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-12-04 | Add deno_config struct for isolate creation. (#1277) | Ryan Dahl | |
In preperation for adding other callbacks to libdeno. | |||
2018-12-04 | Remove static lifetime bound in OpCreator (#1276) | F001 | |
The main purpose of this PR is to remove the `'static` lifetime bound in type OpCreator = fn(state: &Arc<IsolateState>, base: &msg::Base, data: &'static mut [u8]) -> Box<Op>; The reason is simple: it is plain wrong, the `data` is actually not `'static`. It is created when the message is sent from C side, and will be recycled when the message is responded. It violates the definition of `'static` lifetime. If someone save this pointer somewhere else, and reuse it later again, uninitialized memory could be accessed. This kind of memory unsafety does not happen yet because the logic is carefully organized in this project. Lifetime constraints are maintained by code convention. It could be more robust if we can express this constraint by Rust's type system. Basic idea: tie buffer's lifetime to an object's lifetime, a.k.a, RAII. The type `deno_buf` is pretty suitable for this job. | |||
2018-12-03 | Avoid memory leak (#1265) | F001 | |
2018-11-30 | clippy fixes (#1250) | Andy Hayden | |
2018-11-29 | Replace mutex by atomics (#1238) | F001 | |
2018-11-27 | Don't use snapshot for src/isolate.rs tests. | Ryan Dahl | |
2018-11-23 | Revert "Use include_bytes! instead of incbin. (#1182)" | Ryan Dahl | |
Reverting because this is causing Appveyor to be red. However I hope we can reintroduce include_bytes! soon in a way that works on windows. Fixes #1208. This reverts commits 96c3641fffe8509af9351cec4580861e76d89cc9 and 92e404706b0b1a26cdaf6f8cf81aac148292557f. | |||
2018-11-16 | First pass at running subprocesses (#1156) | Bert Belder | |
2018-11-16 | Lift snapshot to be an argument of Isolate::new(). | Ryan Dahl | |
2018-11-12 | Use include_bytes! instead of incbin. (#1182) | Ryan Dahl | |
2018-11-06 | Fix many of the clippy::pedantic warnings | Andy Hayden | |
2018-11-04 | Fix clippy warnings (#1149) | Andy Hayden | |
Run with: cargo clippy https://github.com/rust-lang-nursery/rust-clippy | |||
2018-10-27 | Ergonomics: Prompt TTY for permission escalation (#1081) | Ryan Dahl | |
2018-10-24 | Add libdeno.shared global shared ArrayBuffer. | Ryan Dahl | |
2018-10-24 | libdeno: deno_new should take a snapshot parameter. | Ryan Dahl | |
2018-10-23 | Switch to getopts for flag parsing (#1080) | Kevin (Kun) "Kassimo" Qian | |
2018-10-19 | format | Bert Belder | |
2018-10-18 | add test case for metrics | Bartek Iwańczuk | |
2018-10-18 | fix metrics logic | Bartek Iwańczuk | |
2018-10-16 | Format | Ryan Dahl | |
2018-10-15 | Exit cleanly on unrecognized arguments (#990) | Andy Hayden | |
Refactor set_flags to return a Result | |||
2018-10-15 | Specify deno_dir location with env var DENO_DIR (#970) | Amos Lim | |
(Use C:\deno instead of c:\deno in appveyor config because it's cloned to c:\ by clone_folder variable in .appveyor.yml. On the other hand, build directory is pointed to C:\ by $(APPVEYOR_BUILD_FOLDER) so that test targets are placed on separated partitions.) | |||
2018-10-12 | Fix promise reject issue (#936) | Kevin (Kun) "Kassimo" Qian | |
2018-10-11 | Add support for --types | Kitson Kelly | |
2018-10-11 | Fix metrics() race condition. (#965) | Ryan Dahl | |
2018-10-11 | Add deno.metrics() | Bartek Iwańczuk | |
2018-10-10 | Clean up Isolate::event_loop with utility function. | Ryan Dahl | |
2018-10-08 | Remove deno_get_data() | Bert Belder | |
Instead, pass the isolate data to the dispatch callback directly. | |||
2018-10-08 | Abide by the rules when passing Isolate between c and rust | Bert Belder | |
Ensure that at most one mutable Isolate reference exists at a time. `deno_execute()` and `deno_respond()` now borrow a reference to the rust-side isolate from the caller. When we need a reference to the isolate while one of these functions is on the stack, `deno_get_data()` can be used to borrow back that reference. | |||
2018-10-08 | Remove ntasks aliasing workaround | Bert Belder | |
2018-10-08 | Rename Deno.data to Deno.user_data | Bert Belder | |
Also use the correct rust type for it. | |||
2018-10-08 | Rename Isolate.ptr to Isolate.libdeno_isolate | Bert Belder | |
2018-10-06 | Make ntasks an atomic counter. | Ryan Dahl | |
Fixes #919. | |||
2018-10-03 | isolate: work around a rust compiler bug | Bert Belder | |
2018-10-03 | timers: remove the old timer implementation | Bert Belder | |
Fixes #878. | |||
2018-10-03 | timers: implement timers in javascript | Bert Belder | |
2018-09-27 | Support zero-copy data in libdeno.send(). (#838) | Ryan Dahl | |
This is a large API refactor of deno.h which replaces deno_send() and deno_set_response() with deno_respond(). It also adds a req_id parameter to the deno_recv_cb. Make writeFile/writeFileSync use it. | |||
2018-09-25 | Add SetGlobalTimeout(). | Ryan Dahl | |
To be used for a timers implementation soon. | |||
2018-09-25 | Make Deno multithreaded. | Ryan Dahl | |
By using the tokio default runtime. This patch makes all of the ops thread safe. Adds libdeno to JS globals to make for easier testing. Preliminary work for #733. | |||
2018-09-22 | Rename deno.argv, libdeno::DenoC and deno_set_flags (#796) | ztplz | |
2018-09-17 | Isolate::execute doesn't need mutability. | Ryan Dahl | |
2018-09-17 | Rename Deno to Isolate and move to own file. | Ryan Dahl | |