Changeset 204112 in webkit for trunk/Source/JavaScriptCore/dfg/DFGInPlaceAbstractState.cpp
- Timestamp:
- Aug 3, 2016, 8:43:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGInPlaceAbstractState.cpp
r203921 r204112 42 42 InPlaceAbstractState::InPlaceAbstractState(Graph& graph) 43 43 : m_graph(graph) 44 , m_abstractValues(graph.abstractValuesCache()) 44 45 , m_variables(m_graph.m_codeBlock->numParameters(), graph.m_localVars) 45 46 , m_block(0) … … 56 57 ASSERT(basicBlock->variablesAtTail.numberOfLocals() == basicBlock->valuesAtTail.numberOfLocals()); 57 58 ASSERT(basicBlock->variablesAtHead.numberOfLocals() == basicBlock->variablesAtTail.numberOfLocals()); 59 60 // Certain phases insert nodes in a block after running through it. 61 // We cannot reserve the space for AbstractValues when initializing AbstractState because the number of values 62 // can increase as we execute. Instead, we increase the size as needed before processing each block. 63 m_abstractValues.resize(m_graph.maxNodeCount()); 58 64 59 65 for (size_t i = 0; i < basicBlock->size(); i++)
Note:
See TracChangeset
for help on using the changeset viewer.