Changeset 207437 in webkit
- Timestamp:
- Oct 17, 2016 3:09:29 PM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r207434 r207437 1 2016-10-17 Yusuke Suzuki <utatane.tea@gmail.com> 2 3 [DOMJIT][JSC] Add Option::useDOMJIT 4 https://bugs.webkit.org/show_bug.cgi?id=163457 5 6 Reviewed by Saam Barati. 7 8 Add an option to switch the DOMJIT optimization. 9 10 * bytecode/PolymorphicAccess.cpp: 11 (JSC::AccessCase::generateImpl): 12 * dfg/DFGByteCodeParser.cpp: 13 (JSC::DFG::ByteCodeParser::handleGetById): 14 * runtime/Options.cpp: 15 (JSC::recomputeDependentOptions): 16 * runtime/Options.h: 17 1 18 2016-10-17 Filip Pizlo <fpizlo@apple.com> 2 19 -
trunk/Source/JavaScriptCore/bytecode/PolymorphicAccess.cpp
r207428 r207437 950 950 } 951 951 952 if ( m_type == CustomAccessorGetter && m_rareData->domJIT) {952 if (Options::useDOMJIT() && m_type == CustomAccessorGetter && m_rareData->domJIT) { 953 953 // We do not need to emit CheckDOM operation since structure check ensures 954 954 // that the structure of the given base value is structure()! So all we should -
trunk/Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
r207369 r207437 3303 3303 // Special path for custom accessors since custom's offset does not have any meanings. 3304 3304 // So, this is completely different from Simple one. But we have a chance to optimize it when we use DOMJIT. 3305 if ( getByIdStatus.isCustom()) {3305 if (Options::useDOMJIT() && getByIdStatus.isCustom()) { 3306 3306 ASSERT(getByIdStatus.numVariants() == 1); 3307 3307 ASSERT(!getByIdStatus.makesCalls()); -
trunk/Source/JavaScriptCore/runtime/Options.cpp
r205462 r207437 309 309 Options::useDFGJIT() = false; 310 310 Options::useFTLJIT() = false; 311 Options::useDOMJIT() = false; 311 312 #endif 312 313 #if !ENABLE(YARR_JIT) -
trunk/Source/JavaScriptCore/runtime/Options.h
r207432 r207437 109 109 v(bool, useDFGJIT, true, Normal, "allows the DFG JIT to be used if true") \ 110 110 v(bool, useRegExpJIT, true, Normal, "allows the RegExp JIT to be used if true") \ 111 v(bool, useDOMJIT, true, Normal, "allows the DOMJIT to be used if true") \ 111 112 \ 112 113 v(bool, reportMustSucceedExecutableAllocations, false, Normal, nullptr) \
Note: See TracChangeset
for help on using the changeset viewer.