0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
Commit graph

7 commits

Author SHA1 Message Date
Ryan Dahl
2c30a25568 Move C++ test main function to its own file. 2018-07-13 14:38:50 -04:00
Bert Belder
24b0e91d80
Move buffers between V8 and native
* send()/recv() now operate on TypedArrays rather than ArrayBuffers.

* Remove a copy (through ArrayBuffer.slice()) from the send path.

* Remove a copy (through v8::ArrayBuffer::New()) from the return path.

* After moving a buffer from JS to native, the ArrayBuffer object and
  it's views are made inaccessible ('neutered').

* `struct deno_buf` now holds two [ptr, length] tuples, one for the actual
  memory allocation, and one for the logical data contained therein.
  This is necessary because flatbuffers fills it's buffer bottom-up, so
  the serialized blob doesn't start at beginning of the buffer, but
  somewhere in the middle.
2018-07-12 21:26:38 +02:00
Ryan Dahl
a2dde56c59 Remove channel parameter from deno_send/recv. 2018-07-06 18:25:09 -04:00
Faris Amali Alis
bfe08aa462 Rename deno.cc to binding.cc and other renames (#339)
Fixes #336
2018-07-06 03:19:19 -04:00
Ryan Dahl
a33f575cda Switch back to recv/send instead of pub/sub for low-level API. 2018-07-03 21:22:39 +02:00
Ryan Dahl
1330553be1 Add onerror test to mock_runtime_test.cc 2018-06-22 23:42:04 +02:00
Tristan Marion
3b595253a2 Move deno2 folder to src (#277) 2018-06-22 15:30:35 +02:00
Renamed from deno2/mock_runtime_test.cc (Browse further)