Changeset 117729 in webkit for trunk/Source/JavaScriptCore/runtime/JSGlobalData.cpp
- Timestamp:
- May 20, 2012, 10:42:56 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSGlobalData.cpp
r116818 r117729 57 57 #include <wtf/Threading.h> 58 58 #include <wtf/WTFThreadData.h> 59 60 #if ENABLE(DFG_JIT) 61 #include "ConservativeRoots.h" 62 #endif 59 63 60 64 #if ENABLE(REGEXP_TRACING) … … 451 455 } 452 456 457 #if ENABLE(DFG_JIT) 458 void JSGlobalData::gatherConservativeRoots(ConservativeRoots& conservativeRoots) 459 { 460 for (size_t i = 0; i < scratchBuffers.size(); i++) { 461 ScratchBuffer* scratchBuffer = scratchBuffers[i]; 462 if (scratchBuffer->activeLength()) { 463 void* bufferStart = scratchBuffer->dataBuffer(); 464 conservativeRoots.add(bufferStart, static_cast<void*>(static_cast<char*>(bufferStart) + scratchBuffer->activeLength())); 465 } 466 } 467 } 468 #endif 469 453 470 #if ENABLE(REGEXP_TRACING) 454 471 void JSGlobalData::addRegExpToTrace(RegExp* regExp)
Note:
See TracChangeset
for help on using the changeset viewer.