Changeset 32652 in webkit for trunk/JavaScriptCore/kjs/regexp_object.cpp
- Timestamp:
- Apr 28, 2008, 11:22:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/regexp_object.cpp
r31208 r32652 47 47 // ECMA 15.10.5 48 48 49 const ClassInfo RegExpPrototype::info = { "RegExpPrototype", 0, 0 };49 const ClassInfo RegExpPrototype::info = { "RegExpPrototype", 0, 0, 0 }; 50 50 51 51 RegExpPrototype::RegExpPrototype(ExecState* exec, ObjectPrototype* objectPrototype, FunctionPrototype* functionPrototype) 52 52 : JSObject(objectPrototype) 53 53 { 54 putDirectFunction(new PrototypeFunction(exec, functionPrototype, 0, CommonIdentifiers::shared()->compile, regExpProtoFuncCompile), DontEnum);55 putDirectFunction(new PrototypeFunction(exec, functionPrototype, 0, CommonIdentifiers::shared()->exec, regExpProtoFuncExec), DontEnum);56 putDirectFunction(new PrototypeFunction(exec, functionPrototype, 0, CommonIdentifiers::shared()->test, regExpProtoFuncTest), DontEnum);54 putDirectFunction(new PrototypeFunction(exec, functionPrototype, 0, exec->propertyNames().compile, regExpProtoFuncCompile), DontEnum); 55 putDirectFunction(new PrototypeFunction(exec, functionPrototype, 0, exec->propertyNames().exec, regExpProtoFuncExec), DontEnum); 56 putDirectFunction(new PrototypeFunction(exec, functionPrototype, 0, exec->propertyNames().test, regExpProtoFuncTest), DontEnum); 57 57 putDirectFunction(new PrototypeFunction(exec, functionPrototype, 0, exec->propertyNames().toString, regExpProtoFuncToString), DontEnum); 58 58 } … … 123 123 // ------------------------------ RegExpImp ------------------------------------ 124 124 125 const ClassInfo RegExpImp::info = { "RegExp", 0, &RegExpImpTable };125 const ClassInfo RegExpImp::info = { "RegExp", 0, 0, ExecState::RegExpImpTable }; 126 126 127 127 /* Source for regexp_object.lut.h … … 148 148 bool RegExpImp::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 149 149 { 150 return getStaticValueSlot<RegExpImp, JSObject>(exec, &RegExpImpTable, this, propertyName, slot);150 return getStaticValueSlot<RegExpImp, JSObject>(exec, ExecState::RegExpImpTable(exec), this, propertyName, slot); 151 151 } 152 152 … … 172 172 void RegExpImp::put(ExecState* exec, const Identifier& propertyName, JSValue* value) 173 173 { 174 lookupPut<RegExpImp, JSObject>(exec, propertyName, value, &RegExpImpTable, this);174 lookupPut<RegExpImp, JSObject>(exec, propertyName, value, ExecState::RegExpImpTable(exec), this); 175 175 } 176 176 … … 243 243 // ------------------------------ RegExpObjectImp ------------------------------ 244 244 245 const ClassInfo RegExpObjectImp::info = { "Function", &InternalFunctionImp::info, &RegExpObjectImpTable };245 const ClassInfo RegExpObjectImp::info = { "Function", &InternalFunctionImp::info, 0, ExecState::RegExpObjectImpTable }; 246 246 247 247 /* Source for regexp_object.lut.h … … 364 364 bool RegExpObjectImp::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, PropertySlot& slot) 365 365 { 366 return getStaticValueSlot<RegExpObjectImp, InternalFunctionImp>(exec, &RegExpObjectImpTable, this, propertyName, slot);366 return getStaticValueSlot<RegExpObjectImp, InternalFunctionImp>(exec, ExecState::RegExpObjectImpTable(exec), this, propertyName, slot); 367 367 } 368 368 … … 409 409 void RegExpObjectImp::put(ExecState *exec, const Identifier &propertyName, JSValue *value) 410 410 { 411 lookupPut<RegExpObjectImp, InternalFunctionImp>(exec, propertyName, value, &RegExpObjectImpTable, this);411 lookupPut<RegExpObjectImp, InternalFunctionImp>(exec, propertyName, value, ExecState::RegExpObjectImpTable(exec), this); 412 412 } 413 413
Note:
See TracChangeset
for help on using the changeset viewer.