[Webkit-unassigned] [Bug 135305] CodeCache should not cache when the WebInspector is open

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 25 18:43:26 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=135305





--- Comment #1 from Saam Barati <sbarati at apple.com>  2014-07-25 18:43:40 PST ---
(In reply to comment #0)
> The WebInspector often uses source code IDs to identify unique scripts. If CodeCache is turned on, it may determine two scripts are the same because their text contents are the same, when indeed the two scripts come from discreet websites, and when the cache returns a CodeBlock, it doesn't change it's originating source ID. This has an especially perverse effect when high fidelity type profiling is enabled because the type profiler uses source code IDs in JavaScriptCore to correlate the unique identity of scripts with the WebInspector. This also has another perverse effect that when type profiling is enabled then disabled: JavaScriptCore recompiles all scripts because type profiling is only enabled in the LLInt. If type profiling is enabled then disabled, and the CodeCache successfully caches a script that had this profiling enabled, but type profiling is currently disabled, it will try to tier up a CodeBlock to the baseline JIT that contains the opcodes for type profiling, and thi


This is false. CodeCache does respect the files that the inspector is viewing. My problem is that I compiled code based on a global VM flag, but the CodeCache respects caching on a GlobalObject basis.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list