Changeset 96677 in webkit for trunk/Source/JavaScriptCore/jit/JITStubs.cpp
- Timestamp:
- Oct 4, 2011, 10:02:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/JITStubs.cpp
r96673 r96677 3657 3657 if (scrutinee.isInt32()) 3658 3658 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(scrutinee.asInt32()).executableAddress(); 3659 if (scrutinee.isDouble()) { 3660 double value = scrutinee.asDouble(); 3661 int32_t int32Value = value; 3662 if (int32Value == value) 3663 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(int32Value).executableAddress(); 3664 } 3659 if (scrutinee.isDouble() && scrutinee.asDouble() == static_cast<int32_t>(scrutinee.asDouble())) 3660 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(static_cast<int32_t>(scrutinee.asDouble())).executableAddress(); 3665 3661 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiDefault.executableAddress(); 3666 3662 }
Note:
See TracChangeset
for help on using the changeset viewer.