Commit graph

36 commits

Author SHA1 Message Date
Ryan Dahl 20a41aa9b5 Add from_c() to get a Deno object from ptr.
This is a utility function for CodeCache and other handlers.
2018-07-29 00:22:39 -04:00
Ryan Dahl 16caa1173d Run tools/format.py 2018-07-26 11:38:03 -04:00
Kitson Kelly 5562c36824 Remove msg_generated hack (#409) 2018-07-25 23:07:50 -04:00
Ryan Dahl 0213053856 Remove handlers crate target.
- Add build scripts for Rust flatbuffers.
- Rewrites some reply.cc methods in Rust.
- Changes some struct elements to table in msg.fbs (rust flatbuffers
  lacks support currently)
- Renames handlers_test to test_rs.
- This reorg is needed to make progress on the code cache handler.
2018-07-24 12:29:54 -04:00
Ryan Dahl 1de16af1f3 Change copyrights to be 'Deno authors'. 2018-07-24 10:38:11 -04:00
Kitson Kelly 845f7215db
Replace packer with rollup 2018-07-22 03:16:17 +02:00
Bert Belder 422150c797
Link rust_test targets with external linker, fix handlers_test linkage 2018-07-19 21:55:39 +02:00
Ryan Dahl 3dde880c32 Rename deno_nosnapshot to deno_ns. 2018-07-18 15:43:50 -04:00
Ryan Dahl b892188878 Better exception output. 2018-07-18 15:43:50 -04:00
Ryan Dahl 3e51605bc9 Execute JS for the first time in Rust rewrite.
Implements code_fetch handler in Rust.

Add ability to embed string assets (for typescript declaration files)

Remove deno_cc and deno_cc_nosnapshot targets.
2018-07-18 15:43:50 -04:00
Ryan Dahl 8a4e3dfda4 Minimize snapshot deps by adding deno_base target.
Also adds main.map to bundle outputs in GN.
2018-07-18 15:43:50 -04:00
Ryan Dahl 2f94c5b48b Add rust crate log to third_party. 2018-07-18 15:43:50 -04:00
Ryan Dahl d78254009e Reduce unnecessary build output. 2018-07-18 15:43:50 -04:00
Ryan Dahl c4f2097c7b Run tools/format.py 2018-07-13 14:38:50 -04:00
Ryan Dahl 691a375eab Add :all target 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
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
Ryan Dahl e269d972d2 Move libc build def to //build_extra/rust
This is preperation for adding many more third_party crates.
2018-07-09 16:50:33 -04:00
Ryan Dahl f917c5e722 Clean up tools/
- Factor out tools/util.py
- Move js/*.py to tools.
- Rewrite tools/format.sh in python.
- Run lint first in travis.
2018-07-08 13:40:18 -04:00
Ryan Dahl 740b47db6c Move flatbuffers gn files to //build_extra/flatbuffers
Fixes #342.
2018-07-07 17:40:59 -04:00
Ryan Dahl d4c5ff841e Merge flatbuffer.gni and ts_flatbuffer.gni 2018-07-07 17:40:59 -04:00
Ryan Dahl 6bff970d69 Add rust_test to gn build, with working example. 2018-07-07 17:24:46 -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 179eeb2b50 s/rust_deps/extern/g 2018-07-06 10:46:30 -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
Yoshiya Hinosawa c1f430966a chore: reorganize symlinks
resolves #332
2018-07-06 01:57:32 -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
Ryan Dahl 15d6541d4d Separate deno.gni and rust.gni and clean up.
Put rust depfile in target_out_dir because the depfile isn't in the
outputs, the gen directory doesn't get created.

Prefix rlib files with lib.
2018-07-04 14:24:25 +02:00
Yoshiya Hinosawa 6f7ca760b8 move v8 to third_party/v8 (#322) 2018-07-03 10:15:32 +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
Renamed from src/BUILD.gn (Browse further)