Changeset 155564 in webkit for trunk/Source/JavaScriptCore/dfg/DFGValueSource.h
- Timestamp:
- Sep 11, 2013, 2:24:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGValueSource.h
r153121 r155564 32 32 33 33 #include "DFGCommon.h" 34 #include "DFGFlushFormat.h" 34 35 #include "DFGMinifiedID.h" 35 36 #include "DataFormat.h" … … 128 129 } 129 130 130 static ValueSource forSpeculation(SpeculatedType prediction) 131 { 132 if (isInt32Speculation(prediction)) 131 static ValueSource forFlushFormat(FlushFormat format) 132 { 133 switch (format) { 134 case DeadFlush: 135 return ValueSource(SourceIsDead); 136 case FlushedJSValue: 137 return ValueSource(ValueInJSStack); 138 case FlushedDouble: 139 return ValueSource(DoubleInJSStack); 140 case FlushedInt32: 133 141 return ValueSource(Int32InJSStack); 134 if (isCellSpeculation(prediction))142 case FlushedCell: 135 143 return ValueSource(CellInJSStack); 136 if (isBooleanSpeculation(prediction))144 case FlushedBoolean: 137 145 return ValueSource(BooleanInJSStack); 138 return ValueSource(ValueInJSStack); 146 } 147 RELEASE_ASSERT_NOT_REACHED(); 148 return ValueSource(); 139 149 } 140 150
Note:
See TracChangeset
for help on using the changeset viewer.