1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00
denoland-deno/js
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
..
console.ts Use C++ to do flatbuffer parsing. 2018-07-06 17:33:06 -04:00
deno.d.ts Move buffers between V8 and native 2018-07-12 21:26:38 +02:00
deno.ts Import ts file from prototype without change 2018-07-06 12:22:11 -04:00
dispatch.ts Use C++ to do flatbuffer parsing. 2018-07-06 17:33:06 -04:00
fetch.ts Import ts file from prototype without change 2018-07-06 12:22:11 -04:00
globals.ts Use C++ to do flatbuffer parsing. 2018-07-06 17:33:06 -04:00
main.ts Move buffers between V8 and native 2018-07-12 21:26:38 +02:00
mock_runtime.js Move buffers between V8 and native 2018-07-12 21:26:38 +02:00
msg_generated.ts Regenerate msg_generated.ts 2018-07-09 04:23:58 +02:00
os.ts chore: use local prettier 2018-07-09 11:05:02 -04:00
runtime.ts chore: use local prettier 2018-07-09 11:05:02 -04:00
tests.ts Import ts file from prototype without change 2018-07-06 12:22:11 -04:00
text-encoding.d.ts Import ts file from prototype without change 2018-07-06 12:22:11 -04:00
timers.ts Import ts file from prototype without change 2018-07-06 12:22:11 -04:00
types.ts Import ts file from prototype without change 2018-07-06 12:22:11 -04:00
util.ts Use C++ to do flatbuffer parsing. 2018-07-06 17:33:06 -04:00
v8_source_maps.ts Import ts file from prototype without change 2018-07-06 12:22:11 -04:00