Changeset 11527 in webkit for trunk/JavaScriptCore/kjs/string_object.h
- Timestamp:
- Dec 10, 2005, 6:06:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/string_object.h
r10084 r11527 28 28 namespace KJS { 29 29 30 class StringInstance Imp : public ObjectImp{30 class StringInstance : public JSObject { 31 31 public: 32 StringInstance Imp(ObjectImp*proto);33 StringInstance Imp(ObjectImp*proto, const UString &string);32 StringInstance(JSObject *proto); 33 StringInstance(JSObject *proto, const UString &string); 34 34 35 35 virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&); 36 virtual void put(ExecState *exec, const Identifier &propertyName, ValueImp*value, int attr = None);36 virtual void put(ExecState *exec, const Identifier &propertyName, JSValue *value, int attr = None); 37 37 virtual bool deleteProperty(ExecState *exec, const Identifier &propertyName); 38 38 … … 40 40 static const ClassInfo info; 41 41 private: 42 static ValueImp*lengthGetter(ExecState *exec, const Identifier&, const PropertySlot &slot);43 static ValueImp*indexGetter(ExecState *exec, const Identifier&, const PropertySlot &slot);42 static JSValue *lengthGetter(ExecState *exec, const Identifier&, const PropertySlot &slot); 43 static JSValue *indexGetter(ExecState *exec, const Identifier&, const PropertySlot &slot); 44 44 }; 45 45 … … 50 50 * with the String constructor 51 51 */ 52 class StringPrototype Imp : public StringInstanceImp{52 class StringPrototype : public StringInstance { 53 53 public: 54 StringPrototype Imp(ExecState *exec,55 ObjectPrototype Imp*objProto);54 StringPrototype(ExecState *exec, 55 ObjectPrototype *objProto); 56 56 virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&); 57 57 virtual const ClassInfo *classInfo() const { return &info; } … … 65 65 * String.prototype object 66 66 */ 67 class StringProtoFunc Imp: public InternalFunctionImp {67 class StringProtoFunc : public InternalFunctionImp { 68 68 public: 69 StringProtoFunc Imp(ExecState *exec, int i, int len);69 StringProtoFunc(ExecState *exec, int i, int len); 70 70 71 71 virtual bool implementsCall() const; 72 virtual ValueImp *callAsFunction(ExecState *exec, ObjectImp*thisObj, const List &args);72 virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args); 73 73 74 74 enum { ToString, ValueOf, CharAt, CharCodeAt, Concat, IndexOf, LastIndexOf, … … 93 93 public: 94 94 StringObjectImp(ExecState *exec, 95 FunctionPrototype Imp*funcProto,96 StringPrototype Imp*stringProto);95 FunctionPrototype *funcProto, 96 StringPrototype *stringProto); 97 97 98 98 virtual bool implementsConstruct() const; 99 virtual ObjectImp*construct(ExecState *exec, const List &args);99 virtual JSObject *construct(ExecState *exec, const List &args); 100 100 virtual bool implementsCall() const; 101 virtual ValueImp *callAsFunction(ExecState *exec, ObjectImp*thisObj, const List &args);101 virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args); 102 102 }; 103 103 … … 110 110 class StringObjectFuncImp : public InternalFunctionImp { 111 111 public: 112 StringObjectFuncImp(ExecState *exec, FunctionPrototype Imp*funcProto);112 StringObjectFuncImp(ExecState *exec, FunctionPrototype *funcProto); 113 113 virtual bool implementsCall() const; 114 virtual ValueImp *callAsFunction(ExecState *exec, ObjectImp*thisObj, const List &args);114 virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args); 115 115 }; 116 116
Note:
See TracChangeset
for help on using the changeset viewer.