0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-22 15:07:00 -05:00
Commit graph

899 commits

Author SHA1 Message Date
Ben Noordhuis
4b8573a993 Implement fmt::Display for StringView (#236)
Make StringView objects inspectable to make it easier to debug the
V8 inspector's wire protocol.

StringBuffer objects can't be inspected yet because they need a mutable
reference if they want to call `StringBuffer::string()`, which makes
sense because that method calls out to a C++ virtual method that can
modify the object.

For now, instances can be inspected like this:

    let mut sb = StringBuffer::create(...);
    println!("StringBuffer({})", sb.string().unwrap());

Closes #233
2020-01-21 17:33:51 -05:00
Bert Belder
1a1bac3883
Make BackingStore APIs more consistent with C++ (#234) 2020-01-21 16:23:47 +01:00
Ryan Dahl
3c1c52fb33 v0.1.1 2020-01-21 09:45:32 -05:00
Ryan Dahl
791cbc627a Add docs about scopes to lib.rs 2020-01-21 09:45:32 -05:00
Bert Belder
b3d93dad78
Some clean-ups after making Locker a Scope (#231) 2020-01-21 03:16:55 +01:00
Bert Belder
44d58f8f48
Make Locker also a Scope (#229) 2020-01-21 02:03:45 +01:00
Bert Belder
937704ab76
Disable test 'handle_scope_escape_to_nowhere' on Windows CI (#227) 2020-01-20 23:34:34 +01:00
Bert Belder
36a12142f2
Make EscapableHandleScope::escape() inheritable, tighten lifetimes (#227) 2020-01-20 23:34:28 +01:00
Ben Noordhuis
6efb395fdc Add Object::define_own_property() (#228)
This commit introduces the NONE, READ_ONLY, DONT_ENUM and DONT_DELETE
property attributes.
2020-01-20 11:16:24 -05:00
Ben Noordhuis
42af31ff38
Add Context::new_from_template() (#225) 2020-01-19 21:58:44 +01:00
Ben Noordhuis
2db5e10b9f
Add FunctionTemplate::set_class_name() (#225) 2020-01-19 21:58:35 +01:00
Ben Noordhuis
7b0269b447
Add ObjectTemplate and Template::set() (#225)
The ObjectTemplate type already existed but now it can also be
instantiated.

This commit also adds Template::set() to actually make that useful.
2020-01-19 21:58:20 +01:00
Bert Belder
2a7868daa9
Forgot to delete file (#224) 2020-01-18 15:31:39 +01:00
Bert Belder
6c1d65252a
Add ContextScope and lay foundations for scope inheritance (#223) 2020-01-18 13:41:28 +01:00
Bert Belder
00d8eb8e16
Fix methods that should require '&mut Isolate' but didn't (#222) 2020-01-17 15:40:29 +01:00
Ry Dahl
52067dc4da
Upgrade deps (#221) 2020-01-17 09:27:13 -05:00
Ry Dahl
7a198e0c7e
Reduce nested symbols in API (#220)
- Don't expose empty mod array_buffer_view
- Move v8::platform::new_default_platform() to v8::new_default_platform()
- Move v8::platform::Task to v8::Task
- Move v8::platform::Platform to v8::Platform
2020-01-17 09:26:42 -05:00
Bartek Iwańczuk
bc927c7477 ArrayBuffer::new_backing_store_from_boxed_slice (#202) 2020-01-17 14:41:12 +01:00
Ben Noordhuis
52b8bbaf82 Fix Module::get_module_namespace() doc comment (#219) 2020-01-17 08:01:19 -05:00
Bert Belder
8741681256
Remove unnecessary explicit drop() calls from tests (#218) 2020-01-17 09:04:30 +01:00
Bert Belder
6925e78819
Do not export Isolate::enter() and Isolate::exit() methods (#217) 2020-01-17 08:57:27 +01:00
Bert Belder
fb19eecc31
Rename new_null() to null() and new_undefined() to undefined() (#216)
This is more consistent with V8's C++ API.
2020-01-17 08:34:48 +01:00
Bert Belder
d4cd5d2733
Move error constructors and helper functions under v8::Exception (#215)
* The purpose of this change is to match the C++ API more closely.
* This patch also increases consistency between the 'extern "C"'
  function definitions on the Rust side with those on the C++ side.
* The 'message' parameter (a v8::String) to the various error
  constructors no longer needs to be mutable.
2020-01-17 08:22:16 +01:00
Bert Belder
bed0088550
Make function signature of 'AccessorNameGetterCallback' match C++ (#214) 2020-01-17 07:39:05 +01:00
Bert Belder
7862af65e0
Make Function::call() more efficient and more idiomatic (#213) 2020-01-17 03:59:42 +01:00
Bert Belder
1a65b6cf6b
Format binding.cc (#213) 2020-01-17 03:56:04 +01:00
Bert Belder
b09df9b552
Fix bug in v8::create_message() argument lifetimes (#212) 2020-01-17 02:24:41 +01:00
Bartek Iwańczuk
f650abe44e stub out inspector APIs (#206) 2020-01-16 18:12:25 -05:00
Bert Belder
22bf9c6a39
v0.1.0 2020-01-16 23:05:01 +01:00
Bert Belder
2e66329666
Upgrade dependencies (#211) 2020-01-16 23:04:54 +01:00
Bert Belder
a230735902
Refactor scopes and callbacks so users don't need to transmute (#183) 2020-01-16 22:48:27 +01:00
Ry Dahl
9d24f58765
Move clang download to target/debug/clang (#210)
To prevent rebuilds due to the compiler being in random directories.
2020-01-16 14:20:57 -05:00
Ry Dahl
03cab59c5c
Add Isolate::request_interrupt (#208) 2020-01-15 15:33:47 -05:00
Ry Dahl
125d88ffc6
ci: disable cargo package (#209) 2020-01-15 15:14:39 -05:00
Bert Belder
e6fb4d1a65
Reimplement Module::ResolveCallback ABI fix without global variables (#207) 2020-01-14 21:15:06 +01:00
Bert Belder
bf28a6b2e3
Remove rust-abi wrapper for v8::ResolveCallback (#204)
It will be back, but in a different form.
2020-01-13 06:58:26 +01:00
Bert Belder
ff423d85bd
Format test_api.rs: use 'v8::' prefix consistently (#203) 2020-01-13 05:46:04 +01:00
Bert Belder
fe2a158fad
Format test_api.rs: break up overlong JS source string (#203) 2020-01-13 05:45:21 +01:00
Bert Belder
2ad44ae0a3
v0.0.25 2020-01-10 06:53:18 +01:00
Bert Belder
b48c0a6e48
Pass '-gno-inline-line-tables' to clang to limit debuginfo size on Linux (#200)
Ref: https://github.com/denoland/deno/issues/3599
2020-01-10 06:28:53 +01:00
Bert Belder
bbc1d56d25
v0.0.24 2020-01-08 02:19:03 +01:00
Bert Belder
76a423be1c
Upgrade V8 to 8.1.108 (#197) 2020-01-08 01:40:25 +01:00
Bert Belder
164b3a6ff6
Clean up github actions config and run 'cargo package' (#196) 2020-01-07 06:36:52 +01:00
Ry Dahl
63673c3740
Remove unnecessary derive(Debug) (#195) 2020-01-06 14:57:15 -05:00
Bert Belder
f43c33737a
Write a gcc-style depfile when using clang-cl on Windows (#194) 2020-01-05 23:36:08 +01:00
Ryan Dahl
0cad8f33a1
Exclude most files in v8/tools again (#192) 2020-01-05 22:47:23 +01:00
Bert Belder
78f3577c06
Don't build V8 if the rust language server is running (#193) 2020-01-05 19:52:23 +01:00
Bartek Iwańczuk
bddefbc2b2 Implicitly enter Isolate in v8::error (#191) 2020-01-05 18:07:50 +01:00
Bert Belder
a76339a59c
v0.0.23 2020-01-05 06:32:03 +01:00
Bert Belder
92419f2252
Upgrade to cargo_gn v0.0.15 (#188) 2020-01-05 06:21:33 +01:00