Debian Codegraph @

src/3rdparty/javascriptcore/JavaScriptCore/API/JSObjectRef.cpp

raw symbols SCIP
1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Kelvin W Sherlock ([email protected])
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27 #include "config.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/config.h`/
28 #include "JSObjectRef.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/API/JSObjectRef.h`/
29
30 #include "APICast.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/API/APICast.h`/
31 #include "CodeBlock.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/bytecode/CodeBlock.h`/
32 #include "DateConstructor.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/DateConstructor.h`/
33 #include "ErrorConstructor.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/ErrorConstructor.h`/
34 #include "FunctionConstructor.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/FunctionConstructor.h`/
35 #include "Identifier.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Identifier.h`/
36 #include "InitializeThreading.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/InitializeThreading.h`/
37 #include "JSArray.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSArray.h`/
38 #include "JSCallbackConstructor.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/API/JSCallbackConstructor.h`/
39 #include "JSCallbackFunction.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/API/JSCallbackFunction.h`/
40 #include "JSCallbackObject.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/API/JSCallbackObject.h`/
41 #include "JSClassRef.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/API/JSClassRef.h`/
42 #include "JSFunction.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.h`/
43 #include "JSGlobalObject.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h`/
44 #include "JSObject.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h`/
45 #include "JSRetainPtr.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/API/JSRetainPtr.h`/
46 #include "JSString.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSString.h`/
47 #include "JSValueRef.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/API/JSValueRef.h`/
48 #include "ObjectPrototype.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/ObjectPrototype.h`/
49 #include "PropertyNameArray.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/PropertyNameArray.h`/
50 #include "RegExpConstructor.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/RegExpConstructor.h`/
51 #include <wtf/Platform.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h`/
52
53 using namespace JSCcxx . . $ `<built-in>:463:9`!;
54
55 JSClassRefcxx . . $ JSClassRef# JSClassCreatecxx . . $ JSClassCreate(b2414b269cc5aa37).(const JSClassDefinition* definition)
56 {
57 initializeThreadingcxx . . $ QTJSC/initializeThreading(49f6e7a06ebc5aa8).();
58 RefPtrcxx . . $ RefPtr#<OpaqueJSClasscxx . . $ OpaqueJSClass#> jsClass = (definition->attributes & kJSClassAttributeNoAutomaticPrototype)
59 ? OpaqueJSClass::createNoAutomaticPrototype(definition)
60 : OpaqueJSClass::create(definition);
61
62 return jsClass.release().releaseRef();
63 }
64
65 JSClassRefcxx . . $ JSClassRef# JSClassRetaincxx . . $ JSClassRetain(b1b5bb9d39db158f).(JSClassRefcxx . . $ JSClassRef# jsClass)
66 {
67 jsClass->ref();
68 return jsClass;
69 }
70
71 void JSClassReleasecxx . . $ JSClassRelease(159998762f31489b).(JSClassRefcxx . . $ JSClassRef# jsClass)
72 {
73 jsClass->deref();
74 }
75
76 JSObjectRefcxx . . $ JSObjectRef# JSObjectMakecxx . . $ JSObjectMake(8bc67c956815f48a).(JSContextRefcxx . . $ JSContextRef# ctx, JSClassRefcxx . . $ JSClassRef# jsClass, void* data)
77 {
78 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
79 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
80
81 if (!jsClass)
82 return toRefcxx . . $ toRef(c44cefdcd7666f07).(new (exec) JSObject(exec->lexicalGlobalObject()->emptyObjectStructure())); // slightly more efficient
83
84 JSCallbackObjectcxx . . $ QTJSC/JSCallbackObject#<JSObjectcxx . . $ QTJSC/JSObject#>* object = new (exec) JSCallbackObject<JSObject>(exec, exec->lexicalGlobalObject()->callbackObjectStructure(), jsClass, data);
85 if (JSObjectcxx . . $ QTJSC/JSObject#* prototype = jsClass->prototypecxx . . $ OpaqueJSClass#prototype(dc025d143f56633c).(exec))
86 object->setPrototype(prototype);
87
88 return toRefcxx . . $ toRef(c44cefdcd7666f07).(object);
89 }
90
91 JSObjectRefcxx . . $ JSObjectRef# JSObjectMakeFunctionWithCallbackcxx . . $ JSObjectMakeFunctionWithCallback(b74328d69919129d).(JSContextRefcxx . . $ JSContextRef# ctx, JSStringRefcxx . . $ JSStringRef# name, JSObjectCallAsFunctionCallback callAsFunction)
92 {
93 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
94 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
95
96 Identifiercxx . . $ QTJSC/Identifier# nameID = name ? name->identifiercxx . . $ OpaqueJSString#identifier(42b370a020f595f8).(&exec->globalDatacxx . . $ QTJSC/ExecState#globalData(ae00a65ac2fd4a61).()) : Identifiercxx . . $ QTJSC/Identifier#Identifier(76b09fa744670831).(exec, "anonymous");
97
98 return toRefcxx . . $ toRef(c44cefdcd7666f07).(new (exec) JSCallbackFunctioncxx . . $ QTJSC/JSCallbackFunction#(exec, callAsFunction, nameID));
99 }
100
101 JSObjectRefcxx . . $ JSObjectRef# JSObjectMakeConstructorcxx . . $ JSObjectMakeConstructor(3b90acbc896b9b0e).(JSContextRefcxx . . $ JSContextRef# ctx, JSClassRefcxx . . $ JSClassRef# jsClass, JSObjectCallAsConstructorCallback callAsConstructor)
102 {
103 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
104 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
105
106 JSValuecxx . . $ QTJSC/JSValue# jsPrototype = jsClass ? jsClass->prototypecxx . . $ OpaqueJSClass#prototype(dc025d143f56633c).(exec) : 0;
107 if (!jsPrototype)
108 jsPrototype = exec->lexicalGlobalObjectcxx . . $ QTJSC/ExecState#lexicalGlobalObject(3d50c730b5e26899).()->objectPrototypecxx . . $ QTJSC/JSGlobalObject#objectPrototype(9a76308418b45a37).();
109
110 JSCallbackConstructorcxx . . $ QTJSC/JSCallbackConstructor#* constructor = new (exec) JSCallbackConstructor(exec->lexicalGlobalObject()->callbackConstructorStructure(), jsClass, callAsConstructor);
111 constructor->putDirectcxx . . $ QTJSC/JSObject#putDirect(ced585bb6c91af73).(exec->propertyNamescxx . . $ QTJSC/ExecState#propertyNames(16296db726e31f87).().prototype, jsPrototype, DontEnumcxx . . $ QTJSC/DontEnum. | DontDeletecxx . . $ QTJSC/DontDelete. | ReadOnlycxx . . $ QTJSC/ReadOnly.);
112 return toRefcxx . . $ toRef(c44cefdcd7666f07).(constructor);
113 }
114
115 JSObjectRefcxx . . $ JSObjectRef# JSObjectMakeFunctioncxx . . $ JSObjectMakeFunction(2a86a55a781fb724).(JSContextRefcxx . . $ JSContextRef# ctx, JSStringRefcxx . . $ JSStringRef# name, unsigned parameterCount, const JSStringRefcxx . . $ JSStringRef# parameterNames[], JSStringRefcxx . . $ JSStringRef# body, JSStringRefcxx . . $ JSStringRef# sourceURL, int startingLineNumber, JSValueRefcxx . . $ JSValueRef#* exception)
116 {
117 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
118 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
119
120 Identifiercxx . . $ QTJSC/Identifier# nameID = name ? name->identifiercxx . . $ OpaqueJSString#identifier(42b370a020f595f8).(&exec->globalDatacxx . . $ QTJSC/ExecState#globalData(ae00a65ac2fd4a61).()) : Identifiercxx . . $ QTJSC/Identifier#Identifier(76b09fa744670831).(exec, "anonymous");
121
122 MarkedArgumentBuffercxx . . $ QTJSC/MarkedArgumentBuffer# argscxx . . $ QTJSC/MarkedArgumentBuffer#MarkedArgumentBuffer(49f6e7a06ebc5aa8).;
123 for (unsigned i = 0; i < parameterCount; i++)
124 args.appendcxx . . $ QTJSC/MarkedArgumentBuffer#append(5c2ac18db087b3e6).(jsStringcxx . . $ QTJSC/jsString(edccc873576bddf5).(exec, parameterNames[i]->ustringcxx . . $ OpaqueJSString#ustring(ba9ec689f7dd9231).()));
125 args.appendcxx . . $ QTJSC/MarkedArgumentBuffer#append(5c2ac18db087b3e6).(jsStringcxx . . $ QTJSC/jsString(edccc873576bddf5).(exec, body->ustringcxx . . $ OpaqueJSString#ustring(ba9ec689f7dd9231).()));
126
127 JSObjectcxx . . $ QTJSC/JSObject#* result = constructFunctioncxx . . $ QTJSC/constructFunction(e1fe63bd09470bd).(exec, args, nameID, sourceURL->ustringcxx . . $ OpaqueJSString#ustring(ba9ec689f7dd9231).(), startingLineNumber);
128 if (exec->hadExceptioncxx . . $ QTJSC/ExecState#hadException(50ce9a9e25b4a850).()) {
129 if (exception)
130 *exception = toRefcxx . . $ toRef(df99c259cd5b7643).(exec, exec->exceptioncxx . . $ QTJSC/ExecState#exception(888c053acf364da1).());
131 exec->clearExceptioncxx . . $ QTJSC/ExecState#clearException(49f6e7a06ebc5aa8).();
132 result = 0;
133 }
134 return toRefcxx . . $ toRef(d2164949e0d73831).(result);
135 }
136
137 JSObjectRefcxx . . $ JSObjectRef# JSObjectMakeArraycxx . . $ JSObjectMakeArray(f03b455e52a13ce9).(JSContextRefcxx . . $ JSContextRef# ctx, size_tcxx . . $ size_t# argumentCount, const JSValueRefcxx . . $ JSValueRef# arguments[], JSValueRefcxx . . $ JSValueRef#* exception)
138 {
139 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
140 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
141
142 JSObjectcxx . . $ QTJSC/JSObject#* result;
143 if (argumentCount) {
144 MarkedArgumentBuffercxx . . $ QTJSC/MarkedArgumentBuffer# argListcxx . . $ QTJSC/MarkedArgumentBuffer#MarkedArgumentBuffer(49f6e7a06ebc5aa8).;
145 for (size_tcxx . . $ size_t# i = 0; i < argumentCount; ++i)
146 argList.appendcxx . . $ QTJSC/MarkedArgumentBuffer#append(5c2ac18db087b3e6).(toJScxx . . $ toJS(c1f9d3957c3f3cd7).(exec, arguments[i]));
147
148 result = constructArraycxx . . $ QTJSC/constructArray(26dfac2b16a9902f).(exec, argList);
149 } else
150 result = constructEmptyArraycxx . . $ QTJSC/constructEmptyArray(90c94948c9750944).(exec);
151
152 if (exec->hadExceptioncxx . . $ QTJSC/ExecState#hadException(50ce9a9e25b4a850).()) {
153 if (exception)
154 *exception = toRefcxx . . $ toRef(df99c259cd5b7643).(exec, exec->exceptioncxx . . $ QTJSC/ExecState#exception(888c053acf364da1).());
155 exec->clearExceptioncxx . . $ QTJSC/ExecState#clearException(49f6e7a06ebc5aa8).();
156 result = 0;
157 }
158
159 return toRefcxx . . $ toRef(d2164949e0d73831).(result);
160 }
161
162 JSObjectRefcxx . . $ JSObjectRef# JSObjectMakeDatecxx . . $ JSObjectMakeDate(f03b455e52a13ce9).(JSContextRefcxx . . $ JSContextRef# ctx, size_tcxx . . $ size_t# argumentCount, const JSValueRefcxx . . $ JSValueRef# arguments[], JSValueRefcxx . . $ JSValueRef#* exception)
163 {
164 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
165 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
166
167 MarkedArgumentBuffercxx . . $ QTJSC/MarkedArgumentBuffer# argListcxx . . $ QTJSC/MarkedArgumentBuffer#MarkedArgumentBuffer(49f6e7a06ebc5aa8).;
168 for (size_tcxx . . $ size_t# i = 0; i < argumentCount; ++i)
169 argList.appendcxx . . $ QTJSC/MarkedArgumentBuffer#append(5c2ac18db087b3e6).(toJScxx . . $ toJS(c1f9d3957c3f3cd7).(exec, arguments[i]));
170
171 JSObjectcxx . . $ QTJSC/JSObject#* result = constructDatecxx . . $ QTJSC/constructDate(ec25cef8276945af).(exec, argList);
172 if (exec->hadExceptioncxx . . $ QTJSC/ExecState#hadException(50ce9a9e25b4a850).()) {
173 if (exception)
174 *exception = toRefcxx . . $ toRef(df99c259cd5b7643).(exec, exec->exceptioncxx . . $ QTJSC/ExecState#exception(888c053acf364da1).());
175 exec->clearExceptioncxx . . $ QTJSC/ExecState#clearException(49f6e7a06ebc5aa8).();
176 result = 0;
177 }
178
179 return toRefcxx . . $ toRef(d2164949e0d73831).(result);
180 }
181
182 JSObjectRefcxx . . $ JSObjectRef# JSObjectMakeErrorcxx . . $ JSObjectMakeError(f03b455e52a13ce9).(JSContextRefcxx . . $ JSContextRef# ctx, size_tcxx . . $ size_t# argumentCount, const JSValueRefcxx . . $ JSValueRef# arguments[], JSValueRefcxx . . $ JSValueRef#* exception)
183 {
184 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
185 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
186
187 MarkedArgumentBuffercxx . . $ QTJSC/MarkedArgumentBuffer# argListcxx . . $ QTJSC/MarkedArgumentBuffer#MarkedArgumentBuffer(49f6e7a06ebc5aa8).;
188 for (size_tcxx . . $ size_t# i = 0; i < argumentCount; ++i)
189 argList.appendcxx . . $ QTJSC/MarkedArgumentBuffer#append(5c2ac18db087b3e6).(toJScxx . . $ toJS(c1f9d3957c3f3cd7).(exec, arguments[i]));
190
191 JSObjectcxx . . $ QTJSC/JSObject#* result = constructErrorcxx . . $ QTJSC/constructError(7154464fd5605c24).(exec, argList);
192 if (exec->hadExceptioncxx . . $ QTJSC/ExecState#hadException(50ce9a9e25b4a850).()) {
193 if (exception)
194 *exception = toRefcxx . . $ toRef(df99c259cd5b7643).(exec, exec->exceptioncxx . . $ QTJSC/ExecState#exception(888c053acf364da1).());
195 exec->clearExceptioncxx . . $ QTJSC/ExecState#clearException(49f6e7a06ebc5aa8).();
196 result = 0;
197 }
198
199 return toRefcxx . . $ toRef(d2164949e0d73831).(result);
200 }
201
202 JSObjectRefcxx . . $ JSObjectRef# JSObjectMakeRegExpcxx . . $ JSObjectMakeRegExp(f03b455e52a13ce9).(JSContextRefcxx . . $ JSContextRef# ctx, size_tcxx . . $ size_t# argumentCount, const JSValueRefcxx . . $ JSValueRef# arguments[], JSValueRefcxx . . $ JSValueRef#* exception)
203 {
204 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
205 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
206
207 MarkedArgumentBuffercxx . . $ QTJSC/MarkedArgumentBuffer# argListcxx . . $ QTJSC/MarkedArgumentBuffer#MarkedArgumentBuffer(49f6e7a06ebc5aa8).;
208 for (size_tcxx . . $ size_t# i = 0; i < argumentCount; ++i)
209 argList.appendcxx . . $ QTJSC/MarkedArgumentBuffer#append(5c2ac18db087b3e6).(toJScxx . . $ toJS(c1f9d3957c3f3cd7).(exec, arguments[i]));
210
211 JSObjectcxx . . $ QTJSC/JSObject#* result = constructRegExpcxx . . $ QTJSC/constructRegExp(ec25cef8276945af).(exec, argList);
212 if (exec->hadExceptioncxx . . $ QTJSC/ExecState#hadException(50ce9a9e25b4a850).()) {
213 if (exception)
214 *exception = toRefcxx . . $ toRef(df99c259cd5b7643).(exec, exec->exceptioncxx . . $ QTJSC/ExecState#exception(888c053acf364da1).());
215 exec->clearExceptioncxx . . $ QTJSC/ExecState#clearException(49f6e7a06ebc5aa8).();
216 result = 0;
217 }
218
219 return toRefcxx . . $ toRef(d2164949e0d73831).(result);
220 }
221
222 JSValueRefcxx . . $ JSValueRef# JSObjectGetPrototypecxx . . $ JSObjectGetPrototype(72dce994ff20f29d).(JSContextRefcxx . . $ JSContextRef# ctx, JSObjectRefcxx . . $ JSObjectRef# object)
223 {
224 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
225 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
226
227 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
228 return toRefcxx . . $ toRef(df99c259cd5b7643).(exec, jsObject->prototypecxx . . $ QTJSC/JSObject#prototype(888c053acf364da1).());
229 }
230
231 void JSObjectSetPrototypecxx . . $ JSObjectSetPrototype(b5d60a818b99c2e7).(JSContextRefcxx . . $ JSContextRef# ctx, JSObjectRefcxx . . $ JSObjectRef# object, JSValueRefcxx . . $ JSValueRef# value)
232 {
233 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
234 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
235
236 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
237 JSValuecxx . . $ QTJSC/JSValue# jsValue = toJScxx . . $ toJS(c1f9d3957c3f3cd7).(exec, value);
238
239 jsObject->setPrototypecxx . . $ QTJSC/JSObject#setPrototype(5c2ac18db087b3e6).(jsValue.isObjectcxx . . $ QTJSC/JSValue#isObject(50ce9a9e25b4a850).() ? jsValue : jsNullcxx . . $ QTJSC/jsNull(ad9afe69d7bf6378).());
240 }
241
242 bool JSObjectHasPropertycxx . . $ JSObjectHasProperty(89889a66218d7880).(JSContextRefcxx . . $ JSContextRef# ctx, JSObjectRefcxx . . $ JSObjectRef# object, JSStringRefcxx . . $ JSStringRef# propertyName)
243 {
244 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
245 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
246
247 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
248
249 return jsObject->hasPropertycxx . . $ QTJSC/JSObject#hasProperty(19361922c79e8980).(exec, propertyName->identifiercxx . . $ OpaqueJSString#identifier(42b370a020f595f8).(&exec->globalDatacxx . . $ QTJSC/ExecState#globalData(ae00a65ac2fd4a61).()));
250 }
251
252 JSValueRefcxx . . $ JSValueRef# JSObjectGetPropertycxx . . $ JSObjectGetProperty(a0bc78ada76e5442).(JSContextRefcxx . . $ JSContextRef# ctx, JSObjectRefcxx . . $ JSObjectRef# object, JSStringRefcxx . . $ JSStringRef# propertyName, JSValueRefcxx . . $ JSValueRef#* exception)
253 {
254 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
255 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
256
257 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
258
259 JSValuecxx . . $ QTJSC/JSValue# jsValue = jsObject->getcxx . . $ QTJSC/JSObject#get(ccadc8db5e9d2977).(exec, propertyName->identifiercxx . . $ OpaqueJSString#identifier(42b370a020f595f8).(&exec->globalDatacxx . . $ QTJSC/ExecState#globalData(ae00a65ac2fd4a61).()));
260 if (exec->hadExceptioncxx . . $ QTJSC/ExecState#hadException(50ce9a9e25b4a850).()) {
261 if (exception)
262 *exception = toRefcxx . . $ toRef(df99c259cd5b7643).(exec, exec->exceptioncxx . . $ QTJSC/ExecState#exception(888c053acf364da1).());
263 exec->clearExceptioncxx . . $ QTJSC/ExecState#clearException(49f6e7a06ebc5aa8).();
264 }
265 return toRefcxx . . $ toRef(df99c259cd5b7643).(exec, jsValue);
266 }
267
268 void JSObjectSetPropertycxx . . $ JSObjectSetProperty(6e016aa7ee0792).(JSContextRefcxx . . $ JSContextRef# ctx, JSObjectRefcxx . . $ JSObjectRef# object, JSStringRefcxx . . $ JSStringRef# propertyName, JSValueRefcxx . . $ JSValueRef# value, JSPropertyAttributes attributes, JSValueRefcxx . . $ JSValueRef#* exception)
269 {
270 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
271 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
272
273 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
274 Identifiercxx . . $ QTJSC/Identifier# name(propertyName->identifiercxx . . $ OpaqueJSString#identifier(42b370a020f595f8).(&exec->globalDatacxx . . $ QTJSC/ExecState#globalData(ae00a65ac2fd4a61).()));
275 JSValuecxx . . $ QTJSC/JSValue# jsValue = toJScxx . . $ toJS(c1f9d3957c3f3cd7).(exec, value);
276
277 if (attributes && !jsObject->hasPropertycxx . . $ QTJSC/JSObject#hasProperty(19361922c79e8980).(exec, name))
278 jsObject->putWithAttributescxx . . $ QTJSC/JSObject#putWithAttributes(3dd2e6313723688d).(exec, name, jsValue, attributes);
279 else {
280 PutPropertySlotcxx . . $ QTJSC/PutPropertySlot# slotcxx . . $ QTJSC/PutPropertySlot#PutPropertySlot(49f6e7a06ebc5aa8).;
281 jsObject->putcxx . . $ QTJSC/JSObject#put(dfb3133dafbe9ff4).(exec, name, jsValue, slot);
282 }
283
284 if (exec->hadExceptioncxx . . $ QTJSC/ExecState#hadException(50ce9a9e25b4a850).()) {
285 if (exception)
286 *exception = toRefcxx . . $ toRef(df99c259cd5b7643).(exec, exec->exceptioncxx . . $ QTJSC/ExecState#exception(888c053acf364da1).());
287 exec->clearExceptioncxx . . $ QTJSC/ExecState#clearException(49f6e7a06ebc5aa8).();
288 }
289 }
290
291 JSValueRefcxx . . $ JSValueRef# JSObjectGetPropertyAtIndexcxx . . $ JSObjectGetPropertyAtIndex(99e3da105cb2b32f).(JSContextRefcxx . . $ JSContextRef# ctx, JSObjectRefcxx . . $ JSObjectRef# object, unsigned propertyIndex, JSValueRefcxx . . $ JSValueRef#* exception)
292 {
293 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
294 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
295
296 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
297
298 JSValuecxx . . $ QTJSC/JSValue# jsValue = jsObject->getcxx . . $ QTJSC/JSObject#get(2d9c2221088d2593).(exec, propertyIndex);
299 if (exec->hadExceptioncxx . . $ QTJSC/ExecState#hadException(50ce9a9e25b4a850).()) {
300 if (exception)
301 *exception = toRefcxx . . $ toRef(df99c259cd5b7643).(exec, exec->exceptioncxx . . $ QTJSC/ExecState#exception(888c053acf364da1).());
302 exec->clearExceptioncxx . . $ QTJSC/ExecState#clearException(49f6e7a06ebc5aa8).();
303 }
304 return toRefcxx . . $ toRef(df99c259cd5b7643).(exec, jsValue);
305 }
306
307
308 void JSObjectSetPropertyAtIndexcxx . . $ JSObjectSetPropertyAtIndex(4a54f18e900ed8c1).(JSContextRefcxx . . $ JSContextRef# ctx, JSObjectRefcxx . . $ JSObjectRef# object, unsigned propertyIndex, JSValueRefcxx . . $ JSValueRef# value, JSValueRefcxx . . $ JSValueRef#* exception)
309 {
310 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
311 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
312
313 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
314 JSValuecxx . . $ QTJSC/JSValue# jsValue = toJScxx . . $ toJS(c1f9d3957c3f3cd7).(exec, value);
315
316 jsObject->putcxx . . $ QTJSC/JSObject#put(b1b60585cf3bb95).(exec, propertyIndex, jsValue);
317 if (exec->hadExceptioncxx . . $ QTJSC/ExecState#hadException(50ce9a9e25b4a850).()) {
318 if (exception)
319 *exception = toRefcxx . . $ toRef(df99c259cd5b7643).(exec, exec->exceptioncxx . . $ QTJSC/ExecState#exception(888c053acf364da1).());
320 exec->clearExceptioncxx . . $ QTJSC/ExecState#clearException(49f6e7a06ebc5aa8).();
321 }
322 }
323
324 bool JSObjectDeletePropertycxx . . $ JSObjectDeleteProperty(ee411eccedd2af0).(JSContextRefcxx . . $ JSContextRef# ctx, JSObjectRefcxx . . $ JSObjectRef# object, JSStringRefcxx . . $ JSStringRef# propertyName, JSValueRefcxx . . $ JSValueRef#* exception)
325 {
326 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
327 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
328
329 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
330
331 bool result = jsObject->deletePropertycxx . . $ QTJSC/JSObject#deleteProperty(13154ef9bddc9416).(exec, propertyName->identifiercxx . . $ OpaqueJSString#identifier(42b370a020f595f8).(&exec->globalDatacxx . . $ QTJSC/ExecState#globalData(ae00a65ac2fd4a61).()));
332 if (exec->hadExceptioncxx . . $ QTJSC/ExecState#hadException(50ce9a9e25b4a850).()) {
333 if (exception)
334 *exception = toRefcxx . . $ toRef(df99c259cd5b7643).(exec, exec->exceptioncxx . . $ QTJSC/ExecState#exception(888c053acf364da1).());
335 exec->clearExceptioncxx . . $ QTJSC/ExecState#clearException(49f6e7a06ebc5aa8).();
336 }
337 return result;
338 }
339
340 void* JSObjectGetPrivatecxx . . $ JSObjectGetPrivate(7c312e3e8ba98928).(JSObjectRefcxx . . $ JSObjectRef# object)
341 {
342 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
343
344 if (jsObject->inherits(&JSCallbackObject<JSGlobalObject>::info))
345 return static_cast<JSCallbackObject<JSGlobalObject>*>(jsObject)->getPrivate();
346 else if (jsObject->inherits(&JSCallbackObject<JSObject>::info))
347 return static_cast<JSCallbackObject<JSObject>*>(jsObject)->getPrivate();
348
349 return 0;
350 }
351
352 bool JSObjectSetPrivatecxx . . $ JSObjectSetPrivate(d05c314fb9d50dbc).(JSObjectRefcxx . . $ JSObjectRef# object, void* data)
353 {
354 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
355
356 if (jsObject->inheritscxx . . $ QTJSC/JSCell#inherits(7eca403b06d48463).(&JSCallbackObject<JSGlobalObject>::info)) {
357 static_cast<JSCallbackObject<JSGlobalObject>*>(jsObject)->setPrivate(data);
358 return true;
359 } else if (jsObject->inheritscxx . . $ QTJSC/JSCell#inherits(7eca403b06d48463).(&JSCallbackObject<JSObject>::info)) {
360 static_cast<JSCallbackObject<JSObject>*>(jsObject)->setPrivate(data);
361 return true;
362 }
363
364 return false;
365 }
366
367 bool JSObjectIsFunctioncxx . . $ JSObjectIsFunction(7c62890b3961313d).(JSContextRefcxx . . $ JSContextRef#, JSObjectRefcxx . . $ JSObjectRef# object)
368 {
369 CallDatacxx . . $ QTJSC/CallData# callData;
370 return toJScxx . . $ toJS(a8374ff494b0ca9c).(object)->getCallDatacxx . . $ QTJSC/JSCell#getCallData(9482040cf952d29d).(callData) !=cxx . . $ `operator!=`(6e1b14f8233bd4af). CallTypeNonecxx . . $ QTJSC/CallTypeNone.;
371 }
372
373 JSValueRefcxx . . $ JSValueRef# JSObjectCallAsFunctioncxx . . $ JSObjectCallAsFunction(c630bcafc39c6c1e).(JSContextRefcxx . . $ JSContextRef# ctx, JSObjectRefcxx . . $ JSObjectRef# object, JSObjectRefcxx . . $ JSObjectRef# thisObject, size_tcxx . . $ size_t# argumentCount, const JSValueRefcxx . . $ JSValueRef# arguments[], JSValueRefcxx . . $ JSValueRef#* exception)
374 {
375 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
376 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
377
378 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
379 JSObjectcxx . . $ QTJSC/JSObject#* jsThisObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(thisObject);
380
381 if (!jsThisObject)
382 jsThisObject = exec->globalThisValuecxx . . $ QTJSC/ExecState#globalThisValue(8ac23ea934d7a115).();
383
384 MarkedArgumentBuffercxx . . $ QTJSC/MarkedArgumentBuffer# argListcxx . . $ QTJSC/MarkedArgumentBuffer#MarkedArgumentBuffer(49f6e7a06ebc5aa8).;
385 for (size_tcxx . . $ size_t# i = 0; i < argumentCount; i++)
386 argList.appendcxx . . $ QTJSC/MarkedArgumentBuffer#append(5c2ac18db087b3e6).(toJScxx . . $ toJS(c1f9d3957c3f3cd7).(exec, arguments[i]));
387
388 CallDatacxx . . $ QTJSC/CallData# callData;
389 CallTypecxx . . $ QTJSC/CallType# callType = jsObject->getCallDatacxx . . $ QTJSC/JSCell#getCallData(9482040cf952d29d).(callData);
390 if (callType == CallTypeNonecxx . . $ QTJSC/CallTypeNone.)
391 return 0;
392
393 JSValueRefcxx . . $ JSValueRef# result = toRefcxx . . $ toRef(df99c259cd5b7643).(exec, callcxx . . $ QTJSC/call(342816bfcb24d530).(exec, jsObject, callType, callData, jsThisObject, argList));
394 if (exec->hadExceptioncxx . . $ QTJSC/ExecState#hadException(50ce9a9e25b4a850).()) {
395 if (exception)
396 *exception = toRefcxx . . $ toRef(df99c259cd5b7643).(exec, exec->exceptioncxx . . $ QTJSC/ExecState#exception(888c053acf364da1).());
397 exec->clearExceptioncxx . . $ QTJSC/ExecState#clearException(49f6e7a06ebc5aa8).();
398 result = 0;
399 }
400 return result;
401 }
402
403 bool JSObjectIsConstructorcxx . . $ JSObjectIsConstructor(7c62890b3961313d).(JSContextRefcxx . . $ JSContextRef#, JSObjectRefcxx . . $ JSObjectRef# object)
404 {
405 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
406 ConstructDatacxx . . $ QTJSC/ConstructData# constructData;
407 return jsObject->getConstructDatacxx . . $ QTJSC/JSCell#getConstructData(80014d68d6143eea).(constructData) !=cxx . . $ `operator!=`(6e1b14f8233bd4af). ConstructTypeNonecxx . . $ QTJSC/ConstructTypeNone.;
408 }
409
410 JSObjectRefcxx . . $ JSObjectRef# JSObjectCallAsConstructorcxx . . $ JSObjectCallAsConstructor(d9861f7dc3cb596d).(JSContextRefcxx . . $ JSContextRef# ctx, JSObjectRefcxx . . $ JSObjectRef# object, size_tcxx . . $ size_t# argumentCount, const JSValueRefcxx . . $ JSValueRef# arguments[], JSValueRefcxx . . $ JSValueRef#* exception)
411 {
412 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
413 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
414
415 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
416
417 ConstructDatacxx . . $ QTJSC/ConstructData# constructData;
418 ConstructTypecxx . . $ QTJSC/ConstructType# constructType = jsObject->getConstructDatacxx . . $ QTJSC/JSCell#getConstructData(80014d68d6143eea).(constructData);
419 if (constructType == ConstructTypeNonecxx . . $ QTJSC/ConstructTypeNone.)
420 return 0;
421
422 MarkedArgumentBuffercxx . . $ QTJSC/MarkedArgumentBuffer# argListcxx . . $ QTJSC/MarkedArgumentBuffer#MarkedArgumentBuffer(49f6e7a06ebc5aa8).;
423 for (size_tcxx . . $ size_t# i = 0; i < argumentCount; i++)
424 argList.appendcxx . . $ QTJSC/MarkedArgumentBuffer#append(5c2ac18db087b3e6).(toJScxx . . $ toJS(c1f9d3957c3f3cd7).(exec, arguments[i]));
425 JSObjectRefcxx . . $ JSObjectRef# result = toRefcxx . . $ toRef(d2164949e0d73831).(constructcxx . . $ QTJSC/construct(65d523ed9ce856ba).(exec, jsObject, constructType, constructData, argList));
426 if (exec->hadExceptioncxx . . $ QTJSC/ExecState#hadException(50ce9a9e25b4a850).()) {
427 if (exception)
428 *exception = toRefcxx . . $ toRef(df99c259cd5b7643).(exec, exec->exceptioncxx . . $ QTJSC/ExecState#exception(888c053acf364da1).());
429 exec->clearExceptioncxx . . $ QTJSC/ExecState#clearException(49f6e7a06ebc5aa8).();
430 result = 0;
431 }
432 return result;
433 }
434
435 struct OpaqueJSPropertyNameArraycxx . . $ OpaqueJSPropertyNameArray# : FastAllocBasecxx . . $ FastAllocBase# {
436 OpaqueJSPropertyNameArraycxx . . $ OpaqueJSPropertyNameArray#OpaqueJSPropertyNameArray(71c44650a83bfd83).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData)
437 : refCountcxx . . $ OpaqueJSPropertyNameArray#refCount.(0)
438 , globalDatacxx . . $ OpaqueJSPropertyNameArray#globalData.(globalData)
439 {
440 }
441
442 unsigned refCountcxx . . $ OpaqueJSPropertyNameArray#refCount.;
443 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalDatacxx . . $ OpaqueJSPropertyNameArray#globalData.;
444 Vector<JSRetainPtr<JSStringRef> > arraycxx . . $ OpaqueJSPropertyNameArray#array.;
445 };
446
447 JSPropertyNameArrayRefcxx . . $ JSPropertyNameArrayRef# JSObjectCopyPropertyNamescxx . . $ JSObjectCopyPropertyNames(959bc773a1e18c36).(JSContextRefcxx . . $ JSContextRef# ctx, JSObjectRefcxx . . $ JSObjectRef# object)
448 {
449 JSObjectcxx . . $ QTJSC/JSObject#* jsObject = toJScxx . . $ toJS(a8374ff494b0ca9c).(object);
450 ExecStatecxx . . $ QTJSC/ExecState#* exec = toJScxx . . $ toJS(f59d9eed7d59fe2c).(ctx);
451 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(8ab7e31759e06129).(exec);
452
453 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData = &exec->globalDatacxx . . $ QTJSC/ExecState#globalData(ae00a65ac2fd4a61).();
454
455 JSPropertyNameArrayRefcxx . . $ JSPropertyNameArrayRef# propertyNames = new OpaqueJSPropertyNameArraycxx . . $ OpaqueJSPropertyNameArray#OpaqueJSPropertyNameArray(71c44650a83bfd83).(globalData);
456 PropertyNameArraycxx . . $ QTJSC/PropertyNameArray# arraycxx . . $ QTJSC/PropertyNameArray#PropertyNameArray(71c44650a83bfd83).(globalData);
457 jsObject->getPropertyNamescxx . . $ QTJSC/JSObject#getPropertyNames(2f9e3f18de200b4e).(exec, array);
458
459 size_tcxx . . $ size_t# size = array.sizecxx . . $ QTJSC/PropertyNameArray#size(fe4d2d262d4164a8).();
460 propertyNames->array.reserveInitialCapacity(size);
461 for (size_tcxx . . $ size_t# i = 0; i < size; ++i)
462 propertyNames->array.append(JSRetainPtrcxx . . $ JSRetainPtr#<JSStringRefcxx . . $ JSStringRef#>(Adoptcxx . . $ Adopt., OpaqueJSStringcxx . . $ OpaqueJSString#::createcxx . . $ OpaqueJSString#create(66b7c7959bf32be2).(array[cxx . . $ QTJSC/PropertyNameArray#`operator[]`(25c60255f7bdf682).i].ustringcxx . . $ QTJSC/Identifier#ustring(de21ee9ecbd506fd).()).releaseRef()));
463
464 return JSPropertyNameArrayRetain(propertyNames);
465 }
466
467 JSPropertyNameArrayRefcxx . . $ JSPropertyNameArrayRef# JSPropertyNameArrayRetaincxx . . $ JSPropertyNameArrayRetain(9eb2198cee7c96f2).(JSPropertyNameArrayRefcxx . . $ JSPropertyNameArrayRef# array)
468 {
469 ++array->refCountcxx . . $ OpaqueJSPropertyNameArray#refCount.;
470 return array;
471 }
472
473 void JSPropertyNameArrayReleasecxx . . $ JSPropertyNameArrayRelease(8c65029c88641b77).(JSPropertyNameArrayRefcxx . . $ JSPropertyNameArrayRef# array)
474 {
475 if (--array->refCountcxx . . $ OpaqueJSPropertyNameArray#refCount. == 0) {
476 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(9b37fee4035c40ae).(array->globalDatacxx . . $ OpaqueJSPropertyNameArray#globalData., false);
477 delete array;
478 }
479 }
480
481 size_tcxx . . $ size_t# JSPropertyNameArrayGetCountcxx . . $ JSPropertyNameArrayGetCount(544a68b1785b3c95).(JSPropertyNameArrayRefcxx . . $ JSPropertyNameArrayRef# array)
482 {
483 return array->array.size();
484 }
485
486 JSStringRefcxx . . $ JSStringRef# JSPropertyNameArrayGetNameAtIndexcxx . . $ JSPropertyNameArrayGetNameAtIndex(229dc35948212395).(JSPropertyNameArrayRefcxx . . $ JSPropertyNameArrayRef# array, size_tcxx . . $ size_t# index)
487 {
488 return array->array[static_cast<unsigned>(index)].get();
489 }
490
491 void JSPropertyNameAccumulatorAddNamecxx . . $ JSPropertyNameAccumulatorAddName(413ae5eadac059cd).(JSPropertyNameAccumulatorRefcxx . . $ JSPropertyNameAccumulatorRef# array, JSStringRefcxx . . $ JSStringRef# propertyName)
492 {
493 PropertyNameArraycxx . . $ QTJSC/PropertyNameArray#* propertyNames = toJScxx . . $ toJS(bb1dcb6cf638bc89).(array);
494 APIEntryShimcxx . . $ QTJSC/APIEntryShim# entryShimcxx . . $ QTJSC/APIEntryShim#APIEntryShim(9b37fee4035c40ae).(propertyNames->globalDatacxx . . $ QTJSC/PropertyNameArray#globalData(a2bcd21f8a8ecac2).());
495 propertyNames->addcxx . . $ QTJSC/PropertyNameArray#add(d7ed36c5537ed570).(propertyName->identifiercxx . . $ OpaqueJSString#identifier(42b370a020f595f8).(propertyNames->globalDatacxx . . $ QTJSC/PropertyNameArray#globalData(a2bcd21f8a8ecac2).()));
496 }