Ryan Dahl
c4f2097c7b
Run tools/format.py
2018-07-13 14:38:50 -04:00
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
Bert Belder
bbcd4c8dd3
Remove channel argument from Rust message callback
...
This makes `deno` not crash any more.
2018-07-12 21:07:20 +02:00
Faris Amali Alis
7e5f0a7a66
Add nosnapshot executables for faster incremental builds ( #359 )
...
Fixes #311 .
2018-07-12 15:06:36 -04:00
Ryan Dahl
d160de7f44
Add rust url crate. ( #355 )
2018-07-10 14:56:12 -04:00
Bert Belder
8a17db8266
Add 'command id' field to messages
...
This allows for correlating response messages to the command message that
caused them.
2018-07-08 21:01:24 +02:00
Ryan Dahl
6bff970d69
Add rust_test to gn build, with working example.
2018-07-07 17:24:46 -04:00
Ryan Dahl
a2dde56c59
Remove channel parameter from deno_send/recv.
2018-07-06 18:25:09 -04:00
Ryan Dahl
9778eceaf5
Use C++ to do flatbuffer parsing.
...
- Port protobuf messages to flatbuffers.
- Demo linking to rust from C++ executable.
- Start using the prototype TS libraries.
2018-07-06 17:33:06 -04:00
Ryan Dahl
d9cb093989
Run tools/format.sh
2018-07-06 17:33:06 -04:00
Ryan Dahl
21e1425656
Better c++ error handling
2018-07-06 12:22:11 -04:00
Ryan Dahl
d30664958e
Further gn/rust cleanups
...
Move rust.gni and deno.gni into build_extra/
Removes rust_library which was only an action. This instead defines
rust_component, which is an action plus a gn "component" target
to expose the resulting object file. This simplifies link code in
rust.gni.
Support rust modules that can be linked into C++.
2018-07-06 10:46:30 -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
131e0ce4c7
Rename mock_main to deno_cc
2018-07-05 12:41:28 -04:00
Ryan Dahl
06a28998ea
Replace protobufs with flatbuffers
2018-07-04 16:43:08 -04:00
Bert Belder
29ba462e7d
Fix msg.pb.h path
2018-07-04 21:55:58 +02:00
Mike Reinstein
693e43e421
removed now irrelevant kKeep segfault comment
2018-07-04 03:46:52 +02:00
Mike Reinstein
24dfbd1568
switch from kClear to kKeep
2018-07-04 01:55:40 +02:00
Mike Reinstein
86dac80d98
upgrade v8 to 6.9.297. remove IIFE workaround for bug in v8 snapshot serializer
2018-07-04 01:55:40 +02: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
Robby Madruga
7fcaf7d35d
Rustify Deno API
2018-07-03 21:22:39 +02:00
Ryan Dahl
92d01f8519
Remove BaseMsg from msg.proto
2018-07-03 21:22:39 +02:00
Ryan Dahl
cf07ec5b63
Call into JS from rust
2018-07-03 21:22:39 +02:00
Yoshiya Hinosawa
6f7ca760b8
move v8 to third_party/v8 ( #322 )
2018-07-03 10:15:32 +02:00
Ryan Dahl
6d288b63cd
Call lint in travis (and fix long long issue)
2018-07-02 09:09:23 +02:00
Yoshiya Hinosawa
ea35281d63
chore: move //src/js to //js
...
refs: #285
2018-07-01 17:22:36 +02:00
Yoshiya Hinosawa
6830370c3e
reorg: Move GN files to root ( #309 )
...
refs: #285
2018-07-01 13:47:28 +02:00
Ryan Dahl
467408c6dc
Reorg: Move tools/ and gitignore to root.
2018-06-28 21:56:53 +02:00
Ryan Dahl
4b234df803
Rename deno_rs to deno.
2018-06-25 23:08:14 +02:00
Ryan Dahl
5aeaad9a6a
Fix run_node.py symlink.
2018-06-25 23:07:57 +02:00
Ryan Dahl
1330553be1
Add onerror test to mock_runtime_test.cc
2018-06-22 23:42:04 +02:00
Ryan Dahl
9315adb8c5
lint
2018-06-22 23:19:55 +02:00
Ryan Dahl
bd4693471f
run_node.py don't error if symlink exists ( #279 )
...
The switch from deno2/ to src/ made Travis's cached symlink invalid and
now os.path.exists() returns false.
2018-06-22 17:50:27 +02:00
Tristan Marion
3b595253a2
Move deno2
folder to src
( #277 )
2018-06-22 15:30:35 +02:00