summaryrefslogtreecommitdiff
path: root/libdeno
AgeCommit message (Collapse)Author
2019-01-24Minor code cleanups (#1570)JaePil Jung
2019-01-21chore: update license lines (#1557)Yoshiya Hinosawa
2019-01-18Avoid crashes on ES module resolution when module not found (#1546)Kevin (Kun) "Kassimo" Qian
2019-01-15 Add --prefetch flag for deps prefetch without running (#1475)Kevin (Kun) "Kassimo" Qian
2019-01-11libdeno: pipe more exception information thruRyan Dahl
2019-01-09Prevent segfault when eval throws an error (#1411)Kevin (Kun) "Kassimo" Qian
2019-01-07Use multimap with Persistent module handle to avoid IdentityHash collision ↵Kevin (Kun) "Kassimo" Qian
(#1466)
2019-01-06Implement console.groupCollapsed (#1452)Yoshiya Hinosawa
This implementation of groupCollapsed is intentionally different from the spec defined by whatwg. See the conversation in #1355 and #1363.
2019-01-06Add libdeno.builtinModules (#1463)Ryan Dahl
This is needed to support builtin modules like import { open } from "deno"
2019-01-03Add ESM support to libdenoRyan Dahl
Introduces deno_execute_mod() for executing ES modules.
2019-01-03Properly internalize V8 strings.Ryan Dahl
2019-01-02Add -glldb to clang flags for libdeno (#1446)Kevin (Kun) "Kassimo" Qian
2018-12-30print string with NULL '\0' (#1428)迷渡
2018-12-23Upgrade V8 to 7.2.502.16 (#1403)Ryan Dahl
2018-12-23libdeno: Remove unused members of DenoIsolateRyan Dahl
2018-12-20build: fix mac linking problemBert Belder
2018-12-20build: fold config("win_crt_agnostic") into config("deno_config")Bert Belder
2018-12-19build: make `cargo build` workBert Belder
2018-12-18Remove prebuilt v8 supportBert Belder
2018-12-17Remove from test_cc SnapshotterInitializesCorrectly (#1361)Ryan Dahl
Unfortunately V8 has a debug-only assert that checks that a SnapshotCreator actually created a snapshot: https://github.com/denoland/deno_third_party/blob/7d8c9aa769778140e1619f545e706bf34545509e/v8/src/api.cc#L571 This was not being triggered in Linux & Mac debug builds because we were using the prebuilt release V8 build. It was being triggered in Windows debug build because there is a prebuilt v8_debug.lib. However the Windows error went unnoticed because we only run release builds in CI.
2018-12-13Merge deno_new_snapshotter behavior into deno_new (#1318)Ryan Dahl
2018-12-11build: snapshot doesn't need source_mapRyan Dahl
Continuation of the work done in c113df.
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-12-04Add deno_config struct for isolate creation. (#1277)Ryan Dahl
In preperation for adding other callbacks to libdeno.
2018-12-03Remove leaks from snapshot_creatorRyan Dahl
2018-12-03Fix test_cc memory leaks.Ryan Dahl
These were discovered using the LSAN. http://dev.chromium.org/developers/testing/leaksanitizer
2018-12-03gn snapshot template's target_name should be targetRyan Dahl
2018-11-29Add prebuilt/win/v8_debug.lib (#1249)Ryan Dahl
The windows debug build was broken due to libc link errors.
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.