Changeset 94930 in webkit
- Timestamp:
- Sep 11, 2011 2:45:40 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r94929 r94930 1 2011-09-10 Sam Weinig <sam@webkit.org> 2 3 De-virtualize JSCell::isGetterSetter, type information is available for it 4 https://bugs.webkit.org/show_bug.cgi?id=67902 5 6 Reviewed by Dan Bernstein. 7 8 * runtime/GetterSetter.cpp: 9 * runtime/GetterSetter.h: 10 Remove override of isGetterSetter. 11 12 * runtime/JSCell.cpp: 13 * runtime/JSCell.h: 14 De-virtualize and remove silly base implementation. 15 16 * runtime/Structure.h: 17 (JSC::JSCell::isGetterSetter): 18 Use type info to determine getter-setter-hood. 19 1 20 2011-09-09 Oliver Hunt <oliver@apple.com> 2 21 -
trunk/Source/JavaScriptCore/JavaScriptCore.exp
r94929 r94930 559 559 __ZNK3JSC6JSCell11toPrimitiveEPNS_9ExecStateENS_22PreferredPrimitiveTypeE 560 560 __ZNK3JSC6JSCell12toThisObjectEPNS_9ExecStateE 561 __ZNK3JSC6JSCell14isGetterSetterEv562 561 __ZNK3JSC6JSCell8toNumberEPNS_9ExecStateE 563 562 __ZNK3JSC6JSCell8toObjectEPNS_9ExecStateEPNS_14JSGlobalObjectE -
trunk/Source/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def
r94929 r94930 237 237 ?isDataDescriptor@PropertyDescriptor@JSC@@QBE_NXZ 238 238 ?isDynamicScope@JSGlobalObject@JSC@@UBE_NAA_N@Z 239 ?isGetterSetter@JSCell@JSC@@UBE_NXZ240 239 ?isHostFunctionNonInline@JSFunction@JSC@@ABE_NXZ 241 240 ?isMainThread@WTF@@YA_NXZ -
trunk/Source/JavaScriptCore/runtime/GetterSetter.cpp
r86499 r94930 43 43 } 44 44 45 bool GetterSetter::isGetterSetter() const46 {47 return true;48 }49 50 45 } // namespace JSC -
trunk/Source/JavaScriptCore/runtime/GetterSetter.h
r94929 r94930 68 68 69 69 private: 70 virtual bool isGetterSetter() const;71 72 70 WriteBarrier<JSObject> m_getter; 73 71 WriteBarrier<JSObject> m_setter; -
trunk/Source/JavaScriptCore/runtime/JSCell.cpp
r94919 r94930 118 118 } 119 119 120 bool JSCell::isGetterSetter() const121 {122 return false;123 }124 125 120 JSValue JSCell::toPrimitive(ExecState*, PreferredPrimitiveType) const 126 121 { -
trunk/Source/JavaScriptCore/runtime/JSCell.h
r94929 r94930 88 88 bool isString() const; 89 89 bool isObject() const; 90 virtualbool isGetterSetter() const;90 bool isGetterSetter() const; 91 91 bool inherits(const ClassInfo*) const; 92 92 virtual bool isAPIValueWrapper() const { return false; } -
trunk/Source/JavaScriptCore/runtime/Structure.h
r94929 r94930 313 313 } 314 314 315 inline bool JSCell::isGetterSetter() const 316 { 317 return m_structure->typeInfo().type() == GetterSetterType; 318 } 319 315 320 inline const ClassInfo* JSCell::classInfo() const 316 321 {
Note: See TracChangeset
for help on using the changeset viewer.