| 1 | /* |
| 2 | * Copyright (C) 1999-2000 Harri Porten ([email protected]) |
| 3 | * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | #ifndef StringObject_h |
| 22 | #define StringObject_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/StringObject.h:22:9`! |
| 23 | |
| 24 | #include "JSWrapperObject.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSWrapperObject.h`/ |
| 25 | #include "JSString.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSString.h`/ |
| 26 | |
| 27 | namespace JSCcxx . . $ QTJSC/ { |
| 28 | |
| 29 | class StringObjectcxx . . $ QTJSC/StringObject# : public JSWrapperObjectcxx . . $ QTJSC/JSWrapperObject# { |
| 30 | public: |
| 31 | StringObjectcxx . . $ QTJSC/StringObject#StringObject(aad11863945fc14a).(ExecStatecxx . . $ QTJSC/ExecState#*, NonNullPassRefPtrcxx . . $ NonNullPassRefPtr#<Structurecxx . . $ QTJSC/Structure#>); |
| 32 | StringObjectcxx . . $ QTJSC/StringObject#StringObject(17a6c4376bec5d82).(ExecStatecxx . . $ QTJSC/ExecState#*, NonNullPassRefPtrcxx . . $ NonNullPassRefPtr#<Structurecxx . . $ QTJSC/Structure#>, const UStringcxx . . $ QTJSC/UString#&); |
| 33 | |
| 34 | static StringObjectcxx . . $ QTJSC/StringObject#* createcxx . . $ QTJSC/StringObject#create(e96ea6c2e6b4bd4b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSStringcxx . . $ QTJSC/JSString#*); |
| 35 | |
| 36 | virtual bool getOwnPropertySlotcxx . . $ QTJSC/StringObject#getOwnPropertySlot(6f4ef3dbfe7d5ab9).(ExecStatecxx . . $ QTJSC/ExecState#*, const Identifiercxx . . $ QTJSC/Identifier#& propertyName, PropertySlotcxx . . $ QTJSC/PropertySlot#&); |
| 37 | virtual bool getOwnPropertySlotcxx . . $ QTJSC/StringObject#getOwnPropertySlot(d57d1c8d4b24d235).(ExecStatecxx . . $ QTJSC/ExecState#*, unsigned propertyName, PropertySlotcxx . . $ QTJSC/PropertySlot#&); |
| 38 | virtual bool getOwnPropertyDescriptorcxx . . $ QTJSC/StringObject#getOwnPropertyDescriptor(dce4ef7012294c32).(ExecStatecxx . . $ QTJSC/ExecState#*, const Identifiercxx . . $ QTJSC/Identifier#&, PropertyDescriptorcxx . . $ QTJSC/PropertyDescriptor#&); |
| 39 | |
| 40 | virtual void putcxx . . $ QTJSC/StringObject#put(dfb3133dafbe9ff4).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const Identifiercxx . . $ QTJSC/Identifier#& propertyName, JSValuecxx . . $ QTJSC/JSValue#, PutPropertySlotcxx . . $ QTJSC/PutPropertySlot#&); |
| 41 | virtual bool deletePropertycxx . . $ QTJSC/StringObject#deleteProperty(13154ef9bddc9416).(ExecStatecxx . . $ QTJSC/ExecState#*, const Identifiercxx . . $ QTJSC/Identifier#& propertyName); |
| 42 | virtual void getOwnPropertyNamescxx . . $ QTJSC/StringObject#getOwnPropertyNames(2f9e3f18de200b4e).(ExecStatecxx . . $ QTJSC/ExecState#*, PropertyNameArraycxx . . $ QTJSC/PropertyNameArray#&, EnumerationModecxx . . $ QTJSC/EnumerationMode# mode = ExcludeDontEnumPropertiescxx . . $ QTJSC/ExcludeDontEnumProperties.); |
| 43 | |
| 44 | virtual const ClassInfocxx . . $ QTJSC/ClassInfo#* classInfocxx . . $ QTJSC/StringObject#classInfo(f90fb4cda7a7c2e2).() const { return &infocxx . . $ QTJSC/StringObject#info.; } |
| 45 | static const JS_EXPORTDATAcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/config.h:36:9`! ClassInfocxx . . $ QTJSC/ClassInfo# infocxx . . $ QTJSC/StringObject#info.; |
| 46 | |
| 47 | JSStringcxx . . $ QTJSC/JSString#* internalValuecxx . . $ QTJSC/StringObject#internalValue(c5ea7f10c3c88951).() const { return asStringcxx . . $ QTJSC/asString(3a349c2233e4a703).(JSWrapperObjectcxx . . $ QTJSC/JSWrapperObject#::internalValuecxx . . $ QTJSC/JSWrapperObject#internalValue(888c053acf364da1).());} |
| 48 | |
| 49 | static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> createStructurecxx . . $ QTJSC/StringObject#createStructure(da75fbe5e97e240f).(JSValuecxx . . $ QTJSC/JSValue# prototype) |
| 50 | { |
| 51 | return Structure::create(prototype, TypeInfocxx . . $ QTJSC/TypeInfo#TypeInfo(85e540a0e5560fef).(ObjectTypecxx . . $ QTJSC/ObjectType., StructureFlagscxx . . $ QTJSC/StringObject#StructureFlags.)); |
| 52 | } |
| 53 | |
| 54 | protected: |
| 55 | static const unsigned StructureFlagscxx . . $ QTJSC/StringObject#StructureFlags. = OverridesGetOwnPropertySlotcxx . . $ QTJSC/OverridesGetOwnPropertySlot. | OverridesMarkChildrencxx . . $ QTJSC/OverridesMarkChildren. | OverridesGetPropertyNamescxx . . $ QTJSC/OverridesGetPropertyNames. | JSWrapperObjectcxx . . $ QTJSC/JSWrapperObject#::StructureFlagscxx . . $ QTJSC/JSObject#StructureFlags.; |
| 56 | StringObjectcxx . . $ QTJSC/StringObject#StringObject(3c1ce0979548739f).(NonNullPassRefPtrcxx . . $ NonNullPassRefPtr#<Structurecxx . . $ QTJSC/Structure#>, JSStringcxx . . $ QTJSC/JSString#*); |
| 57 | }; |
| 58 | |
| 59 | StringObjectcxx . . $ QTJSC/StringObject#* asStringObjectcxx . . $ QTJSC/asStringObject(ed729f5d184b1e0c).(JSValuecxx . . $ QTJSC/JSValue#); |
| 60 | |
| 61 | inline StringObjectcxx . . $ QTJSC/StringObject#* asStringObjectcxx . . $ QTJSC/asStringObject(ed729f5d184b1e0c).(JSValuecxx . . $ QTJSC/JSValue# value) |
| 62 | { |
| 63 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(asObject(value)->inherits(&StringObject::info)); |
| 64 | return static_cast<StringObject*>(asObject(value)); |
| 65 | } |
| 66 | |
| 67 | } // namespace JSC |
| 68 | |
| 69 | #endif // StringObject_h |