mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-21 20:28:58 +00:00
Roll V8 to include new patches (#1549)
This commit is contained in:
parent
83573e5cff
commit
97291d7290
@ -164,6 +164,11 @@ void v8__Isolate__Exit(v8::Isolate* isolate) { isolate->Exit(); }
|
||||
|
||||
v8::Isolate* v8__Isolate__GetCurrent() { return v8::Isolate::GetCurrent(); }
|
||||
|
||||
const v8::Data* v8__Isolate__GetCurrentHostDefinedOptions(
|
||||
v8::Isolate* isolate) {
|
||||
return maybe_local_to_ptr(isolate->GetCurrentHostDefinedOptions());
|
||||
}
|
||||
|
||||
void v8__Isolate__MemoryPressureNotification(v8::Isolate* isolate,
|
||||
v8::MemoryPressureLevel level) {
|
||||
isolate->MemoryPressureNotification(level);
|
||||
|
@ -412,6 +412,9 @@ extern "C" {
|
||||
fn v8__Isolate__Enter(this: *mut Isolate);
|
||||
fn v8__Isolate__Exit(this: *mut Isolate);
|
||||
fn v8__Isolate__GetCurrent() -> *mut Isolate;
|
||||
fn v8__Isolate__GetCurrentHostDefinedOptions(
|
||||
this: *mut Isolate,
|
||||
) -> *const Data;
|
||||
fn v8__Isolate__MemoryPressureNotification(this: *mut Isolate, level: u8);
|
||||
fn v8__Isolate__ClearKeptObjects(isolate: *mut Isolate);
|
||||
fn v8__Isolate__LowMemoryNotification(isolate: *mut Isolate);
|
||||
@ -1425,6 +1428,18 @@ impl Isolate {
|
||||
.unwrap();
|
||||
snapshot_creator.add_context_data(context, data)
|
||||
}
|
||||
|
||||
/// Returns the host defined options set for currently running script or
|
||||
/// module, if available.
|
||||
#[inline(always)]
|
||||
pub fn get_current_host_defined_options<'s>(
|
||||
&mut self,
|
||||
scope: &mut HandleScope<'s, ()>,
|
||||
) -> Option<Local<'s, Data>> {
|
||||
unsafe {
|
||||
scope.cast_local(|_| v8__Isolate__GetCurrentHostDefinedOptions(self))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) struct IsolateAnnex {
|
||||
|
2
v8
2
v8
@ -1 +1 @@
|
||||
Subproject commit e5daef104abeaaa4b3c8c206405ed437f30081ae
|
||||
Subproject commit 4be08c1170fb989a22870a5602b2707304a62338
|
Loading…
Reference in New Issue
Block a user