Changeset 98501 in webkit
- Timestamp:
- Oct 26, 2011 10:55:34 AM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 89 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSCallbackObject.h
r98422 r98501 173 173 } 174 174 175 using Parent::methodTable; 176 175 177 protected: 176 178 static const unsigned StructureFlags = ProhibitsPropertyCaching | OverridesGetOwnPropertySlot | ImplementsHasInstance | OverridesHasInstance | OverridesVisitChildren | OverridesGetPropertyNames | Parent::StructureFlags; … … 179 181 virtual UString className() const; 180 182 181 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);182 183 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 183 184 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/API/JSCallbackObjectFunctions.h
r98422 r98501 125 125 126 126 template <class Parent> 127 bool JSCallbackObject<Parent>::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)128 {129 return getOwnPropertySlot(this, exec, propertyName, slot);130 }131 132 template <class Parent>133 127 bool JSCallbackObject<Parent>::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 134 128 { … … 193 187 { 194 188 PropertySlot slot; 195 if ( getOwnPropertySlotVirtual(exec, propertyName, slot)) {189 if (methodTable()->getOwnPropertySlot(this, exec, propertyName, slot)) { 196 190 // Ideally we should return an access descriptor, but returning a value descriptor is better than nothing. 197 191 JSValue value = slot.getValue(exec, propertyName); -
trunk/Source/JavaScriptCore/ChangeLog
r98498 r98501 1 2011-10-26 Mark Hahnenberg <mhahnenberg@apple.com> 2 3 Remove getOwnPropertySlotVirtual 4 https://bugs.webkit.org/show_bug.cgi?id=70741 5 6 Reviewed by Geoffrey Garen. 7 8 Removed all declarations and definitions of getOwnPropertySlotVirtual. 9 Also replaced all call sites to getOwnPropertyVirtualVirtual with a 10 corresponding lookup in the MethodTable. 11 12 * API/JSCallbackObject.h: 13 * API/JSCallbackObjectFunctions.h: 14 (JSC::::getOwnPropertyDescriptor): 15 * JavaScriptCore.exp: 16 * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: 17 * debugger/DebuggerActivation.cpp: 18 (JSC::DebuggerActivation::getOwnPropertySlot): 19 * debugger/DebuggerActivation.h: 20 * runtime/Arguments.cpp: 21 * runtime/Arguments.h: 22 * runtime/ArrayConstructor.cpp: 23 * runtime/ArrayConstructor.h: 24 * runtime/ArrayPrototype.cpp: 25 * runtime/ArrayPrototype.h: 26 * runtime/BooleanPrototype.cpp: 27 * runtime/BooleanPrototype.h: 28 * runtime/DateConstructor.cpp: 29 * runtime/DateConstructor.h: 30 * runtime/DatePrototype.cpp: 31 * runtime/DatePrototype.h: 32 (JSC::DatePrototype::create): 33 * runtime/ErrorPrototype.cpp: 34 * runtime/ErrorPrototype.h: 35 * runtime/JSActivation.cpp: 36 * runtime/JSActivation.h: 37 * runtime/JSArray.cpp: 38 (JSC::JSArray::getOwnPropertySlotByIndex): 39 * runtime/JSArray.h: 40 * runtime/JSByteArray.cpp: 41 * runtime/JSByteArray.h: 42 * runtime/JSCell.cpp: 43 * runtime/JSCell.h: 44 * runtime/JSFunction.cpp: 45 (JSC::JSFunction::getOwnPropertyDescriptor): 46 (JSC::JSFunction::getOwnPropertyNames): 47 (JSC::JSFunction::put): 48 * runtime/JSFunction.h: 49 * runtime/JSGlobalObject.cpp: 50 * runtime/JSGlobalObject.h: 51 * runtime/JSNotAnObject.cpp: 52 * runtime/JSNotAnObject.h: 53 * runtime/JSONObject.cpp: 54 (JSC::Stringifier::Holder::appendNextProperty): 55 (JSC::Walker::walk): 56 * runtime/JSONObject.h: 57 * runtime/JSObject.cpp: 58 (JSC::JSObject::getOwnPropertySlotByIndex): 59 (JSC::JSObject::hasOwnProperty): 60 * runtime/JSObject.h: 61 (JSC::JSCell::fastGetOwnPropertySlot): 62 (JSC::JSObject::getPropertySlot): 63 (JSC::JSValue::get): 64 * runtime/JSStaticScopeObject.cpp: 65 * runtime/JSStaticScopeObject.h: 66 * runtime/JSString.cpp: 67 (JSC::JSString::getOwnPropertySlot): 68 * runtime/JSString.h: 69 * runtime/MathObject.cpp: 70 * runtime/MathObject.h: 71 (JSC::MathObject::create): 72 * runtime/NumberConstructor.cpp: 73 * runtime/NumberConstructor.h: 74 * runtime/NumberPrototype.cpp: 75 * runtime/NumberPrototype.h: 76 * runtime/ObjectConstructor.cpp: 77 * runtime/ObjectConstructor.h: 78 * runtime/ObjectPrototype.cpp: 79 * runtime/ObjectPrototype.h: 80 * runtime/RegExpConstructor.cpp: 81 * runtime/RegExpConstructor.h: 82 * runtime/RegExpMatchesArray.h: 83 (JSC::RegExpMatchesArray::createStructure): 84 * runtime/RegExpObject.cpp: 85 * runtime/RegExpObject.h: 86 * runtime/RegExpPrototype.cpp: 87 * runtime/RegExpPrototype.h: 88 * runtime/StringConstructor.cpp: 89 * runtime/StringConstructor.h: 90 * runtime/StringObject.cpp: 91 * runtime/StringObject.h: 92 * runtime/StringPrototype.cpp: 93 * runtime/StringPrototype.h: 94 1 95 2011-10-26 Alejandro G. Castro <alex@igalia.com> 2 96 -
trunk/Source/JavaScriptCore/JavaScriptCore.exp
r98422 r98501 170 170 __ZN3JSC14JSGlobalObject18getOwnPropertySlotEPNS_6JSCellEPNS_9ExecStateERKNS_10IdentifierERNS_12PropertySlotE 171 171 __ZN3JSC14JSGlobalObject24getOwnPropertyDescriptorEPNS_9ExecStateERKNS_10IdentifierERNS_18PropertyDescriptorE 172 __ZN3JSC14JSGlobalObject25getOwnPropertySlotVirtualEPNS_9ExecStateERKNS_10IdentifierERNS_12PropertySlotE173 172 __ZN3JSC14JSGlobalObject3putEPNS_6JSCellEPNS_9ExecStateERKNS_10IdentifierENS_7JSValueERNS_15PutPropertySlotE 174 173 __ZN3JSC14JSGlobalObject4initEPNS_8JSObjectE … … 261 260 __ZN3JSC6JSCell11getCallDataEPS0_RNS_8CallDataE 262 261 __ZN3JSC6JSCell16getConstructDataEPS0_RNS_13ConstructDataE 263 __ZN3JSC6JSCell25getOwnPropertySlotVirtualEPNS_9ExecStateERKNS_10IdentifierERNS_12PropertySlotE264 __ZN3JSC6JSCell25getOwnPropertySlotVirtualEPNS_9ExecStateEjRNS_12PropertySlotE265 262 __ZN3JSC6JSCell9getObjectEv 266 263 __ZN3JSC6JSLock12DropAllLocksC1ENS_14JSLockBehaviorE … … 328 325 __ZN3JSC8JSObject24getOwnPropertyDescriptorEPNS_9ExecStateERKNS_10IdentifierERNS_18PropertyDescriptorE 329 326 __ZN3JSC8JSObject25getOwnPropertySlotByIndexEPNS_6JSCellEPNS_9ExecStateEjRNS_12PropertySlotE 330 __ZN3JSC8JSObject25getOwnPropertySlotVirtualEPNS_9ExecStateEjRNS_12PropertySlotE331 327 __ZN3JSC8JSObject3putEPNS_6JSCellEPNS_9ExecStateERKNS_10IdentifierENS_7JSValueERNS_15PutPropertySlotE 332 328 __ZN3JSC8JSObject6s_infoE -
trunk/Source/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def
r98422 r98501 203 203 ?getOwnPropertySlotByIndex@JSByteArray@JSC@@SA_NPAVJSCell@2@PAVExecState@2@IAAVPropertySlot@2@@Z 204 204 ?getOwnPropertySlotByIndex@JSObject@JSC@@SA_NPAVJSCell@2@PAVExecState@2@IAAVPropertySlot@2@@Z 205 ?getOwnPropertySlotVirtual@JSCell@JSC@@MAE_NPAVExecState@2@ABVIdentifier@2@AAVPropertySlot@2@@Z206 ?getOwnPropertySlotVirtual@JSCell@JSC@@MAE_NPAVExecState@2@IAAVPropertySlot@2@@Z207 ?getOwnPropertySlotVirtual@JSGlobalObject@JSC@@UAE_NPAVExecState@2@ABVIdentifier@2@AAVPropertySlot@2@@Z208 ?getOwnPropertySlotVirtual@JSObject@JSC@@UAE_NPAVExecState@2@IAAVPropertySlot@2@@Z209 205 ?getPropertyDescriptor@JSObject@JSC@@QAE_NPAVExecState@2@ABVIdentifier@2@AAVPropertyDescriptor@2@@Z 210 206 ?getPropertyNames@JSObject@JSC@@UAEXPAVExecState@2@AAVPropertyNameArray@2@W4EnumerationMode@2@@Z -
trunk/Source/JavaScriptCore/debugger/DebuggerActivation.cpp
r98422 r98501 61 61 } 62 62 63 bool DebuggerActivation::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)64 {65 return getOwnPropertySlot(this, exec, propertyName, slot);66 }67 68 63 bool DebuggerActivation::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 69 64 { 70 return static_cast<DebuggerActivation*>(cell)->m_activation->getOwnPropertySlotVirtual(exec, propertyName, slot); 65 DebuggerActivation* thisObject = static_cast<DebuggerActivation*>(cell); 66 return thisObject->m_activation->methodTable()->getOwnPropertySlot(thisObject->m_activation.get(), exec, propertyName, slot); 71 67 } 72 68 -
trunk/Source/JavaScriptCore/debugger/DebuggerActivation.h
r98422 r98501 44 44 static void visitChildren(JSCell*, SlotVisitor&); 45 45 virtual UString className() const; 46 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&);47 46 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier& propertyName, PropertySlot&); 48 47 static void put(JSCell*, ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&); -
trunk/Source/JavaScriptCore/runtime/Arguments.cpp
r98422 r98501 146 146 } 147 147 148 bool Arguments::getOwnPropertySlotVirtual(ExecState* exec, unsigned i, PropertySlot& slot)149 {150 return getOwnPropertySlotByIndex(this, exec, i, slot);151 }152 153 148 bool Arguments::getOwnPropertySlotByIndex(JSCell* cell, ExecState* exec, unsigned i, PropertySlot& slot) 154 149 { … … 187 182 descriptor.setAccessorDescriptor(thrower, thrower, DontEnum | DontDelete | Getter | Setter); 188 183 defineOwnProperty(exec, exec->propertyNames().callee, descriptor, false); 189 }190 191 bool Arguments::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)192 {193 return getOwnPropertySlot(this, exec, propertyName, slot);194 184 } 195 185 -
trunk/Source/JavaScriptCore/runtime/Arguments.h
r98422 r98501 136 136 private: 137 137 void getArgumentsData(CallFrame*, JSFunction*&, ptrdiff_t& firstParameterIndex, Register*& argv, int& argc); 138 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&);139 138 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier& propertyName, PropertySlot&); 140 virtual bool getOwnPropertySlotVirtual(ExecState*, unsigned propertyName, PropertySlot&);141 139 static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&); 142 140 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/ArrayConstructor.cpp
r98203 r98501 64 64 } 65 65 66 bool ArrayConstructor::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot &slot)67 {68 return getOwnPropertySlot(this, exec, propertyName, slot);69 }70 71 66 bool ArrayConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot &slot) 72 67 { -
trunk/Source/JavaScriptCore/runtime/ArrayConstructor.h
r98203 r98501 52 52 private: 53 53 ArrayConstructor(JSGlobalObject*, Structure*); 54 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);55 54 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 56 55 -
trunk/Source/JavaScriptCore/runtime/ArrayPrototype.cpp
r98422 r98501 124 124 Base::finishCreation(globalObject->globalData()); 125 125 ASSERT(inherits(&s_info)); 126 }127 128 bool ArrayPrototype::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)129 {130 return getOwnPropertySlot(this, exec, propertyName, slot);131 126 } 132 127 -
trunk/Source/JavaScriptCore/runtime/ArrayPrototype.h
r97537 r98501 41 41 } 42 42 43 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);44 43 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 45 44 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/BooleanPrototype.cpp
r97537 r98501 63 63 } 64 64 65 bool BooleanPrototype::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot &slot)66 {67 return getOwnPropertySlot(this, exec, propertyName, slot);68 }69 70 65 bool BooleanPrototype::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot &slot) 71 66 { -
trunk/Source/JavaScriptCore/runtime/BooleanPrototype.h
r97537 r98501 50 50 private: 51 51 BooleanPrototype(ExecState*, Structure*); 52 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);53 52 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 54 53 -
trunk/Source/JavaScriptCore/runtime/DateConstructor.cpp
r98203 r98501 84 84 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, datePrototype, DontEnum | DontDelete | ReadOnly); 85 85 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(7), ReadOnly | DontEnum | DontDelete); 86 }87 88 bool DateConstructor::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot &slot)89 {90 return getOwnPropertySlot(this, exec, propertyName, slot);91 86 } 92 87 -
trunk/Source/JavaScriptCore/runtime/DateConstructor.h
r98203 r98501 55 55 static CallType getCallData(JSCell*, CallData&); 56 56 57 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);58 57 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 59 58 -
trunk/Source/JavaScriptCore/runtime/DatePrototype.cpp
r97826 r98501 444 444 } 445 445 446 bool DatePrototype::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)447 {448 return getOwnPropertySlot(this, exec, propertyName, slot);449 }450 451 446 bool DatePrototype::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 452 447 { -
trunk/Source/JavaScriptCore/runtime/DatePrototype.h
r97537 r98501 41 41 return prototype; 42 42 } 43 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);44 43 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 45 44 -
trunk/Source/JavaScriptCore/runtime/ErrorPrototype.cpp
r97537 r98501 63 63 } 64 64 65 bool ErrorPrototype::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot &slot)66 {67 return getOwnPropertySlot(this, exec, propertyName, slot);68 }69 70 65 bool ErrorPrototype::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot &slot) 71 66 { -
trunk/Source/JavaScriptCore/runtime/ErrorPrototype.h
r97537 r98501 53 53 54 54 private: 55 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);56 55 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 57 56 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/JSActivation.cpp
r98422 r98501 142 142 } 143 143 144 bool JSActivation::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)145 {146 return getOwnPropertySlot(this, exec, propertyName, slot);147 }148 149 144 bool JSActivation::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 150 145 { -
trunk/Source/JavaScriptCore/runtime/JSActivation.h
r98422 r98501 62 62 virtual bool isActivationObject() const { return true; } 63 63 64 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);65 64 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 66 65 virtual void getOwnPropertyNames(ExecState*, PropertyNameArray&, EnumerationMode); -
trunk/Source/JavaScriptCore/runtime/JSArray.cpp
r98422 r98501 246 246 } 247 247 248 bool JSArray::getOwnPropertySlotVirtual(ExecState* exec, unsigned i, PropertySlot& slot)249 {250 return getOwnPropertySlotByIndex(this, exec, i, slot);251 }252 253 248 bool JSArray::getOwnPropertySlotByIndex(JSCell* cell, ExecState* exec, unsigned i, PropertySlot& slot) 254 249 { … … 258 253 if (i >= storage->m_length) { 259 254 if (i > MAX_ARRAY_INDEX) 260 return thisObject-> getOwnPropertySlotVirtual(exec, Identifier::from(exec, i), slot);255 return thisObject->methodTable()->getOwnPropertySlot(thisObject, exec, Identifier::from(exec, i), slot); 261 256 return false; 262 257 } … … 279 274 280 275 return JSObject::getOwnPropertySlot(thisObject, exec, Identifier::from(exec, i), slot); 281 }282 283 bool JSArray::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)284 {285 return getOwnPropertySlot(this, exec, propertyName, slot);286 276 } 287 277 -
trunk/Source/JavaScriptCore/runtime/JSArray.h
r98422 r98501 95 95 } 96 96 97 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&);98 97 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier& propertyName, PropertySlot&); 99 virtual bool getOwnPropertySlotVirtual(ExecState*, unsigned propertyName, PropertySlot&);100 98 static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&); 101 99 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/JSByteArray.cpp
r98415 r98501 55 55 } 56 56 57 bool JSByteArray::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)58 {59 return getOwnPropertySlot(this, exec, propertyName, slot);60 }61 62 57 bool JSByteArray::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 63 58 { … … 81 76 } 82 77 return JSObject::getOwnPropertyDescriptor(exec, propertyName, descriptor); 83 }84 85 bool JSByteArray::getOwnPropertySlotVirtual(ExecState* exec, unsigned propertyName, PropertySlot& slot)86 {87 return getOwnPropertySlotByIndex(this, exec, propertyName, slot);88 78 } 89 79 -
trunk/Source/JavaScriptCore/runtime/JSByteArray.h
r98415 r98501 89 89 static Structure* createStructure(JSGlobalData&, JSGlobalObject*, JSValue prototype, const JSC::ClassInfo* = &s_info); 90 90 91 virtual bool getOwnPropertySlotVirtual(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);92 91 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); 93 virtual bool getOwnPropertySlotVirtual(JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);94 92 static bool getOwnPropertySlotByIndex(JSC::JSCell*, JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&); 95 93 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/JSCell.cpp
r98422 r98501 65 65 } 66 66 67 bool JSCell::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& identifier, PropertySlot& slot)68 {69 return getOwnPropertySlot(this, exec, identifier, slot);70 }71 72 67 bool JSCell::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& identifier, PropertySlot& slot) 73 68 { … … 80 75 slot.setUndefined(); 81 76 return true; 82 }83 84 bool JSCell::getOwnPropertySlotVirtual(ExecState* exec, unsigned identifier, PropertySlot& slot)85 {86 return getOwnPropertySlotByIndex(this, exec, identifier, slot);87 77 } 88 78 -
trunk/Source/JavaScriptCore/runtime/JSCell.h
r98422 r98501 130 130 131 131 // Base implementation; for non-object classes implements getPropertySlot. 132 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&);133 132 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier& propertyName, PropertySlot&); 134 virtual bool getOwnPropertySlotVirtual(ExecState*, unsigned propertyName, PropertySlot&);135 133 static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&); 136 134 -
trunk/Source/JavaScriptCore/runtime/JSFunction.cpp
r98422 r98501 196 196 } 197 197 198 bool JSFunction::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)199 {200 return getOwnPropertySlot(this, exec, propertyName, slot);201 }202 203 198 bool JSFunction::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 204 199 { … … 264 259 if (propertyName == exec->propertyNames().prototype) { 265 260 PropertySlot slot; 266 getOwnPropertySlotVirtual(exec, propertyName, slot);261 methodTable()->getOwnPropertySlot(this, exec, propertyName, slot); 267 262 return Base::getOwnPropertyDescriptor(exec, propertyName, descriptor); 268 263 } … … 309 304 // Make sure prototype has been reified. 310 305 PropertySlot slot; 311 getOwnPropertySlotVirtual(exec, exec->propertyNames().prototype, slot);306 methodTable()->getOwnPropertySlot(this, exec, exec->propertyNames().prototype, slot); 312 307 313 308 propertyNames.add(exec->propertyNames().arguments); … … 329 324 // following the rules set out in ECMA-262 8.12.9. 330 325 PropertySlot slot; 331 thisObject-> getOwnPropertySlotVirtual(exec, propertyName, slot);326 thisObject->methodTable()->getOwnPropertySlot(thisObject, exec, propertyName, slot); 332 327 } 333 328 if (thisObject->jsExecutable()->isStrictMode() && (propertyName == exec->propertyNames().arguments || propertyName == exec->propertyNames().caller)) { -
trunk/Source/JavaScriptCore/runtime/JSFunction.h
r98422 r98501 130 130 void finishCreation(ExecState*, FunctionExecutable*, ScopeChainNode*); 131 131 132 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);133 132 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 134 133 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp
r98415 r98501 430 430 } 431 431 432 bool JSGlobalObject::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)433 {434 return getOwnPropertySlot(this, exec, propertyName, slot);435 }436 437 432 bool JSGlobalObject::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 438 433 { -
trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h
r98415 r98501 183 183 static void visitChildren(JSCell*, SlotVisitor&); 184 184 185 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);186 185 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 187 186 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/JSNotAnObject.cpp
r98422 r98501 46 46 } 47 47 48 bool JSNotAnObject::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& identifier, PropertySlot& slot)49 {50 return getOwnPropertySlot(this, exec, identifier, slot);51 }52 53 48 // JSObject methods 54 49 bool JSNotAnObject::getOwnPropertySlot(JSCell*, ExecState* exec, const Identifier&, PropertySlot&) … … 56 51 ASSERT_UNUSED(exec, exec->hadException()); 57 52 return false; 58 }59 60 bool JSNotAnObject::getOwnPropertySlotVirtual(ExecState* exec, unsigned propertyName, PropertySlot& slot)61 {62 return getOwnPropertySlotByIndex(this, exec, propertyName, slot);63 53 } 64 54 -
trunk/Source/JavaScriptCore/runtime/JSNotAnObject.h
r98422 r98501 69 69 70 70 // JSObject methods 71 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&);72 71 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier& propertyName, PropertySlot&); 73 virtual bool getOwnPropertySlotVirtual(ExecState*, unsigned propertyName, PropertySlot&);74 72 static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&); 75 73 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/JSONObject.cpp
r98422 r98501 524 524 else { 525 525 PropertySlot slot(m_object.get()); 526 if (!m_object-> getOwnPropertySlotVirtual(exec, index, slot))526 if (!m_object->methodTable()->getOwnPropertySlotByIndex(m_object.get(), exec, index, slot)) 527 527 slot.setUndefined(); 528 528 if (exec->hadException()) … … 542 542 PropertySlot slot(m_object.get()); 543 543 Identifier& propertyName = m_propertyNames->propertyNameVector()[index]; 544 if (!m_object-> getOwnPropertySlotVirtual(exec, propertyName, slot))544 if (!m_object->methodTable()->getOwnPropertySlot(m_object.get(), exec, propertyName, slot)) 545 545 return true; 546 546 JSValue value = slot.getValue(exec, propertyName); … … 598 598 599 599 // ECMA 15.8 600 601 bool JSONObject::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)602 {603 return getOwnPropertySlot(this, exec, propertyName, slot);604 }605 600 606 601 bool JSONObject::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) … … 694 689 else { 695 690 PropertySlot slot; 696 if (array-> getOwnPropertySlotVirtual(m_exec, index, slot))691 if (array->methodTable()->getOwnPropertySlotByIndex(array, m_exec, index, slot)) 697 692 inValue = slot.getValue(m_exec, index); 698 693 else … … 756 751 } 757 752 PropertySlot slot; 758 if (object-> getOwnPropertySlotVirtual(m_exec, properties[index], slot))753 if (object->methodTable()->getOwnPropertySlot(object, m_exec, properties[index], slot)) 759 754 inValue = slot.getValue(m_exec, properties[index]); 760 755 else -
trunk/Source/JavaScriptCore/runtime/JSONObject.h
r97537 r98501 57 57 private: 58 58 JSONObject(JSGlobalObject*, Structure*); 59 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);60 59 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 61 60 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/JSObject.cpp
r98422 r98501 105 105 } 106 106 107 bool JSObject::getOwnPropertySlotVirtual(ExecState* exec, unsigned propertyName, PropertySlot& slot)108 {109 return getOwnPropertySlotByIndex(this, exec, propertyName, slot);110 }111 112 107 bool JSObject::getOwnPropertySlotByIndex(JSCell* cell, ExecState* exec, unsigned propertyName, PropertySlot& slot) 113 108 { 114 return static_cast<JSObject*>(cell)->getOwnPropertySlotVirtual(exec, Identifier::from(exec, propertyName), slot); 109 JSObject* thisObject = static_cast<JSObject*>(cell); 110 return thisObject->methodTable()->getOwnPropertySlot(thisObject, exec, Identifier::from(exec, propertyName), slot); 115 111 } 116 112 … … 279 275 { 280 276 PropertySlot slot; 281 return const_cast<JSObject*>(this)-> getOwnPropertySlotVirtual(exec, propertyName, slot);277 return const_cast<JSObject*>(this)->methodTable()->getOwnPropertySlot(const_cast<JSObject*>(this), exec, propertyName, slot); 282 278 } 283 279 -
trunk/Source/JavaScriptCore/runtime/JSObject.h
r98422 r98501 100 100 bool getPropertyDescriptor(ExecState*, const Identifier& propertyName, PropertyDescriptor&); 101 101 102 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&);103 102 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier& propertyName, PropertySlot&); 104 virtual bool getOwnPropertySlotVirtual(ExecState*, unsigned propertyName, PropertySlot&);105 103 static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&); 106 104 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); … … 521 519 } 522 520 523 ALWAYS_INLINE bool JSObject::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)524 {525 return getOwnPropertySlot(this, exec, propertyName, slot);526 }527 528 521 // It may seem crazy to inline a function this large, especially a virtual function, 529 522 // but it makes a big difference to property lookup that derived classes can inline their … … 538 531 if (!structure()->typeInfo().overridesGetOwnPropertySlot()) 539 532 return asObject(this)->inlineGetOwnPropertySlot(exec, propertyName, slot); 540 return getOwnPropertySlotVirtual(exec, propertyName, slot);533 return methodTable()->getOwnPropertySlot(this, exec, propertyName, slot); 541 534 } 542 535 … … 576 569 JSObject* object = this; 577 570 while (true) { 578 if (object-> getOwnPropertySlotVirtual(exec, propertyName, slot))571 if (object->methodTable()->getOwnPropertySlotByIndex(object, exec, propertyName, slot)) 579 572 return true; 580 573 JSValue prototype = object->prototype(); … … 797 790 JSCell* cell = const_cast<JSCell*>(asCell()); 798 791 while (true) { 799 if (cell-> getOwnPropertySlotVirtual(exec, propertyName, slot))792 if (cell->methodTable()->getOwnPropertySlotByIndex(cell, exec, propertyName, slot)) 800 793 return slot.getValue(exec, propertyName); 801 794 JSValue prototype = asObject(cell)->prototype(); -
trunk/Source/JavaScriptCore/runtime/JSStaticScopeObject.cpp
r98415 r98501 87 87 } 88 88 89 bool JSStaticScopeObject::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)90 {91 return getOwnPropertySlot(this, exec, propertyName, slot);92 }93 94 89 bool JSStaticScopeObject::getOwnPropertySlot(JSCell* cell, ExecState*, const Identifier& propertyName, PropertySlot& slot) 95 90 { -
trunk/Source/JavaScriptCore/runtime/JSStaticScopeObject.h
r98415 r98501 45 45 bool isDynamicScope(bool& requiresDynamicChecks) const; 46 46 virtual JSObject* toThisObject(ExecState*) const; 47 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);48 47 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 49 48 static void put(JSCell*, ExecState*, const Identifier&, JSValue, PutPropertySlot&); -
trunk/Source/JavaScriptCore/runtime/JSString.cpp
r98261 r98501 202 202 } 203 203 204 bool JSString::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)205 {206 return getOwnPropertySlot(this, exec, propertyName, slot);207 }208 209 204 bool JSString::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 210 205 { … … 222 217 for (JSValue prototype = exec->lexicalGlobalObject()->stringPrototype(); !prototype.isNull(); prototype = object->prototype()) { 223 218 object = asObject(prototype); 224 if (object-> getOwnPropertySlotVirtual(exec, propertyName, slot))219 if (object->methodTable()->getOwnPropertySlot(object, exec, propertyName, slot)) 225 220 return true; 226 221 } … … 256 251 } 257 252 258 bool JSString::getOwnPropertySlotVirtual(ExecState* exec, unsigned propertyName, PropertySlot& slot)259 {260 return getOwnPropertySlotByIndex(this, exec, propertyName, slot);261 }262 263 253 bool JSString::getOwnPropertySlotByIndex(JSCell* cell, ExecState* exec, unsigned propertyName, PropertySlot& slot) 264 254 { -
trunk/Source/JavaScriptCore/runtime/JSString.h
r98261 r98501 251 251 252 252 // Actually getPropertySlot, not getOwnPropertySlot (see JSCell). 253 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&);254 253 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier& propertyName, PropertySlot&); 255 virtual bool getOwnPropertySlotVirtual(ExecState*, unsigned propertyName, PropertySlot&);256 254 static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&); 257 255 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/MathObject.cpp
r97537 r98501 105 105 } 106 106 107 bool MathObject::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot &slot)108 {109 return getOwnPropertySlot(this, exec, propertyName, slot);110 }111 112 107 bool MathObject::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot &slot) 113 108 { -
trunk/Source/JavaScriptCore/runtime/MathObject.h
r97537 r98501 39 39 return object; 40 40 } 41 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);42 41 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 43 42 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/NumberConstructor.cpp
r98203 r98501 72 72 } 73 73 74 bool NumberConstructor::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)75 {76 return getOwnPropertySlot(this, exec, propertyName, slot);77 }78 79 74 bool NumberConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 80 75 { -
trunk/Source/JavaScriptCore/runtime/NumberConstructor.h
r98203 r98501 39 39 } 40 40 41 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);42 41 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 43 42 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/NumberPrototype.cpp
r97537 r98501 82 82 83 83 ASSERT(inherits(&s_info)); 84 }85 86 bool NumberPrototype::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot &slot)87 {88 return getOwnPropertySlot(this, exec, propertyName, slot);89 84 } 90 85 -
trunk/Source/JavaScriptCore/runtime/NumberPrototype.h
r97537 r98501 50 50 private: 51 51 NumberPrototype(ExecState*, Structure*); 52 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);53 52 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 54 53 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/ObjectConstructor.cpp
r98203 r98501 90 90 } 91 91 92 bool ObjectConstructor::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot &slot)93 {94 return getOwnPropertySlot(this, exec, propertyName, slot);95 }96 97 92 bool ObjectConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot &slot) 98 93 { -
trunk/Source/JavaScriptCore/runtime/ObjectConstructor.h
r98203 r98501 39 39 } 40 40 41 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);42 41 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 43 42 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/ObjectPrototype.cpp
r98415 r98501 88 88 } 89 89 90 bool ObjectPrototype::getOwnPropertySlotVirtual(ExecState* exec, unsigned propertyName, PropertySlot& slot)91 {92 return getOwnPropertySlotByIndex(this, exec, propertyName, slot);93 }94 95 90 bool ObjectPrototype::getOwnPropertySlotByIndex(JSCell* cell, ExecState* exec, unsigned propertyName, PropertySlot& slot) 96 91 { … … 99 94 return false; 100 95 return JSNonFinalObject::getOwnPropertySlotByIndex(thisObject, exec, propertyName, slot); 101 }102 103 bool ObjectPrototype::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)104 {105 return getOwnPropertySlot(this, exec, propertyName, slot);106 96 } 107 97 -
trunk/Source/JavaScriptCore/runtime/ObjectPrototype.h
r98415 r98501 53 53 static void put(JSCell*, ExecState*, const Identifier&, JSValue, PutPropertySlot&); 54 54 55 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);56 55 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 57 virtual bool getOwnPropertySlotVirtual(ExecState*, unsigned propertyName, PropertySlot&);58 56 static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&); 59 57 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/RegExpConstructor.cpp
r98415 r98501 69 69 70 70 const ClassInfo RegExpConstructor::s_info = { "Function", &InternalFunction::s_info, 0, ExecState::regExpConstructorTable, CREATE_METHOD_TABLE(RegExpConstructor) }; 71 72 const ClassInfo RegExpMatchesArray::s_info = {"Array", &JSArray::s_info, 0, 0, CREATE_METHOD_TABLE(RegExpMatchesArray)}; 71 73 72 74 /* Source for RegExpConstructor.lut.h … … 203 205 } 204 206 205 bool RegExpConstructor::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)206 {207 return getOwnPropertySlot(this, exec, propertyName, slot);208 }209 210 207 bool RegExpConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 211 208 { -
trunk/Source/JavaScriptCore/runtime/RegExpConstructor.h
r98415 r98501 74 74 static void put(JSCell*, ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&); 75 75 76 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&);77 76 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier& propertyName, PropertySlot&); 78 77 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/RegExpMatchesArray.h
r98422 r98501 40 40 virtual ~RegExpMatchesArray(); 41 41 42 static JS_EXPORTDATA const ClassInfo s_info; 43 44 static Structure* createStructure(JSGlobalData& globalData, JSGlobalObject* globalObject, JSValue prototype) 45 { 46 return Structure::create(globalData, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), &s_info); 47 } 48 42 49 protected: 43 50 void finishCreation(JSGlobalData&, RegExpConstructorPrivate* data); 44 51 45 52 private: 46 virtual bool getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)47 {48 return getOwnPropertySlot(this, exec, propertyName, slot);49 }50 51 53 static bool getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 52 54 { … … 55 57 thisObject->fillArrayInstance(exec); 56 58 return JSArray::getOwnPropertySlot(thisObject, exec, propertyName, slot); 57 }58 59 virtual bool getOwnPropertySlotVirtual(ExecState* exec, unsigned propertyName, PropertySlot& slot)60 {61 return getOwnPropertySlotByIndex(this, exec, propertyName, slot);62 59 } 63 60 -
trunk/Source/JavaScriptCore/runtime/RegExpObject.cpp
r98415 r98501 90 90 if (UNLIKELY(!thisObject->d->lastIndex.get().isInt32())) 91 91 visitor.append(&thisObject->d->lastIndex); 92 }93 94 bool RegExpObject::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)95 {96 return getOwnPropertySlot(this, exec, propertyName, slot);97 92 } 98 93 -
trunk/Source/JavaScriptCore/runtime/RegExpObject.h
r98415 r98501 66 66 JSValue exec(ExecState*); 67 67 68 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&);69 68 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier& propertyName, PropertySlot&); 70 69 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/RegExpPrototype.cpp
r97537 r98501 66 66 : RegExpObject(globalObject, structure, regExp) 67 67 { 68 }69 70 bool RegExpPrototype::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot &slot)71 {72 return getOwnPropertySlot(this, exec, propertyName, slot);73 68 } 74 69 -
trunk/Source/JavaScriptCore/runtime/RegExpPrototype.h
r97537 r98501 50 50 51 51 private: 52 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);53 52 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 54 53 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/StringConstructor.cpp
r98203 r98501 58 58 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, stringPrototype, ReadOnly | DontEnum | DontDelete); 59 59 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly | DontEnum | DontDelete); 60 }61 62 bool StringConstructor::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot &slot)63 {64 return getOwnPropertySlot(this, exec, propertyName, slot);65 60 } 66 61 -
trunk/Source/JavaScriptCore/runtime/StringConstructor.h
r98203 r98501 55 55 static CallType getCallData(JSCell*, CallData&); 56 56 57 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);58 57 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 59 58 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/StringObject.cpp
r98422 r98501 42 42 } 43 43 44 bool StringObject::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)45 {46 return getOwnPropertySlot(this, exec, propertyName, slot);47 }48 49 44 bool StringObject::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 50 45 { … … 55 50 } 56 51 57 bool StringObject::getOwnPropertySlotVirtual(ExecState* exec, unsigned propertyName, PropertySlot& slot)58 {59 return getOwnPropertySlotByIndex(this, exec, propertyName, slot);60 }61 62 52 bool StringObject::getOwnPropertySlotByIndex(JSCell* cell, ExecState* exec, unsigned propertyName, PropertySlot& slot) 63 53 { -
trunk/Source/JavaScriptCore/runtime/StringObject.h
r98422 r98501 46 46 static StringObject* create(ExecState*, JSGlobalObject*, JSString*); 47 47 48 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&);49 48 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier& propertyName, PropertySlot&); 50 virtual bool getOwnPropertySlotVirtual(ExecState*, unsigned propertyName, PropertySlot&);51 49 static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&); 52 50 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptCore/runtime/StringPrototype.cpp
r98415 r98501 144 144 // The constructor will be added later, after StringConstructor has been built 145 145 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(0), DontDelete | ReadOnly | DontEnum); 146 }147 148 bool StringPrototype::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot &slot)149 {150 return getOwnPropertySlot(this, exec, propertyName, slot);151 146 } 152 147 -
trunk/Source/JavaScriptCore/runtime/StringPrototype.h
r97537 r98501 43 43 } 44 44 45 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&);46 45 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier& propertyName, PropertySlot&); 47 46 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/JavaScriptGlue/ChangeLog
r98415 r98501 1 2011-10-26 Mark Hahnenberg <mhahnenberg@apple.com> 2 3 Remove getOwnPropertySlotVirtual 4 https://bugs.webkit.org/show_bug.cgi?id=70741 5 6 Reviewed by Geoffrey Garen. 7 8 Removed all declarations and definitions of getOwnPropertySlotVirtual. 9 Also replaced all call sites to getOwnPropertyVirtualVirtual with a 10 corresponding lookup in the MethodTable. 11 12 * UserObjectImp.cpp: 13 * UserObjectImp.h: 14 1 15 2011-10-25 Mark Hahnenberg <mhahnenberg@apple.com> 2 16 -
trunk/Source/JavaScriptGlue/UserObjectImp.cpp
r98415 r98501 124 124 } 125 125 126 bool UserObjectImp::getOwnPropertySlotVirtual(ExecState *exec, const Identifier& propertyName, PropertySlot& slot)127 {128 return getOwnPropertySlot(this, exec, propertyName, slot);129 }130 131 126 bool UserObjectImp::getOwnPropertySlot(JSCell* cell, ExecState *exec, const Identifier& propertyName, PropertySlot& slot) 132 127 { -
trunk/Source/JavaScriptGlue/UserObjectImp.h
r98415 r98501 55 55 56 56 virtual JSValue callAsFunction(ExecState *exec); 57 virtual bool getOwnPropertySlotVirtual(ExecState *, const Identifier&, PropertySlot&);58 57 static bool getOwnPropertySlot(JSCell*, ExecState *, const Identifier&, PropertySlot&); 59 58 static void put(JSCell*, ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&); -
trunk/Source/WebCore/ChangeLog
r98496 r98501 1 2011-10-26 Mark Hahnenberg <mhahnenberg@apple.com> 2 3 Remove getOwnPropertySlotVirtual 4 https://bugs.webkit.org/show_bug.cgi?id=70741 5 6 Reviewed by Geoffrey Garen. 7 8 No new tests. 9 10 Removed all declarations and definitions of getOwnPropertySlotVirtual. 11 Also replaced all call sites to getOwnPropertyVirtualVirtual with a 12 corresponding lookup in the MethodTable. 13 14 * WebCore.exp.in: 15 * bindings/js/JSDOMWindowCustom.cpp: 16 (WebCore::DialogHandler::returnValue): 17 * bindings/js/JSDOMWindowShell.cpp: 18 (WebCore::JSDOMWindowShell::getOwnPropertySlot): 19 * bindings/js/JSDOMWindowShell.h: 20 * bindings/js/SerializedScriptValue.cpp: 21 (WebCore::CloneSerializer::getSparseIndex): 22 (WebCore::CloneSerializer::getProperty): 23 * bindings/scripts/CodeGeneratorJS.pm: 24 (GenerateHeader): 25 (GenerateImplementation): 26 (GenerateConstructorDeclaration): 27 (GenerateConstructorDefinition): 28 * bridge/objc/objc_runtime.h: 29 * bridge/objc/objc_runtime.mm: 30 * bridge/qt/qt_runtime.cpp: 31 * bridge/qt/qt_runtime.h: 32 * bridge/runtime_array.cpp: 33 * bridge/runtime_array.h: 34 * bridge/runtime_method.cpp: 35 * bridge/runtime_method.h: 36 * bridge/runtime_object.cpp: 37 * bridge/runtime_object.h: 38 1 39 2011-10-26 Alejandro G. Castro <alex@igalia.com> 2 40 -
trunk/Source/WebCore/WebCore.exp.in
r98422 r98501 1691 1691 __ZN3JSC13RuntimeMethod18getOwnPropertySlotEPNS_6JSCellEPNS_9ExecStateERKNS_10IdentifierERNS_12PropertySlotE 1692 1692 __ZN3JSC13RuntimeMethod24getOwnPropertyDescriptorEPNS_9ExecStateERKNS_10IdentifierERNS_18PropertyDescriptorE 1693 __ZN3JSC13RuntimeMethod25getOwnPropertySlotVirtualEPNS_9ExecStateERKNS_10IdentifierERNS_12PropertySlotE1694 1693 __ZN3JSC13RuntimeMethod6s_infoE 1695 1694 __ZN3JSC13RuntimeMethodC2EPNS_14JSGlobalObjectEPNS_9StructureERN3WTF6VectorIPNS_8Bindings6MethodELm0EEE … … 1702 1701 __ZN3JSC8Bindings13RuntimeObject19getOwnPropertyNamesEPNS_9ExecStateERNS_17PropertyNameArrayENS_15EnumerationModeE 1703 1702 __ZN3JSC8Bindings13RuntimeObject24getOwnPropertyDescriptorEPNS_9ExecStateERKNS_10IdentifierERNS_18PropertyDescriptorE 1704 __ZN3JSC8Bindings13RuntimeObject25getOwnPropertySlotVirtualEPNS_9ExecStateERKNS_10IdentifierERNS_12PropertySlotE1705 1703 __ZN3JSC8Bindings13RuntimeObject3putEPNS_6JSCellEPNS_9ExecStateERKNS_10IdentifierENS_7JSValueERNS_15PutPropertySlotE 1706 1704 __ZN3JSC8Bindings13RuntimeObject6s_infoE -
trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp
r98422 r98501 122 122 } 123 123 124 bool JSDOMWindow::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)125 {126 return getOwnPropertySlot(this, exec, propertyName, slot);127 }128 129 124 bool JSDOMWindow::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 130 125 { … … 692 687 Identifier identifier(m_exec, "returnValue"); 693 688 PropertySlot slot; 694 if (!globalObject-> getOwnPropertySlotVirtual(m_exec, identifier, slot))689 if (!globalObject->methodTable()->getOwnPropertySlot(globalObject, m_exec, identifier, slot)) 695 690 return jsUndefined(); 696 691 return slot.getValue(m_exec, identifier); -
trunk/Source/WebCore/bindings/js/JSDOMWindowShell.cpp
r98422 r98501 101 101 } 102 102 103 bool JSDOMWindowShell::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)104 {105 return getOwnPropertySlot(this, exec, propertyName, slot);106 }107 108 103 bool JSDOMWindowShell::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 109 104 { 110 return static_cast<JSDOMWindowShell*>(cell)->m_window->getOwnPropertySlotVirtual(exec, propertyName, slot); 105 JSDOMWindowShell* thisObject = static_cast<JSDOMWindowShell*>(cell); 106 return thisObject->m_window->methodTable()->getOwnPropertySlot(thisObject->m_window.get(), exec, propertyName, slot); 111 107 } 112 108 -
trunk/Source/WebCore/bindings/js/JSDOMWindowShell.h
r98422 r98501 81 81 static void visitChildren(JSC::JSCell*, JSC::SlotVisitor&); 82 82 virtual JSC::UString className() const; 83 virtual bool getOwnPropertySlotVirtual(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);84 83 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); 85 84 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&); -
trunk/Source/WebCore/bindings/js/SerializedScriptValue.cpp
r98415 r98501 338 338 return slot.getValue(m_exec, propertyName); 339 339 } 340 } else if (array-> getOwnPropertySlotVirtual(m_exec, propertyName, slot)) {340 } else if (array->methodTable()->getOwnPropertySlotByIndex(array, m_exec, propertyName, slot)) { 341 341 hasIndex = true; 342 342 return slot.getValue(m_exec, propertyName); … … 349 349 { 350 350 PropertySlot slot(object); 351 if (object-> getOwnPropertySlotVirtual(m_exec, propertyName, slot))351 if (object->methodTable()->getOwnPropertySlot(object, m_exec, propertyName, slot)) 352 352 return slot.getValue(m_exec, propertyName); 353 353 return JSValue(); -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r98495 r98501 771 771 # Getters 772 772 if ($hasGetter) { 773 push(@headerContent, " virtual bool getOwnPropertySlotVirtual(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);\n");774 773 push(@headerContent, " static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);\n"); 775 774 push(@headerContent, " virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);\n"); 776 push(@headerContent, " virtual bool getOwnPropertySlotVirtual(JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);\n") if ($dataNode->extendedAttributes->{"HasIndexGetter"} || $dataNode->extendedAttributes->{"HasCustomIndexGetter"} || $dataNode->extendedAttributes->{"HasNumericIndexGetter"}) && !$dataNode->extendedAttributes->{"HasOverridingNameGetter"};777 775 push(@headerContent, " static bool getOwnPropertySlotByIndex(JSC::JSCell*, JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);\n") if ($dataNode->extendedAttributes->{"HasIndexGetter"} || $dataNode->extendedAttributes->{"HasCustomIndexGetter"} || $dataNode->extendedAttributes->{"HasNumericIndexGetter"}) && !$dataNode->extendedAttributes->{"HasOverridingNameGetter"}; 778 776 push(@headerContent, " bool getOwnPropertySlotDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);\n") if $dataNode->extendedAttributes->{"DelegatingGetOwnPropertySlot"}; … … 968 966 969 967 if ($dataNode->extendedAttributes->{"InlineGetOwnPropertySlot"} && !$dataNode->extendedAttributes->{"CustomGetOwnPropertySlot"}) { 970 push(@headerContent, "ALWAYS_INLINE bool ${className}::getOwnPropertySlotVirtual(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::PropertySlot& slot)\n");971 push(@headerContent, "{\n");972 push(@headerContent, " return getOwnPropertySlot(this, exec, propertyName, slot);\n");973 push(@headerContent, "}\n\n");974 968 push(@headerContent, "ALWAYS_INLINE bool ${className}::getOwnPropertySlot(JSC::JSCell* cell, JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::PropertySlot& slot)\n"); 975 969 push(@headerContent, "{\n"); … … 1041 1035 push(@headerContent, " static const JSC::ClassInfo s_info;\n"); 1042 1036 if ($numFunctions > 0 || $numConstants > 0 || $dataNode->extendedAttributes->{"DelegatingPrototypeGetOwnPropertySlot"}) { 1043 push(@headerContent, " virtual bool getOwnPropertySlotVirtual(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);\n");1044 1037 push(@headerContent, " static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);\n"); 1045 1038 push(@headerContent, " virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);\n"); … … 1436 1429 } 1437 1430 if ($numConstants > 0 || $numFunctions > 0 || $dataNode->extendedAttributes->{"DelegatingPrototypeGetOwnPropertySlot"}) { 1438 push(@implContent, "bool ${className}Prototype::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)\n");1439 push(@implContent, "{\n");1440 push(@implContent, " return getOwnPropertySlot(this, exec, propertyName, slot);\n");1441 push(@implContent, "}\n\n");1442 1443 1431 push(@implContent, "bool ${className}Prototype::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)\n"); 1444 1432 push(@implContent, "{\n"); … … 1576 1564 if ($hasGetter) { 1577 1565 if (!$dataNode->extendedAttributes->{"InlineGetOwnPropertySlot"} && !$dataNode->extendedAttributes->{"CustomGetOwnPropertySlot"}) { 1578 push(@implContent, "bool ${className}::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)\n");1579 push(@implContent, "{\n");1580 push(@implContent, " return getOwnPropertySlot(this, exec, propertyName, slot);\n");1581 push(@implContent, "}\n\n");1582 1566 push(@implContent, "bool ${className}::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)\n"); 1583 1567 push(@implContent, "{\n"); … … 1595 1579 if (($dataNode->extendedAttributes->{"HasIndexGetter"} || $dataNode->extendedAttributes->{"HasCustomIndexGetter"} || $dataNode->extendedAttributes->{"HasNumericIndexGetter"}) 1596 1580 && !$dataNode->extendedAttributes->{"HasOverridingNameGetter"}) { 1597 push(@implContent, "bool ${className}::getOwnPropertySlotVirtual(ExecState* exec, unsigned propertyName, PropertySlot& slot)\n");1598 push(@implContent, "{\n");1599 push(@implContent, " return getOwnPropertySlotByIndex(this, exec, propertyName, slot);\n");1600 push(@implContent, "}\n\n");1601 1581 push(@implContent, "bool ${className}::getOwnPropertySlotByIndex(JSCell* cell, ExecState* exec, unsigned propertyName, PropertySlot& slot)\n"); 1602 1582 push(@implContent, "{\n"); … … 1611 1591 push(@implContent, " return true;\n"); 1612 1592 push(@implContent, " }\n"); 1613 push(@implContent, " return thisObject-> getOwnPropertySlotVirtual(exec, Identifier::from(exec, propertyName), slot);\n");1593 push(@implContent, " return thisObject->methodTable()->getOwnPropertySlot(thisObject, exec, Identifier::from(exec, propertyName), slot);\n"); 1614 1594 push(@implContent, "}\n\n"); 1615 1595 } … … 3191 3171 push(@$outputArray, " }\n\n"); 3192 3172 3193 push(@$outputArray, " virtual bool getOwnPropertySlotVirtual(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);\n");3194 3173 push(@$outputArray, " static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);\n"); 3195 3174 push(@$outputArray, " virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);\n"); … … 3243 3222 push(@$outputArray, "}\n\n"); 3244 3223 3245 push(@$outputArray, "bool ${constructorClassName}::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)\n");3246 push(@$outputArray, "{\n");3247 push(@$outputArray, " return getOwnPropertySlot(this, exec, propertyName, slot);\n");3248 push(@$outputArray, "}\n\n");3249 3250 3224 push(@$outputArray, "bool ${constructorClassName}::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)\n"); 3251 3225 push(@$outputArray, "{\n"); -
trunk/Source/WebCore/bridge/objc/objc_runtime.h
r98422 r98501 124 124 ObjcFallbackObjectImp(JSGlobalObject*, Structure*, ObjcInstance*, const Identifier& propertyName); 125 125 static const unsigned StructureFlags = OverridesGetOwnPropertySlot | JSObject::StructureFlags; 126 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);127 126 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 128 127 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/WebCore/bridge/objc/objc_runtime.mm
r98422 r98501 206 206 } 207 207 208 bool ObjcFallbackObjectImp::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& identifier, PropertySlot& slot)209 {210 return getOwnPropertySlot(this, exec, identifier, slot);211 }212 213 208 bool ObjcFallbackObjectImp::getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot& slot) 214 209 { -
trunk/Source/WebCore/bridge/qt/qt_runtime.cpp
r98415 r98501 1495 1495 } 1496 1496 1497 bool QtRuntimeMetaMethod::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)1498 {1499 return getOwnPropertySlot(this, exec, propertyName, slot);1500 }1501 1502 1497 bool QtRuntimeMetaMethod::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 1503 1498 { … … 1742 1737 } 1743 1738 1744 bool QtRuntimeConnectionMethod::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)1745 {1746 return getOwnPropertySlot(this, exec, propertyName, slot);1747 }1748 1749 1739 bool QtRuntimeConnectionMethod::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 1750 1740 { -
trunk/Source/WebCore/bridge/qt/qt_runtime.h
r97537 r98501 165 165 } 166 166 167 virtual bool getOwnPropertySlotVirtual(ExecState *, const Identifier&, PropertySlot&);168 167 static bool getOwnPropertySlot(JSCell*, ExecState *, const Identifier&, PropertySlot&); 169 168 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); … … 206 205 } 207 206 208 virtual bool getOwnPropertySlotVirtual(ExecState *, const Identifier&, PropertySlot&);209 207 static bool getOwnPropertySlot(JSCell*, ExecState *, const Identifier&, PropertySlot&); 210 208 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/WebCore/bridge/runtime_array.cpp
r98422 r98501 79 79 } 80 80 81 bool RuntimeArray::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)82 {83 return getOwnPropertySlot(this, exec, propertyName, slot);84 }85 86 81 bool RuntimeArray::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 87 82 { … … 125 120 126 121 return JSObject::getOwnPropertyDescriptor(exec, propertyName, descriptor); 127 }128 129 bool RuntimeArray::getOwnPropertySlotVirtual(ExecState *exec, unsigned index, PropertySlot& slot)130 {131 return getOwnPropertySlotByIndex(this, exec, index, slot);132 122 } 133 123 -
trunk/Source/WebCore/bridge/runtime_array.h
r98422 r98501 51 51 52 52 virtual void getOwnPropertyNames(ExecState*, PropertyNameArray&, EnumerationMode mode = ExcludeDontEnumProperties); 53 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);54 53 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 55 virtual bool getOwnPropertySlotVirtual(ExecState*, unsigned, PropertySlot&);56 54 static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned, PropertySlot&); 57 55 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); -
trunk/Source/WebCore/bridge/runtime_method.cpp
r97537 r98501 70 70 } 71 71 72 bool RuntimeMethod::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot &slot)73 {74 return getOwnPropertySlot(this, exec, propertyName, slot);75 }76 77 72 bool RuntimeMethod::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot &slot) 78 73 { -
trunk/Source/WebCore/bridge/runtime_method.h
r98367 r98501 65 65 static CallType getCallData(JSCell*, CallData&); 66 66 67 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);68 67 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 69 68 -
trunk/Source/WebCore/bridge/runtime_object.cpp
r98422 r98501 115 115 116 116 return method; 117 }118 119 bool RuntimeObject::getOwnPropertySlotVirtual(ExecState *exec, const Identifier& propertyName, PropertySlot& slot)120 {121 return getOwnPropertySlot(this, exec, propertyName, slot);122 117 } 123 118 -
trunk/Source/WebCore/bridge/runtime_object.h
r98422 r98501 46 46 virtual ~RuntimeObject(); 47 47 48 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&);49 48 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier& propertyName, PropertySlot&); 50 49 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier& propertyName, PropertyDescriptor&); -
trunk/Source/WebKit2/ChangeLog
r98498 r98501 1 2011-10-26 Mark Hahnenberg <mhahnenberg@apple.com> 2 3 Remove getOwnPropertySlotVirtual 4 https://bugs.webkit.org/show_bug.cgi?id=70741 5 6 Reviewed by Geoffrey Garen. 7 8 Removed all declarations and definitions of getOwnPropertySlotVirtual. 9 Also replaced all call sites to getOwnPropertyVirtualVirtual with a 10 corresponding lookup in the MethodTable. 11 12 * WebProcess/Plugins/Netscape/JSNPObject.cpp: 13 * WebProcess/Plugins/Netscape/JSNPObject.h: 14 1 15 2011-10-26 Alejandro G. Castro <alex@igalia.com> 2 16 -
trunk/Source/WebKit2/WebProcess/Plugins/Netscape/JSNPObject.cpp
r98422 r98501 248 248 } 249 249 250 bool JSNPObject::getOwnPropertySlotVirtual(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)251 {252 return getOwnPropertySlot(this, exec, propertyName, slot);253 }254 255 250 bool JSNPObject::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 256 251 { -
trunk/Source/WebKit2/WebProcess/Plugins/Netscape/JSNPObject.h
r98422 r98501 83 83 static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&); 84 84 85 virtual bool getOwnPropertySlotVirtual(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);86 85 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); 87 86 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
Note: See TracChangeset
for help on using the changeset viewer.