diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2017-11-23 06:33:06 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-08 21:21:27 +0100 |
commit | 50f6ced9fc76b71b4685d8363d9615204ad6c897 (patch) | |
tree | 098f58f2a1e66bb7162e6fafc3d196ce67084fd7 /js/src/vm | |
parent | 984169280b6aa8d27bd06dafc7b7224159f1c6c6 (diff) | |
download | UXP-50f6ced9fc76b71b4685d8363d9615204ad6c897.tar UXP-50f6ced9fc76b71b4685d8363d9615204ad6c897.tar.gz UXP-50f6ced9fc76b71b4685d8363d9615204ad6c897.tar.lz UXP-50f6ced9fc76b71b4685d8363d9615204ad6c897.tar.xz UXP-50f6ced9fc76b71b4685d8363d9615204ad6c897.zip |
Remove unnecessary InvalidateCompilerOutputsForScript call.
Diffstat (limited to 'js/src/vm')
-rw-r--r-- | js/src/vm/TypeInference.cpp | 12 | ||||
-rw-r--r-- | js/src/vm/TypeInference.h | 4 |
2 files changed, 0 insertions, 16 deletions
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) { diff --git a/js/src/vm/TypeInference.h b/js/src/vm/TypeInference.h index 45b2711e2..9ba1c3cc8 100644 --- a/js/src/vm/TypeInference.h +++ b/js/src/vm/TypeInference.h @@ -1093,10 +1093,6 @@ bool FinishCompilation(JSContext* cx, HandleScript script, CompilerConstraintList* constraints, RecompileInfo* precompileInfo, bool* isValidOut); -// Reset any CompilerOutput present for a script. -void -InvalidateCompilerOutputsForScript(JSContext* cx, HandleScript script); - // Update the actual types in any scripts queried by constraints with any // speculative types added during the definite properties analysis. void |