From 50f6ced9fc76b71b4685d8363d9615204ad6c897 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Thu, 23 Nov 2017 06:33:06 +0100 Subject: Remove unnecessary InvalidateCompilerOutputsForScript call. --- js/src/vm/TypeInference.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'js/src/vm/TypeInference.cpp') diff --git a/js/src/vm/TypeInference.cpp b/js/src/vm/TypeInference.cpp index 5b55ba947..2a7762e4f 100644 --- a/js/src/vm/TypeInference.cpp +++ b/js/src/vm/TypeInference.cpp @@ -1511,18 +1511,6 @@ js::FinishCompilation(JSContext* cx, HandleScript script, CompilerConstraintList return true; } -void -js::InvalidateCompilerOutputsForScript(JSContext* cx, HandleScript script) -{ - TypeZone& types = cx->zone()->types; - if (types.compilerOutputs) { - for (auto& co : *types.compilerOutputs) { - if (co.script() == script) - co.invalidate(); - } - } -} - static void CheckDefinitePropertiesTypeSet(JSContext* cx, TemporaryTypeSet* frozen, StackTypeSet* actual) { -- cgit v1.2.3