Bert Belder
446081b1e6
rollup: add extension to mock_builtin.js
2018-08-02 02:59:36 +02:00
Bert Belder
1a6ba1f812
tools: fix tools/clang
symlink on startup
2018-08-02 02:59:36 +02:00
Karl Horky
2adc9bd580
Update protobuf link to flatbuffer
...
Ref: https://github.com/ry/deno/pull/330
2018-08-01 14:59:37 -04:00
Ryan Dahl
6b6fac209c
Optimize compile time by using asm.
...
Switches to using asm incbin to embed the V8 snapshot instead of
outputing C code and then compiling it.
Compile time for from_snapshot.o goes from 44s to 1s.
2018-08-01 12:14:10 -04:00
Ryan Dahl
db8dc0e9f8
Better handling of exceptions during snapshot creation.
2018-08-01 12:14:10 -04:00
Ryan Dahl
ae82db54f6
build: use compiled_action for create_snapshot.
...
Switch the order of the snapshot_creator args, in order to allow for
optional source map arg.
2018-08-01 12:14:10 -04:00
Ryan Dahl
9a42fcad9f
Add base64-js to third_party.
...
It's a dependency of js/v8_source_maps.ts.
2018-08-01 12:14:10 -04:00
Kitson Kelly
36fa1cea4a
Upgrade TypeScript (3.0.1)
...
Update runtime to use lib.deno.d.ts
Add proper console declaration
Upgrade prettier (There was an issue formatting lib.deno.d.ts)
2018-07-31 20:47:49 -04:00
Ryan Dahl
b44c235579
Install sysroot on linux.
2018-07-29 00:24:16 -04:00
Ryan Dahl
37ec079325
Remove depot_tools from travis.
...
Fixes #399
2018-07-29 00:24:16 -04:00
Ryan Dahl
db65c723ae
Rename run_hooks.py to setup.py
...
Moves 'gn gen' into setup.py
Make tools/build.py more ergonomic.
2018-07-29 00:24:16 -04:00
Bert Belder
604a8a640c
Add winapi crate, make 'rand' and 'tempfile' work
2018-07-29 00:22:39 -04:00
Bert Belder
37a4606d29
Add "features" argument to rust components
2018-07-29 00:22:39 -04:00
Ryan Dahl
4d386e9e1c
Implement CodeCache
2018-07-29 00:22:39 -04:00
Ryan Dahl
1f093c12f8
Add sha1 and tempfile crates.
2018-07-29 00:22:39 -04:00
Ryan Dahl
c06f2789f8
spelling
2018-07-29 00:22:39 -04:00
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
e7445507aa
Implement a logger so we can get logging output.
2018-07-29 00:22:39 -04:00
Ryan Dahl
57c52a83a0
Add tests/003_relative_import.ts
2018-07-29 00:22:39 -04:00
Kitson Kelly
5d146ed742
Ignore any generated TypeScript files
2018-07-27 10:06:29 -04:00
Ryan Dahl
6b49944da1
Simplify run_rustc.py output.
2018-07-26 11:38:03 -04:00
Ryan Dahl
b39a71d4c6
Fix clang warning.
...
warning: comparison of integers of different signs: 'const unsigned
long' and 'const int' [-Wsign-compare]
2018-07-26 11:38:03 -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
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