Changeset 196272 in webkit for trunk/Source/JavaScriptCore/runtime/CodeCache.cpp
- Timestamp:
- Feb 8, 2016, 2:31:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/CodeCache.cpp
r194449 r196272 1 1 /* 2 * Copyright (C) 2012 Apple Inc. All Rights Reserved.2 * Copyright (C) 2012, 2016 Apple Inc. All Rights Reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 88 88 SourceCodeKey key = SourceCodeKey(source, String(), CacheTypes<UnlinkedCodeBlockType>::codeType, builtinMode, strictMode, thisTDZMode); 89 89 SourceCodeValue* cache = m_sourceCode.findCacheAndUpdateAge(key); 90 bool canCache = debuggerMode == DebuggerOff && profilerMode == ProfilerOff && !vm.typeProfiler() && !vm.controlFlowProfiler(); 90 // FIXME: We should do something smart for TDZ instead of just disabling caching. 91 // https://bugs.webkit.org/show_bug.cgi?id=154010 92 bool canCache = debuggerMode == DebuggerOff && profilerMode == ProfilerOff && !vm.typeProfiler() && !vm.controlFlowProfiler() && !variablesUnderTDZ->size(); 91 93 if (cache && canCache) { 92 94 UnlinkedCodeBlockType* unlinkedCodeBlock = jsCast<UnlinkedCodeBlockType*>(cache->cell.get());
Note:
See TracChangeset
for help on using the changeset viewer.