From 1cac08b9a2d2171593fc6737e1b649d81ff39784 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 26 Jun 2017 22:20:37 +0200 Subject: Remove remaining conditional GCZeal code. Creates stubs: jsgc.h/cpp VerifyBarriers() stub MaybeVerifyBarriers() stub GCRuntime::computeNonIncrementalMarkingForValidation() stub GCRuntime::validateIncrementalMarking() stub GCRuntime::finishMarkingValidation() stub GCRuntime::pushZealSelectedObjects() stub bool useZeal? GCRuntime::runDebugGC() stub XPConnect: nsXPCComponents_Utils::SetGCZeal() stub (always NS_OK) --- js/src/jsgc.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'js/src/jsgc.h') diff --git a/js/src/jsgc.h b/js/src/jsgc.h index 79ac9596c..c0d86781d 100644 --- a/js/src/jsgc.h +++ b/js/src/jsgc.h @@ -1264,19 +1264,6 @@ enum VerifierType { PreBarrierVerifier }; -#ifdef JS_GC_ZEAL - -extern const char* ZealModeHelpText; - -/* Check that write barriers have been used correctly. See jsgc.cpp. */ -void -VerifyBarriers(JSRuntime* rt, VerifierType type); - -void -MaybeVerifyBarriers(JSContext* cx, bool always = false); - -#else - static inline void VerifyBarriers(JSRuntime* rt, VerifierType type) { @@ -1287,8 +1274,6 @@ MaybeVerifyBarriers(JSContext* cx, bool always = false) { } -#endif - /* * Instances of this class set the |JSRuntime::suppressGC| flag for the duration * that they are live. Use of this class is highly discouraged. Please carefully -- cgit v1.2.3 From 77a482feace5aed4a61245d5894994a50517aa40 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 26 Jun 2017 23:40:37 +0200 Subject: Remove VerifyBarriers() and MaybeVerifyBarriers() stubs and callers. --- js/src/jsgc.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'js/src/jsgc.h') diff --git a/js/src/jsgc.h b/js/src/jsgc.h index c0d86781d..7ad176d84 100644 --- a/js/src/jsgc.h +++ b/js/src/jsgc.h @@ -1264,16 +1264,6 @@ enum VerifierType { PreBarrierVerifier }; -static inline void -VerifyBarriers(JSRuntime* rt, VerifierType type) -{ -} - -static inline void -MaybeVerifyBarriers(JSContext* cx, bool always = false) -{ -} - /* * Instances of this class set the |JSRuntime::suppressGC| flag for the duration * that they are live. Use of this class is highly discouraged. Please carefully -- cgit v1.2.3