summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-08-03Implement os.exitRyan Dahl
2018-08-02Update repo links to denoland.Ryan Dahl
2018-08-02Source map support (#429)Ryan Dahl
This change increases size: out/debug/obj/libdeno/from_snapshot.o 19M -> 34M out/release/deno 32M -> 47M
2018-08-01Optimize compile time by using asm.Ryan Dahl
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-01Better handling of exceptions during snapshot creation.Ryan Dahl
2018-08-01build: use compiled_action for create_snapshot.Ryan Dahl
Switch the order of the snapshot_creator args, in order to allow for optional source map arg.
2018-07-29Implement CodeCacheRyan Dahl
2018-07-29Add sha1 and tempfile crates.Ryan Dahl
2018-07-29Add from_c() to get a Deno object from ptr.Ryan Dahl
This is a utility function for CodeCache and other handlers.
2018-07-29Implement a logger so we can get logging output.Ryan Dahl
2018-07-26Fix clang warning.Ryan Dahl
warning: comparison of integers of different signs: 'const unsigned long' and 'const int' [-Wsign-compare]
2018-07-25Add --v8-options flag (#405)robbym
2018-07-24Remove handlers crate target.Ryan Dahl
- 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-24Allow deno_buf with null alloc_ptr to be memcpy'dRyan Dahl
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-24Add mock_runtime_test for deno_last_exception.Ryan Dahl
2018-07-24Change copyrights to be 'Deno authors'.Ryan Dahl
2018-07-22Fix resolve_module() when module_specifier is an absolute file pathBert Belder
2018-07-21Add tools/test.py test runner. (#384)Ryan Dahl
2018-07-20Use 2 space indent.Ryan Dahl
Apologies for the churn, but my screen is small. rustfmt assumes big monitors.
2018-07-20Wrap rust at 80 columns.Ryan Dahl
2018-07-19Make test_resolve_module pass on windowsBert Belder
2018-07-19cleanup: Move C extern code to src/binding.rsRyan Dahl
2018-07-18Rename deno_nosnapshot to deno_ns.Ryan Dahl
2018-07-18Better exception output.Ryan Dahl
2018-07-18Execute JS for the first time in Rust rewrite.Ryan Dahl
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-18Add deno::Basename and deno::BinaryContentAsC utilies.Ryan Dahl
These are prep for code sharing with the asset code soon to land.
2018-07-18Fix warnings in mock_runtime_test.ccRyan Dahl
2018-07-13Run tools/format.pyRyan Dahl
2018-07-13Move C++ test main function to its own file.Ryan Dahl
2018-07-12Move buffers between V8 and nativeBert Belder
* 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-12Remove channel argument from Rust message callbackBert Belder
This makes `deno` not crash any more.
2018-07-12Add nosnapshot executables for faster incremental builds (#359)Faris Amali Alis
Fixes #311.
2018-07-10Add rust url crate. (#355)Ryan Dahl
2018-07-08Add 'command id' field to messagesBert Belder
This allows for correlating response messages to the command message that caused them.
2018-07-07Add rust_test to gn build, with working example.Ryan Dahl
2018-07-06Remove channel parameter from deno_send/recv.Ryan Dahl
2018-07-06Use C++ to do flatbuffer parsing.Ryan Dahl
- Port protobuf messages to flatbuffers. - Demo linking to rust from C++ executable. - Start using the prototype TS libraries.
2018-07-06Run tools/format.shRyan Dahl
2018-07-06Better c++ error handlingRyan Dahl
2018-07-06Further gn/rust cleanupsRyan Dahl
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-06Rename deno.cc to binding.cc and other renames (#339)Faris Amali Alis
Fixes #336
2018-07-05Rename mock_main to deno_ccRyan Dahl
2018-07-04Replace protobufs with flatbuffersRyan Dahl
2018-07-04Fix msg.pb.h pathBert Belder
2018-07-04removed now irrelevant kKeep segfault commentMike Reinstein
2018-07-04switch from kClear to kKeepMike Reinstein
2018-07-04upgrade v8 to 6.9.297. remove IIFE workaround for bug in v8 snapshot serializerMike Reinstein
2018-07-03Switch back to recv/send instead of pub/sub for low-level API.Ryan Dahl
2018-07-03Rustify Deno APIRobby Madruga
2018-07-03Remove BaseMsg from msg.protoRyan Dahl