Changeset 284726 in webkit for trunk/Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp
- Timestamp:
- Oct 22, 2021, 4:31:08 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp
r284664 r284726 840 840 // Having a bad time clears the structureCache, and so it should invalidate this structure. 841 841 bool isHavingABadTime = globalObject->isHavingABadTime(); 842 WTF::loadLoadFence();843 if (!isHavingABadTime)844 m_graph.watchpoints().addLazily(globalObject->havingABadTimeWatchpoint());845 842 // Normally, we would always install a watchpoint. In this case, however, if we haveABadTime, we 846 843 // still want to optimize. There is no watchpoint for that case though, so we need to make sure this load 847 844 // does not get hoisted above the check. 848 845 WTF::loadLoadFence(); 849 structure = globalObject->vm().structureCache 850 .emptyObjectStructureConcurrently(globalObject, base.getObject(), JSFinalObject::defaultInlineCapacity()); 846 if (!isHavingABadTime) 847 m_graph.watchpoints().addLazily(globalObject->havingABadTimeWatchpoint()); 848 structure = globalObject->vm().structureCache.emptyObjectStructureConcurrently(globalObject, base.getObject(), JSFinalObject::defaultInlineCapacity()); 851 849 } 852 850
Note:
See TracChangeset
for help on using the changeset viewer.