summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-12-13Improve text on benchmark site. (#1323)Ryan Dahl
2018-12-13Check that IsolateState is thread safe. (#1321)Ryan Dahl
2018-12-13Merge deno_new_snapshotter behavior into deno_new (#1318)Ryan Dahl
2018-12-13Fix deno.open permission check (#1336)Kevin (Kun) "Kassimo" Qian
2018-12-13Read version from Cargo.toml (#1267)Goffert van Gool
2018-12-13Fix typo in errors.ts JSDocTim Wang
2018-12-13travis: remove use_sysrootRyan Dahl
2018-12-12fix typo on websiteAllen Hai
2018-12-12Flesh out open() modes (#1282)Bartek Iwańczuk
2018-12-12Change default to false Base.boolTnarita0000
2018-12-12js_errors: rename source_url to script_name (#1329)ggtmtmgg
2018-12-12use byte array instead of string for code fetch (#1307)F001
2018-12-12Simplify src fetch logic and auto append suffix in cache search (#1322)Kevin (Kun) "Kassimo" Qian
2018-12-12Avoid Uint8Array.prototype throwing type error in console.log (#1327)Kevin (Kun) "Kassimo" Qian
2018-12-12readDir entry mode (#1326)Kevin (Kun) "Kassimo" Qian
2018-12-11Remove custom panic handler.Ryan Dahl
This was introduced because Tokio would swallow panics. This is still the case, but this panic handler causes more problems than it solves. It requires people to know how to use debuggers to inspect stacktraces. TODO: - Fix Tokio to not swallow errors. - Be vigilant in the intrim to not introduce broken tests due to this unfortunate "feature" of tokio.
2018-12-11Use default filename for Isolate::execute.Ryan Dahl
2018-12-11tools: remove_and_symlink can be skipped on unixRyan Dahl
This is more optimial and this fixes a problem where occasionally remove_and_symlink will error with: gen/compiler_bundle/main.js --sourcemapFile /Users/rld/src/deno --silent Traceback (most recent call last): File "../../tools/run_node.py", line 18, in <module> util.remove_and_symlink(target_rel, "node_modules", True) File "/Users/rld/src/deno/tools/util.py", line 103, in remove_and_symlink symlink(target, name, target_is_dir) File "/Users/rld/src/deno/tools/util.py", line 141, in symlink os.symlink(target, name) OSError: [Errno 17] File exists
2018-12-11Remove dead code: ASSET_PREFIXRyan Dahl
2018-12-11deno_dir: move tests into submoduleRyan Dahl
2018-12-11Minor rename for CodeFetch parametersRyan Dahl
This bring it inline with terminology used in V8 See ResolveCallback in v8.h
2018-12-11build: snapshot doesn't need source_mapRyan Dahl
Continuation of the work done in c113df.
2018-12-11Replace blocking! macro by generic function (#1305)F001
2018-12-10Use stderr for exceptions (#1303)Ryan Dahl
2018-12-10Add more console types formatting support (#1299)Kevin (Kun) "Kassimo" Qian
2018-12-09Add TooLarge error code for buffers (#1298)binaryta
In collaboration with @yushimatenjin
2018-12-08Add more profiling and debugging guidesKevin (Kun) "Kassimo" Qian
2018-12-08Track the master branch of the chromium_build repoBert Belder
2018-12-08build: manage win lld-link.exe thin archive flag with config("thin_archive")Bert Belder
2018-12-07v0.2.2Ryan Dahl
- Don't crash when .mime file not exist in cache (#1291) - Process source maps in Rust instead of JS (#1280) - Use alternate TextEncoder/TextDecoder implementation (#1281) - Upgrade flatbuffers to 80d148 - Fix memory leaks (#1265, #1275)
2018-12-07Add benchmark for net/http (#1289)Bartek Iwańczuk
2018-12-07Don't crash when .mime file not exist in cache (#1291)Kevin (Kun) "Kassimo" Qian
2018-12-06Process source maps in Rust instead of JS (#1280)Ryan Dahl
- Improves speed and binary size significantly. - Makes deno_last_exception() output a JSON structure. - Isolate::execute and Isolate::event_loop now return structured, mapped JSError objects on errors. - Removes libdeno functions: libdeno.setGlobalErrorHandler() libdeno.setPromiseRejectHandler() libdeno.setPromiseErrorExaminer() In collaboration with Ryan Dahl.
2018-12-06Add ASCII support to TextDecoderKitson Kelly
2018-12-06Use alternate TextEncoder/TextDecoder implementation (#1281)Kitson Kelly
This is faster and smaller.
2018-12-05Isolate::from_raw_ptr and other cleanups.F001
`Isolate::from_void_ptr` is renamed to `from_raw_ptr`, to keep consistency with std libs. It is changed to `unsafe` function, because it can't guarantee that the input is valid. This guarantee should be provided by the caller. Its return type is changed to `&Isolate`, because `&mut Isolate` type requires that no other aliases co-exist in this period of time, this does not seem true. So I changed most of the methods to accept shared reference `&Isolate`. It is easier to reason about the correctness of `unsafe` blocks. As long as these shared references are in the same thread, these `unsafe` codes are probably correct.
2018-12-04Upgrade flatbuffers to 80d148Ryan Dahl
2018-12-04Add deno_config struct for isolate creation. (#1277)Ryan Dahl
In preperation for adding other callbacks to libdeno.
2018-12-04Remove static lifetime bound in OpCreator (#1276)F001
The main purpose of this PR is to remove the `'static` lifetime bound in type OpCreator = fn(state: &Arc<IsolateState>, base: &msg::Base, data: &'static mut [u8]) -> Box<Op>; The reason is simple: it is plain wrong, the `data` is actually not `'static`. It is created when the message is sent from C side, and will be recycled when the message is responded. It violates the definition of `'static` lifetime. If someone save this pointer somewhere else, and reuse it later again, uninitialized memory could be accessed. This kind of memory unsafety does not happen yet because the logic is carefully organized in this project. Lifetime constraints are maintained by code convention. It could be more robust if we can express this constraint by Rust's type system. Basic idea: tie buffer's lifetime to an object's lifetime, a.k.a, RAII. The type `deno_buf` is pretty suitable for this job.
2018-12-03Remove leaks from snapshot_creatorRyan Dahl
2018-12-03Avoid memory leak (#1265)F001
2018-12-03Turn off kPromiseResolvedAfterResolved warningKevin (Kun) "Kassimo" Qian
2018-12-03Add LSAN build to travis.Ryan Dahl
For now it only runs test_cc and has to filter out a test which leaks. However we will expand this over time until the entire build is LSAN clean.
2018-12-03Fix test_cc memory leaks.Ryan Dahl
These were discovered using the LSAN. http://dev.chromium.org/developers/testing/leaksanitizer
2018-12-03gn snapshot template's target_name should be targetRyan Dahl
2018-12-03Use include_bytes! instead of incbin.Ryan Dahl
This is the second attempt at this patch. The first version was reverted in 2ffd78daf9956a24098d1f959f21882e350e9d37 The problem, I suspect, was that the snapshot was represented as a source_set, which inserted a node into the dependency tree. include_bytes does properly insert the snapshot into rustc's depfile but the use of source_set confused gn. Now the that the deno executable has the create_deno_snapshot as a direct dependency, changes will be propagated.
2018-12-03third_party: symlink //third_party/v8/build => //buildBert Belder
2018-12-03.gitattributes: add symlink target typesBert Belder
This is a first step toward removing the fix_symlinks() hack from tools/third_party.py.
2018-12-03.gitattributes: not all files are textBert Belder
2018-11-30feat: Support for bigints in consolekyraNET