summaryrefslogtreecommitdiff
path: root/libdeno
AgeCommit message (Collapse)Author
2018-11-29Move libdeno build config to libdeno/BUILD.gnRyan Dahl
2018-11-27Don't use snapshot for src/isolate.rs tests.Ryan Dahl
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-01build: remove absolute pathBert Belder
2018-10-24Add libdeno.shared global shared ArrayBuffer.Ryan Dahl
2018-10-24libdeno: Expose snapshot creation.Ryan Dahl
2018-10-24libdeno: clean upRyan Dahl
- Use a proper class for DenoIsolate. - Move extern C stuff to api.cc
2018-10-24libdeno: deno_new should take a snapshot parameter.Ryan Dahl
2018-10-24Remove deno_nsRyan Dahl
2018-10-19libdeno: store v8::Persistent in map by value instead of by referenceBert Belder
2018-10-18Optimization: Use std::map for tracking zero-copy buffersRyan Dahl
Instead of V8 map.
2018-10-17Reduce ArrayBuffer allocations in ImportBuf()Ryan Dahl
2018-10-12Fix promise reject issue (#936)Kevin (Kun) "Kassimo" Qian
2018-10-08Remove deno_get_data()Bert Belder
Instead, pass the isolate data to the dispatch callback directly.
2018-10-08Abide by the rules when passing Isolate between c and rustBert 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-08Rename Deno.data to Deno.user_dataBert Belder
Also use the correct rust type for it.
2018-10-06Fix unused variable warning in release mode.Ryan Dahl
2018-09-28libdeno: use cstream instead of printf to write to stderrBert Belder
2018-09-28libdeno: remove dead codeBert Belder
2018-09-27Support 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-25console.warn goes to stderr (#810)Kevin (Kun) "Kassimo" Qian
2018-09-24libdeno.send(): Use GetContents instead of ExternalizeRyan Dahl
Fixes #744.
2018-09-22Rename deno.argv, libdeno::DenoC and deno_set_flags (#796)ztplz
2018-09-17Upgrade V8 to 7.0.276.15Ryan Dahl
2018-09-09Map promises onto futures.Ryan Dahl
Refactors handlers.rs The idea is that all Deno "ops" (aka bindings) should map onto a Rust Future. By setting the "sync" flag in the Base message users can determine if the future is executed immediately or put on the event loop. In the case of async futures, a promise is automatically created. Errors are automatically forwarded and raised. TODO: - The file system ops in src/handler.rs are not using the thread pool yet. This will be done in the future using tokio_threadpool::blocking. That is, if you try to call them asynchronously, you will get a promise and it will act asynchronous, but currently it will be blocking. - Handlers in src/handler.rs returned boxed futures. This was to make it easy while developing. We should try to remove this allocation.
2018-08-30Fix warnings.Ryan Dahl
Ref #374
2018-08-26formatBert Belder
2018-08-26build: do not bake absolute paths into deno_nsBert Belder
2018-08-26libdeno: add file utilities Dirname() and ExePath()Bert Belder
2018-08-26refactor: add and use libdeno.setGlobalErrorHandler instead of window.onerrorYoshiya Hinosawa
2018-08-19chore: move libdeno files to //libdeno/Yoshiya Hinosawa