Changeset 40111 in webkit for trunk/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Jan 21, 2009, 8:28:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/Interpreter.cpp
r40108 r40111 3144 3144 if (scrutinee.isInt32Fast()) 3145 3145 vPC += callFrame->codeBlock()->immediateSwitchJumpTable(tableIndex).offsetForValue(scrutinee.getInt32Fast(), defaultOffset); 3146 else 3147 vPC += defaultOffset; 3146 else { 3147 int32_t value; 3148 if (scrutinee.numberToInt32(value)) 3149 vPC += callFrame->codeBlock()->immediateSwitchJumpTable(tableIndex).offsetForValue(value, defaultOffset); 3150 else 3151 vPC += defaultOffset; 3152 } 3148 3153 NEXT_INSTRUCTION(); 3149 3154 } … … 5969 5974 if (scrutinee.isInt32Fast()) 5970 5975 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(scrutinee.getInt32Fast()); 5971 5972 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiDefault; 5976 else { 5977 int32_t value; 5978 if (scrutinee.numberToInt32(value)) 5979 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(value); 5980 else 5981 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiDefault; 5982 } 5973 5983 } 5974 5984
Note:
See TracChangeset
for help on using the changeset viewer.