Changeset 161399 in webkit for trunk/Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp
- Timestamp:
- Jan 6, 2014, 8:52:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp
r161126 r161399 356 356 357 357 m_interpreter.execute(indexInBlock); 358 if (!m_state.isValid()) { 359 // If we invalidated then we shouldn't attempt to constant-fold. Here's an 360 // example: 361 // 362 // c: JSConstant(4.2) 363 // x: ValueToInt32(Check:Int32:@const) 364 // 365 // It would be correct for an analysis to assume that execution cannot 366 // proceed past @x. Therefore, constant-folding @x could be rather bad. But, 367 // the CFA may report that it found a constant even though it also reported 368 // that everything has been invalidated. This will only happen in a couple of 369 // the constant folding cases; most of them are also separately defensive 370 // about such things. 371 break; 372 } 358 373 if (!node->shouldGenerate() || m_state.didClobber() || node->hasConstant()) 359 374 continue;
Note:
See TracChangeset
for help on using the changeset viewer.