Ryan Dahl
f25220b2cf
Fix test_cc memory leaks.
...
These were discovered using the LSAN.
http://dev.chromium.org/developers/testing/leaksanitizer
2018-12-03 15:31:06 -08:00
Ryan Dahl
0501330607
Add libdeno.shared global shared ArrayBuffer.
2018-10-24 14:52:38 -07:00
Ryan Dahl
61cda72881
libdeno: Expose snapshot creation.
2018-10-24 14:52:38 -07:00
Ryan Dahl
6afe94b3c8
libdeno: clean up
...
- Use a proper class for DenoIsolate.
- Move extern C stuff to api.cc
2018-10-24 14:52:38 -07:00
Ryan Dahl
fd68f85ce8
libdeno: deno_new should take a snapshot parameter.
2018-10-24 14:52:38 -07:00
Bert Belder
142e532910
libdeno: store v8::Persistent in map by value instead of by reference
2018-10-19 02:35:49 +02:00
Ryan Dahl
d534ea41ad
Optimization: Use std::map for tracking zero-copy buffers
...
Instead of V8 map.
2018-10-18 17:49:03 -04:00
Ryan Dahl
4d669c63f4
Reduce ArrayBuffer allocations in ImportBuf()
2018-10-17 16:02:00 -04:00
Kevin (Kun) "Kassimo" Qian
45d3b8955d
Fix promise reject issue ( #936 )
2018-10-12 14:22:52 -04:00
Bert Belder
ad4c4c214a
Rename Deno.data to Deno.user_data
...
Also use the correct rust type for it.
2018-10-08 18:10:28 +02:00
Ryan Dahl
d38ccfc6dc
Support zero-copy data in libdeno.send(). ( #838 )
...
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-27 17:33:10 -04:00
Bert Belder
dfcde3e1ee
format
2018-08-26 19:22:37 +02:00
Yoshiya Hinosawa
17d6d6b336
refactor: add and use libdeno.setGlobalErrorHandler instead of window.onerror
2018-08-26 11:03:41 -04:00
Yoshiya Hinosawa
aaabc853e8
chore: move libdeno files to //libdeno/
2018-08-19 11:27:47 -04:00