0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-29 16:31:01 -05:00
Commit graph

362 commits

Author SHA1 Message Date
Ryan Dahl
323f5ee3e7
v0.3.7 2020-03-17 18:12:45 -04:00
Ryan Dahl
51d4e6b740
Support binary downloads (#316)
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2020-03-17 17:59:37 -04:00
Ryan Dahl
97088f4eb1
v0.3.6 2020-03-16 16:14:47 -04:00
Ryan Dahl
35cc92caab
ci: push librusty_v8.a binaries to github releases (#311)
Also enable release builds for linux and mac.
2020-03-16 15:42:51 -04:00
Kevin (Kun) "Kassimo" Qian
747f513cba
Add v8::Function::new_with_data to attach associated data (#310) 2020-03-14 22:42:18 -04:00
Ryan Dahl
c5348817b7
Update V8 version in README (#309) 2020-03-14 20:10:12 -04:00
Bert Belder
bd8adcbf05
v0.3.5 2020-03-13 22:34:48 -07:00
Bert Belder
8a3c19ece4
Upgrade V8 to 8.2.308 (#306) 2020-03-13 22:05:16 -07:00
Bert Belder
3e63d63223
Download ninja and gn binaries from github (#307) 2020-03-13 21:52:35 -07:00
Bert Belder
eedcb91e92
Upgrade dependencies (#305) 2020-03-13 17:59:54 -07:00
Ryan Dahl
cf86bd77e1
Upgrade to rust 1.42.0 (#305) 2020-03-13 17:59:48 -07:00
Ben Noordhuis
0df04f2129
Add Isolate::take_heap_snapshot() (#302)
This doesn't really follow the current V8 API (it's pretty close to how
V8 used to be back in 2012 though.) However:

1. The C++ API is very C++-y and doesn't carry over well to Rust, and
2. It addresses the immediate need of being able to take heap snapshots.

Refs #298
2020-03-09 10:30:25 -07:00
Bert Belder
e1b59ec736
Implement 'Eq' and 'PartialEq' traits for local handles (#301) 2020-03-05 19:37:58 -08:00
Bert Belder
926f3a19da
Update generated types/traits, and generate more types (#300) 2020-03-05 17:42:55 -08:00
Ryan Dahl
d42099f9cc
Add comments to make_pod (#295)
Remove unused padding.
2020-02-28 17:48:59 -08:00
Bert Belder
5e99489c3b
Use make_pod to convert Global<T> to T* (#297) 2020-02-28 17:31:22 -08:00
Ryan Dahl
1f0d6e8f68
v0.3.4 2020-02-28 18:57:39 -05:00
Ryan Dahl
816b6ad537
Fix BackingStore segfault (#294) 2020-02-28 18:40:48 -05:00
Bert Belder
26cee7e327
v0.3.3 2020-02-25 17:24:59 -08:00
Bert Belder
3803e07065
Revert "Add HandleScope::new2 hack to construct from const ref (#290)"
It's not pretty, and we currently don't need it in Deno.

This reverts commit 4f0662ed57.
2020-02-25 17:22:05 -08:00
Bert Belder
eba98e7a5e
Revert "Add ability to attach arbitrary state to Isolate (#282)"
This patch introduces a bug that breaks Deno.

This reverts commit 457f7ae779.
2020-02-25 17:21:55 -08:00
Bert Belder
552ba261e2
v0.3.2 2020-02-24 18:47:21 -08:00
Bert Belder
155a5ed455
Upgrade crates (#291) 2020-02-24 18:47:11 -08:00
Ryan Dahl
4f0662ed57
Add HandleScope::new2 hack to construct from const ref (#290) 2020-02-20 03:14:19 -05:00
Ryan Dahl
d3bbd05634
Add new terminate_execution test (#288) 2020-02-19 22:55:44 -05:00
Ryan Dahl
2aeb4e0cef
Disable broken aarch64 CI build (#289) 2020-02-19 22:37:25 -05:00
Ryan Dahl
9b83495976
don't publish from arm64 build (#286)
fixing https://github.com/denoland/rusty_v8/runs/454491681
2020-02-19 00:45:10 -05:00
Ryan Dahl
fd286aaf34 v0.3.1 2020-02-19 00:01:22 -05:00
Ryan Dahl
457f7ae779
Add ability to attach arbitrary state to Isolate (#282) 2020-02-18 23:46:00 -05:00
Ben Noordhuis
5d0b9fd760
Add some Array methods (#283) 2020-02-14 09:42:54 -05:00
Ryan Dahl
554f06f6bc
Fix get_slot and set_slot (#281) 2020-02-13 15:03:25 -05:00
Bert Belder
3dacbd396e
Fix use-after-free bug in IsolateHandle::dispose_isolate() (#280)
This function acquires a mutex lock which, prior to this patch, would be
unlocked _after_ releasing the IsolateAnnex memory allocation where the
mutex was stored.
2020-02-13 02:56:19 -08:00
Bert Belder
ddc8062644
Move get_*_context() methods to scope::Entered, remove InContext trait (#279)
The `get_current_context()` and `get_entered_or_microtask_context()`
methods now return `Option<Local<Context>>` to reflect that an isolate
may not have entered any context.

They're also moved from `Isolate` to `struct Entered` because it turns
out that the underlying V8 API calls actually create new local handles,
hence they should only be used inside an active HandleScope.

The `InContext` trait has been removed.

A test exercising `ContextScope` and the `get_*_context()` methods
mentioned above was added.

Closes: #248.
2020-02-12 22:00:31 -08:00
Andy Finch
ffdf69bd00
Add AArch64/ARM64 builds and tests (#266) 2020-02-12 18:43:38 -08:00
Bert Belder
432edd9f24
Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
Ryan Dahl
47aafbc62e
Add compile_fail test for boxed Local (#275) 2020-02-12 14:45:14 -08:00
Ryan Dahl
d893a050c0 v0.3.0 2020-02-12 11:46:28 -05:00
Ryan Dahl
27277ad801
Add IsolateHandle (#274)
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2020-02-12 11:33:58 -05:00
Ryan Dahl
32abe84dc6
Remove v8::Locker (#272)
This patch clarifies that v8::Isolate is a single threaded creature,
which can only be accessed from other threads in special circumstances.
To ensure optimal operation in Deno, we remove v8::Locker, which ought
to be unnecessary when a thread is dedicated to each Isolate and the
Isolates never move between threads.

There are valid use-cases for v8::Locker, and we hope to address them in
future versions of rusty_v8.

Co-authored-by: Bert Belder <bertbelder@gmail.com>
2020-02-11 17:01:27 -05:00
Nikolai Vavilov
46bf0989fe
Add a note about building on Windows (#271) 2020-02-10 11:56:59 -05:00
Ryan Dahl
d5ae74cfad
Upgrade Rust to 1.41.0 (#264) 2020-01-30 21:58:05 -05:00
Ryan Dahl
4f449b6ec6
Upgrade V8 to 8.1.310 (#263)
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2020-01-30 20:44:28 -05:00
Ryan Dahl
87fdcdc131
dedup inspector client/channel test implementations (#262) 2020-01-29 13:11:22 -05:00
Ryan Dahl
3dbf414752
v0.2.1 2020-01-28 18:27:25 -05:00
Ryan Dahl
71c650bc05
Put gn_ninja_binaries in target/debug instead of out_dir (#261) 2020-01-28 18:27:11 -05:00
Ryan Dahl
62a52e0241
Do not use std::os::raw::c_int in public API (#259) 2020-01-28 17:16:31 -05:00
Ryan Dahl
2e61735f44
add test for schedule_pause_on_next_statement (#258) 2020-01-28 16:33:34 -05:00
Ben Noordhuis
9e14f18347 Add Object::creation_context() (#255)
And also Array::creation_context(), Function::creation_context(), etc.,
because they inherit from Object.
2020-01-26 17:42:28 +01:00
Ben Noordhuis
683aa2b2a9 Add V8InspectorClientImpl::console_api_message() (#252)
This makes it possible to intercept console.log() messages through
the V8 inspector API.
2020-01-24 09:33:54 -05:00
Ryan Dahl
6303158de0 Add no_inline_line_tables support 2020-01-23 14:53:04 -05:00