1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-01 16:51:13 -05:00
denoland-deno/src
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
..
binding.cc Move buffers between V8 and native 2018-07-12 21:26:38 +02:00
deno.h Move buffers between V8 and native 2018-07-12 21:26:38 +02:00
file_util.cc move v8 to third_party/v8 (#322) 2018-07-03 10:15:32 +02:00
file_util.h Move deno2 folder to src (#277) 2018-06-22 15:30:35 +02:00
file_util_test.cc Move deno2 folder to src (#277) 2018-06-22 15:30:35 +02:00
flatbuffer_builder.cc Move buffers between V8 and native 2018-07-12 21:26:38 +02:00
flatbuffer_builder.h Move buffers between V8 and native 2018-07-12 21:26:38 +02:00
flatbuffer_builder_test.cc Move buffers between V8 and native 2018-07-12 21:26:38 +02:00
from_filesystem.cc Add nosnapshot executables for faster incremental builds (#359) 2018-07-12 15:06:36 -04:00
from_snapshot.cc Run tools/format.sh 2018-07-06 17:33:06 -04:00
handlers.h Add 'command id' field to messages 2018-07-08 21:01:24 +02:00
handlers.rs Add rust url crate. (#355) 2018-07-10 14:56:12 -04:00
internal.h Rename deno.cc to binding.cc and other renames (#339) 2018-07-06 03:19:19 -04:00
main.cc Move buffers between V8 and native 2018-07-12 21:26:38 +02:00
main.rs Move buffers between V8 and native 2018-07-12 21:26:38 +02:00
mock_runtime_test.cc Move buffers between V8 and native 2018-07-12 21:26:38 +02:00
msg.fbs Add 'command id' field to messages 2018-07-08 21:01:24 +02:00
snapshot_creator.cc Run tools/format.sh 2018-07-06 17:33:06 -04:00