aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_runtime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r--components/script/script_runtime.rs15
1 files changed, 8 insertions, 7 deletions
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs
index 5ce21f01366..e712fb8d90f 100644
--- a/components/script/script_runtime.rs
+++ b/components/script/script_runtime.rs
@@ -52,7 +52,7 @@ use js::jsapi::StreamConsumer as JSStreamConsumer;
use js::jsapi::{BuildIdCharVector, DisableIncrementalGC, GCDescription, GCProgress};
use js::jsapi::{Dispatchable as JSRunnable, Dispatchable_MaybeShuttingDown};
use js::jsapi::{
- GCReason, JSGCInvocationKind, JSGCStatus, JS_AddExtraGCRootsTracer,
+ GCReason, GCOptions, JSGCStatus, JS_AddExtraGCRootsTracer,
JS_RequestInterruptCallback, JS_SetGCCallback,
};
use js::jsapi::{HandleObject, Heap, JobQueue};
@@ -791,13 +791,14 @@ unsafe extern "C" fn gc_slice_callback(
};
if !desc.is_null() {
let desc: &GCDescription = &*desc;
- let invocation_kind = match desc.invocationKind_ {
- JSGCInvocationKind::GC_NORMAL => "GC_NORMAL",
- JSGCInvocationKind::GC_SHRINK => "GC_SHRINK",
- };
+ let options = match desc.options_ {
+ GCOptions::Normal => "Normal",
+ GCOptions::Shrink => "Shrink",
+ GCOptions::Shutdown => "Shutdown",
+ };
println!(
- " isZone={}, invocation_kind={}",
- desc.isZone_, invocation_kind
+ " isZone={}, options={}",
+ desc.isZone_, options
);
}
let _ = stdout().flush();