Changeset 34518 in webkit for trunk/JavaScriptCore/kjs/string_object.h
- Timestamp:
- Jun 12, 2008, 9:53:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/string_object.h
r34355 r34518 1 1 // -*- c-basic-offset: 2 -*- 2 2 /* 3 * This file is part of the KDE libraries4 3 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 4 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 5 5 * 6 6 * This library is free software; you can redistribute it and/or … … 32 32 class StringInstance : public JSWrapperObject { 33 33 public: 34 StringInstance(JSObject *proto); 35 StringInstance(JSObject *proto, StringImp*); 36 StringInstance(JSObject *proto, const UString&); 34 StringInstance(JSObject* prototype); 35 StringInstance(JSObject* prototype, const UString&); 36 37 static StringInstance* create(ExecState*, StringImp*); 37 38 38 39 virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&); … … 40 41 41 42 virtual void put(ExecState* exec, const Identifier& propertyName, JSValue*); 42 virtual bool deleteProperty(ExecState* exec, const Identifier& propertyName);43 virtual bool deleteProperty(ExecState*, const Identifier& propertyName); 43 44 virtual void getPropertyNames(ExecState*, PropertyNameArray&); 44 45 45 virtual const ClassInfo *classInfo() const { return &info; }46 virtual const ClassInfo* classInfo() const { return &info; } 46 47 static const ClassInfo info; 47 48 48 49 StringImp* internalValue() const { return static_cast<StringImp*>(JSWrapperObject::internalValue());} 49 50 50 private: 51 bool inlineGetOwnPropertySlot(ExecState*, unsigned, PropertySlot&); 52 53 static JSValue* lengthGetter(ExecState*, const Identifier&, const PropertySlot&); 54 static JSValue* indexGetter(ExecState*, const Identifier&, const PropertySlot&); 51 protected: 52 StringInstance(JSObject* prototype, StringImp*); 55 53 }; 56 54 … … 144 142 public: 145 143 StringObjectFuncImp(ExecState*, FunctionPrototype*, const Identifier&); 146 virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);144 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List& args); 147 145 }; 148 146 … … 150 148 151 149 #endif 152
Note:
See TracChangeset
for help on using the changeset viewer.