Changeset 254244 in webkit
- Timestamp:
- Jan 8, 2020, 6:04:19 PM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
bytecode/Instruction.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r254241 r254244 1 2020-01-08 Michael Saboff <msaboff@apple.com> 2 3 Instruction.h: Multiplication result converted to larger type 4 https://bugs.webkit.org/show_bug.cgi?id=205945 5 6 Reviewed by Mark Lam. 7 8 * bytecode/Instruction.h: 9 (JSC::BaseInstruction::size const): 10 Changed the types to size_t so that the computation is computed accordingly. 11 12 1 13 2020-01-08 Yusuke Suzuki <ysuzuki@apple.com> 2 14 -
trunk/Source/JavaScriptCore/bytecode/Instruction.h
r253904 r254244 119 119 { 120 120 auto sizeShiftAmount = this->sizeShiftAmount<Traits>(); 121 autoprefixSize = sizeShiftAmount ? 1 : 0;122 auto operandSize = 1<< sizeShiftAmount;121 size_t prefixSize = sizeShiftAmount ? 1 : 0; 122 size_t operandSize = static_cast<size_t>(1) << sizeShiftAmount; 123 123 size_t sizeOfBytecode = 1; 124 124 return sizeOfBytecode + (Traits::opcodeLengths[opcodeID<Traits>()] - 1) * operandSize + prefixSize;
Note:
See TracChangeset
for help on using the changeset viewer.