Changeset 167550 in webkit
- Timestamp:
- Apr 19, 2014, 3:09:51 PM (12 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
runtime/NameInstance.h (modified) (1 diff)
-
runtime/NumberPrototype.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r167548 r167550 1 2014-04-19 Andreas Kling <akling@apple.com> 2 3 Two little shortcuts to the JSType. 4 <https://webkit.org/b/131896> 5 6 Tweak two sites that take the long road through JSCell::structure()->typeInfo() 7 to look at data that's already in JSCell::type(). 8 9 Reviewed by Darin Adler. 10 11 * runtime/NameInstance.h: 12 (JSC::isName): 13 * runtime/NumberPrototype.cpp: 14 (JSC::toThisNumber): 15 1 16 2014-04-19 Filip Pizlo <fpizlo@apple.com> 2 17 -
trunk/Source/JavaScriptCore/runtime/NameInstance.h
r154038 r167550 70 70 inline bool isName(JSValue v) 71 71 { 72 return v.isCell() && v.asCell()-> structure()->typeInfo().isName();72 return v.isCell() && v.asCell()->type() == NameInstanceType; 73 73 } 74 74 -
trunk/Source/JavaScriptCore/runtime/NumberPrototype.cpp
r166493 r167550 105 105 } 106 106 107 if (thisValue.isCell() && thisValue.asCell()-> structure()->typeInfo().isNumberObject()) {107 if (thisValue.isCell() && thisValue.asCell()->type() == NumberObjectType) { 108 108 x = static_cast<const NumberObject*>(thisValue.asCell())->internalValue().asNumber(); 109 109 return true;
Note:
See TracChangeset
for help on using the changeset viewer.