mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Changes for spidermomkey upgrade.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user