1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-15 03:48:02 -05:00
Commit graph

7645 commits

Author SHA1 Message Date
robbym
180170d860 Add --v8-options flag (#405) 2018-07-25 21:27:27 -04:00
Bert Belder
4d08bb85a4
Clean up and fix tools
* Make sync_third_party work in general
* Un-break build.py and run_hooks.py on windows
* Partially fix format.py on windows
* Reduce code duplication between run_hooks and sync_third_party
2018-07-25 20:13:17 +02:00
Ryan Dahl
0875411267
Add tools/build.py (#398)
To allow better tab completion for ./tools/build.py
mv build_third_party.py sync_third_party.py
2018-07-24 13:42:23 -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
b79ce93010 Allow deno_buf with null alloc_ptr to be memcpy'd
This is a temporary hack to allow for easier restructuring of
the serialization code as we move Flatbuffer stuff from C++ to Rust.
2018-07-24 12:29:54 -04:00
Ryan Dahl
b87e6d5604 Add mock_runtime_test for deno_last_exception. 2018-07-24 12:29:54 -04:00
Ryan Dahl
7baf8a0fd1 Fix recursive globbing in tools/format.py
And use third_party/depot_tools/gn.
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
Bert Belder
dcaf9b3227
Make check_output_test.py tolerate CRLF line endings in test output 2018-07-22 03:50:22 +02:00
Bert Belder
cc14df427f
Fix resolve_module() when module_specifier is an absolute file path 2018-07-22 03:50:16 +02:00
Ryan Dahl
3c2dbccdb9
Update third_party submodule 2018-07-22 03:16:17 +02:00
Kitson Kelly
845f7215db
Replace packer with rollup 2018-07-22 03:16:17 +02:00
Ryan Dahl
dff5c16e85
Add tools/test.py test runner. (#384) 2018-07-21 19:08:24 -04:00
Bert Belder
709b0cb90c Fix symlink creation on windows 2018-07-21 13:04:11 -04:00
Ryan Dahl
5d1cb54261 Add deno_third_party as git submodule. 2018-07-21 13:04:11 -04:00
Yoshiya Hinosawa
3563638693 Fix some warnings (#379) 2018-07-21 11:00:09 -04:00
Bert Belder
89c7554d4a
Suppress misleading rustc warning when running gn gen
rustc prints the warning:
  `-C save-temps` might not produce all requested temporary
  products when incremental compilation is enabled.

However, incremental compilation isn't even enabled.

A look at the Rust source code confirms that this warning is indeed
printed unconditionally when the `-C save-temps` flag is specified:
5f2b325f64/src/librustc/session/config.rs (L1015-L1018)
2018-07-20 19:17:31 +02:00
Ryan Dahl
21c4b8a42d Use 2 space indent.
Apologies for the churn, but my screen is small. rustfmt assumes big
monitors.
2018-07-20 03:46:26 -04:00
Ryan Dahl
a7bf154cb8 Wrap rust at 80 columns. 2018-07-20 03:46:26 -04:00
Bert Belder
c67d98eb7f
Make test_resolve_module pass on windows 2018-07-19 21:55:43 +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
ae393879a7 cleanup: Move C extern code to src/binding.rs 2018-07-19 08:29:26 -04:00
robbym
d93bd4b127 Use Cargo to install rust deps into //third_party/rust_crates (#383) 2018-07-18 20:00:53 -04: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
c6ae3f7abc Add deno::Basename and deno::BinaryContentAsC utilies.
These are prep for code sharing with the asset code soon to land.
2018-07-18 15:43:50 -04:00
Ryan Dahl
08606e40a8 Downgrade typescript to 2.8.3
This is to exactly match the runtime in the prototype for easier
debugging. We will upgrade once the runtime is functional being tested
properly.
2018-07-18 15:43:50 -04:00
Ryan Dahl
c775d0c176 Fix warnings in mock_runtime_test.cc 2018-07-18 15:43:50 -04:00
Ryan Dahl
d78254009e Reduce unnecessary build output. 2018-07-18 15:43:50 -04:00
Mike Reinstein
ed9acaec7d update v8 version in readme to match reality 2018-07-14 21:40:25 -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
f9e0a5dece gclient sync should be shallow 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
Kompwu
936c8f6e4c Create .gitattributes 2018-07-13 19:25:52 +02:00
Ryan Dahl
ad4f335847 Add color to rustc output (except windows) 2018-07-12 17:38:51 -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
791357115c
Remove -f option from rustfmt. (#356)
And add support for RUSTFMT_FLAGS (Some people might need -f option)
2018-07-10 19:18:30 -04:00
Bert Belder
4f626098ec
windows: add .exe extension to executable produced by rust_test template 2018-07-10 21:54:56 +02: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
c4d61accf4 Fix rust depfile problem.
Fixes #316.
2018-07-09 16:50:33 -04:00
Yoshiya Hinosawa
46db20172c chore: use local prettier 2018-07-09 11:05:02 -04:00
Bert Belder
14f208fff9
Regenerate msg_generated.ts
I forgot to commit this file in 8a17db8.
2018-07-09 04:23:58 +02: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