Changeset 194560 in webkit
- Timestamp:
- Jan 4, 2016, 2:53:57 PM (9 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r194559 r194560 1 2016-01-04 Mark Lam <mark.lam@apple.com> 2 3 isUntypedSpeculationForArithmetic is wrong. 4 https://bugs.webkit.org/show_bug.cgi?id=152708 5 6 Reviewed by Filip Pizlo. 7 8 The isUntypedSpeculation...() checks should return true is we ever see 9 non-numeric types, regardless of whether numeric types are seen or not. 10 Previously, they only return true if we only see non-numeric types, and false if 11 we ever see numeric types. 12 13 This patch is perf neutral on both x86_64 and x86. 14 15 * bytecode/SpeculatedType.h: 16 (JSC::isUntypedSpeculationForArithmetic): 17 (JSC::isUntypedSpeculationForBitOps): 18 1 19 2016-01-04 Tim Horton <timothy_horton@apple.com> 2 20 -
trunk/Source/JavaScriptCore/bytecode/SpeculatedType.h
r194113 r194560 388 388 inline bool isUntypedSpeculationForArithmetic(SpeculatedType value) 389 389 { 390 return ! (value &(SpecFullNumber | SpecBoolean));390 return !!(value & ~(SpecFullNumber | SpecBoolean)); 391 391 } 392 392 393 393 inline bool isUntypedSpeculationForBitOps(SpeculatedType value) 394 394 { 395 return ! (value &(SpecFullNumber | SpecBoolean | SpecOther));395 return !!(value & ~(SpecFullNumber | SpecBoolean | SpecOther)); 396 396 } 397 397
Note:
See TracChangeset
for help on using the changeset viewer.